.references {
    padding: 3rem 0;
    overflow: hidden;
}

.references__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.references__intro {
    flex: 0 0 27rem;
    background: #182b77;
    border-radius: 12px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.references__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 auto;
}

.references__google {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.references__google-logo {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    grid-column: 1;
    grid-row: 1 / 3;
}

.references__google-rating {
    display: flex;
    gap: 3px;
    color: #ffbf00;
    font-size: 18px;
}

.references__google-count {
    font-size: 14px;
    opacity: 0.8;
    width: 100%;
    margin-top: 2px;
}

.references__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.references__pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-right: auto;
}

.references__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: background-color 0.2s;
}

.references__pagination .swiper-pagination-bullet-active {
    background: #fff;
}

.references__nav-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: background-color 0.2s, border-color 0.2s;
}

.references__nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.references__swiper {
    flex: 1;
    min-width: 0;
    overflow: visible;
    clip-path: inset(-20px -100vw -20px -20px);
    padding: 20px 0 20px 0px;
    margin: -20px 0 -20px 0px;
}

.references__swiper .swiper-slide {
    width: calc((var(--container-max-width) - 300px - 48px) / 2 - 60px);
    height: auto;
}

.references__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.references__card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.references__card-quote {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 20px;
    flex: 1;
}

.references__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.references__card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.references__card-avatar,
img.references__card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.references__card-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #999;
    font-size: 16px;
}

.references__card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.references__card-rating {
    display: flex;
    gap: 2px;
    color: #ffbf00;
    font-size: 13px;
}

.references__card-star--empty {
    color: #ddd;
}

@media (max-width: 991px) {
    .references__container {
        flex-direction: column;
    }

    .references__swiper {
        overflow: hidden;
    }

    .references__intro {
        flex: none;
        padding: 32px 24px;
    }

    .references__swiper .swiper-slide {
        width: 300px;
    }

    .references__nav {
        margin-top: 24px;
    }
}

@media (max-width: 575px) {

    .references__swiper .swiper-slide {
        width: 260px;
    }

    .references__card {
        padding: 24px 20px;
    }
}
