@media (max-width: 767px) {
    .header__icons * {
        margin: 0 !important;
        padding: 0 !important;
    }

    .header__icons {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 5px !important;
    }
}

@media (max-width: 767px) {
    .promotion:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, var(--blue) 43.11%, rgba(9, 65, 132, 0) 64.73%);
        pointer-events: none;
        z-index: 1;
        display: none;
    }
}

@media (max-width: 767px) {

}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header__icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*.header__link-whatup,
.header__icon-phone {
display: inline-flex;
align-items: center;
text-decoration: none;
transition: opacity 0.3s ease;
}

.header__link-whatup:hover,
.header__icon-phone:hover {
opacity: 0.8;
}*/

.header__phone-number {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-left: 2px;
}

.header__phone-number:hover {
    color: #154792;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header__contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .header__phone-number {
        margin-left: 0;
        margin-top: 5px;
    }
}

.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}


.reviews-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 3px solid white;
}


.review-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

.reviewer-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.review-date {
    font-size: 12px;
    color: #6b7280;
}

.review-text {
    flex-grow: 1;
    line-height: 1.6;
    color: #374151;
    font-size: 14px;
    margin-bottom: 16px;
    max-height: 4.8em;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.review-text.expanded {
    max-height: 140px !important;
}

.toggle-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.toggle-btn:hover {
    color: #2563eb;
}

/*
.swiper-button-next,
.swiper-button-prev {
background: #3b82f6;
width: 44px;
height: 44px;
border-radius: 50%;
margin-top: -22px;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
background: #2563eb;
transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
font-size: 16px;
color: white;
font-weight: bold;
}*/

/*
.swiper-button-next {
right: -22px;
}

.swiper-button-prev {
left: -22px;
}
*/

/* Mobile styles */
@media (max-width: 768px) {


    .section-title {
        font-size: 20px;
        padding: 10px 30px;
    }

    .reviews-counter {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .review-card {
        padding: 20px;
        margin: 0 5px;
    }

    .reviewer-avatar {
        width: 45px;
        height: 45px;
    }

    .reviewer-details h4 {
        font-size: 15px;
    }

    .review-text {
        font-size: 13px;
    }

    /*.swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper {
        padding: 10px 0;
    }*/
}

@media (max-width: 480px) {
    .section-title {
        font-size: 18px;
        padding: 8px 25px;
    }

    .review-card {
        padding: 16px;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }
}

/* --- Контейнер для самих карточек --- */
.cards-wrapper {
    display: flex;
    gap: 30px;
    flex-grow: 1;
}

/* --- Стили для одной карточки отзыва --- */
.review-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 25px;
    padding-top: 55px;
    flex: 1;
    min-width: 280px;
    position: relative;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.review-card__avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    object-fit: cover;
    position: absolute;
    top: -35px;
    left: 15px; /* <-- ИЗМЕНЕНО: было 25px, стало 15px для смещения к углу */
}

.review-card__name {
    font-size: 20px;
    font-weight: 600;
    color: #4f3f97;
    margin: 0 0 4px 0;
}

.review-card__date {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px 0;
}

.review-card__text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.review-card__text a {
    color: #4f3f97;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.review-card__text a:hover {
    color: #3b2f71;
}

.review-card__more-link {
    display: inline-block;
    margin-top: 25px;
    font-size: 16px;
    font-weight: 500;
    color: #4a5a95;
    text-decoration: none;
    border-bottom: 1px solid #4a5a95;
    padding-bottom: 2px;
}


/*
@media (max-width: 768px) {
    .promotion_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    z-index: 0;
    object-fit: cover;
  }
}
*/
