:root {
    --quiz-panel: #ffffff;
    --quiz-shadow: 0 20px 50px rgba(45, 80, 22, 0.09);
}

.quiz-header {
    max-width: 1100px;
    margin: 18px auto 6px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quiz-header .logo {
    color: var(--forest-green);
}

.quiz-header .logo:hover {
    color: var(--forest-green-light);
}

.quiz-header .logo .icon-lg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--forest-green), var(--forest-green-light));
    color: #fff;
    padding: 10px;
}

.back-link {
    color: var(--forest-green);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: var(--terracotta);
}

.article-meta {
    max-width: 1100px;
    margin: 0 auto 16px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 12px;
}

.progress-container {
    max-width: 860px;
    margin: 0 auto 18px;
    padding: 0 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: var(--sand);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--forest-green), var(--forest-green-light));
    transition: width 0.25s ease;
}

.progress-text {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
}

.quiz-container {
    max-width: 920px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.quiz-card {
    background: var(--quiz-panel);
    border: 1px solid var(--sand);
    border-radius: 24px;
    box-shadow: var(--quiz-shadow);
    padding: 42px;
}

.start-screen {
    text-align: center;
}

.start-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--forest-green), var(--forest-green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.start-icon svg {
    width: 48px;
    height: 48px;
}

.start-screen h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 12px;
}

.start-screen > p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 740px;
    margin: 0 auto 28px;
}

.start-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.start-feature {
    background: var(--cream-dark);
    border: 1px solid var(--sand);
    border-radius: 999px;
    padding: 11px 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.start-feature svg {
    width: 18px;
    height: 18px;
    color: var(--forest-green);
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn-start,
.btn-next,
.btn-cta {
    background: linear-gradient(140deg, var(--forest-green), var(--forest-green-light));
    color: #fff;
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.18);
    padding: 16px 26px;
}

.btn-back {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--sand);
    padding: 14px 20px;
}

.btn .icon {
    width: 18px;
    height: 18px;
}

.question-number {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cream-dark);
    color: var(--forest-green);
    font-weight: 700;
    margin-bottom: 12px;
}

.question-text {
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    line-height: 1.24;
    margin-bottom: 20px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.option {
    border: 1px solid var(--sand);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.option:hover {
    border-color: rgba(45, 80, 22, 0.42);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(45, 80, 22, 0.08);
}

.option.selected {
    border-color: var(--forest-green);
    background: #f6faef;
    box-shadow: 0 12px 26px rgba(45, 80, 22, 0.14);
}

.option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex: 0 0 auto;
    background: var(--cream-dark);
    color: var(--forest-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-icon svg {
    width: 22px;
    height: 22px;
}

.option-content h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    line-height: 1.25;
}

.option-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.45;
}

.quiz-nav {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.result-screen {
    text-align: center;
}

.result-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f5ebdc;
    color: var(--terracotta);
    font-weight: 700;
    margin-bottom: 12px;
}

.result-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--forest-green), var(--forest-green-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon svg {
    width: 50px;
    height: 50px;
}

.result-screen h2 {
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    margin-bottom: 10px;
}

.result-description {
    max-width: 760px;
    margin: 0 auto 24px;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--text-light);
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.result-stat {
    background: var(--cream-dark);
    border: 1px solid var(--sand);
    border-radius: 14px;
    padding: 12px;
}

.result-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--forest-green);
    line-height: 1.2;
}

.result-stat-label {
    margin-top: 3px;
    font-size: 0.92rem;
    color: var(--text-light);
}

.result-cta {
    background: linear-gradient(150deg, #f6faef 0%, #f2f8e6 100%);
    border: 1px solid rgba(45, 80, 22, 0.22);
    border-radius: 18px;
    padding: 24px;
    margin: 6px 0 20px;
}

.result-cta h4 {
    font-size: 1.32rem;
    margin-bottom: 8px;
    color: var(--forest-green);
}

.result-cta p {
    margin: 0 0 15px;
    color: var(--text-light);
}

.result-alternatives {
    text-align: left;
    margin-top: 24px;
}

.result-alternatives h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.alt-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.alt-item {
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--sand);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.alt-item:hover {
    border-color: rgba(45, 80, 22, 0.35);
    background: #f8fbf2;
}

.alt-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--cream-dark);
    color: var(--forest-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alt-icon svg {
    width: 20px;
    height: 20px;
}

.alt-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.alt-info span {
    color: var(--text-light);
    font-size: 0.94rem;
}

.restart-link {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    color: var(--forest-green);
    text-decoration: none;
    font-weight: 700;
}

.restart-link:hover {
    color: var(--terracotta);
}

.quiz-header svg,
.quiz-container svg,
.progress-container svg {
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.fade-in {
    animation: quizFadeIn 0.35s ease both;
}

.slide-in {
    animation: quizSlideIn 0.3s ease both;
}

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

@keyframes quizSlideIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 860px) {
    .quiz-card {
        padding: 28px 22px;
        border-radius: 18px;
    }
    .start-features {
        grid-template-columns: 1fr;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
    .result-stats {
        grid-template-columns: 1fr;
    }
    .quiz-nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .quiz-nav .btn {
        width: 100%;
    }
}
