/* ==========================================================================
   Страница "Страхование" (strah.php)
   Подключается только для шаблона page-strah-page-template
   ========================================================================== */

/* === Рейтинг страховых компаний (по макету) === */
.strah-rating__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #1a1a1a;
}

.strah-rating__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strah-rating__list .company-item__block.strah-card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.ci__logo{
   margin-right: 0; 
}
.strah-card__row {
    display: grid;
    grid-template-columns: minmax(220px, 2.2fr) 2fr 1fr 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 30px;
}

.strah-card__btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.strah-card__name-cell {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.strah-card__logo {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f8;
}

.strah-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.strah-card__name-block {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.strah-card__name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.strah-card__name a {
    color: #1a1a1a;
    text-decoration: none;
}

.strah-card__name a:hover {
    color: #8046FF;
}
.strah-reviews-block .glsr-star, .strah-reviews-block .glsr-review-rating svg{
    width: 20px;
    height: 20px;
}
.vebiray-avatar{
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    box-sizing: border-box;
    /* Не даём flex-родителю (.glsr-review) сжимать по ширине или
       растягивать по высоте — иначе круг превращается в овал. */
    flex: 0 0 50px;
    flex-shrink: 0;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #FFF;
    text-align: center;
    font-family: "Suisse Intl";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.4px;
}
.strah-card__address {
    font-size: 11px;
    color: #6b6b78;
    line-height: 1.35;
}

.strah-card__cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.strah-card__cell-title {
    font-size: 13px;
    color: #9a9aa6;
    font-weight: 400;
}

.strah-card__cell-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
}

.strah-card__cell-value a {
    color: #1a1a1a;
    text-decoration: none;
}

.strah-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.strah-card__rating img {
    width: 14px;
    height: 14px;
}

.strah-card__btns {
    display: flex;
}

.strah-card__btn {
    background: linear-gradient(90deg, #8046FF 0%, #6a2dff 100%);
    color: #fff !important;
    border: 0;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}

.strah-card__btn:hover {
    opacity: .9;
}

.strah-card__more {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s;
}

.strah-card__block.is-open .strah-card__more,
.company-item__block.is-open .strah-card__more {
    transform: rotate(180deg);
}

.strah-card__details {
    display: none;
    border-top: 1px solid #eee;
    padding: 0 28px;
    color: #555;
    font-size: 14px;
}

.company-item__block.is-open .strah-card__details {
    display: block;
}

/* ==========================================================================
   Отзывы о страховых компаниях (Site Reviews по макету)
   ========================================================================== */
.strah-reviews-block {
    margin-top: 60px;
}

.strah-reviews-block > h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
}

/* контейнер списка отзывов от плагина */
.strah-reviews-block .glsr-reviews,
.strah-reviews-block .glsr-reviews-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* карточка отзыва */
.strah-reviews-block .glsr-review {
    background: #fff;
    border: 0;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* шапка: аватар + автор/дата/компания | звёзды справа */
.strah-reviews-block .glsr-review__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0px;
    width: calc(100% - 74px);
}

.strah-reviews-block .glsr-review__head-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.strah-reviews-block .glsr-review-avatar {
    margin: 0;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
}

.strah-reviews-block .glsr-review-avatar img,
.strah-reviews-block .glsr-review-avatar > * {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: #fff;
}

.strah-reviews-block .glsr-review__head-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.strah-reviews-block .glsr-review__head-line {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.2;
}

.strah-reviews-block .glsr-review-author {
    display: inline;
    font-weight: 600;
    color: #1a1a1a;
}

.strah-reviews-block .glsr-review__head-date {
    color: #6b6b78;
    font-weight: 400;
}

.strah-reviews-block .glsr-review__head-assigned,
.strah-reviews-block .glsr-review-assigned_links {
    font-size: 13px;
    color: #6b6b78;
    font-weight: 400;
    line-height: 1.3;
}

.strah-reviews-block .glsr-review-assigned_links a,
.strah-reviews-block .glsr-review__head-assigned a {
    color: #4285f4;
    text-decoration: none;
}

.strah-reviews-block .glsr-review-assigned_links a:hover,
.strah-reviews-block .glsr-review__head-assigned a:hover {
    text-decoration: underline;
}

/* звёзды справа */
.strah-reviews-block .glsr-review__head-right {
    flex: 0 0 auto;
    margin-top: 0px;
}

.strah-reviews-block .glsr-review-rating {
    margin: 0;
    display: flex;
    gap: 2px;
}

.strah-reviews-block .glsr-star-full,
.strah-reviews-block .glsr-star-full svg {
    color: #ffb800;
    fill: #ffb800;
}

.strah-reviews-block .glsr-star-empty,
.strah-reviews-block .glsr-star-empty svg {
    color: #e6e6e6;
    fill: #e6e6e6;
}

/* тело */
.strah-reviews-block .glsr-review-title {
    display: none;
}

.strah-reviews-block .glsr-review-content {
    font-size: 14px;
    color: #4a4a55;
    line-height: 1.6;
    margin: 0;
}

.strah-reviews-block .glsr-review-content p {
    margin: 0 0 8px;
}

.strah-reviews-block .glsr-review-content a,
.strah-reviews-block .glsr-read-more,
.strah-reviews-block .glsr-hidden-text-toggle {
    color: #4285f4;
    text-decoration: none;
    font-size: 14px;
}

.strah-reviews-block .glsr-review-content a:hover,
.strah-reviews-block .glsr-read-more:hover,
.strah-reviews-block .glsr-hidden-text-toggle:hover {
    text-decoration: underline;
}

/* ответ */
.strah-reviews-block .glsr-review-response {
    margin-top: 14px;
    padding: 12px 16px;
    background: #f6f6f8;
    border-radius: 12px;
    font-size: 13px;
    color: #4a4a55;
}

/* пагинация */
.strah-reviews-block .glsr-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.strah-reviews-block .glsr-pagination a,
.strah-reviews-block .glsr-pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    color: #6b6b78;
    text-decoration: none;
    font-size: 14px;
}

