.doctors h2,
.specials h2 {
    text-align: center;
}

.documentation {
    width: 816px;
    margin: 0 auto;
}

.documentation .documentation__item {
    border-bottom: 1px solid #d9d9d9;
}

.documentation__header.ac-trigger {
    display: flex;
    padding: 20px 15px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.documentation__item.ac.is-active .services__arrow,
.price__item.is-active .ac-arrow {
    transform: rotate(180deg);
}

.documentation__panel {
    padding-left: 15px;
}

.documentation__panel * {
    margin-bottom: 10px;
}

.documentation__panel figure:not(#fake_id),
.documentation__panel img:not(#fake_id) {
    width: 50% !important;
}

.documentation__panel :is(h1, h2, h3, h4, h5, h6) {
    font-weight: 700;
    font-size: 20px;
}

.documentation__panel a {
    text-decoration: underline;
    color: var(--color-primary)
}

/* .documentation__panel strong {
    color: var(--color-primary);
    font-weight: 600;
} */

/* out specialists */

.doctors {
    margin-bottom: 100px;
}

.doctors__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
}

/* страница доктора */

.d-info {
    display: grid;
    grid-template-columns: 505px 1fr;
    grid-template-rows: 50px 50px 1fr;
    column-gap: 22px;
    grid-template-areas: "img title"
        "img spec"
        "img education"
    ;
}

.d-info__img-btn {
    grid-area: img;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.d-info__img {
    width: 100%;
    border-radius: 20px;
}

.d-info__title {
    grid-area: title;
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
    margin-bottom: 10px;
}

.d-info__speciality {
    grid-area: spec;
    line-height: 22px;
    opacity: 50%;
    margin-bottom: 30px;
}

.d-info__education {
    grid-area: education;
}

.d-info__education-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.d-info__education :is(li, p) {
    opacity: 50%;
    margin-bottom: 10px;
    line-height: 22px;
}

.d-info__education ul {
    padding-left: 20px;
}

.d-info__education li::before {
    content: "\2022";
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    margin-left: -15px;
    margin-right: 10px;
}

.d-sertificates {
    width: var(--wrapper);
    margin-inline: auto;
    overflow: hidden;
}

.d-sertificates img {
    width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.d-sertificates li {
    display: flex;
    align-items: center;
}

.d-sertificates .splide__arrow {
    display: none;
}

.d-examples {
    width: 1030px;
    margin-inline: auto;
    position: relative;
}

.d-example {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 0px 4px 10px 0px #298F891A inset;
    overflow: hidden;
    padding-bottom: 30px;
    position: relative;
}

.d-example__img-wr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    height: 400px;
    margin-bottom: 18px;
    /* filter: blur(20px); */
}

.d-example__filter {
    filter: blur(20px);
}

.d-example__img-wr>div {
    overflow: hidden;
}

.d-example::before,
.d-example::after {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 51px;
    background-color: white;
    width: 106px;
    height: 40px;
    color: rgba(10, 45, 54, 0.5);
}

.d-example::before {
    content: "ДО";
    left: 0;
    z-index: 2;
}

.d-example::after {
    content: "ПОСЛЕ";
    right: 0;
}

.d-example img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* filter: blur(20px); */
}

.d-example__title {
    font-size: 22px;
    line-height: 26px;
    margin-bottom: 2px;
}

.d-example__descr,
.d-example__title {
    padding-inline: 20px;
}

.d-examples__alert {
    width: 352px;
    height: 161px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.1);
    padding: 30px 33px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.d-examples__message {
    text-align: center;
    line-height: 19px;
}

.d-examples__btn {
    width: 180px;
    height: 40px;
    font-weight: 700;
}

/* specials (акции) */
.specials__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    row-gap: 40px;
}

.special-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.special-card__img {
    border-radius: 20px;
    width: 100%;
    max-height: 242px;
}

/* страница акции */
.special {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, min-content) minmax(0, min-content) 1fr;
    grid-gap: 20px;
    grid-template-areas: "img title"
        "img date"
        "img text"
        "img btn";
}

