.profile-section {
    padding: 10rem 0 50rem;
}

.profile-section__prev-button {
    display: block;
    position: relative;
    font-weight: 500;
    padding: 8rem 16rem 8rem 41rem;
    -webkit-transition: color var(--transition-duration);
    transition: color var(--transition-duration);
}

.profile-section__prev-button:not(:last-child) {
    margin-bottom: 30rem;
}

.profile-section__prev-button:before {
    content: '';
    width: 20rem;
    height: 20rem;
    position: absolute;
    top: 50%;
    left: 16rem;
    -webkit-transform: translate(0, -50%);
        -ms-transform: translate(0, -50%);
            transform: translate(0, -50%);
    background: url('/wp-content/themes/intelvision/assets/img/icons/arrow-left.svg') center/contain no-repeat;
    -webkit-transition: -webkit-transform var(--transition-duration);
    transition: -webkit-transform var(--transition-duration);
    transition: transform var(--transition-duration);
    transition: transform var(--transition-duration), -webkit-transform var(--transition-duration);
}

.profile-section__icon {
    width: 32rem;
    height: 32rem;
    -o-object-fit: contain;
       object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.profile-section__title:not(:first-child) {
    margin-top: 10rem;
}

.profile-section__title br {
    display: none;
}

.profile-section__text {
    font-family: var(--font-family-secondary);
}

.profile-section__text:not(:first-child) {
    margin-top: 10rem;
}

.profile-section__buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 10rem;
}

.profile-section__buttons:not(:first-child) {
    margin-top: 30rem;
}

.profile-section__info-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 10rem;
    min-height: 48rem;
    font-size: 16rem;
    line-height: 16rem;
}

.profile-section__info-link a {
    font-weight: 600;
    color: var(--color-secondary);
    text-decoration: underline;
    -webkit-transition: color var(--transition-duration);
    transition: color var(--transition-duration);
}

.wrapper:has(.result-section:first-child) {
    background-image: url(/wp-content/themes/intelvision/assets/img/backgrounds/result.webp);
    background-position: top center;
    background-size: 100% 553rem;
    background-repeat: no-repeat;
}

@media screen and (min-width: 768px) {
    .profile-section {
        padding-top: 40rem;
    }

    .profile-section__prev-button:not(:last-child) {
        margin-bottom: 40rem;
    }

    .profile-section__icon {
        width: 48rem;
        height: 48rem;
    }

    .profile-section__title:not(:first-child) {
        margin-top: 5rem;
    }

    .profile-section__text {
        max-width: 684rem;
        margin-left: auto;
        margin-right: auto;
    }

    .profile-section__buttons {
        gap: 20rem;
    }

    .profile-section__buttons:not(:first-child) {
        margin-top: 50rem;
    }

    .wrapper:has(.result-section:first-child) {
        background-image: url(/wp-content/themes/intelvision/assets/img/backgrounds/result-lg.webp);
        background-size: 100% 359rem;
    }

    .wrapper:has(.result-section--empty:first-child) {
        background-image: url(/wp-content/themes/intelvision/assets/img/backgrounds/no-result-lg.webp);
        background-size: 100% 549rem;
    }
}

@media screen and (min-width: 1024px) and (orientation: landscape) {
    .profile-section__title br {
        display: block;
    }
}

@media (hover: hover) {
    .profile-section__prev-button:hover {
        color: var(--color-primary);
    }

    .profile-section__prev-button:hover:before {
        -webkit-transform: translate(-5rem, -50%);
            -ms-transform: translate(-5rem, -50%);
                transform: translate(-5rem, -50%);
    }

    .profile-section__info-link a:hover {
        color: var(--color-primary);
    }
}