.strah-reviews-block .glsr-pagination .current {
    background: #8046FF;
    color: #fff;
}

/* Пагинация Site Reviews — по макету: без prev/next/dots, все страницы в ряд */
.strah-reviews-block .vebiray-strah-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.strah-reviews-block .vebiray-strah-showmore-btn {
    background: #8654CD;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 56px;
    color: #FFF;
    /* font-family: "Suisse Intl"; */
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px; /* 100% */
    cursor: pointer;
    transition: opacity .2s;
}
.strah-reviews-block .vebiray-strah-showmore-btn:hover { opacity: .9; }
.strah-reviews-block .vebiray-strah-showmore-btn[disabled] {
    opacity: .4;
    cursor: not-allowed;
}

.strah-reviews-block .vebiray-strah-pagination .navigation { width: 100%; }

.strah-reviews-block .vebiray-strah-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.strah-reviews-block .vebiray-strah-pagination .page-numbers {
    min-width: 26px;
    height: 26px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none;
    color: #231F20;
    /* font-family: "Suisse Intl"; */
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px; /* 100% */
    background: transparent;
    transition: background .15s;
}
.strah-reviews-block .vebiray-strah-pagination .page-numbers:hover {
    background: #f0edff;
    color: #8046FF;
}
.strah-reviews-block .vebiray-strah-pagination .page-numbers.current {
    background: #8654CD;
    color: #fff;
}

/* Скрываем prev/next/dots — маркет их не показывает */
.strah-reviews-block .vebiray-strah-pagination .page-numbers.prev,
.strah-reviews-block .vebiray-strah-pagination .page-numbers.next,
.strah-reviews-block .vebiray-strah-pagination .page-numbers.dots {
    display: none;
}

/* mobile */
@media (max-width: 767px) {
    .strah-reviews-block > h2 { font-size: 22px; }
    .strah-reviews-block .glsr-review { padding: 18px; }
    .strah-reviews-block .glsr-review__head { gap: 10px; }
    .strah-reviews-block .glsr-review-avatar,
    .strah-reviews-block .glsr-review-avatar img,
    .strah-reviews-block .glsr-review-avatar > * {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px;
    }
}

/* === Tablet === */
@media (max-width: 1100px) {
    .strah-card__row {
        grid-template-columns: minmax(200px, 2fr) 1fr 1fr 1fr auto;
        gap: 18px;
        padding: 18px 20px;
    }
    .strah-card__more {
        display: none;
    }
}

/* === Mobile === */
@media (max-width: 767px) {
    .strah-rating__title {
        font-size: 22px;
    }
    .strah-card__row {
        grid-template-columns: 1fr 1fr;
        gap: 14px 16px;
        padding: 16px;
    }
    .strah-card__name-cell {
        grid-column: 1 / -1;
    }
    .strah-card__btns {
        grid-column: 1 / -1;
    }
    .strah-card__btn {
        width: 100%;
        padding: 12px 16px;
    }
    .strah-card__logo {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }
    .strah-card__name {
        font-size: 16px;
    }
    .strah-card__address {
        font-size: 12px;
    }
}
