/* =========================================================
   НАЧАЛО: Общий контейнер блока отзывов
   ========================================================= */

.branch-order-steps--reviews .branch-order-steps__head {
    margin-bottom: 20px;
}

.branch-order-steps--reviews .branch-reviews__body {
    margin-top: 20px;
}

.branch-order-steps--reviews .branch-reviews-widget {
    color: #243244;
}

/* =========================================================
   КОНЕЦ: Общий контейнер блока отзывов
   ========================================================= */


/* =========================================================
   НАЧАЛО: Верхняя плашка и заголовки секции
   ========================================================= */

.branch-order-steps--reviews .branch-order-steps__label {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    background: #dcecf5;
    color: #0e79a8;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.branch-order-steps--reviews .branch-order-steps__title {
    margin: 22px 0 14px;
    max-width: 920px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2c3d;
}

.branch-order-steps--reviews .branch-order-steps__subtitle {
    max-width: 980px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: #667587;
}

/* =========================================================
   КОНЕЦ: Верхняя плашка и заголовки секции
   ========================================================= */


/* =========================================================
   НАЧАЛО: Верхний информационный блок отзывов
   - средняя оценка
   - количество отзывов
   - кнопка "Оставить отзыв"
   ========================================================= */

.branch-order-steps--reviews .branch-reviews-widget__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4ebf1;
}

.branch-order-steps--reviews .branch-reviews-widget__top--empty {
    align-items: center;
}

.branch-order-steps--reviews .branch-reviews-widget__summary {
    flex: 1 1 auto;
    min-width: 0;
}

.branch-order-steps--reviews .branch-reviews-widget__action {
    flex: 0 0 auto;
}

.branch-order-steps--reviews .branch-reviews-widget__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #243244;
}

.branch-order-steps--reviews .branch-reviews-widget__rating-label {
    color: #243244;
}

.branch-order-steps--reviews .branch-reviews-widget__rating-value {
    font-size: 20px;
    line-height: 1;
}

.branch-order-steps--reviews .branch-reviews-widget__rating-star {
    font-size: 22px;
    line-height: 1;
    color: #f2b233;
}

.branch-order-steps--reviews .branch-reviews-widget__meta,
.branch-order-steps--reviews .branch-reviews-widget__empty {
    font-size: 14px;
    line-height: 1.55;
    color: #748293;
}

.branch-order-steps--reviews .branch-reviews-widget__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #f0a429;
    border-radius: 10px;
    background: #f0a429;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.branch-order-steps--reviews .branch-reviews-widget__add-btn:hover {
    background: #e3961b;
    border-color: #e3961b;
    transform: translateY(-1px);
}

/* =========================================================
   КОНЕЦ: Верхний информационный блок отзывов
   ========================================================= */


/* =========================================================
   НАЧАЛО: Список карточек отзывов
   ========================================================= */

.branch-order-steps--reviews .branch-reviews-widget__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.branch-order-steps--reviews .branch-review-item {
    padding: 24px 26px;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(21, 36, 50, .03);
}

/* =========================================================
   КОНЕЦ: Список карточек отзывов
   ========================================================= */


/* =========================================================
   НАЧАЛО: Шапка карточки отзыва
   - аватар
   - звезды
   - имя и дата
   - значок рекомендации
   ========================================================= */

.branch-order-steps--reviews .branch-review-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.branch-order-steps--reviews .branch-review-item__header-main {
    flex: 1 1 auto;
    min-width: 0;
}

.branch-order-steps--reviews .branch-review-item__header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.branch-order-steps--reviews .branch-review-item__header-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}

.branch-order-steps--reviews .branch-review-item__header-meta {
    min-width: 0;
}

/* =========================================================
   КОНЕЦ: Шапка карточки отзыва
   ========================================================= */


/* =========================================================
   НАЧАЛО: Аватар отзыва
   - восьмиугольник
   - разные цветовые темы
   ========================================================= */

.branch-order-steps--reviews .branch-review-item__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    background: currentColor;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    box-shadow: 0 4px 12px rgba(31, 44, 61, .08);
}

.branch-order-steps--reviews .branch-review-item__avatar span {
    display: inline-block;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
}

