.cards__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cards__heading {
    color: #000;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.cards__list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 32px 16px;
}

.cards__button {
    margin: 55px auto 0;

}

.filter {
    border-radius: 4px;
    border: 1px solid #E3E3E3;
    cursor: pointer;
    min-width: 255px;
    position: relative;
}

.filter__header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
}

.filter__text {
    margin-left: 8px;
    margin-right: auto;
    color: #000;
    font-size: 12px;
    line-height: 1.4;
}

.filter__list {
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1s ease-out, opacity 0.2s ease-out;
    border: 1px solid #E3E3E3;
    border-top: none;
    background: white;
    z-index: 1;
}

.filter__list.active {
    max-height: 300px;
    opacity: 1;
}

.filter__element {
    border-bottom: 1px solid #E3E3E3;
}

.filter__element:first-of-type {
    border-top: 1px solid #E3E3E3;
}

.filter__element:last-of-type {
    border-bottom: none;
}

.filter__item {
    width: 100%;
    padding: 10px 16px;
    background: white;
    color: #000;
    font-family: inherit;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    border: none;
    text-align: left;
    cursor: pointer;
}

.filter__item:hover, .filter__header:hover {
    transition: 0.2s;
    background: rgba(63, 137, 196, 0.07);
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.card__body {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #FBFBFB;
    padding: 0 16px 16px;
}

.card__image {
    height: auto;
    background: #FBFBFB;
    border-radius: 16px 16px 0px 0px;
}

.card__heading {
    margin-top: 16px;
    margin-bottom: 6px;
    color: #000;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}

.card__description {
    color: #434343;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 30px;
}

.card__footer {
    margin-top: auto;
    display: flex;
    /*flex-direction: row-reverse;*/
    /*justify-content: flex-end;*/
    align-items: center;
}

.card__body .card__button, .featured-card .card__button {
    margin-left: auto;
}

.card__caption {
    display: inline-block;
    margin-left: 8px;
    color: #545454;
    font-size: 12px;
    line-height: 1;
}

.card__button {
    border: none;
    border-radius: 8px;
    background: #3F89C4;
    color: #FFF;
    white-space: nowrap;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 16px 24px;
    cursor: pointer;
    z-index: 1;
}

.card__button:hover {
    transition: 0.3s;
    opacity: 0.8;
}

.card__link {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
}

.card:hover {
    transition: 0.3s;
    opacity: 0.9;
}

.button-primary {
    display: block;
    cursor: pointer;
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid #5798CB;
    background: rgba(63, 137, 196, 0.07);
    color: #5798CB;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.button-primary:hover:not(.button-primary:disabled) {
    transition: 0.3s;
    color: white;
    background: #5798CB;
}

@media screen and (max-width: 875px){
    .cards__list {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 650px) {
    .cards__header {
        margin-bottom: 16px;
    }

    .filter {
        width: 100%;
    }

    .cards__heading {
        font-size: 26px;
    }

    .cards__list {
        grid-template-columns: auto;
    }

    .card__heading {
        font-size: 18px;
    }

    /*.card__body {*/
    /*    background: white;*/
    /*}*/

    .card__description {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .card__button {
        padding: 12px 24px;
    }
}

.test-container {
    display: flex;
    gap: 43px;
    margin-bottom: 50px;
}

.button-secondary {
    max-width: 160px;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #5798CB;
    background: rgba(63, 137, 196, 0.07);
    color: #5798CB;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-self: start;
}

.button-secondary_wide {
    max-width: fit-content;
    white-space: nowrap;
}

.button-secondary:hover:not(.button-secondary:disabled) {
    transition: 0.5s;
    color: white;
    background: #5798CB;
}

.button-secondary:hover:not(.button-secondary:disabled) svg {
    transition: 0.5s;
    stroke: white;
}

.featured-card {
    max-width: 793px;
    margin-right: auto;
    color: #000000;
}

.featured-card__image {
    display: block;
    margin: 0 auto;
    height: auto;
}

.featured-card__heading {
    margin-top: 24px;
    margin-bottom: 6px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.featured-card__content {
    font-size: 15px;
    line-height: 1.6;
}

.featured-card__content p:not(.featured-card__content p:last-of-type) {
    margin-bottom: 16px;
}

.featured-card__footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    /*flex-direction: row-reverse;*/
    /*justify-content: flex-end;*/
}

.featured-card__footer .button {
    margin-left: auto;
}

.featured-card__caption {
    margin-left: 8px;
    margin-top: 2px;
    color: #545454;
    font-size: 12px;
    line-height: 1;
}

@media screen and (max-width: 800px) {
    .test-container {
        flex-direction: column;
        gap: 24px;
        margin-bottom: -30px;
    }

    .featured-card, .recommendations {
        margin-bottom: 30px;
    }

    .featured-card__heading {
        font-size: 26px;
    }
}

@media screen and (max-width: 600px) {
    .test-container {
        margin-top: 24px;
    }
}

@media screen and (max-width: 400px) {
    .featured-card__footer {
        display: block;
        text-align: center;
    }

    .featured-card .card__button {
        width: 100%;
        margin-top: 8px;
        margin-left: 0;

    }

    .featured-card__caption {
        vertical-align: super;
    }
}

.quiz-sidebar {
    max-width: 285px;
    align-self: flex-start;
    color: #000;
}

.quiz-sidebar__caption {
    display: inline-block;
    margin-bottom: 12px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1;
}

.quiz-sidebar__image {
    height: auto;
    display: block;
    margin: auto;
}

.quiz-sidebar__heading {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.quiz {
    padding: 32px;
    border-radius: 16px;
    background: #F9F9F9;
    width: 100%;
}

.quiz__counter {
    display: flex;
    margin-bottom: 24px;
    color: #000;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
}

.quiz__image {
    max-width: 285px;
    width: 100%;
    height: auto;
}

.quiz__step {
    color: #3F89C4;
    font-weight: 700;
    margin: 0 4px;
}

.quiz__amount {
    font-weight: 700;
    margin-right: 24px;
    margin-left: 4px;
}

.quiz__scale {
    height: 8px;
    border-radius: 999px;
    background: #E7E7E7;
    width: 100%;
    position: relative;
}

.quiz__scale::before {
    content: '';
    position: absolute;
    left: 0;
    height: 100%;
    width: 50%;
    background: #3F89C4;
    border-radius: 999px;
    width: var(--progress-width);
}

.quiz__question {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.quiz__heading {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    flex-grow: 1;
}

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

.quiz__item {
    background: white;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.quiz__input {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.quiz__label {
    cursor: pointer;
    color: #000;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    margin-right: auto;
}

.quiz__label:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid #3F89C4;
    border-radius: 50%;
    cursor: pointer;
    align-self: center;
    margin-right: 8px;
}

.quiz__input:checked + .quiz__label {
    font-weight: 700;
}

.quiz__input:checked + .quiz__label:before {
    border-color: #00C667;
    background: #00C667;
}

.quiz__footer {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/*.quiz__footer .card__button {*/
/*    margin-left: 0;*/
/*}*/

.card__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-secondary:disabled, .button-primary:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.result {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.result__group {
    display: flex;
    padding: 32px;
    border-radius: 16px;
    background: #F9F9F9;
    gap: 40px;
}

.result__caption {
    margin-bottom: 8px;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.result__text > h1, .result__text > h2 {
    color: #3F89C4;
    font-family: inherit;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.result__text > p {
    margin-top: 0;
    margin-bottom: 16px;
    color: #000;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.result__text > p:last-of-type {
    margin-bottom: 0;
}

.result__text > a {
    text-decoration: none;
    color: #3F89C4;
    cursor: pointer;
}

.result__image {
    margin-bottom: 8px;
    width: 100%;
    height: auto;
}

.recommendations__heading {
    color: #000;
    font-size: 33px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 32px;
}

.recommendations__list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 48px;
}

.recommendation {
    max-width: 368px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.recommendation__image {
    width: 100%;
    height: auto;
    display: block;
}

.recommendation__footer {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: end;
    background: #3f89c4;
    padding: 36px 15px 25px;
    border-top: 1px solid white;
}

.recommendation__block {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 12px;
    line-height: 1;
    margin-bottom: 20px;
}

.recommendation__info {
    display: flex;
    grid-gap: 24px;
}

.recommendation__button {
    display: inline-block;
    padding: 18px 28px;
    color: #000;
    background-color: #fff;
    border-radius: 20px;
    cursor: pointer;
}

.recommendation__button:hover {
    opacity: 0.9;
}

.price del {
    opacity: 0.5;
}

.price ins {
    text-decoration: none;
}

.price bdi {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

@media screen and (max-width: 800px) {
    .quiz {
        width: initial;
        margin-left: -16px;
        margin-right: -16px;
    }
}

@media screen and (max-width: 900px) {
    .result__group {
        flex-direction: column;
    }

    .quiz-sidebar {
        max-width: initial;
        width: 100%;
    }

    .result__group .quiz-sidebar {
        display: flex;
        flex-direction: column-reverse;
    }

    .result__group .quiz-sidebar__heading {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .recommendations__list {
        grid-gap: 20px;
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 600px) {
    .tests-container {
        padding-top: 0 !important;
    }

    .test-container.result {
        margin-top: 0;
    }

    .cards__heading {
        margin-top: 24px;
    }

    .result__text > h1, .result__text > h2 {
        font-size: 28px;
    }

    .result__group {
        border-radius: 0;
        background: white;
        padding: 0 !important;
    }

    .result__content {
        background: #F9F9F9;
        padding: 24px 16px 32px;
        margin-left: -16px;
        margin-right: -16px;
    }

    .recommendations__heading {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .recommendations__list {
        grid-template-columns: 1fr;
        grid-gap: 16px;
    }

    .recommendation__block svg {
        width: 20px;
        height: 20px;
    }


    .recommendations__list_columned {
        grid-template-columns: 1fr 1fr;
        grid-gap: 8px;
    }

    .recommendations__list_columned .recommendation__footer {
        padding: 12px;
    }

    .recommendations__list_columned .recommendation__info {
        flex-direction: column-reverse;
    }

    .recommendations__list_columned .recommendation__button {
        padding: 10px 24px;
        border-radius: 4px;
        text-align: center;
        font-size: 13px;
    }

    .recommendations__list_columned .recommendation__info {
        gap: 16px;
    }

    .recommendations__list_columned .woocs_price_code {
        flex-direction: row !important;
        gap: 6px;
    }

    .button-secondary {
        width: auto;
    }

    .quiz {
        padding-left: 16px;
        padding-right: 16px;
        border-radius: 0;
    }

    .quiz__heading {
        font-size: 18px;
    }

    .quiz__footer {
        flex-direction: column-reverse;
        align-items: initial;
    }

    .quiz__footer .button-secondary {
        align-self: center;
    }
}

@media screen and (max-width: 360px) {
    .recommendations__list_columned {
        grid-template-columns: 1fr !important;
    }
}

.tests-spinner {
    width: 40px;
    height: 40px;
    border: 6px solid rgba(63, 137, 196, 0.2);
    border-top: 6px solid #5798CB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Transition classes added by Vue */
.fade-slide-enter-active, .fade-slide-leave-active {
    transition: all 0.3s ease; /* Define the transition properties */
}

/* Enter transition: starting state */
.fade-slide-enter, .fade-slide-leave-to /* .fade-slide-leave-active in <2.1.8 */ {
    opacity: 0; /* Start with full transparency */
    transform: translateY(-10%); /* Start from below */
}

/* Final state of the component when it is fully rendered */
.animated-box {
    opacity: 1; /* Fully opaque */
    transform: translateY(0); /* At its normal position */
}

.results-button {
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 170px;
}

.test-container.result .quiz-sidebar {
    width: 100%;
}