/* Frame with a page of the new site / Фрейм со страницей нового сайта */
.osb-frame {
    position: relative;
    width: 100%;
    margin-top: -115px;
}

.osb-frame__iframe {
    display: block;
    width: 100%;
    border: 0;
    overflow: hidden;
    transition: height .15s ease-out;
}

/*
 * Preloader covers the frame until its page loads. It sits near the top, not
 * in the middle: the frame can be taller than the screen.
 *
 * Прелоадер закрывает фрейм, пока грузится его страница. Стоит у верха, а не
 * посередине: фрейм бывает выше экрана.
 */
.osb-frame__preloader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease-out, visibility 0s linear .2s;
}

.osb-frame.is-loading .osb-frame__preloader {
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease-out;
}

.osb-frame__preloader-img {
    max-width: 50%;
    max-height: 200px;
}

.osb-frame__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 153, 255, .25);
    border-top-color: #09f;
    border-radius: 50%;
    animation: osb-frame-spin .8s linear infinite;
}

@keyframes osb-frame-spin {
    to {
        transform: rotate(360deg);
    }
}
