/* Система движения. Правило: анимируем только transform/translate/scale/opacity.
   Все «скрытые» стартовые состояния включаются только при html.rs-js — без JS контент виден. */

/* ---------- Появление блоков (один раз, снизу вверх) ---------- */
html.rs-js .rs-reveal{opacity:0;translate:0 24px}
html.rs-js .rs-reveal.is-in{opacity:1;translate:0 0;
  transition:opacity var(--rs-t-reveal) var(--rs-ease-grow) calc(var(--i,0)*var(--rs-stagger)),
             translate var(--rs-t-reveal) var(--rs-ease-grow) calc(var(--i,0)*var(--rs-stagger))}

/* ---------- Заголовки по строкам (маска) ---------- */
.rs .rs-lines .rs-line{display:block;overflow:hidden;padding-bottom:.1em;margin-bottom:-.1em}
html.rs-js .rs-lines .rs-line>span{display:block;translate:0 108%}
html.rs-js .rs-lines.is-in .rs-line>span,html.rs-js .rs-hero.is-ready .rs-lines .rs-line>span{translate:0 0;
  transition:translate var(--rs-t-reveal) var(--rs-ease-grow) calc(var(--rs-lines-delay,0s) + var(--i,0)*var(--rs-stagger))}

/* ---------- Хиро: таймлайн появления (≈2.4 с) ---------- */
html.rs-js .rs-hero [data-intro]{opacity:0}
html.rs-js .rs-hero [data-intro="up"]{translate:0 30px}
html.rs-js .rs-hero.is-ready [data-intro]{opacity:1;translate:0 0;
  transition:opacity var(--rs-t-reveal) var(--rs-ease-grow) var(--d,0s),translate var(--rs-t-reveal) var(--rs-ease-grow) var(--d,0s)}
html.rs-js .rs-hero .rs-grow{stroke-dasharray:1;stroke-dashoffset:1}
html.rs-js .rs-hero.is-ready .rs-grow{stroke-dashoffset:0;transition:stroke-dashoffset 900ms var(--rs-ease-grow) .6s}
html.rs-js .rs-hero .rs-grow--2{transition-delay:1s!important}
html.rs-js .rs-hero .rs-grow--3{transition-delay:1.15s!important}
html.rs-js .rs-hero .rs-grow--4{transition-delay:1.3s!important}
html.rs-js .rs-hero .rs-tip{opacity:0}
html.rs-js .rs-hero.is-ready .rs-tip{opacity:1;transition:opacity .5s var(--rs-ease-settle) 1.6s}
.rs .rs-grow{fill:none;stroke:var(--rs-lime);stroke-linecap:round;stroke-linejoin:round}
.rs .rs-tip{fill:var(--rs-lime)}

/* ---------- Прелоадер (один раз за сессию) ---------- */
#rs-preloader{position:fixed;inset:0;z-index:10000;display:none;pointer-events:all}
html.rs-preload #rs-preloader{display:block;animation:rs-pl-failsafe 0s linear 4s forwards}
.rs-pl__half{position:absolute;top:0;bottom:0;width:50.2%;background:var(--rs-ink);transition:translate 500ms var(--rs-ease-settle)}
.rs-pl__half--l{left:0}.rs-pl__half--r{right:0}
.rs-pl__line{position:absolute;left:50%;top:0;width:2px;height:100%;translate:-50% 0;overflow:visible}
.rs-pl__line path{fill:none;stroke:#B8F24A;stroke-width:2;stroke-dasharray:1;stroke-dashoffset:1;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 6px rgba(184,242,74,.8))}
#rs-preloader.is-line .rs-pl__line path{stroke-dashoffset:0;transition:stroke-dashoffset 600ms var(--rs-ease-grow)}
#rs-preloader.is-open .rs-pl__half--l{translate:-100% 0}
#rs-preloader.is-open .rs-pl__half--r{translate:100% 0}
#rs-preloader.is-open .rs-pl__line{opacity:0;transition:opacity 200ms linear}
@keyframes rs-pl-failsafe{to{opacity:0;visibility:hidden;pointer-events:none}}

/* ---------- Уважаем prefers-reduced-motion ---------- */
@media (prefers-reduced-motion:reduce){
  html.rs-js .rs-reveal,html.rs-js .rs-lines .rs-line>span,html.rs-js .rs-hero [data-intro]{opacity:1!important;translate:none!important;transition:none!important}
  html.rs-js .rs-hero .rs-grow{stroke-dashoffset:0!important;transition:none!important}
  html.rs-js .rs-hero .rs-tip{opacity:1!important}
  .rs .rs-marquee__track,.rs .rs-dust span{animation:none!important}
  .rs .rs-card,.rs .rs-tile,.rs a.rs-btn,.rs .rs-cta__glow{transition:none!important}
  #rs-preloader{display:none!important}
}
