.before-surgery__item {
    position: relative;
    /*padding-bottom: 90px;*/
    /*margin-bottom: 90px;*/
    padding: 90px 0;
}

.before-surgery__item::after {
    content: "";
    position: absolute;
    bottom: 0;
    -webkit-transform: translate(-50%, 50%);
    -ms-transform: translate(-50%, 50%);
    transform: translate(-50%, 50%);
    left: 50%;
    display: inline-block;
    width: 120px;
    height: 24px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTA0IiBoZWlnaHQ9IjE5IiB2aWV3Qm94PSIwIDAgMTA0IDE5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTAuMDU2Nzg1NiAwLjg4OTRMNTEuOTk5MSA2Ljg4Mjc1TDEwMy45NDEgMC44ODk0MDVMNTEuOTk5MSAxOC44ODI3TDAuMDU2Nzg1NiAwLjg4OTRaIiBmaWxsPSIjQ0JCNDlEIi8+Cjwvc3ZnPgo=");
    background-position: center;
    background-repeat: no-repeat;
}

.before-surgery__item-title {
    text-align: center;
}

.before-surgery__item-text {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto 48px;
}

.before-surgery__item:nth-child(even) .before-surgery__item-content {
    display: grid;
    grid-template-columns: 10vw 30% calc(70% - 10vw);
}

.before-surgery__item:nth-child(odd) .before-surgery__item-content {
    display: grid;
    grid-template-columns: calc(70% - 10vw) 30% 10vw;
}

.before-surgery__item:nth-child(even) .before-surgery__item-content {
    display: grid;
    grid-template-columns: 10vw 30% calc(70% - 10vw);
}

.before-surgery__item:nth-child(odd) .before-surgery__item-content {
    display: grid;
    grid-template-columns: calc(70% - 10vw) 30% 10vw;
}

.before-surgery__item:nth-child(even) .before-surgery__item-number {
    margin-right: -31%;
}


.before-surgery__item:nth-child(odd) .before-surgery__item-number {
    margin-right: -31%;
}


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

    .before-surgery__item:nth-child(even) .before-surgery__item-content {
        grid-template-columns: 10vw 1fr;
        row-gap: 40px;
        margin: 0 auto;
    }

    .before-surgery__item:nth-child(odd) .before-surgery__item-content {
        grid-template-columns: 10vw 1fr;
        row-gap: 40px;
        margin: 0 auto;
    }

    .before-surgery__item .before-surgery__item-number {
        grid-column: 1;
        grid-row: 1;
        padding-left: 16px;

    }

    .before-surgery__item .before-surgery__list {
        grid-column: 2;
        grid-row: 1;
        padding: 20px 0;
    }

    .before-surgery__item .before-surgery__item-image {
        grid-column: 1/3;
        grid-row: 2;
    }

    .before-surgery__item:nth-child(even) .before-surgery__item-number {
        margin: 0;
    }

    .before-surgery__item:nth-child(odd) .before-surgery__item-number {
        margin: 0;
    }

    .before-surgery__item:nth-child(even) .before-surgery__item-content {
        grid-template-columns: min-content 1fr;
        row-gap: 40px;
        /*column-gap: 12px;*/
        /*width: fit-content;*/
        margin: 0 auto;
        text-align: center;
        font-size: 14px;
    }

    .before-surgery__item:nth-child(odd) .before-surgery__item-content {
        grid-template-columns: min-content 1fr;
        row-gap: 40px;
        /*width: fit-content;*/
        margin: 0 auto;
        /*column-gap: 12px;*/
        text-align: center;
        font-size: 14px;
    }

    .before-surgery__item-number {
        background-color: rgba(222, 222, 222, 0.15);

    }
}

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

    .before-surgery__list li {
        padding: 0 10px;
    }

    .before-surgery__item .before-surgery__item-number {
        padding-left: 10px;

    }
}

.before-surgery__item-number {
    font-family: "Kudryashev Display Sans", serif;
    font-size: 21vw;
    line-height: 1;
    text-align: center;
    color: #009097;
    position: relative;
    z-index: 1;
    margin-top: -30%;
}

@media screen and (max-width: 767px) {
    .before-surgery__item-number {
        font-size: 150px;
    }
}

@media screen and (max-width: 480px) {
    .before-surgery__item-number {
        font-size: 100px;
    }
}

.before-surgery__list {
    background-color: rgba(222, 222, 222, 0.15);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.before-surgery__list li {
    width: 100%;
    text-align: center;
    padding: 0 16px;
}

.before-surgery__list-link {
    display: block;
    color: #005E68;
    border-top: 1px solid #F5F5F5;
    text-transform: uppercase;
    font-weight: 700;
    width: 100%;
}

.before-surgery__list-link:last-child {
    border-bottom: 1px solid #F5F5F5;
}

.before-surgery__list-link {
    text-transform: uppercase;
    color: #005E68;
    padding: 16px 0;
    -webkit-transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
    -o-transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
    transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.before-surgery__list-link:hover {
    background-color: var(--secondary-color-500);
    color: white;
}

.before-surgery__list-link[href="#"],
.before-surgery__list-link[href=""] {
    color: #A7A7A7;
    cursor: text;
}

.before-surgery__list-link[href="#"]:hover,
.before-surgery__list-link[href=""]:hover {
    color: #A7A7A7;
    background-color: transparent;
}


.before-surgery__item-image {
    aspect-ratio: 19/10;
}

@media screen and (max-width: 1024px) {
    .before-surgery__item {
        margin: 0 auto 90px;
        max-width: 680px;
        width: 100%;
    }

    .before-surgery__item-image {
        max-height: 60dvh;
        margin: 0 auto;
        max-width: 680px;
        width: 100%;
    }
}


@media screen and (max-width: 767px) {
    .before-surgery__item {
        margin-bottom: 60px;
        padding-bottom: 60px;
    }
}

.before-surgery__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-surgery__review-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.before-surgery__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 100px;
    background: linear-gradient(180deg, #f5f5f5 0%, #fff 100%);
}

.before-surgery__review-title {
    font-family: "Constantia", sans-serif;;
    font-weight: 400;
    font-size: 38px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #212121;
    margin-bottom: 24px;
    text-align: center;
}

.before-surgery__review-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    text-align: center;
    color: #212121;
    margin-bottom: 40px;
}

.before-surgery__review-list {
    display: flex;
    gap: 12px;
}

.before-surgery__personal {
    background-color: #e3d2c1;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    margin-bottom: 100px;
    padding: 32px 0;
}

.before-surgery__personal-content {
    max-width: 860px;
    background-color: white;
    padding: 100px 80px;
    margin-left: 5%;
}

.before-surgery__personal-contacts {
    display: flex;
    gap: 16px;
}

.s-offer-photo .c-social__link svg,
.s-offer-photo .c-social__link path {
    fill: var(--primary-color);
}

.s-offer-photo .c-social__link svg {
    width: 32px;
    height: 32px;
}

.s-offer-photo .c-social__link rect {
    stroke: var(--primary-color);
}

.s-offer-photo .c-social__link {
    height: auto;
}

.s-offer-photo .c-social__item a span {
    display: block;
}

.c-rating.rehub-rating {
    width: 200px;
    height: 30px;
    background-size: 40px;
}

.c-rating__inner.rehub-rating-inner {
    background-size: 40px;
}


.s-branches__item.choosen {
    color: var(--white);
    background-color: var(--secondary-color-500);
    border-color: var(--secondary-color-500);
}

