.tf-diagnosis {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 0 60px;
}

.tf-diagnosis__intro {
    text-align: center;
    margin-bottom: 24px;
}

.tf-diagnosis__intro p:first-child {
    margin-bottom: 4px;
    color: var(--tf-accent-dark);
    font-weight: 900;
}

.tf-diagnosis__intro h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 50px);
    line-height: 1.35;
}

.tf-diagnosis__small {
    color: var(--tf-muted);
    font-size: 16px;
}

.tf-diagnosis__progress {
    margin-bottom: 18px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
}

.tf-question {
    margin: 0;
    padding: 0;
    border: 0;
}

.tf-question legend {
    width: 100%;
    margin-bottom: 24px;
    text-align: center;
    font-size: clamp(27px, 5vw, 36px);
    line-height: 1.45;
    font-weight: 900;
}

.tf-answer {
    display: flex;
    min-height: 86px;
    margin: 14px 0;
    padding: 16px 20px;
    align-items: center;
    gap: 16px;
    border: 3px solid var(--tf-border);
    border-radius: 18px;
    background: #fff;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 900;
    cursor: pointer;
}

.tf-answer:hover,
.tf-answer:focus-within {
    border-color: var(--tf-accent);
}

.tf-answer:has(input:checked) {
    border-color: var(--tf-accent);
    background: var(--tf-soft);
}

.tf-answer input {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.tf-answer__icon {
    width: 48px;
    text-align: center;
    font-size: 38px;
    line-height: 1;
}

.tf-diagnosis__actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.tf-diagnosis__back,
.tf-diagnosis__submit {
    min-height: 58px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.tf-diagnosis__back {
    border: 2px solid var(--tf-border);
    background: #fff;
}

.tf-diagnosis__submit {
    border: 2px solid var(--tf-accent);
    background: var(--tf-accent);
    color: #fff;
}

.tf-diagnosis-result {
    max-width: 720px;
    margin: 20px auto 60px;
    padding: 34px 26px;
    border: 3px solid var(--tf-accent);
    border-radius: 22px;
    text-align: center;
    background: #fff;
}

.tf-diagnosis-result__found {
    color: var(--tf-accent-dark);
    font-weight: 900;
}

.tf-diagnosis-result h2 {
    font-size: clamp(30px, 6vw, 44px);
    line-height: 1.45;
}

.tf-diagnosis-result__lead {
    font-size: 20px;
    font-weight: 700;
}

.tf-diagnosis-result__points {
    max-width: 500px;
    margin: 26px auto;
    padding: 0;
    list-style: none;
    text-align: left;
    font-size: 20px;
    font-weight: 700;
}

.tf-diagnosis-result__points li {
    margin: 10px 0;
}

.tf-diagnosis-result__cta {
    display: flex;
    min-height: 66px;
    padding: 14px 22px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--tf-accent);
    color: #fff;
    text-decoration: none;
    font-size: 21px;
    font-weight: 900;
}

.tf-diagnosis-retry {
    display: inline-block;
    margin-top: 14px;
}

.tf-diagnosis-error {
    padding: 20px;
    border: 2px solid #a00;
    border-radius: 12px;
}

.js .tf-question[hidden] {
    display: none;
}

@media (max-width: 720px) {
    .tf-diagnosis {
        padding-top: 10px;
    }

    .tf-answer {
        min-height: 82px;
        padding: 14px;
        font-size: 20px;
    }

    .tf-diagnosis__actions {
        flex-direction: column-reverse;
    }

    .tf-diagnosis__back,
    .tf-diagnosis__submit {
        width: 100%;
    }
}
