.quiz-card {
    background: #D5EBFA;
    padding: 40px;
    border-radius: 20px;
}

@media (max-width: 767px) {
    .quiz-card {
        padding: 20px;
    }
}

.quiz-card .wrapper {
    display: flex;
    max-width: 80%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 40px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .quiz-card .wrapper {
        max-width: 100%;
        row-gap: 20px;
    }
}

.quiz-card__text {
    font-family: Segoe UI;
    font-weight: 600;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
}

@media (max-width: 767px) {
    .quiz-card__text {
        font-size: 20px;
    }
}

.quiz-card__buttons {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    column-gap: 40px;
}

@media (max-width: 767px) {
    .quiz-card__buttons {
        column-gap: 20px;
    }

    .quiz-card__buttons button {
        font-size: 18px;
    }
}

.reverse-link {
    margin-top: 21px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reverse-link a {
    font-family: Segoe UI;
    font-weight: 600;
    font-size: 17px;
    line-height: 130%;
    letter-spacing: 0%;
    position: relative;
}

@media (max-width: 767px) {
    .reverse-link a {
        font-size: 16px;
    }
}

.reverse-link a:hover {
    text-decoration: none;
}

.reverse-link a::before {
    content: '';
    width: 18px;
    height: 14px;
    background-image: url("../img/arrow.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
}

.quiz-card__text.threat {
    font-family: Segoe UI;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    text-align: center;
    margin-top: -20px;
}

@media (max-width: 767px) {
    .quiz-card__text.threat {
        margin-top: -0;
        font-size: 16px;
    }
}

.quiz-card__text {
    position: relative;
}

.quiz-card__text.lvl::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.quiz-card__text.lvl.threat-lvl-immediate::before {
    background-image: url("../img/immediate.svg");
}

.quiz-card__text.lvl.threat-lvl-potential::before {
    background-image: url("../img/potential.svg");
}

.quiz-card__text.lvl.threat-lvl-moderate::before {
    background-image: url("../img/moderate.svg");
}

.quiz-card__text.lvl.threat-lvl-low::before {
    background-image: url("../img/low.svg");
}

.quiz-card__text.lvl.threat-lvl-none::before {
    background-image: url("../img/none.svg");
}

.quiz-description strong {
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    text-align: center;
    color: #1e1e1c;
    background: #fecc40;
    border: 1px solid #fecc40;
    border-radius: 18px;
    padding: 8px 15px;
    box-shadow: none;
    text-decoration: none;
    display: inline-block;
    pointer-events: none;
}

@media (max-width: 767px) {
    .quiz-description strong {
        font-size: 14px;
        padding: 5px 15px;
    }
}


.quiz-description strong:hover {
    background: #f7bc18;
    color: #1e1e1c;
    text-decoration: none;
}

.quiz-description p {
    font-family: Segoe UI;
    font-weight: 400;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 150%;
    letter-spacing: 0%;
}

@media (max-width: 767px) {
    .quiz-description p {
        font-size: 16px;
    }
}

.content {
    display: block;
    width: 100%;
    height: auto;
    background-image: url("../img/quiz-bg-1.png"),
    url("../img/quiz-bg-2.png"),
    url("../img/quiz-bg-3.png");

    background-position: left top,
    right center,
    left bottom;

    background-repeat: no-repeat,
    no-repeat,
    no-repeat;

    background-size: 456px 456px,
    245px 323px,
    245px 323px;
}

@media (max-width: 1024px) {
    .content {
        display: block;
        width: 100%;
        height: auto;
        background-image: url("../img/quiz-bg-1.png"),
        url("../img/quiz-bg-2.png");

        background-position: left top,
        right center;

        background-repeat: no-repeat,
        no-repeat;

        background-size: 150px 150px,
        100px 100px;
    }
}

.threat-scale .wrapper {
    padding: 0 20px 0 20px;
    background: rgba(213, 235, 250, 1);
    border-radius: 20px;
}

.threat-scale .scale {
    background: #fff;
    border-radius: 20px;
    padding: 30px 70px;
    position: relative;
    top: -20px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1378px) {
    .threat-scale .scale {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .threat-scale .wrapper {
        padding: 20px;
    }

    .threat-scale .scale {
        flex-direction: row;
        column-gap: 8px;
        top: 0;
    }
}

@media (max-width: 768px) {
    .threat-scale .scale {
        padding: 10px;
        flex-direction: row;
        column-gap: 8px;
        top: 0;
    }

    .threat-scale .wrapper {
        padding: 15px;
    }
}

.threat-scale .scale__schema {
    display: block;
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #FF0500 0%, #FF9800 42.61%, #FFD900 62.98%, #1FA500 100%);
    border-radius: 20px;
    position: relative;
    left: -2px;
}

@media (max-width: 768px) {
    .threat-scale .scale__schema {
        display: block;
        width: 100%;
        max-width: 20px;
        height: auto;
        background: linear-gradient(
                180deg,
                #FF0500 0%,
                #FF9800 42.61%,
                #FFD900 62.98%,
                #1FA500 100%
        );
        position: relative;
        left: 0;
    }
}

.scale__description {
    display: flex;
    column-gap: 15px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .scale__description {
        flex-direction: column;
        row-gap: 10px;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .scale__description {
        flex: auto;
    }
}

.scale__description__text {
    flex: 1;
    position: relative;
}

@media (max-width: 768px) {
    .scale__description__text {
        display: flex;
        column-gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .scale__description__text {
        justify-content: space-between;
    }
}

.scale__description__text::before {
    content: "";
    position: absolute;
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("../img/schema_dot.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    top: -26px;
    left: 0;
}

.scale__description__text h4 {
    font-family: Segoe UI;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0%;
    padding: 0;
    margin-bottom: 20px;
}

@media (max-width: 1440px) {
    .scale__description__text h4 {
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .scale__description__text h4 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .scale__description__text h4 {
        margin-bottom: 0;
    }

    .scale__description__text::before {
        top: 3px;
        left: -26px;
    }
}

.scale__description__text .text {
    font-family: Segoe UI;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
    margin: 20px 0;
    display: none;
}

.scale__description__text .text.is-open {
    max-height: 1000px;
    display: block;
}

@media (max-width: 1440px) {
    .scale__description__text .text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .scale__description__text .text {
        order: 999; /* ставимо останнім */
        flex-basis: 100%; /* займає весь рядок */
        width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .scale__description__text .text {
        margin: 5px 0;
    }
}


.scale__description__text .scale__less_btn {
    display: none;
}

.scale__description__text .scale__less_btn, .scale__description__text .scale__more_btn {
    font-family: Segoe UI;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
    color: #0083CB;
    cursor: pointer;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .scale__description__text .scale__less_btn, .scale__description__text .scale__more_btn {
        margin-top: 0;
    }

    .scale__description__text .name {
        flex-basis: 58%;
    }

    .scale__description__text span {
        display: none;
    }
}

@media (max-width: 768px) {
    .scale__description__text .name {
        flex-basis: 58%;
    }

    .scale__description__text span {
        display: none;
    }
}




