/* =========================================================
   REVIEWS PAGE
   ========================================================= */

.reviews-page {
    background: #f8f8fa;
}


.reviews-page__container {
    width: min(calc(100% - 48px), 1520px);

    margin: 0 auto;

    padding-top: 24px;
    padding-bottom: 80px;
}


/* =========================================================
   HERO
   ========================================================= */

.reviews-hero {
    position: relative;

    width: 100%;
    height: 347px;

    overflow: hidden;

    border-radius: 32px;

    background:
            linear-gradient(
                    105.6deg,
                    #23716d 6.7%,
                    #1b5349 91.1%
            );
}


.reviews-hero__content {
    position: relative;

    z-index: 2;

    padding: 60px;
}


.reviews-hero__title {
    margin: 0;

    color: #fff;

    font-family: 'Inter', sans-serif;
    font-size: 64px;
    line-height: 1.2;
    font-weight: 700;

    text-transform: uppercase;
}


.reviews-hero__text {
    width: 844px;

    margin-top: 38px;

    color: #fff;

    font-family: 'Inter', sans-serif;
    font-size: 24px;
    line-height: 1.5;
}


.reviews-hero__text p {
    margin: 0;
}


.reviews-hero__text p + p {
    margin-top: 18px;
}


.reviews-hero__image {
    position: absolute;

    top: 80px;
    right: -320px;

    width: 1200px;
    height: 650px;

    background:
            url("../../images/reviews-hero-bg-s.png")
            center / cover no-repeat;

    opacity: .15;

    transform: rotate(-30deg);

    mix-blend-mode: overlay;
}


/* =========================================================
   REVIEWS LIST
   ========================================================= */

.reviews-list {
    margin-top: 32px;
}


/* =========================================================
   TABS
   ========================================================= */

.reviews-tabs {
    display: flex;
    align-items: center;

    gap: 16px;
}


.reviews-tabs__item {
    width: 280px;
    height: 48px;

    padding: 10px;

    border: 1px solid #23716d;
    border-radius: 12px;

    color: #23716d;
    background: transparent;

    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;

    cursor: pointer;

    transition:
            color .2s ease,
            background-color .2s ease,
            border-color .2s ease;
}


.reviews-tabs__item:hover {
    background: rgba(35, 113, 109, .05);
}


.reviews-tabs__item--active {
    color: #23716d;

    border-color: transparent;

    background: rgba(35, 113, 109, .1);
}


/* =========================================================
   REVIEWS GRID
   ========================================================= */

.reviews-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    margin-top: 24px;
}


.review-card {
    position: relative;

    min-height: 268px;

    padding: 24px;

    box-sizing: border-box;

    border-radius: 24px;

    background: #fff;
}


.review-card__top {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}


.review-card__author {
    color: #1d1d1d;

    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.15;
}


.review-card__date {
    margin-top: 4px;

    color: #8a8a8a;

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.15;
}


.review-card__rating {
    color: #23716d;

    font-size: 17px;
    line-height: 1;

    letter-spacing: 1px;

    white-space: nowrap;
}


.review-card__text {
    margin: 28px 0 0;

    color: rgba(17, 17, 34, .75);

    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}


/* =========================================================
   MORE
   ========================================================= */

.reviews-more {
    display: block;

    width: 280px;
    height: 48px;

    margin: 32px auto 0;

    padding: 10px;

    border: 1px solid #23716d;
    border-radius: 12px;

    color: #23716d;
    background: transparent;

    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;

    cursor: pointer;

    transition:
            color .2s ease,
            background-color .2s ease;
}


.reviews-more:hover {
    color: #fff;

    background: #23716d;
}


/* =========================================================
   WRITE REVIEW
   ========================================================= */

.review-write {
    margin-top: 140px;
}


.review-write__title {
    margin: 0 0 40px;

    color: #111122;

    font-family: 'Inter', sans-serif;
    font-size: 56px;
    line-height: 1.2;
    font-weight: 700;
}


.review-write__grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


.review-write-card {
    min-height: 180px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 24px;

    padding: 24px;

    box-sizing: border-box;

    border-radius: 24px;

    background: #fff;

    text-decoration: none;
}


.review-write-card__logo {
    display: flex;

    align-items: center;
    justify-content: center;

    height: 70px;

    width: 100%;
}


.review-write-card__logo img {
    display: block;

    max-width: 100%;
    max-height: 70px;
}


.review-write-card__logo--yandex img {
    width: 200px;
}


.review-write-card__logo--google img {
    width: 205px;
}


.review-write-card__logo--103 img {
    width: 230px;
}


.review-write-card__logo--relax img {
    width: 220px;
}


.review-write-card__button {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #23716d;
    border-radius: 12px;

    color: #23716d;

    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;

    transition:
            color .2s ease,
            background-color .2s ease;
}


.review-write-card:hover
.review-write-card__button {
    color: #fff;

    background: #23716d;
}


/* =========================================================
   APPOINTMENT
   ========================================================= */

.appointment-banner {
    position: relative;

    min-height: 499px;

    margin-top: 140px;

    overflow: hidden;

    border-radius: 32px;

    background:
            linear-gradient(
                    101deg,
                    #23716d 6.7%,
                    #1b5349 91.1%
            );
}


.appointment-banner__content {
    position: relative;

    z-index: 2;

    width: 65%;

    padding: 50px;
}


