/* СТИЛИ ЗВЁЗДНОГО ПРЕЛОАДЕРА */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a2a 0%, #1a1a3a 50%, #0a0a2a 100%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Звёздное небо */
.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars:before, .stars2:before, .stars3:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #eee, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars-animation 120s linear infinite;
}

.stars2:before {
    animation: stars-animation 100s linear infinite;
    background-image: 
        radial-gradient(1px 1px at 60px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #eee, rgba(0,0,0,0));
    background-size: 300px 300px;
}

.stars3:before {
    animation: stars-animation 80s linear infinite;
    background-image: 
        radial-gradient(1px 1px at 180px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 20px 150px, #eee, rgba(0,0,0,0));
    background-size: 400px 400px;
}

/* Падающие звёзды */
.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes stars-animation {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Контент прелоадера - только центрирование */
.preloader-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Стили для логотипа в прелоадере */
.preloader-content .nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.preloader-content .logo-image-container {
    display: flex;
    align-items: center;
}

.preloader-content .logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.preloader-content .logo-text-container {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

/* Адаптивность для прелоадера */
@media (max-width: 768px) {
    .preloader-content .nav-logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .preloader-content .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .preloader-content .logo-text-container {
        font-size: 2rem;
    }
}