.my-5 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.mb-6 {
    margin-bottom: 3rem;
}
.mt-0 {
    margin-top: 0!important;
}
.mt-4 {
    margin-top: 1.5rem!important;
}
.bg-white {
    background-color: white;
}
.p-2 {
    padding: 1rem;
}
.py-2 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.text-end{
    text-align: right;
}
.text-center{
    text-align: center;
}
.rounded-2 {
    border-radius: 2px;
}
.rounded-50 {
    border-radius: 50%;
    overflow: hidden;
}
.d-flex {
    display: flex;
    align-items: center;
}
.align-items-center{
    align-items: center;
}
.justify-content-center{
    justify-content: center;
}
.justify-content-end{
    justify-content: flex-end;
}
.gap-4 {
    gap: 4px;
}
.gap-8 {
    gap: 8px;
}
.gap-18 {
    gap: 18px;
}
.position-relative {
    position: relative;
}
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}
.review-head {
    text-align: center;
    color: #3C312C;
    font-weight: 700;
    font-size: 55px;
    line-height: 100%;
    text-transform: uppercase;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}
.row > * {
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
    margin-top:24px;
}
.row-reviews{
    margin-left: -24px;
    margin-right: -24px;
}
.col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}
.col-12 {
    width: 100%!important;
}
.stars-review {
    display: flex;
    gap: 3px;
}
.reviews-header {
    font-size: 13px;
}
.stars-review > .stars-review-item {
    width: 20px;
    height: 20px;
}
.reviews-header .stars-review {
    gap: 5px;
}
.reviews-header .stars-review > .stars-review-item {
    width: 13px;
    height: 13px;
}
.stars-review > .stars-review-item svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.stars-review > .stars-review-item svg path {
    fill: #f8ecbc;
}
.stars-review.stars-active-5 > .stars-review-item svg path,
.stars-active-4.stars-review > .stars-review-item:nth-child(-n+4) svg path,
.stars-active-3.stars-review > .stars-review-item:nth-child(-n+3) svg path,
.stars-active-2.stars-review > .stars-review-item:nth-child(-n+2) svg path,
.stars-active-1.stars-review > .stars-review-item:nth-child(-n+1) svg path
{
    fill: #FFCC00;
}
.stars-review > .stars-review-item:hover svg path {
    fill: #fddb31;
}
.stars-review-green.stars-review > .stars-review-item svg path {
    fill: #29B14A;
}
.stars-review-green.stars-review > .stars-review-item:hover svg path {
    fill: #1d7e35;
}
.stars-review-15.stars-review {
    gap: 2px;
}
.stars-review-15.stars-review > .stars-review-item {
    width: 15px;
    height: 15px;
}
.review_title {
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    margin-bottom: 8px;
}
.mb-1 {
    margin-bottom: 4px;
}
.mb-2 {
    margin-bottom: 8px;
}
.review-data {
    font-weight: 500;
    font-size: 10px;
    line-height: 1;
    color: #999999;
}
.icon-src-review {
    display: block;
    width: 15px;
    height: 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.icon-src-review.yandexmap {
    background-image: url("/wp-content/uploads/icons/icon-yandex.svg");
}
.icon-src-review.gis {
    background-image: url("/wp-content/uploads/icons/icon-2gis.svg");
}
.icon-src-review.prodoctorov {
    background-image: url("/wp-content/uploads/icons/icon-rupor.svg");
}
.h-100{
    height: 100%;
}
.review-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Ограничение на 3 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em * 3); /* Максимальная высота текста (3 строки) */
    transition: max-height 0.3s ease; /* Плавное раскрытие текста */
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
}

.review-text.expanded {
    -webkit-line-clamp: unset; /* Снимаем ограничение */
    max-height: none; /* Разрешаем тексту быть любой высоты */
}

.read-more-btn {
    padding: 0;
    font-size: 12px;
    margin-top: 4px;
    color: #999999;
    transition: color 0.3s ease;
}
.read-more-btn:hover {
    color: #000;
}

.row-cols-1 > * {
    flex:0 0 auto;
    width: 100%;
}
.hero__reviews {
    color: #fff;
}
.d-none {
    display: none!important;
}
@media (min-width: 768px) {
    .row-cols-md-2 > * {
        flex:0 0 auto;
        width: 50%;
    }
    .d-md-block {
        display: block!important;
    }
    .d-md-inline-block {
        display: inline-block!important;
    }
    .mt-md-0 {
        margin-top: 0!important;
    }
}
@media (max-width: 768px) {
    .col-md-4 {
        width: 100%;
    }
    .col-md-4:not(:nth-child(1)) {
        margin-top: 8px!important;
    }
    .row-all-reviews > * {
        justify-content: center!important;
    }
    .row-reviews .row-reviews-item:nth-child(n+4) {
        display: none;
    }
    .services__all.row-reviews-all {
        display:flex;
    }
    .stars-review {
        gap: 2px;
    }
    .row-all-reviews.gap-18 {
        gap: 6px;
    }
    .stars-review > .stars-review-item {
        width: 16px;
        height: 16px;
    }
    .header-block__reviews {
        color: #fff;
    }
}