/* === ПРЕЛОАДЕР === */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff021b 0%, #cc0014 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Спиннер с красивой анимацией */
.preloader__spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.preloader__spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.preloader__spinner-circle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: rgba(255, 255, 255, 0.6);
    animation: spin 1s linear infinite reverse;
}

.preloader__spinner-circle:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Логотип */
.preloader__logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader__logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Текст с анимацией */
.preloader__text {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 2px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Прогресс бар */
.preloader__progress {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.preloader__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

/* Альтернативный стиль прелоадера с точками */
.preloader--dots .preloader__spinner {
    width: 100px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preloader--dots .preloader__spinner-circle {
    position: relative;
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    animation: bounce 1.4s infinite ease-in-out both;
}

.preloader--dots .preloader__spinner-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.preloader--dots .preloader__spinner-circle:nth-child(2) {
    animation-delay: -0.16s;
}

.preloader--dots .preloader__spinner-circle:nth-child(3) {
    animation-delay: 0;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 800px) {
.detail__header-info {
        padding-right: 20px;
        margin-left: -70px;
        margin-right: -20px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: .625rem;
    }
        .detail__header-title-icon {
            flex: 0 1 80%;
            margin-top: 1.875rem;
        }
}