.special__title {
    margin-bottom: 0;
}

.special__img {
    border-radius: 20px;
    width: 100%;
    grid-area: img;
}

.special__title {
    grid-area: title;
}

.special__content {
    opacity: 70%;
    grid-area: text;
    line-height: 19px;
}

.special__btn {
    grid-area: btn;
}

.other-specials__title {
    text-align: start;
}

/* Прайс */

.price {
    width: 861px;
    margin: 0 auto;
}

.price__header.ac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    background-color: var(--color-secondary);
    padding: 16px 18px;
}

.price__title {
    font-size: 20px;
    line-height: 24px;
    text-transform: lowercase;
}

.price__title::first-letter {
    text-transform: uppercase;
}

.price__item {
    margin-bottom: 10px;
}

.price__controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.price__controls :is(input, select) {
    max-width: 325px;
    height: 50px;
    border: 1px solid var(--color-gray-2);
    padding: 15px;
    color: var(--color-dark);
    opacity: 70%;
}

.price__search-wr {
    position: relative;
}

.price__search-wr::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 15px;
    background: no-repeat url('/wp-content/themes/salusmed/assets/svg/search-small.svg');
    width: 20px;
    height: 20px;
}

.price__search-btn {
    position: absolute;
    right: 0px;
    height: 100%;
    width: 50px;
    z-index: 1;
}

.price__search:not(.fakeClass) {
    background: linear-gradient(to right, white 0%, white 85%, var(--color-primary) 85%, var(--color-primary) 100%);
    padding-right: 100px;
    position: relative;
}

.price__search:focus {
    outline: none;
}

.price__table {
    width: 100%;
}

.price__table tr {
    display: grid;
    grid-template-columns: 1fr 60px 70px;
    padding: 16px;
}

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

b.table_searched {
    background-color: var(--color-accent);
    color: white;
}

.price__item tr:nth-child(2n) {
    background-color: var(--color-gray);
}

.price__discount:not(#fakeId) {
    background-color: #fffff0;
}

.search__result {
    padding: 20px 0;
}

.search__item {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* about page */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advantages .green-card {
    height: 112px;
    border-radius: 20px;
}

.ratings__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 144px;
}

.ratings__item span {
    opacity: 50%;
    line-height: 22px;
}

.ratings__logo {
    height: 72px;
}

.ratings__stars-wr {
    position: relative;
    display: flex;
    justify-content: end;
}

.ratings__stars-wr::after {
    content: "";
    background: no-repeat url('/wp-content/themes/salusmed/assets/svg/stars.svg');
    background-size: 177px 31px;
    display: block;
    width: 100%;
    object-fit: cover;
    height: 100%;
    position: absolute;
    top: 0;
    filter: grayscale(100%);
}

.ratings__stars {
    --rating: 100%;
    z-index: 2;
    width: 100%;
    clip-path: polygon(0% 0%, 0% 100%, var(--rating) 100%, var(--rating) 0%);
}


/* corporates page */
.corporates img {
    border-radius: 20px;
    width: 100%;
}

.d-ask {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 476px;
    background-color: var(--color-gray);
    border-radius: 50px;
    color: var(--color-primary);
    padding-left: 92px;
    padding-right: 120px;
}

.d-ask__img {
    margin-top: auto;
}

.d-ask__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 0;
}

.d-ask :is(.questions__title, .questions__tel) {
    margin-bottom: 40px;
}

