* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 40%, #93c5fd 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
    position: relative;
    overflow-x: hidden;
}

/* ===== Декоративные элементы ===== */
.decor {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.decor-1 {
    width: 120px; height: 120px;
    background: rgba(100, 255, 218, 0.15);
    top: 8%; left: 5%;
    animation: float1 6s ease-in-out infinite;
}
.decor-2 {
    width: 80px; height: 80px;
    background: rgba(167, 139, 250, 0.2);
    top: 15%; right: 8%;
    animation: float2 8s ease-in-out infinite;
}
.decor-3 {
    width: 50px; height: 50px;
    background: rgba(244, 114, 182, 0.2);
    bottom: 20%; left: 8%;
    animation: float3 7s ease-in-out infinite;
}
.decor-4 {
    width: 160px; height: 160px;
    background: rgba(59, 130, 246, 0.1);
    bottom: 10%; right: 5%;
    animation: float1 9s ease-in-out infinite reverse;
}
.decor-5 {
    width: 35px; height: 35px;
    background: rgba(251, 146, 60, 0.25);
    top: 45%; left: 3%;
    animation: float2 5s ease-in-out infinite;
}
.decor-6 {
    width: 25px; height: 25px;
    background: rgba(100, 255, 218, 0.35);
    top: 30%; right: 4%;
    animation: float3 4s ease-in-out infinite;
}
.decor-7 {
    width: 60px; height: 60px;
    background: rgba(96, 165, 250, 0.18);
    bottom: 35%; left: 12%;
    animation: float1 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10px, -10px); }
    66% { transform: translate(-5px, -20px); }
}

/* ===== Контейнер квиза ===== */
.quiz-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 35px 30px;
    max-width: 620px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(30, 64, 175, 0.15), 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

.quiz-header {
    text-align: center;
    margin-bottom: 28px;
}

.quiz-header h1 {
    color: #1e40af;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(30, 64, 175, 0.1);
}

.quiz-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.quiz-progress {
    margin-bottom: 28px;
}

.progress-bar {
    height: 10px;
    background: #e0e7ff;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 5px;
}

.progress-text {
    color: #64748b;
    font-size: 0.9rem;
}

.quiz-question h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #bfdbfe;
    border-radius: 14px;
    padding: 18px 22px;
    color: #1e3a5f;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
    transform: translateX(8px);
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

.quiz-option:active {
    transform: translateX(4px);
    background: #bfdbfe;
}

/* ===== Результаты ===== */
.quiz-result {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

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

.quiz-result > h2 {
    color: #1e40af;
    font-size: 1.7rem;
    margin-bottom: 25px;
}

.result-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 28px 24px;
    margin-bottom: 28px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.08);
    overflow: visible;
}

.result-card h3 {
    color: #1e293b;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.result-chart {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

#resultChart {
    max-width: 300px;
    max-height: 380px;
    height: auto !important;
}

.result-card p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 22px;
    text-align: left;
    padding: 0 8px;
}

.result-pros h4 {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: left;
    padding-left: 8px;
}

.result-pros ul {
    list-style: none;
    text-align: left;
    padding: 0 8px;
}

.result-pros li {
    color: #334155;
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.result-pros li:last-child {
    border-bottom: none;
}

.result-pros li:before {
    content: "✓ ";
    color: #22c55e;
    font-weight: bold;
    margin-right: 4px;
}

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

.copy-btn {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    border: none;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
    letter-spacing: 0.3px;
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706, #ea580c);
}

.restart-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.3);
    letter-spacing: 0.3px;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

@media (max-width: 500px) {
    body { padding: 15px 10px; }
    .quiz-header h1 { font-size: 1.6rem; }
    .quiz-question h2 { font-size: 1.25rem; }
    .quiz-option { padding: 14px 16px; font-size: 1rem; }
    .result-card h3 { font-size: 1.3rem; }
    #resultChart { max-width: 240px; }
}
