/* Появление блоков при прокрутке */
.js .reveal{
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--delay, 0s);
}
.js .reveal--late{ --delay: .15s; }
.js .reveal--zoom{ transform: scale(.8) rotate(-8deg); }
.js .reveal.is-visible{
    opacity: 1;
    transform: none;
}

/* Hero */
.js .header__title,
.js .header__subtitle{
    opacity: 0;
    transform: translateY(24px);
    animation: hero-in 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.js .header__subtitle{ animation-delay: .35s; }
@keyframes hero-in{
    to{ opacity: 1; transform: none; }
}
/* Навигация */
.main{ transition: box-shadow .3s ease, background-color .3s ease; }
.main.is-scrolled{ box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.main__content_link span{
    position: relative;
}
.main__content_link span::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: #f5a623;
    transform: scaleX(0);
    transition: transform .3s ease;
}
.main__content_link:hover span::after{ transform: scaleX(1); }
.main__logo{ transition: transform .6s ease; }
.main__logo:hover{ transform: rotate(45deg); }

/* Декоративная линия под заголовком */
.js .title_decoration{
    transform: scaleX(0);
    transition: transform .8s ease .2s;
}
.js .title_decoration.is-visible{ transform: scaleX(1); }

/* Эмблема в блоке цифр */
.numbers__logo.is-visible{ animation: emblem-float 6s ease-in-out 1s infinite; }
@keyframes emblem-float{
    0%, 100%{ transform: translateY(0); }
    50%{ transform: translateY(-12px); }
}

/* Логотипы партнёров */
.partners__logo{
    transition: transform .35s ease, filter .35s ease;
    filter: grayscale(.35);
}
.partners__imgwrapper:hover .partners__logo{
    transform: scale(1.08);
    filter: none;
}
.button{ transition: transform .2s ease, box-shadow .2s ease; }
.button:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* Контакты */
.footer__link{ transition: color .25s ease; }
.footer__link:hover{ color: #f5a623; }

@media (prefers-reduced-motion: reduce){
    .js .reveal, .js .title_decoration, .js .header__title, .js .header__subtitle{
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    .numbers__logo.is-visible{ animation: none !important; }
}
