.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

/* Контейнер для орбиты и текста */
.loader-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Элемент, который движется по овалу */
.loader-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ovalMove 3s ease-in-out infinite;
}

/* Сам спиннер — вращается */
.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Текст сообщения */
.loader-message {
    margin-top: 120px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 1;
}

/* Анимация движения по эллипсу */
@keyframes ovalMove {
    0% {
        transform: translate(0px, 0px);
    }
    25% {
        transform: translate(70px, -35px);
    }
    50% {
        transform: translate(0px, -70px);
    }
    75% {
        transform: translate(-70px, -35px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

/* Анимация вращения */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
