.test-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0 60px;
}


/* Старт */

.test-start {
    text-align: center;
    padding: 55px 30px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(13, 110, 253, 0.055),
            transparent 48%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(13, 110, 253, 0.025),
            transparent 40%
        ),
        #ffffff;

    border: 1px solid rgba(13, 110, 253, 0.06);
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(40, 80, 120, .07);
}


.test-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(13, 110, 253, .08);

    font-size: 34px;
}


.test-start h1 {
    max-width: 700px;
    margin: 0 auto 20px;

    font-size: 34px;
    line-height: 1.25;
}


.test-intro {
    max-width: 650px;
    margin: 0 auto 30px;

    font-size: 17px;
    line-height: 1.7;

    color: #5f6b76;
}


.test-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;

    margin-bottom: 35px;
}


.test-info div {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #5f6b76;
}


.test-info i {
    font-size: 20px;
}


.test-start-btn {
    padding: 12px 25px;
}


/* Шапка теста */

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 12px;
}


.test-progress-info {
    color: #68737d;
}


.test-progress-info strong {
    margin: 0 4px;

    color: #212529;
}


.test-score {
    display: flex;
    align-items: center;
    gap: 6px;

    font-weight: 600;
}


.test-score i {
    font-size: 19px;
}


.test-progress {
    height: 8px;
    margin-bottom: 25px;

    border-radius: 10px;
}


.test-progress .progress-bar {
    transition: width .3s ease;
}


/* Вопрос */

.test-question-card {
    padding: 35px;

    background: #fff;

    border: 1px solid rgba(13, 110, 253, .06);
    border-radius: 18px;

    box-shadow: 0 5px 20px rgba(40, 80, 120, .07);
}


.test-category {
    display: inline-block;

    margin-bottom: 15px;
    padding: 6px 12px;

    background: rgba(13, 110, 253, .07);

    border-radius: 20px;

    font-size: 14px;
    font-weight: 600;
}


.test-question-card h2 {
    margin-bottom: 30px;

    font-size: 24px;
    line-height: 1.45;
}

/* =========================================
   Результат теста
   ========================================= */

.test-result {
    text-align: center;
}

.result-summary {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    max-width: 720px;
    margin: 30px auto;

    padding: 20px;
    text-align: left;

    border-radius: 14px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(13, 110, 253, 0.055),
            transparent 55%
        ),
        #fff;

    border: 1px solid rgba(13, 110, 253, 0.08);
}

.result-summary-icon {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(13, 110, 253, 0.08);

    font-size: 1.25rem;
}

.result-summary strong {
    display: block;
    margin-bottom: 5px;
}

.result-summary p {
    color: #666;
    line-height: 1.55;
}


/* Заголовки разделов */

.result-section {
    max-width: 720px;
    margin: 35px auto 0;
    text-align: left;
}

.result-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;

    font-size: 1.15rem;
    font-weight: 600;
}

.result-section-title i {
    font-size: 1.2rem;
}


/* Сильные стороны */

.strengths-result {
    display: grid;
    gap: 10px;
}

.strength-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;

    border-radius: 11px;

    background: rgba(25, 135, 84, 0.055);
    border: 1px solid rgba(25, 135, 84, 0.12);
}

.strength-item i {
    flex-shrink: 0;
    font-size: 1.15rem;
}

.strength-item strong {
    display: block;
}

.strength-item span {
    display: block;
    margin-top: 2px;

    color: #666;
    font-size: 0.9rem;
}


/* Навыки */

.skills-result {
    display: grid;
    gap: 15px;
}

.skill-item {
    padding: 15px 17px;

    border-radius: 12px;

    background: #fff;
    border: 1px solid rgba(13, 110, 253, 0.07);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 9px;
}

.skill-header strong {
    font-size: 0.95rem;
}

.skill-progress {
    height: 8px;

    overflow: hidden;

    border-radius: 20px;

    background: #edf1f5;
}

.skill-progress-bar {
    height: 100%;

    border-radius: 20px;

    background: #198754;
}


/* Рекомендации */

.recommendations {
    max-width: 720px;
    margin: 40px auto 30px;

    text-align: left;
}

.test-recommendation {
    padding: 20px;

    border-radius: 14px;

    background: #fff;

    border: 1px solid rgba(13, 110, 253, 0.08);
}

.test-recommendation h3 {
    font-size: 1.15rem;
}

.test-article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 14px 15px;
    margin-top: 10px;

    color: inherit;
    text-decoration: none;

    border-radius: 10px;

    background: rgba(13, 110, 253, 0.035);

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.test-article-link:hover {
    background: rgba(13, 110, 253, 0.07);
    transform: translateX(2px);
}

.test-article-link strong {
    display: block;
    margin-bottom: 3px;
}

.test-article-link p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.test-article-link > i {
    flex-shrink: 0;
}


