#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: whitesmoke;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: transparent;
    border: 1px solid #e7e4e4;
    border-radius: 50%;
    text-align: center;
    line-height: 150px;
    font-family: sans-serif;
    font-size: 20px;
    color: #0b4786;
    letter-spacing: 4px;
    text-shadow: 0 0 10px whitesmoke;
    /*box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);*/
    box-shadow: 0 0 20px rgba(173, 209, 248, 0.55);
    z-index: 9999;
}

/*Бегущая линия*/
.loader::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #97b8ec;
    border-right: 3px solid rgba(110, 163, 217, 0.87);
    border-radius: 50%;
    animation: animateCircle 2s linear infinite;
}

/*Шарик*/
.loader span {
    display: block;
    position: absolute;
    top: calc(50% - 2px);
    left: 50%;
    width: 50%;
    height: 4px;
    background:transparent;
    transform-origin: left;
    animation: animate 2s linear infinite;
}
.loader span::before {
    content: '';
    position: absolute;
    top: -6px;
    right: -8px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    background: rgb(81, 123, 166);
    box-shadow: 0 1px 20px #1165be;
}
@keyframes animateCircle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes animate {
    0% {
        transform: rotate(45deg);
    }
    100% {
        transform: rotate(405deg);
    }
}