/* Добавить в стили */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f2032;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    animation: fadeInScale 0.8s ease;
}

.preloader-logo span:first-child {
    color: #ffd966;
}

.preloader-logo span:last-child {
    color: white;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 217, 102, 0.2);
    border-top-color: #ffd966;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

.preloader-line {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px auto 0;
    position: relative;
    overflow: hidden;
}

.preloader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffd966;
    animation: lineProgress 1.2s ease infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes lineProgress {
    0% {
        left: -100%;
        width: 30%;
    }

    50% {
        left: 0%;
        width: 70%;
    }

    100% {
        left: 100%;
        width: 30%;
    }
}