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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --bg-main: #0f0f1e;
    --bg-card: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.screen {
    display: none;
    animation: fadeIn 0.6s ease;
}

.screen.active {
    display: block;
}

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

/* Стартовый экран */
.hero {
    text-align: center;
    padding: 60px 0;
}

.gradient-text {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 300;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Кнопки */
.btn-primary, .btn-secondary {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Прогресс бар */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 0%;
}

.question-counter {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Вопросы */
.question-container {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.question-text {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid transparent;
    padding: 20px 24px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s ease;
}

.answer-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
}

.answer-btn:hover::before {
    left: 100%;
}

.answer-btn:active {
    transform: scale(0.98);
}

/* Результаты */
.result-hero {
    text-align: center;
    margin-bottom: 50px;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.result-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.result-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.result-section {
    margin-bottom: 35px;
}

.result-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.result-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.traits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trait {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.advice-list {
    list-style: none;
    padding: 0;
}

.advice-list li {
    padding: 12px 0 12px 30px;
    color: var(--text-secondary);
    position: relative;
    line-height: 1.7;
    font-size: 1.05rem;
}

.advice-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.result-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .question-container {
        padding: 30px 20px;
    }

    .question-text {
        font-size: 1.4rem;
    }

    .result-content {
        padding: 25px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
