/* Лёгкая анимация поверх исходного дизайна. Только opacity/translate/rotate — вёрстку не трогает. */

/* 1. Появление блоков при прокрутке */
.js-anim .rv{opacity:0;translate:0 28px;transition:opacity .7s ease,translate .7s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
.js-anim .rv.rv-in{opacity:1;translate:0 0}

/* 2. Иконки ситуаций и шестерёнка — мягко плавают */
@keyframes floatY{0%,100%{translate:0 0}50%{translate:0 -8px}}
@keyframes spinSlow{to{rotate:360deg}}
.sit-icon{animation:floatY 4.5s ease-in-out infinite}
.sit-grid .sit-card:nth-child(2) .sit-icon{animation-delay:-1.5s}
.sit-grid .sit-card:nth-child(3) .sit-icon{animation-delay:-3s}
.work-materials .gear-icon{animation:spinSlow 40s linear infinite}

/* 3. Фигурки на первом экране */
.hero-fx{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.hero-fx i{position:absolute;display:block;border:2px solid rgba(255,91,31,.55);opacity:.0;animation:fxDrift var(--t,14s) ease-in-out infinite;animation-delay:var(--dl,0s)}
.hero-fx i.sq{width:var(--s,18px);height:var(--s,18px);rotate:45deg}
.hero-fx i.ring{width:var(--s,26px);height:var(--s,26px);border-radius:50%}
.hero-fx i.dot{width:6px;height:6px;border:none;background:#ff5b1f;border-radius:50%}
@keyframes fxDrift{
  0%{opacity:0;translate:0 30px}
  15%{opacity:.85}
  85%{opacity:.85}
  100%{opacity:0;translate:var(--dx,20px) -120px}
}

/* 4. Главная кнопка — мягкое свечение */
@keyframes btnGlow{0%,100%{box-shadow:0 0 0 0 rgba(255,91,31,.0)}50%{box-shadow:0 0 0 10px rgba(255,91,31,.18)}}
.hero .btn-primary,.final-cta .btn-primary{animation:btnGlow 2.8s ease-in-out infinite}

/* 5. Карточки при наведении */
.work-card .work-photo{transition:scale .6s ease}
.work-card:hover .work-photo{scale:1.04}
.case-card{transition:translate .25s ease,box-shadow .25s ease}
.case-card:hover{translate:0 -4px;box-shadow:0 18px 40px rgba(0,0,0,.12)}
.cert-item{transition:translate .25s ease}
.cert-item:hover{translate:0 -4px}

@media (prefers-reduced-motion: reduce){
  .js-anim .rv{opacity:1;translate:none;transition:none}
  .sit-icon,.work-materials .gear-icon,.hero-fx,.hero .btn-primary,.final-cta .btn-primary{animation:none}
  .hero-fx{display:none}
}
@media (max-width:768px){
  .hero-fx i:nth-child(n+5){display:none}
  .hero-fx i{left:auto!important;right:4%!important;opacity:.6}
  .hero-fx i:nth-child(1){top:12%!important}.hero-fx i:nth-child(2){top:30%!important;right:2%!important}
  .hero-fx i:nth-child(3){top:62%!important;right:6%!important}.hero-fx i:nth-child(4){top:80%!important;left:4%!important;right:auto!important}
}

/* 6. Оранжевый текст аккуратно переливается */
@keyframes shine{0%{background-position:100% 0}55%,100%{background-position:0 0}}
.shine{background:linear-gradient(100deg,#fc5f1f 0%,#fc5f1f 42%,#ffc49a 50%,#fc5f1f 58%,#fc5f1f 100%);background-size:300% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;animation:shine 5.5s ease-in-out infinite}

/* 7. Блик по оранжевым плашкам */
.sheen{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}
.sheen i{position:absolute;top:-20%;bottom:-20%;left:-40%;width:28%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
  transform:skewX(-20deg);animation:sheen 7s ease-in-out infinite;animation-delay:var(--sd,0s)}
@keyframes sheen{0%,62%{left:-40%}100%{left:130%}}

/* 8. Этапы подсвечиваются по очереди */
.stage-nav-links .snl,.stage-nav-links .arrow{transition:color .45s,text-shadow .45s,translate .45s}
.stage-nav-links .snl.lit{color:var(--c-orange);text-shadow:0 0 14px rgba(252,95,31,.45)}
.stage-nav-links .arrow.lit{color:var(--c-orange);translate:4px 0}
.s2-step img,.s4-step img,.s2-arrow,.s4-line{transition:scale .5s cubic-bezier(.2,.8,.2,1.2),filter .5s,opacity .5s}
.s2-step.lit img,.s4-step.lit img{scale:1.1;filter:drop-shadow(0 0 16px rgba(252,95,31,.55))}
.s2-arrow.lit{scale:1.25}
.s4-line.lit{filter:drop-shadow(0 0 6px rgba(252,95,31,.8)) brightness(1.4)}
@media (prefers-reduced-motion: reduce){.shine,.sheen i{animation:none}.sheen{display:none}}

/* 9 — «Нам доверяют», заметки в этапах, поле выбора в форме */
.trust{padding:5vw 0 1vw;background:#fff}
.trust-title{font-size:clamp(22px,2.4vw,40px);line-height:1.15;margin:.6vw 0 2.4vw;text-transform:uppercase}
.trust-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:1px;background:#e3e3e3;border:1px solid #e3e3e3}
.trust-item{background:#fff;min-height:9vw;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:18px 10px;text-align:center;transition:background .3s}
.trust-item b{font-size:clamp(18px,1.6vw,28px);letter-spacing:.06em;color:#8a8a8a;transition:color .3s}
.trust-item span{font-size:12px;line-height:1.3;color:#a0a0a0}
.trust-item:hover{background:#fff7f2}.trust-item:hover b{color:var(--c-orange)}
.stage-note{margin:14px 0 0;font-size:clamp(14px,1.05vw,17px);color:#4a4a4a;border-left:3px solid var(--c-orange);padding:4px 0 4px 12px;max-width:760px}
.stage-note b{color:var(--c-orange)}
.stage-note--dark{color:#d8d8d8;margin-bottom:18px}
.lead-field select{font-family:inherit;font-size:15px;background:#fff;border:1px solid #d2d2d2;border-radius:0;padding:12px 14px;width:100%}
.lead-field select:focus{outline:none;border-color:var(--c-orange)}
@media (max-width:1024px){.trust{padding:48px 0 10px}.trust-grid{grid-template-columns:repeat(3,1fr)}.trust-item{min-height:90px}}
@media (max-width:600px){.trust-grid{grid-template-columns:repeat(2,1fr)}}
.site-header .header-logo{margin-right:2.2vw;display:block}
.hero-fx{display:none!important}
/* 10 — логотипы заказчиков: неподвижно, мягкое «дыхание» по очереди */
.trust-item img{max-width:78%;max-height:64px;object-fit:contain;animation:breathe 4.8s ease-in-out infinite}
.trust-item:nth-child(2) img{animation-delay:.8s}.trust-item:nth-child(3) img{animation-delay:1.6s}
.trust-item:nth-child(4) img{animation-delay:2.4s}.trust-item:nth-child(5) img{animation-delay:3.2s}.trust-item:nth-child(6) img{animation-delay:4s}
@keyframes breathe{0%,100%{scale:1}50%{scale:1.08}}
@media (max-width:1024px){.trust-item img{max-height:48px}}
@media (prefers-reduced-motion:reduce){.trust-item img{animation:none}}

/* 11 — шапка: пункты в одну строку, аккуратный переключатель языков, телефоны целиком */
.header-nav a{white-space:nowrap}
.header-nav{align-items:center}
.header-nav .lang-sw{border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:3px;gap:2px;background:rgba(255,255,255,.04)}
.header-nav .lang-sw a{padding:4px 11px!important;border-radius:999px;font-size:13px;line-height:1.2;font-weight:500}
.lang-sw a.lang-ru:not([aria-current]){animation:none}
.hc-hide{opacity:1!important;filter:none!important}

/* 12 — мягкие переходы между блоками */
.site-header .container>a:first-child{flex:none;margin-right:2.6vw}
.trust{background:#f0f0f0}.trust-grid{background:#e2e2e2;border-color:#e2e2e2}
.sec-fade{position:absolute;left:0;right:0;top:0;height:var(--fh,160px);pointer-events:none;z-index:2}
.sec-fade--b{top:auto;bottom:0}

/* 13 — кнопка «Узнать стоимость и сроки»: скруглённая, мягкий ореол, стрелка */
.hero-ctas .btn-primary,.final-cta .btn-primary{
  width:auto;height:auto;min-height:60px;padding:8px 8px 8px 30px;gap:18px;
  border-radius:999px;font-family:'Onest',sans-serif;font-size:17px;font-weight:600;letter-spacing:0;
  background:linear-gradient(135deg,#ff7a2f,#e5520f 55%,#c9420a);
  box-shadow:0 10px 30px rgba(229,82,15,.35),inset 0 1px 0 rgba(255,255,255,.25);
  animation:btnHalo 3.2s ease-in-out infinite;
}
.hero-ctas .btn-primary::after,.final-cta .btn-primary::after{
  content:"";flex:none;width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/20px no-repeat;
  transition:transform .3s,background-color .3s;
}
.hero-ctas .btn-primary:hover::after,.final-cta .btn-primary:hover::after{transform:translateX(4px);background-color:rgba(255,255,255,.3)}
@keyframes btnHalo{0%,100%{box-shadow:0 10px 30px rgba(229,82,15,.35),0 0 0 0 rgba(255,122,47,.35),inset 0 1px 0 rgba(255,255,255,.25)}
  50%{box-shadow:0 10px 30px rgba(229,82,15,.35),0 0 0 12px rgba(255,122,47,0),inset 0 1px 0 rgba(255,255,255,.25)}}
@media (max-width:600px){.hero-ctas .btn-primary,.final-cta .btn-primary{font-size:15px;padding-left:22px;width:auto!important;max-width:none}}
@media (prefers-reduced-motion:reduce){.hero-ctas .btn-primary,.final-cta .btn-primary{animation:none}}