.branch-order-steps--reviews .branch-review-item__avatar.theme-1 { color: #0e79a8; }
.branch-order-steps--reviews .branch-review-item__avatar.theme-2 { color: #f0a429; }
.branch-order-steps--reviews .branch-review-item__avatar.theme-3 { color: #2d6ea3; }
.branch-order-steps--reviews .branch-review-item__avatar.theme-4 { color: #d9861b; }
.branch-order-steps--reviews .branch-review-item__avatar.theme-5 { color: #4a7da8; }
.branch-order-steps--reviews .branch-review-item__avatar.theme-6 { color: #c06b2f; }

/* =========================================================
   КОНЕЦ: Аватар отзыва
   ========================================================= */


/* =========================================================
   НАЧАЛО: Звезды рейтинга
   ========================================================= */

.branch-order-steps--reviews .branch-review-item__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.branch-order-steps--reviews .branch-review-item__star {
    font-size: 22px;
    line-height: 1;
    color: #d9dee5;
}

.branch-order-steps--reviews .branch-review-item__star.is-active {
    color: #f2b233;
}

/* =========================================================
   КОНЕЦ: Звезды рейтинга
   ========================================================= */


/* =========================================================
   НАЧАЛО: Имя автора и дата
   ========================================================= */

.branch-order-steps--reviews .branch-review-item__author {
    font-size: 15px;
    line-height: 1.6;
}

.branch-order-steps--reviews .branch-review-item__author-name {
    font-weight: 700;
    color: #2f3a46;
}

.branch-order-steps--reviews .branch-review-item__author-date {
    font-weight: 500;
    color: #8a97a6;
}

/* =========================================================
   КОНЕЦ: Имя автора и дата
   ========================================================= */


/* =========================================================
   НАЧАЛО: Значок рекомендации
   ========================================================= */

.branch-order-steps--reviews .branch-review-item__recommend {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    background: #fffaf0;
    font-size: 14px;
    line-height: 1;
}

/* =========================================================
   КОНЕЦ: Значок рекомендации
   ========================================================= */


/* =========================================================
   НАЧАЛО: Текст отзыва
   ========================================================= */

.branch-order-steps--reviews .branch-review-item__text {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf1f5;
    font-size: 15px;
    line-height: 1.75;
    color: #465363;
}

.branch-order-steps--reviews .branch-review-item__text p {
    margin: 0;
}

/* =========================================================
   КОНЕЦ: Текст отзыва
   ========================================================= */


/* =========================================================
   НАЧАЛО: Ответ представителя
   ========================================================= */

.branch-order-steps--reviews .branch-review-item__answer {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #e9eef3;
    border-radius: 14px;
    background: #f8fbfd;
}

.branch-order-steps--reviews .branch-review-item__answer strong {
    display: block;
    margin-bottom: 8px;
    color: #2f3a46;
    font-size: 15px;
}

.branch-order-steps--reviews .branch-review-item__answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #465363;
}

/* =========================================================
   КОНЕЦ: Ответ представителя
   ========================================================= */


/* =========================================================
   НАЧАЛО: Кнопка "Загрузить еще"
   ========================================================= */

.branch-order-steps--reviews .branch-reviews-widget__more {
    margin-top: 22px;
}

.branch-order-steps--reviews .branch-reviews-widget__more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    background: #fff;
    color: #243244;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.branch-order-steps--reviews .branch-reviews-widget__more-btn:hover {
    background: #f7fafc;
    border-color: #c8d5e2;
}

/* =========================================================
   КОНЕЦ: Кнопка "Загрузить еще"
   ========================================================= */


/* =========================================================
   НАЧАЛО: Пагинация
   ========================================================= */

.branch-order-steps--reviews .branch-reviews-widget__pagination {
    margin-top: 20px;
}

.branch-order-steps--reviews .branch-reviews-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.branch-order-steps--reviews .branch-reviews-pagination li a,
.branch-order-steps--reviews .branch-reviews-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #fff;
    color: #243244;
    text-decoration: none;
}

.branch-order-steps--reviews .branch-reviews-pagination li.is-active span {
    background: #f3f6f9;
    border-color: #d9e1e8;
}

/* =========================================================
   КОНЕЦ: Пагинация
   ========================================================= */


/* =========================================================
   НАЧАЛО: Адаптив
   ========================================================= */

@media (max-width: 767px) {
    .branch-order-steps--reviews .branch-order-steps__label {
        min-height: 36px;
        padding: 0 16px;
        font-size: 12px;
    }

    .branch-order-steps--reviews .branch-order-steps__title {
        font-size: 26px;
        line-height: 1.2;
    }

    .branch-order-steps--reviews .branch-order-steps__subtitle {
        font-size: 15px;
    }

    .branch-order-steps--reviews .branch-reviews-widget__top {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .branch-order-steps--reviews .branch-reviews-widget__action {
        width: 100%;
    }

    .branch-order-steps--reviews .branch-reviews-widget__add-btn {
        width: 100%;
    }

    .branch-order-steps--reviews .branch-review-item {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .branch-order-steps--reviews .branch-review-item__header-top {
        flex-direction: column;
    }

    .branch-order-steps--reviews .branch-review-item__header-left {
        gap: 14px;
    }

    .branch-order-steps--reviews .branch-review-item__avatar {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .branch-order-steps--reviews .branch-review-item__avatar span {
        font-size: 18px;
    }
}

/* =========================================================
   КОНЕЦ: Адаптив
   ========================================================= */


/* =========================================================
   НАЧАЛО: Ответ представителя (с аватаром справа)
   ========================================================= */

.branch-order-steps--reviews .branch-review-item__answer {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 20px;
}

/* Аватар */
.branch-review-item__answer-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;

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

    font-weight: 700;
    font-size: 16px;
    color: #fff;

    background: #0e79a8;

    /* восьмиугольник */
    clip-path: polygon(
        30% 0%, 70% 0%,
        100% 30%, 100% 70%,
        70% 100%, 30% 100%,
        0% 70%, 0% 30%
    );
}

/* Контейнер ответа */
.branch-review-item__answer-content {
    max-width: 70%;
    padding: 16px 18px;
    border-radius: 14px;

    background: #f6f9fc;
    border-left: 4px solid #0e79a8;

    box-shadow: 0 4px 14px rgba(31, 44, 61, 0.05);
}

/* Хедер */
.branch-review-item__answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

/* Лейбл */
.branch-review-item__answer-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #0e79a8;
}

/* Компания */
.branch-review-item__answer-company {
    font-size: 13px;
    color: #7b8896;
}

/* Текст */
.branch-review-item__answer-text {
    font-size: 15px;
    line-height: 1.7;
    color: #465363;
}

/* =========================================================
   КОНЕЦ: Ответ представителя
   ========================================================= */