/* Approved home intro, shared by the public home and preview. */

.home.ostankino-2026-home {
    --intro-line: calc(var(--bar-top) + 14.7 * var(--u));
    --intro-bar-height: calc(8.4 * var(--u));
    --intro-strip-height: calc(1.1 * var(--u));
}

.home.ostankino-2026-home .intro-bars {
    position: absolute;
    z-index: 10;
    top: var(--intro-line);
    left: 50%;
    width: calc(18.6 * var(--u));
    height: var(--intro-bar-height);
    display: flex;
    gap: max(1px,.1vw);
    transform: translate(-50%,-50%) scaleX(.6);
    animation:
        introBarsFlatten .5s ease-in-out 2.2s forwards,
        introBarsHide .01s linear 2.7s forwards;
}

.home.ostankino-2026-home .intro-bars i {
    flex: 1;
    height: 100%;
    background: var(--bar-color);
    transform: scaleY(.04);
    animation:
        introBarWave .8s ease-in-out calc(var(--i) * .1s - .4s) 3,
        introBarGather .25s ease-in-out 2.125s forwards;
}

/* A symmetric pulse overlaps both neighbours: one rises while the other falls. */

@keyframes introBarWave {
    0%, 25%, 75%, 100% {
        transform: scaleY(.04);
    }

    50% {
        transform: scaleY(1);
    }
}

@keyframes introBarGather {
    to {
        transform: scaleY(1);
    }
}

@keyframes introBarsFlatten {
    from {
        height: var(--intro-bar-height);
        gap: max(1px,.1vw);
        transform: translate(-50%,-50%) scaleX(.6);
    }

    to {
        height: var(--intro-strip-height);
        gap: 0;
        transform: translate(-50%,0);
    }
}

@keyframes introBarsHide {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes introLineExpand {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes introReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.home.ostankino-2026-home .pl__logo {
    animation:
        introReveal .15s 2.7s both,
        plDrop .3s ease-in-out 3.1s forwards;
}

.home.ostankino-2026-home .pl__svg {
    animation-delay: 2.85s;
}

.home.ostankino-2026-home.is-pl .bar__strip {
    animation:
        introReveal .01s 2.7s both,
        plStrip .6s ease-in-out 2.85s forwards;
}

.home.ostankino-2026-home.is-pl .bar__rule {
    transform-origin: center top;
    animation:
        introLineExpand .6s ease-in-out 2.65s both;
}

.home.ostankino-2026-home.is-pl .bar__grid {
    opacity: 0;
}

.home.ostankino-2026-home.pl-out .bar__grid {
    opacity: 1;
    transition: opacity .8s;
}

.home.ostankino-2026-home .pl__load {
    animation-delay: 3.2s;
}

/* Финальный выход — около 3.5 секунд */

.home.ostankino-2026-home.is-pl .pl {
    animation-delay: 3.5s !important;
}

.home.ostankino-2026-home.is-pl .hd {
    animation-delay: 3.5s !important;
}


@media (max-width:679px) and (min-height:461px) {

    .home.ostankino-2026-home {
        --intro-line: calc(100% - 130px);
        --intro-bar-height: 64px;
        --intro-strip-height: 11px;
    }

    .home.ostankino-2026-home .intro-bars {
        width: 120.44px;
    }

    .home.ostankino-2026-home .ref-mobile-preloader__line {
        top: var(--intro-line);
        bottom: auto;
        transform-origin: center top;
        animation:
            introLineExpand .6s ease-in-out 2.65s both;
    }

    .home.ostankino-2026-home .ref-mobile-preloader__stripe {
        top: var(--intro-line);
        bottom: auto;
        animation:
            introReveal .01s 2.7s both,
            mplStrip .6s ease-in-out 2.85s forwards;
    }

    .home.ostankino-2026-home .ref-mobile-preloader__logo {
        animation:
            introReveal .15s 2.7s both,
            mplDrop .3s ease-in-out 3.1s forwards;
    }

    .home.ostankino-2026-home .reference-mobile-loader-logo {
        animation-delay: 2.85s;
    }
}


@media (prefers-reduced-motion:reduce) {

    .home.ostankino-2026-home .pl,
    .home.ostankino-2026-home .intro-bars {
        display: none !important;
    }

    .home.ostankino-2026-home .bar__rule,
    .home.ostankino-2026-home .bar__strip,
    .home.ostankino-2026-home .bar__grid {
        animation: none !important;
        opacity: 1 !important;
    }
}