.appointment-banner__title {
    margin: 0;

    color: #fff;

    font-family: 'Inter', sans-serif;
    font-size: 56px;
    line-height: 1;
    font-weight: 700;
}


.appointment-banner__description {
    margin-top: 16px;

    color: rgba(255, 255, 255, .75);

    font-family: 'Inter', sans-serif;
    font-size: 24px;
    line-height: 1.5;
}


.appointment-banner__description p {
    margin: 0;
}


.appointment-banner__description p + p {
    margin-top: 16px;

    color: #fff;
}


/* =========================================================
   PHONES
   ========================================================= */

.appointment-phones {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-top: 67px;
}


.appointment-phone {
    min-height: 76px;

    padding: 16px;

    box-sizing: border-box;

    border-radius: 12px;

    background: rgba(255, 255, 255, .1);
}


.appointment-phone__label {
    display: block;

    color: rgba(255, 255, 255, .75);

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.2;
}


.appointment-phone__number {
    display: block;

    margin-top: 12px;

    color: #fff;

    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1;

    font-weight: 600;

    text-decoration: none;
}


.appointment-phone__numbers {
    display: flex;

    align-items: center;

    gap: 24px;
}


.appointment-phone--wide {
    grid-column: span 1;
}


.appointment-banner__image {
    position: absolute;

    top: 0;
    right: 0;

    width: 35%;
    height: 100%;
}


.appointment-banner__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .reviews-page__container {
        width: calc(100% - 40px);
    }


    .reviews-hero {
        height: 320px;

        border-radius: 24px;
    }


    .reviews-hero__content {
        padding: 40px;
    }


    .reviews-hero__title {
        font-size: 52px;
    }


    .reviews-hero__text {
        width: 65%;

        font-size: 20px;
    }


    .reviews-tabs__item {
        flex: 1;

        width: auto;
    }


    .reviews-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .review-write {
        margin-top: 100px;
    }


    .review-write__title {
        font-size: 46px;
    }


    .review-write__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .appointment-banner {
        min-height: 440px;
    }


    .appointment-banner__content {
        width: 55%;

        padding: 40px;
    }


    .appointment-banner__title {
        font-size: 44px;
    }


    .appointment-banner__description {
        font-size: 20px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .reviews-page__container {
        width: calc(100% - 32px);

        padding-top: 16px;
        padding-bottom: 40px;
    }


    /* HERO */

    .reviews-hero {
        height: auto;
        min-height: 300px;

        border-radius: 20px;
    }


    .reviews-hero__content {
        padding: 28px 20px;
    }


    .reviews-hero__title {
        font-size: 36px;
    }


    .reviews-hero__text {
        width: 100%;

        margin-top: 24px;

        font-size: 16px;
        line-height: 1.5;
    }


    .reviews-hero__text p + p {
        margin-top: 12px;
    }


    .reviews-hero__image {
        right: -300px;
        width: 700px;
        top: 112px;
        transform: rotate(-36deg);
    }


    /* TABS */

    .reviews-list {
        margin-top: 20px;
    }


    .reviews-tabs {
        gap: 8px;
    }


    .reviews-tabs__item {
        width: auto;
        height: 44px;

        padding: 8px;

        font-size: 14px;
    }


    /* REVIEWS */

    .reviews-grid {
        grid-template-columns: 1fr;

        gap: 12px;

        margin-top: 16px;
    }


    .review-card {
        min-height: 0;

        padding: 16px;

        border-radius: 16px;
    }


    .review-card__text {
        margin-top: 20px;

        font-size: 14px;
    }


    .review-card__rating {
        font-size: 14px;
    }


    .reviews-more {
        width: 100%;
        height: 44px;

        margin-top: 20px;

        font-size: 16px;
    }


    /* WRITE */

    .review-write {
        margin-top: 64px;
    }


    .review-write__title {
        margin-bottom: 20px;

        font-size: 36px;
    }


    .review-write__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .review-write-card {
        min-height: 145px;

        padding: 12px;

        gap: 16px;

        border-radius: 16px;
    }


    .review-write-card__logo {
        height: 48px;
    }


    .review-write-card__logo img {
        max-height: 48px;
    }


    .review-write-card__logo--yandex img {
        width: 120px;
    }


    .review-write-card__logo--google img {
        width: 125px;
    }


    .review-write-card__logo--103 img {
        width: 140px;
    }


    .review-write-card__logo--relax img {
        width: 135px;
    }


    .review-write-card__button {
        height: 40px;

        font-size: 14px;
    }


    /* APPOINTMENT */

    .appointment-banner {
        min-height: 0;

        margin-top: 64px;

        border-radius: 20px;
    }


    .appointment-banner__content {
        width: 100%;

        padding: 24px 20px;
    }


    .appointment-banner__title {
        font-size: 32px;
        line-height: 1.1;
    }


    .appointment-banner__description {
        font-size: 16px;
    }


    .appointment-phones {
        grid-template-columns: 1fr;

        gap: 8px;

        margin-top: 28px;
    }


    .appointment-phone {
        min-height: 0;

        padding: 12px;
    }


    .appointment-phone__number {
        font-size: 16px;
    }


    .appointment-phone__numbers {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }


    .appointment-banner__image {
        position: relative;

        width: 100%;
        height: 230px;
    }

}