:root {
    --bg-primary: #0a0a12;
    --bg-secondary: #151521;
    --bg-card: #1e1e2d;
    --accent-primary: #7b68ee;
    --accent-secondary: #00d4ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff3860;
    --shadow-glow: 0 0 25px rgba(123, 104, 238, 0.4);
    --shadow-strong: 0 0 35px rgba(123, 104, 238, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== ШАПКА ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(123, 104, 238, 0.6); }
    to { box-shadow: 0 0 30px rgba(123, 104, 238, 0.9), 0 0 40px rgba(123, 104, 238, 0.4); }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
.logo-text p {
    font-size: 0.8rem;
    font-weight: 200;
    color: var(--text-secondary);
    margin-top: 2px;
}

.all-tests-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.all-tests-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.question-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.current-question {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    background: var(--bg-secondary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.current-question.flip {
    animation: flipNumber 0.6s ease;
}

@keyframes flipNumber {
    0% { transform: rotateY(0) scale(1); }
    50% { transform: rotateY(180deg) scale(1.2); }
    100% { transform: rotateY(360deg) scale(1); }
}

/* ===== ПРОГРЕСС-БАР ===== */
.progress-container {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 50px;
    margin: 20px 0 30px 0;
    overflow: hidden;
    box-shadow: inset 0 3px 15px rgba(0, 0, 0, 0.3);
    height: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== КНОПКИ ===== */
.btn {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 16px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--text-secondary);
    color: var(--bg-primary);
}

/* ===== ЭКРАНЫ ===== */
.screen {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ЗАГОЛОВКИ ===== */
h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.2;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(123, 104, 238, 0.15);
    backdrop-filter: blur(15px);
}

/* ===== КОНТЕЙНЕР ВОПРОСА ===== */
.question-container {
    transform-style: preserve-3d;
    perspective: 1200px;
}

.question-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(123, 104, 238, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.question-text {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
}

/* ===== АНИМАЦИИ ВОПРОСОВ ===== */
.question-card.slide-next {
    animation: slideNext 0.5s ease forwards;
}

.question-card.slide-prev {
    animation: slidePrev 0.5s ease forwards;
}

@keyframes slideNext {
    0% { 
        transform: translateX(100px);
        opacity: 0;
    }
    100% { 
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slidePrev {
    0% { 
        transform: translateX(-100px);
        opacity: 0;
    }
    100% { 
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== ПОЛЗУНКИ (для Big Five) ===== */
.slider-container {
    margin: 25px 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.slider-wrapper {
    position: relative;
    padding: 15px 0;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--danger), var(--warning), var(--success));
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: grab;
}

.slider:hover {
    opacity: 1;
}

.slider:active {
    cursor: grabbing;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: grab;
    box-shadow: 0 0 15px rgba(123, 104, 238, 0.8);
    border: 3px solid var(--accent-primary);
    transform: scale(1);
    transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.slider::-moz-range-thumb {
    cursor: grab;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-primary);
    box-shadow: 0 0 15px rgba(123, 104, 238, 0.8);
    border: 3px solid var(--accent-primary);
    transform: scale(1);
    transition: transform 0.2s;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.slider::-moz-range-thumb:active {
    cursor: grabbing;
}

.slider-value {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 15px;
    color: var(--accent-primary);
    min-height: 35px;
}

/* ===== КАРТОЧКИ ОТВЕТОВ (для теста на стресс) ===== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.option-card {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.option-card.selected {
    background: rgba(123, 104, 238, 0.25) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 
        0 0 30px rgba(123, 104, 238, 0.7),
        inset 0 0 25px rgba(123, 104, 238, 0.15) !important;
    transform: translateY(-3px) scale(1.02);
    color:white;
}

.option-emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.option-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.option-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.3;
}

/* ===== ШКАЛА ОТВЕТОВ (для теста на выгорание) ===== */
.scale-container {
    margin: 30px 0;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.scale-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.scale-option {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.scale-option:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.scale-option.selected {
    background: rgba(123, 104, 238, 0.3) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 
        0 0 25px rgba(123, 104, 238, 0.6),
        inset 0 0 20px rgba(123, 104, 238, 0.2) !important;
    transform: translateY(-2px) scale(1.05);
    color:white;
}

/* Анимация при выборе варианта */
@keyframes selectPulse {
    0% { transform: translateY(-3px) scale(1.05); }
    50% { transform: translateY(-3px) scale(1.08); }
    100% { transform: translateY(-3px) scale(1.05); }
}

.scale-option.selected {
    animation: selectPulse 0.5s ease;
}



.option-card.selected {
    animation: selectPulse 0.5s ease;
}

.scale-emoji {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.scale-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.selected-value {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 15px;
    color: var(--accent-primary);
    min-height: 35px;
}

/* ===== КНОПКИ НАВИГАЦИИ ===== */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.navigation-buttons .btn {
    flex: 1;
}

/* ===== РЕЗУЛЬТАТЫ ===== */

/* Общие стили результатов */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.trait-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(123, 104, 238, 0.1);
}

.trait-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.trait-emoji {
    font-size: 2rem;
}

.trait-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.circle-chart {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    position: relative;
}

.circle-bg {
    fill: none;
    stroke: var(--bg-card);
    stroke-width: 3.5;
}

.circle {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dasharray 1.5s ease-in-out;
}

.circle-1 { stroke: #FF6B6B; }
.circle-2 { stroke: #4ECDC4; }
.circle-3 { stroke: #FFD166; }
.circle-4 { stroke: #6A11CB; }
.circle-5 { stroke: #42E695; }

.circle-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
}

.trait-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.interpretation {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    padding: 25px;
    border-radius: 0 15px 15px 0;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.interpretation h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Стили для теста на стресс */
.stress-level, .burnout-risk {
    text-align: center;
    margin: 30px 0;
}

.stress-meter, .risk-meter {
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
    border-radius: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.stress-indicator, .risk-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6px;
    background: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
    transform: translateX(-50%);
    transition: left 1s ease;
}

.stress-labels, .risk-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-primary);
}

.result-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendations-list {
    list-style: none;
    padding: 0;
}

.recommendations-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendations-list li:last-child {
    border-bottom: none;
}

/* Стили для теста на выгорание */
.aspects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.aspect-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.aspect-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.aspect-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.aspect-score {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.action-plan {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(123, 104, 238, 0.3);
}

.action-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.action-item:last-child {
    border-bottom: none;
}

.action-number {
    background: var(--accent-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.action-content h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.action-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== ФИЧИ НА ГЛАВНОМ ЭКРАНЕ ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.feature-card {
    text-align: center;
    padding: 20px 15px;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid rgba(123, 104, 238, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.test-info {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid var(--accent-primary);
}

.test-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

@media (max-width: 480px) {

    .test-info-item {

        font-size: 14px;
    }
}

.test-info-item:last-child {
    margin-bottom: 0;
}

/* ===== МЕРЦАНИЕ ЛОГОТИПА ===== */
.logo {
    animation: logoGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(123, 104, 238, 0.5));
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(123, 104, 238, 0.3));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(123, 104, 238, 0.8)) 
                drop-shadow(0 0 25px rgba(123, 104, 238, 0.4));
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 14px 25px;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .results-grid,
    .options-grid,
    .aspects-grid {
        grid-template-columns: 1fr;
    }
    
    .scale-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .current-question {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .all-tests-btn {
        order: -1;
        align-self: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .question-card {
        padding: 20px 15px;
    }
    
    .scale-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .question-counter {
        justify-content: center;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ===== КОСМИЧЕСКИЙ ФОН КАК В ПРИМЕРЕ ===== */
body {
    font-family: 'Montserrat', sans-serif;
    background: #000000 !important;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 219, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Карточки делаем менее прозрачными */
.card {
    background: rgba(30, 30, 45, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(123, 104, 238, 0.4);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.question-card {
    background: rgba(30, 30, 45, 0.98) !important;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(123, 104, 238, 0.5);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* ===== КОСМИЧЕСКИЙ ФОН С ЧАСТИЦАМИ ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 219, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a12 0%, #0c0c1a 100%);
    animation: pulse 15s ease-in-out infinite;
    z-index: -2;
}


/* Парящие частицы */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(120, 219, 255, 0.6);
    border-radius: 50%;
    animation: float 12s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(120, 219, 255, 0.5);
}

.particle:nth-child(2n) {
    background: rgba(123, 104, 238, 0.5);
    box-shadow: 0 0 10px rgba(123, 104, 238, 0.4);
    width: 3px;
    height: 3px;
    animation-duration: 15s;
}

.particle:nth-child(3n) {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    width: 2px;
    height: 2px;
    animation-duration: 18s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(0deg) scale(1); 
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-40px) translateX(20px) rotate(90deg) scale(1.2); 
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-20px) translateX(-30px) rotate(180deg) scale(0.8); 
        opacity: 0.5;
    }
    75% { 
        transform: translateY(20px) translateX(15px) rotate(270deg) scale(1.1); 
        opacity: 0.6;
    }
}

/* ===== ПОЛУПРОЗРАЧНЫЕ КОНТЕЙНЕРЫ ===== */
.card {
    background: rgba(30, 30, 45, 0.7) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(123, 104, 238, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}


/* Полупрозрачные карточки ответов */
.option-card,
.scale-option,
.trait-card,
.feature-card,
.aspect-card,
.result-card,
.action-plan,
.test-info {
    background: rgba(21, 21, 33, 0.6) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(123, 104, 238, 0.15);
}

/* Полупрозрачные кнопки */
.btn {
    backdrop-filter: blur(10px);
}

.btn-outline {
    background: rgba(123, 104, 238, 0.1) !important;
}

/* Полупрозрачный прогресс-бар */
.progress-container {
    background: rgba(21, 21, 33, 0.6);
    backdrop-filter: blur(10px);
}

/* Полупрозрачные инпуты */
.slider {
    background: linear-gradient(90deg, 
        rgba(255, 56, 96, 0.7), 
        rgba(255, 170, 0, 0.7), 
        rgba(0, 255, 136, 0.7)
    ) !important;
}

/* Улучшаем читаемость текста */
.question-text,
.trait-name,
.feature-title,
.aspect-name,
.result-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.subtitle,
.trait-description,
.feature-desc,
.option-description {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}
/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПОДЕЛИТЬСЯ */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(123, 104, 238, 0.3);
    box-shadow: var(--shadow-strong);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.share-modal h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-option {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.share-option:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}


.share-option .label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.share-url {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 12px 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.share-url input:focus {
    outline: none;
}

.copy-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

.close-share {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.close-share:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Анимация заполнения круговых диаграмм */
.circle {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dasharray 1.5s ease-in-out;
    animation: fillCircle 1.5s ease-in-out forwards;
}

@keyframes fillCircle {
    from {
        stroke-dasharray: 0 377;
    }
}

/* МОБИЛЬНЫЕ ПРАВКИ ДЛЯ МОДАЛКИ ШЕРИНГА */
@media (max-width: 480px) {
    .share-modal-content {
        padding: 20px 15px;
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .share-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .share-option {
        padding: 15px 10px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }
    

    
    .share-url {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .share-url input {
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
        padding: 8px;
        background: var(--bg-primary);
        border-radius: 6px;
    }
    
    .copy-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .close-share {
        margin-top: 10px;
    }
}

/* ДОПОЛНИТЕЛЬНЫЕ ПРАВКИ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ */
@media (max-width: 360px) {
    .share-modal-content {
        padding: 15px 10px;
        margin: 10px;
    }
    
    .share-option {
        padding: 12px 8px;
    }
    

    
    .share-option .label {
        font-size: 0.8rem;
    }
}
/* ФИКС ЦЕНТРИРОВАНИЯ ПРОЦЕНТОВ В КРУГАХ */
.circle-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.circle-chart {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* УБИРАЕМ ТОЧКИ ИЗ СПИСКОВ */
.detail-card ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.detail-card li {
    margin-bottom: 8px;
    padding-left: 0 !important;
}

.detail-card li:before {
    content: "" !important;
    display: none !important;
}

/* БЕЛЫЙ ЦВЕТ ТЕКСТА ДЛЯ КАРЬЕРЫ */
.career-section span {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* ДОПОЛНИТЕЛЬНЫЕ ПРАВКИ ДЛЯ ТОЧНОГО ЦЕНТРИРОВАНИЯ */
.trait-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trait-description {
    text-align: center;
    width: 100%;
}





/* МЕГА-БЛОК ОЦЕНКИ */
.rating-mega-block {
    background: linear-gradient(135deg, var(--bg-card), rgba(123, 104, 238, 0.05));
    border: 2px solid rgba(123, 104, 238, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rating-mega-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 104, 238, 0.1) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.rating-header {
    margin-bottom: 25px;
}

.rating-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.rating-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rating-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.stars-container {
    margin: 30px 0;
}

.stars-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.star {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.star-shape {
    font-size: 4rem;
    color: #ccc;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1;
}

.star-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.star:hover .star-shape {
    transform: scale(1.2);
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.star:hover .star-label {
    opacity: 1;
}

.star.active .star-shape {
    color: #ffd700;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    animation: star-pulse 0.6s ease;
}

@keyframes star-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.2); }
}

.rating-feedback {
    min-height: 30px;
    margin-top: 15px;
}

.rating-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.rating-actions {
    margin-top: 20px;
}

.btn-rating-submit {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.btn-rating-submit:enabled {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(123, 104, 238, 0.4);
}

.btn-rating-submit:enabled:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(123, 104, 238, 0.6);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .rating-mega-block {
        padding: 20px;
        margin-top: 30px;
    }
    
    .rating-icon {
        font-size: 2.5rem;
    }
    
    .rating-header h3 {
        font-size: 1.3rem;
    }
    
    .star-shape {
        font-size: 3rem;
    }
    
    .stars-wrapper {
        gap: 5px;
    }
    
    .btn-rating-submit {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .star-shape {
        font-size: 2.5rem;
    }
    
    .stars-wrapper {
        gap: 3px;
    }
    
    .star-label {
        font-size: 0.7rem;
        bottom: -20px;
    }
}

/* Добавь в конец style2.css */
.current-question {
    position: relative;
    z-index: 1;
}

.current-question::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.current-question.pulse::before {
    width: 120px;
    height: 120px;
    opacity: 0.8;
}

.current-question.pulse {
    transform: scale(1.4);
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Таймер в хедере */
.test-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.15), rgba(0, 212, 255, 0.1));
    padding: 10px 18px;
    border-radius: 50px;
    border: 2px solid rgba(123, 104, 238, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.2);
    transition: all 0.3s ease;
}

.test-timer.warning {
    color: #FFD166;
    border-color: rgba(255, 209, 102, 0.4);
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(255, 170, 0, 0.1));
    animation: gentle-pulse 1.5s ease-in-out infinite;
}

.test-timer.danger {
    color: #FF6B6B;
    border-color: rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 56, 96, 0.15));
    animation: urgent-pulse 0.8s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes urgent-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Адаптивность для хедера */
@media (max-width: 768px) {
    .test-timer {
        font-size: 1rem;
        padding: 8px 14px;
        gap: 6px;
    }
    
    .header {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .test-timer {
        order: 2;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .test-timer {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* ДОБАВЬТЕ В КОНЕЦ style2.css */

/* БАННЕР ЧЕЛЛЕНДЖА НА ВРЕМЯ */
.time-challenge-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(255, 158, 0, 0.1));
    border: 2px solid rgba(255, 209, 102, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    animation: challengePulse 3s ease-in-out infinite;
}

.time-challenge-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 4s ease-in-out infinite;
}

.time-challenge-icon {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
    flex-shrink: 0;
}

.time-challenge-content {
    flex: 1;
}

.time-challenge-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFD166;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(255, 209, 102, 0.3);
}

.time-challenge-desc {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
}

.time-challenge-desc strong {
    color: #FFD166;
    font-weight: 700;
}

.time-challenge-timer {
    font-size: 2rem;
    animation: spin 4s linear infinite;
    flex-shrink: 0;
}

/* АНИМАЦИИ */
@keyframes challengePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 209, 102, 0);
        transform: scale(1.02);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .time-challenge-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 15px;
    }
    
    .time-challenge-icon {
        font-size: 2rem;
    }
    
    .time-challenge-title {
        font-size: 1.1rem;
    }
    
    .time-challenge-desc {
        font-size: 0.9rem;
    }
    
    .time-challenge-timer {
        font-size: 1.5rem;
    }
}



/* ===== СТИЛЬНЫЙ БЛОК СТАТИСТИКИ ТЕСТА ===== */
.test-stats-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.test-stats-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.1), rgba(0, 212, 255, 0.05));
    border: 2px solid rgba(123, 104, 238, 0.2);
    border-radius: 20px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    min-height: 120px;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 104, 238, 0.4);
    box-shadow: 0 15px 35px rgba(123, 104, 238, 0.2);
}

.stat-icon {
    font-size: 3rem;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(123, 104, 238, 0.3));
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-pulse {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 104, 238, 0.1) 0%, transparent 70%);
    animation: statPulse 4s ease-in-out infinite;
    opacity: 0;
}

@keyframes statPulse {
    0%, 100% { 
        opacity: 0;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

/* ПЛАНШЕТЫ */
@media (max-width: 1024px) and (min-width: 769px) {
    .test-stats-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .test-stats-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* АДАПТИВНОСТЬ ДЛЯ МОБИЛ */
@media (max-width: 768px) {
    .test-stats-top,
    .test-stats-bottom {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .test-stats-top {
        margin-bottom: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
        min-height: 100px;
        gap: 12px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 18px 12px;
        min-height: 90px;
        gap: 10px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Анимация появления карточек */
.stat-card {
    animation: slideUpFade 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.test-stats-top .stat-card:nth-child(1) { animation-delay: 0.1s; }
.test-stats-top .stat-card:nth-child(2) { animation-delay: 0.2s; }
.test-stats-top .stat-card:nth-child(3) { animation-delay: 0.3s; }
.test-stats-bottom .stat-card:nth-child(1) { animation-delay: 0.4s; }
.test-stats-bottom .stat-card:nth-child(2) { animation-delay: 0.5s; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.icon2 { width: 30px; height: 30px; }

/* Цвета при наведении */
.share-option:nth-child(1):hover .icon svg {
    fill: #0088cc !important; /* Telegram blue */
}

