:root {
    --dark: #1D2633;
    --blue: #0087CD;
    --neon: #44EB99;
    --purple: #861BE3;
    --glass: rgba(29,38,51,0.88);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: white;
    overflow-x: hidden;
}

.bg-gradient {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -4;
    background: linear-gradient(135deg, var(--blue), var(--neon), var(--purple));
    background-size: 300% 300%;
    animation: gradientMove 18s ease infinite;
}

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


#neural {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: block !important;
}

.hero {
    padding: 80px 20px;
    text-align: center;
}

.logo-placeholder {
    width: 140px;
    height: 140px;
    margin: 0 auto 40px auto;
    border: 2px dashed rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.8;
}

.btn {
    padding: 16px 32px;
    background: var(--neon);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

.test {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    padding: 40px;
    border-radius: 22px;
    transition: opacity .3s ease, transform .3s ease;
}

.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.progress {
    height: 8px;
    background: #334657;
    border-radius: 6px;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--neon);
    border-radius: 6px;
    transition: width .4s ease;
}

.counter {
    margin-bottom: 15px;
    font-weight: 600;
    opacity: 0.8;
}

.question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}

.answers button {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 2px solid var(--neon);
    background: transparent;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.answers button:hover {
    background: var(--neon);
    color: #1D2633;
}

.result {
    display: none;
    margin-top: 40px;
}

.result-card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    padding: 30px;
    border-radius: 22px;
    margin-top: 20px;
}

.profession-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--neon);
    margin-bottom: 20px;
    text-align: center;
}

.profession-description {
    font-size: 18px;
    line-height: 1.8;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.result-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

#radarChart {
    max-width: 850px;
    width: 100%;
}

.percent-list {
    min-width: 260px;
}

.percent-item {
    margin-bottom: 10px;
    font-weight: 600;
}

.percent-item.description {
    background: rgba(68,235,153,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.percent-item h3 {
    color: #44EB99;
    margin-bottom: 10px;
}

.apply-btn {
    margin-top: 40px;
    display: inline-block;
    padding: 18px 40px;
    background: var(--purple);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.apply-btn:hover {
    background: var(--neon);
    color: #1D2633;
}

@media(max-width: 768px) {
    .hero h1 {
        font-size: 30px;
    }

.card {
        padding: 20px;
    }
}
/* ========== LOADER / СПИННЕР ========== */

.status-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    min-height: 200px;
    text-align: center;
}

/* ========== INFINITY LOADER - РАБОЧИЙ ВАРИАНТ ========== */
.loader-infinity {
    position: relative;
    width: 100px;
    height: 50px;
    margin: 0 auto 25px auto;
}

.infinity-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--neon);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(68, 235, 153, 0.8);
    opacity: 0.8;
}

.infinity-dot.dot1 {
    animation: infinity1 2s ease-in-out infinite;
}

.infinity-dot.dot2 {
    animation: infinity2 2s ease-in-out infinite;
}

@keyframes infinity1 {
    0%, 100% { left: 10px; top: 25px; transform: scale(1); }
    25% { left: 50px; top: 5px; transform: scale(1.3); }
    50% { left: 90px; top: 25px; transform: scale(1); }
    75% { left: 50px; top: 45px; transform: scale(1.3); }
}

@keyframes infinity2 {
    0%, 100% { left: 90px; top: 25px; transform: scale(1); }
    25% { left: 50px; top: 45px; transform: scale(1.3); }
    50% { left: 10px; top: 25px; transform: scale(1); }
    75% { left: 50px; top: 5px; transform: scale(1.3); }
}

/* ========== СТАТУСЫ ========== */
.status-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.status-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Цветовые модификаторы */
.status-error .infinity-dot {
    background: #FF4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
}

/* Адаптив */
@media (max-width: 480px) {
    .loader-infinity {
        width: 70px;
        height: 35px;
    }
    .infinity-dot {
        width: 12px;
        height: 12px;
    }
}

/* ========== ЛОГОТИП ========== */
.hero-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 60px auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hero-logo:hover {
    opacity: 1;
}

.status-wrapper {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
}

.status-queued {
    background: rgba(255,255,255,0.05);
}

.status-processing {
    background: rgba(68,235,153,0.05);
}

.status-error {
    background: rgba(255,68,68,0.05);
}

.status-complete {
    background: rgba(68,235,153,0.1);
}

.loader-white {
    border: 3px solid rgba(255,255,255,0.2);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-double {
    border: 3px solid rgba(68,235,153,0.2);
    border-top: 3px solid #44EB99;
    border-bottom: 3px solid #44EB99;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

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

.status-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-desc {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.status-meta {
    font-size: 12px;
    opacity: 0.5;
}