/* Анимации сайта. Всё скрытое прячется только при классе .js на <html>,
   поэтому без скрипта контент виден сразу. При «уменьшить движение» анимаций нет. */

/* ---------- Появление при прокрутке ---------- */
.js .anim{opacity:0;transform:translateY(28px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--d,0) * 80ms)}
.js .anim.in{opacity:1;transform:none}
.js .anim-l{transform:translateX(-30px)}
.js .anim-zoom{transform:scale(.96)}

/* ---------- Первый экран ---------- */
.js .hero h1,.js .hero .chip,.js .hero>div>p,.js .hero .checks,.js .hero .btns{animation:upIn .8s cubic-bezier(.2,.7,.2,1) both}
.js .hero .chip{animation-delay:.05s}.js .hero h1{animation-delay:.12s}.js .hero>div>p{animation-delay:.24s}
.js .hero .checks{animation-delay:.32s}.js .hero .btns{animation-delay:.4s}
.js .bento>div:not(.float){animation:tileIn .9s cubic-bezier(.2,.7,.2,1) both}
.js .bento>div:nth-child(1){animation-delay:.15s}.js .bento>div:nth-child(2){animation-delay:.3s}.js .bento>div:nth-child(3){animation-delay:.45s}
.js .bento .float{animation:upIn .7s .75s cubic-bezier(.2,.7,.2,1) both,bob 6s 1.6s ease-in-out infinite}
.js .bento .f2{animation-delay:.9s,2.4s}
.js .calc2{animation:upIn .8s .55s cubic-bezier(.2,.7,.2,1) both}
.js .svh>div:first-child,.js .th>div:first-child,.js .about-hero .entry,.js .post-head{animation:upIn .8s .05s cubic-bezier(.2,.7,.2,1) both}
.js .svh .im,.js .about-hero .im,.js .th .tform,.js .ph-hero h1{animation:tileIn .9s .15s cubic-bezier(.2,.7,.2,1) both}
@keyframes upIn{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes tileIn{from{opacity:0;transform:scale(.94) translateY(16px)}to{opacity:1;transform:none}}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

/* ---------- Наведение ---------- */
.card .im,.post-card .im,.otile .im,.objs4 .cbg{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.post-card{overflow:hidden}
.card:hover .im,.post-card:hover .im,.objs4 .case:hover .cbg{transform:scale(1.06)}
.otile .im{will-change:transform}
.otile:hover .im{transform:scale(1.03)}
.otile .go,.card .more i{transition:transform .25s}
.otile:hover .go{transform:rotate(45deg)}
.card:hover .more i{transform:translate(2px,-2px)}
.pill .ic{transition:transform .2s}
.pill:hover .ic{transform:translateX(3px)}
.bg>div,.nums div,.incl div,.cc div,.tsteps div{transition:transform .25s,box-shadow .25s}
.bg>div:hover,.nums div:hover,.incl div:hover,.cc div:hover,.tsteps div:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(1,19,28,.08)}

/* ---------- Шапка ---------- */
.site-head{transition:box-shadow .3s,height .3s}
.site-head.scrolled{box-shadow:0 10px 30px rgba(1,19,28,.08)}

/* ---------- Меню услуг: пункты выезжают по очереди ---------- */
.js .has-drop:hover .mega-item{animation:upIn .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--d,0) * 35ms)}
.js .has-drop:hover .mega-prev{animation:tileIn .5s cubic-bezier(.2,.7,.2,1) both}

/* ---------- «Объекты»: стопка плиток ---------- */
@media (min-width:1181px){
  .objects.stack{padding-bottom:40px}
  .objects.stack .otile{position:sticky;top:calc(120px + var(--i,0) * 16px);transform-origin:50% 0;box-shadow:0 -10px 40px rgba(1,19,28,.06);background:#F4F8FB;
    transition:box-shadow .3s;will-change:transform}
  .objects.stack .otile+.otile{margin-top:40px}
}

/* ---------- Акция: мягкий блик ---------- */
.offer .t{position:relative;overflow:hidden}
.js .offer .t:after{content:"";position:absolute;top:-50%;left:-60%;width:40%;height:200%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.18),transparent);transform:rotate(12deg);animation:shine 5s 1.5s ease-in-out infinite}
@keyframes shine{0%{left:-60%}35%,100%{left:130%}}

@media (prefers-reduced-motion:reduce){
  .js .anim{opacity:1;transform:none;transition:none}
  .js *,.js *:before,.js *:after{animation:none!important;transition:none!important}
  .objects.stack .otile{position:static}
}