/* Кнопка повторного прохождения */

.result-restart-btn {
    margin-top: 10px;
}


/* Мобильные */

@media (max-width: 767.98px) {

    .result-summary {
        padding: 17px;
    }

    .result-section {
        margin-top: 30px;
    }

    .test-recommendation {
        padding: 16px;
    }

    .test-article-link {
        gap: 12px;
        padding: 13px;
    }

}
/* Ответы */

.test-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.test-answer {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 15px;

    text-align: left;

    background: #fff;

    border: 1px solid #dee2e6;
    border-radius: 12px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.test-answer:hover {
    border-color: rgba(13, 110, 253, .45);

    transform: translateY(-1px);
}


.test-answer.selected {
    border-color: #0d6efd;

    background: rgba(13, 110, 253, .055);
}


.answer-number {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 13px;

    border: 1px solid #dee2e6;
    border-radius: 50%;

    font-weight: 600;
}


.test-answer.selected .answer-number {
    background: #0d6efd;
    color: #fff;

    border-color: #0d6efd;
}


.answer-text {
    font-size: 16px;
    line-height: 1.5;
}


/* Кнопка */

.test-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 30px;
}


.test-actions .btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}


/* Результат */

.test-result {
    padding: 50px 35px;

    text-align: center;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(13, 110, 253, .055),
            transparent 48%
        ),
        #fff;

    border: 1px solid rgba(13, 110, 253, .06);
    border-radius: 18px;

    box-shadow: 0 5px 20px rgba(40, 80, 120, .07);
}


.result-icon {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: rgba(13, 110, 253, .08);

    font-size: 35px;
}


.result-label {
    margin-bottom: 5px;

    color: #6c757d;
}


.result-score {
    margin-bottom: 10px;

    font-size: 54px;
    font-weight: 700;
}


.result-score small {
    font-size: 20px;
    font-weight: 400;

    color: #6c757d;
}


.result-level {
    margin-bottom: 15px;

    font-size: 28px;
}


.result-description {
    max-width: 650px;

    margin: 0 auto 40px;

    color: #5f6b76;

    line-height: 1.7;
}


/* Навыки */

.skills-title {
    margin-bottom: 20px;

    font-size: 20px;
    font-weight: 600;
}


.skills-result {
    max-width: 650px;

    margin: 0 auto 35px;

    text-align: left;
}


.skill-item {
    margin-bottom: 18px;
}


.skill-header {
    display: flex;
    justify-content: space-between;

    margin-bottom: 7px;

    font-size: 15px;
}


.skill-progress {
    height: 8px;

    overflow: hidden;

    background: #e9ecef;

    border-radius: 10px;
}


.skill-progress-bar {
    height: 100%;

    border-radius: 10px;

    background: #0d6efd;

    transition: width .5s ease;
}


/* Рекомендации */

.recommendations {
    max-width: 650px;

    margin: 0 auto 35px;

    text-align: left;
}


.recommendation-box,
.recommendation-success {
    display: flex;
    gap: 15px;

    padding: 20px;

    background: rgba(13, 110, 253, .045);

    border-radius: 12px;
}


.recommendation-box h3 {
    margin-bottom: 8px;

    font-size: 18px;
}


.recommendation-box p,
.recommendation-success p {
    margin: 0;

    color: #5f6b76;
    line-height: 1.6;
}


.recommendation-success > i {
    font-size: 25px;
}

.test-recommendation {
    padding: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: 14px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(13, 110, 253, 0.045),
            transparent 48%
        ),
        #ffffff;
}

.test-article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.test-article-link:hover {
    transform: translateX(4px);
}

.test-article-link strong {
    display: block;
    margin-bottom: 4px;
}

.test-article-link p {
    font-size: 0.95rem;
}

.test-article-link > i {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.test-article-link:hover strong {
    text-decoration: underline;
}
/* Мобильная версия */

@media (max-width: 767px) {

    .test-page {
        padding: 15px 0 40px;
    }


    .test-start {
        padding: 35px 20px;
    }


    .test-start h1 {
        font-size: 27px;
    }


    .test-intro {
        font-size: 16px;
    }


    .test-info {
        flex-direction: column;

        align-items: center;

        gap: 12px;
    }


    .test-question-card {
        padding: 25px 18px;
    }


    .test-question-card h2 {
        font-size: 21px;
    }


    .test-answer {
        padding: 13px 11px;
    }


    .answer-number {
        flex-basis: 32px;

        width: 32px;
        height: 32px;

        margin-right: 10px;
    }


    .answer-text {
        font-size: 15px;
    }


    .test-actions {
        justify-content: stretch;
    }


    .test-actions .btn {
        width: 100%;
    }


    .test-result {
        padding: 40px 20px;
    }


    .result-score {
        font-size: 48px;
    }


    .result-level {
        font-size: 24px;
    }

}