/* Анимации по правилам Emil Kowalski: только transform/opacity, ease-out, один раз, с уважением к «уменьшить движение» */
:root{--ease-out-strong:cubic-bezier(0.23,1,0.32,1)}
@media (prefers-reduced-motion:no-preference){
  /* 1. Первый экран: элементы появляются по очереди при загрузке */
  .js .hero-center>*{opacity:0;transform:translateY(14px);transition:opacity .7s var(--ease-out-strong),transform .7s var(--ease-out-strong)}
  .js .hero-center.is-in>*{opacity:1;transform:none}
  .js .hero-center.is-in>*:nth-child(2){transition-delay:.06s}
  .js .hero-center.is-in>*:nth-child(3){transition-delay:.14s}
  .js .hero-center.is-in>*:nth-child(4){transition-delay:.22s}
  .js .hero-center.is-in>*:nth-child(5){transition-delay:.30s}

  /* 2. «Путь»: линия прорисовывается слева направо, точки загораются по очереди, итог появляется последним */
  .js .track:before{transform:scaleX(0);transform-origin:left center;transition:transform 1.2s cubic-bezier(0.77,0,0.175,1)}
  .js .track.is-drawn:before{transform:scaleX(1)}
  .js .track .stop:not(.final) .dot{transition:border-color .3s ease,box-shadow .3s ease}
  .js .track.is-drawn .stop:not(.final) .dot{border-color:#ff7a2e}
  .js .track.is-drawn .stop:nth-child(1) .dot{transition-delay:.15s}
  .js .track.is-drawn .stop:nth-child(2) .dot{transition-delay:.45s}
  .js .track.is-drawn .stop:nth-child(3) .dot{transition-delay:.75s}
  .js .track.is-drawn .stop:nth-child(4) .dot{transition-delay:1.05s}
  .js .track .stop.final{opacity:0;transform:scale(.94);transition:opacity .5s var(--ease-out-strong) 1.15s,transform .5s var(--ease-out-strong) 1.15s}
  .js .track.is-drawn .stop.final{opacity:1;transform:none}
}
@media (prefers-reduced-motion:no-preference) and (max-width:680px){
  .js .track:before{transform:scaleY(0);transform-origin:top center}
  .js .track.is-drawn:before{transform:scaleY(1)}
}
/* скриншоты (?shot) — без анимаций */
.shot .hero-center>*,.shot .track .stop.final{opacity:1!important;transform:none!important}
.shot .track:before{transform:none!important}