@media screen and (max-width: 1340px) {
    .doctors__list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .d-info {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: min-content min-content 1fr;
    }

    .d-info__img-btn {
        gap: 10px;
    }

    .d-info__title {
        font-size: 22px;
        line-height: 26px;
    }

    .d-sertificates {
        width: 482px;
    }

    .d-sertificates .splide__track {
        overflow: visible;
    }

    .d-examples {
        width: var(--wrapper);
    }

    .d-example__img-wr {
        height: 300px;
    }

    .specials__list {
        grid-template-columns: 1fr 1fr;
        row-gap: 30px;
    }

    .special {
        grid-template-columns: 1fr;
        grid-template-areas: "title"
            "date"
            "img"
            "text"
            "btn";
    }

    .documentation,
    .price__controls {
        width: var(--wrapper);
    }

    .price__controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-inline: auto;
        gap: 20px;
    }

    .price {
        width: 100%;
    }

    .price__controls :is(input, select) {
        height: 40px;
        max-width: 100%;
        padding: 10px 20px;
    }

    .price__search-wr::after {
        top: 10px;
        right: 10px;
    }

    .price__header.ac-header,
    .price__table tr {
        padding-inline: 40px;
    }

    .advantages .green-card {
        height: 57px;
        /* gap: 8px; */
    }

    .advantages .green-card__content {
        font-size: 14px;
    }

    .d-ask {
        grid-template-columns: 284px 1fr;
        padding-left: 48px;
        padding-right: 52px;
        height: 292px;
        overflow: hidden;
    }

    .d-ask__img {
        width: 100%;
    }

    .d-ask__content {
        padding: 47px 0;
    }

    .d-ask :is(.questions__title, .questions__tel) {
        margin-bottom: 20px;
    }

    .ratings__stars-wr::after {
        background-size: 196px 34px;
    }
}

@media screen and (max-width: 720px) {
    .doctors__list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .d-info {
        grid-template-columns: 1fr;
        grid-template-areas: "title"
            "spec"
            "img"
            "education";
    }

    .d-info__speciality {
        margin-bottom: 10px;
    }

    .d-info__img-btn {
        margin-bottom: 10px;
        gap: 20px;
    }

    .d-examples {
        width: 390px;
    }

    .d-sertificates {
        width: 334px;
    }

    .d-examples .splide__track {
        overflow: hidden;
    }

    .d-example__img-wr {
        height: 220px;
    }

    .d-examples__alert {
        width: 255px;
        height: 135px;
        gap: 2px;
        padding: 17px;
    }

    .d-examples__btn {
        width: 138px;
        height: 40px;
        font-size: 14px;
    }

    .d-examples__message {
        font-size: 14px;
        line-height: 16px;
    }

    .d-example::before,
    .d-example::after {
        top: 15px;
        width: 71px;
        height: 28px;
        font-size: 14px;
    }

    .specials__list {
        grid-template-columns: 1fr;
    }

    .documentation {
        width: calc(100vw - 20px);
    }

    .price__controls {
        gap: 10px;
    }

    .price__search:not(.fakeClass) {
        padding-right: 40px;
    }

    .price__search:not(.fakeClass) {
        background: linear-gradient(to right, white 0%, white 80%, var(--color-primary) 80%, var(--color-primary) 100%);
    }

    .price__header.ac-header,
    .price__table tr {
        padding-inline: 22px;
    }

    .price__title {
        font-size: 16px;
    }

    .price__table td {
        font-size: 14px;
        line-height: 16px;
    }

    .doctors.wrapper {
        width: 322px;
    }

    .documentation__panel {
        padding-inline: 10px;
    }

    .advantages {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .advantages .green-card {
        border-radius: 10px;
        /* padding-inline: 55px; */
        justify-content: center;

    }

    .ratings__item img:first-child {
        height: 43px;
    }

    .ratings__stars-wr::after {
        background-size: 123px 23px;
    }

    .ratings__stars {
        margin-top: -10px;
    }

    .ratings .splide__track {
        overflow: hidden;
    }

    .d-ask {
        grid-template-columns: 1fr;
        height: 571px;
        padding-inline: 13px;
        gap: 0;
    }

    .d-ask__img {
        order: 2;
        padding-inline: 30px;
    }

    .d-ask__content {
        padding: 40px 0;
    }
}

@media screen and (max-width: 420px) {

    .d-sertificates,
    .d-examples {
        width: 100%;
    }

    .d-ask {
        height: 500px;
    }

    .d-ask .questions__tel {
        font-size: 22px;
    }

    .ratings__stars-wr::after {
        background-size: 145px 43px;
    }

    .ratings__stars {
        margin-top: 0;
    }
}