.need-advice {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-gray);
    border-radius: 40px;
    padding: 50px 48px 60px 48px;
    width: var(--wrapper);
    margin: 0 auto;
}

.need-advice__sub-title {
    margin-bottom: 30px;
}

.need-advice form {
    display: grid;
    column-gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    align-items: flex-start;
}

.need-adivce .wpcf7-spinner {
    position: absolute;
}

.need-advice form p:nth-child(5) {
    grid-column: 1 / span 3;
    font-size: 14px;
}

.need-advice form p:nth-child(5) .wpcf7-list-item label {
    display: flex;
    align-items: center;
}

.need-advice form p:nth-child(5) label input {
    align-self: flex-start;
    margin-left: 0;
}

.need-advice .wpcf7-list-item-label {
    padding-left: 2px;
}

.need-advice .wpcf7-not-valid-tip {
    padding-left: 20px;
    padding-top: 9px;
}

/* prices */

.prices {
    max-width: 860px;
    margin: 0 auto 60px auto;
}
.prices td {
    font-family: sans-serif;
}
.prices__table-wrapper {
    overflow: hidden;
    max-height: 369px;
    margin-bottom: 18px;
    width: 100%;
}
.prices__list {
    width: 100%;
}

.prices__list tr {
    display: grid;
    grid-template-columns: 1fr 60px 65px;
    align-items: center;
    min-height: 41px;
    padding: 0 20px;
}

.prices__list .price__discount td:nth-child(2) {
    text-decoration: line-through;
}

.prices__list tr:nth-child(2n + 1) {
    background-color: var(--color-secondary);
}

.prices__show-btn {
    opacity: 30%;
    text-decoration: underline;
}

/* reviews */
.reviews .splide__arrow {
    transform:translateY(-36px)
}

.rev-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 32px 30px auto;
    grid-template-areas:
        "name stars"
        "date doctu"
        "review review"
        "more more";
    box-shadow: var(--box-shadow);
    padding: 20px;
    border-radius: 20px;
    height: 283px;
}

.rev-card__name {
    grid-area: name;
    margin-bottom: 8px;
    font-weight: 700;
}

.rev-card__content {
    margin-top: 10px;
    max-height: 132px;
    overflow: hidden;
    grid-area: review;
    margin-bottom: 18px;
}

.rev-card__date {
    grid-area: date;
    font-size: 14px;
    align-self: center;
}

.rev-card__more:not(.fakeClass) {
    grid-area: more;
    color: var(--color-primary);
    text-align: start;
    align-self: end;
}

.rev-card__doctu {
    width: 80px;
    /* height: 100%; */
    grid-area: doctu;
    justify-self: end;
}
.rev-card__stars-wr {
    position: relative;
    display: flex;
    justify-content: end;
    align-items: flex-start;
}
.rev-card__stars-wr::after {
    position: absolute;
    content: "";
    background: no-repeat url('/wp-content/themes/salusmed/assets/svg/stars.svg');
    background-size: 110px 19px;
    width: 110px;
    height: 19px;
    object-fit: cover;
    top:0;
    filter: grayscale(100%);
    display: block;
}

.rev-card__stars {
    --rating: 100%;
    grid-area: stars;
    justify-self: end;
    width: 110px;
    z-index: 2;
    clip-path: polygon(0% 0%, 0% 100%, var(--rating) 100%, var(--rating) 0%);
}

.rev-card__date {
    opacity: 50%;
}

.rev-card__top-block {
    margin-bottom: 18px;
}

.spec-card {
    border-radius: 20px;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(41, 143, 137, 0.1) inset;
    overflow: hidden;
    height: 450px;
}
.spec-card__link-wrapper {
    display: block;
    transition: .2s ease-in-out;
}
.spec-card__link-wrapper:hover {
    transform: scale(0.97);
}

.spec-card__img {
    width: 100%;
    height: 306px;
    object-fit: cover;
}

.spec-card__content {
    height: calc(100% - 221px);
    overflow: hidden;
    padding: 20px 16px 27px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-card__text {
    font-size: 14px;
    line-height: 18px;
    color: rgba(0, 13, 26, 0.5);
}

.spec-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.spec-card__btn {
    width: 120px;
    height: 35px;
}

.crumbs {
    display: block;
    margin-bottom: 16px;
    opacity: 50%;
}

.crumbs__list {
    /* height: 20px; */
    display: flex;
    gap: 10px;
}

.crumbs__item {
    font-size: 12px;
    line-height: 14px;
}


/* green card */

.green-card {
    width: 100%;
    height: 83px;
    border-radius: 10px;
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 30px;
}
.green-card__img:not(.fake-class) {
    width: 52px;
    height: 52px;
    margin-bottom: 0;
}

.green-card__content {
    font-weight: 600;
    font-size: 18px;
}

/* about modal */


.about__modal,
.about__backdrop {
    display: none;
}

.about__modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--wrapper);
    background-color: white;
    z-index: 11;
    border-radius: 20px;
    padding: 20px;
}
.about__modal .about__content {
    color: var(--color-dark);
}
.about__modal .about__btn {
    align-self: center;
}
.about__close {
    position: absolute;
    right: 20px;
    top: 20px;
}
.about__modal .about__wrapper {
    flex-direction: column;
    display: flex;
    align-items: center;
}

/* .about__modal.opened {}

 */

.img-to-title-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0,min-content);
    grid-template-areas: 
    "img title"
    "img info"
    ;
    gap: 20px;
}
.img-to-title-content>img {
    grid-area: img;
}
.img-to-title-content>div {
    grid-area: info;
}
.img-to-title-content>:is(h1, h2) {
    grid-area: title;
    margin-bottom: 0;
}


@media screen and (max-width: 1340px) {
    .need-advice {
        border-radius: 20px;
        padding: 40px 30px 48px 30px;
    }

    .need-advice form {
        column-gap: 8px;
    }

    .need-advice__sub-title {
        margin-bottom: 20px;
    }

    .need-adivce .wpcf7-list-item label {
        font-size: 10px;
        line-height: 12px;
    }

    .spec-card {
        border-radius: 10px;
    }

    .spec-card__content {
        height: 190px;
    }

    .spec-card__img {
        height: 242px;
    }
    .green-card {
        gap: 10px;
        height: 58px;
    }
    .green-card__content {
        font-size: 16px;
    }
    .green-card__img:not(.fake-class) {
        width: 32px;
        height: 32px;
    }
    .img-to-title-content {
        grid-template-columns: 1fr;
        grid-template-areas: "title"
        "img"
        "info";
    }
}

@media screen and (max-width: 720px) {
    .need-advice {
        width: 100%;
        position: relative;
        border-radius: 0;
    }

    .need-advice form {
        display: flex;
        flex-direction: column;
    }

    .need-advice__sub-title {
        text-align: center;
    }

    .reviews .splide,
    .our-specialists .splide,
    .our-specialists_service .splide {
        max-width: 295px;
    }

    .our-specialists,
    .our-specialists_service,
    .reviews {
        overflow: hidden;
    }

    .spec-card__img {
        max-height: 221px;
    }
    .about__modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        background-color: white;
        z-index: 11;
        border-radius: 20px;
        padding: 20px;
    }
    .prices__list tr{
        padding: 10px;
    }
}