* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #6a11cb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Фоновые шестерёнки */
.background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.gear {
    position: absolute;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.06);
    user-select: none;
}

.gear-1 {
    top: 8%;
    left: 6%;
    font-size: 140px;
    animation: rotate 18s linear infinite;
}

.gear-2 {
    top: 60%;
    right: 8%;
    font-size: 200px;
    animation: rotateReverse 25s linear infinite;
}

.gear-3 {
    bottom: 10%;
    left: 15%;
    font-size: 90px;
    animation: rotate 22s linear infinite;
}

.gear-4 {
    top: 15%;
    right: 20%;
    font-size: 110px;
    animation: rotateReverse 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Контейнер */
.container {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    max-width: 700px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Иконка с пульсацией */
.icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.icon {
    font-size: 72px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    margin: -55px 0 0 -55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pulse 2s ease-out infinite;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-out infinite;
    animation-delay: 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Текст */
.title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
    to { text-shadow: 0 4px 30px rgba(255, 255, 255, 0.5); }
}

.subtitle {
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
    animation: fadeIn 1.5s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

/* Прогресс-бар */
.progress-bar {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin: 0 auto 30px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #00c6ff, #0072ff, #00c6ff);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: slide 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.7);
}

@keyframes slide {
    0% {
        width: 15%;
        margin-left: 0%;
        background-position: 0% 50%;
    }
    50% {
        width: 45%;
        margin-left: 55%;
        background-position: 100% 50%;
    }
    100% {
        width: 15%;
        margin-left: 0%;
        background-position: 0% 50%;
    }
}

/* Точки загрузки */
.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% {
        transform: scale(0.7);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Адаптив */
@media (max-width: 600px) {
    .card {
        padding: 40px 24px;
        border-radius: 20px;
    }
    .icon { font-size: 56px; }
    .pulse-ring { width: 90px; height: 90px; margin: -45px 0 0 -45px; }
    .gear { font-size: 80px !important; }
}
