.kaqun-reviews,
.kaqun-reviews * {
    box-sizing: border-box;
}

.kaqun-reviews {
    width: 100%;
    max-width: 100%;
    padding: clamp(22px, 2.6vw, 42px) 0;
    overflow: hidden;
    background: transparent;
    font-family: inherit;
}

.kaqun-reviews__inner {
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 0 clamp(12px, 2vw, 22px);
}

.kaqun-reviews__title {
    margin: 0 auto clamp(18px, 2vw, 26px);
    text-align: center;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #2b2b2b;
    font-size: clamp(30px, 3.1vw, 48px);
}

.kaqun-reviews__title strong {
    font-weight: 800;
}

.kaqun-reviews__carousel {
    position: relative;
    width: 100%;
}

.kaqun-reviews__viewport {
    overflow: hidden;
    width: 100%;
}

.kaqun-reviews__track {
    --kaqun-reviews-gap: 18px;
    --kaqun-reviews-per-view: 1;
    display: flex;
    align-items: stretch;
    gap: var(--kaqun-reviews-gap);
    transform: translate3d(0,0,0);
    transition: transform 380ms ease;
    will-change: transform;
}

.kaqun-review-card {
    flex: 0 0 calc((100% - (var(--kaqun-reviews-gap) * (var(--kaqun-reviews-per-view) - 1))) / var(--kaqun-reviews-per-view));
    min-width: 0;
    background: #f4f4f4;
    border-radius: 22px;
    padding: clamp(14px, 1.45vw, 20px);
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
}

.kaqun-review-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(12px, 1.15vw, 16px);
}

.kaqun-review-card__avatar {
    width: clamp(32px, 2.1vw, 42px);
    height: clamp(32px, 2.1vw, 42px);
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #dfe7ec;
}

.kaqun-review-card__avatar--placeholder {
    background: linear-gradient(135deg, #dfe7ec, #eef4f6);
}

.kaqun-review-card__name {
    margin: 0;
    font-size: clamp(14px, 0.92vw, 16px);
    line-height: 1.24;
    font-weight: 800;
    color: #3c3c3c;
}

.kaqun-review-card__media {
    width: min(100%, 460px);
    aspect-ratio: 16 / 10;
    max-height: 290px;
    margin: 0 auto clamp(10px, 1.1vw, 14px);
    background: #e7edf0;
    overflow: hidden;
}

.kaqun-review-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.kaqun-review-card__media--placeholder {
    min-height: 180px;
    background: linear-gradient(135deg, #e7edf0, #f7f7f7);
}

.kaqun-review-card__stars {
    margin: 0 0 10px;
    color: #f6b800;
    font-size: clamp(15px, 1.1vw, 19px);
    line-height: 1;
    letter-spacing: 0.04em;
}

.kaqun-review-card__text {
    margin: 0 0 clamp(12px, 1.2vw, 18px);
    color: #333333;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.36;
    font-weight: 400;
}

.kaqun-review-card__button {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 18px;
    border-radius: 7px;
    background: #ffd900;
    color: #000000;
    font-weight: 900;
    font-size: clamp(12px, 0.82vw, 14px);
    line-height: 1;
    text-decoration: none !important;
    transition: transform 180ms ease, filter 180ms ease;
}

.kaqun-review-card__button:hover,
.kaqun-review-card__button:focus {
    transform: translateY(-1px);
    filter: brightness(0.98);
    color: #000000;
}

.kaqun-reviews__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #303030;
    box-shadow: 0 6px 22px rgba(0,0,0,0.14);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 4px;
}

.kaqun-reviews__arrow--prev {
    left: -16px;
}

.kaqun-reviews__arrow--next {
    right: -16px;
}

.kaqun-reviews__arrow[disabled] {
    opacity: .35;
    cursor: default;
}

.kaqun-reviews__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
}

.kaqun-reviews__dot {
    width: 8px;
    height: 8px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: #b6cbd7;
    cursor: pointer;
    transition: width 180ms ease, background-color 180ms ease;
}

.kaqun-reviews__dot.is-active {
    width: 22px;
    background: #004563;
}

@media (min-width: 1921px) {
    .kaqun-reviews__inner {
        width: min(100%, 820px);
    }
}

@media (min-width: 1025px) {
    .kaqun-reviews[data-desktop="1"] .kaqun-reviews__inner,
    .kaqun-reviews[data-wide="1"] .kaqun-reviews__inner {
        width: min(100%, 640px);
    }
}

@media (max-width: 1024px) {
    .kaqun-reviews__inner {
        width: min(100%, 560px);
        padding-left: 16px;
        padding-right: 16px;
    }
    .kaqun-reviews__arrow--prev {
        left: 2px;
    }
    .kaqun-reviews__arrow--next {
        right: 2px;
    }
    .kaqun-review-card__media {
        width: min(100%, 420px);
        max-height: 260px;
    }
}

@media (max-width: 767px) {
    .kaqun-reviews {
        padding-top: 28px;
        padding-bottom: 34px;
    }
    .kaqun-reviews__inner {
        width: min(100%, 390px);
        padding-left: 14px;
        padding-right: 14px;
    }
    .kaqun-reviews__title {
        font-size: clamp(28px, 8vw, 38px);
        letter-spacing: -0.045em;
        margin-bottom: 18px;
    }
    .kaqun-review-card {
        border-radius: 20px;
        padding: 16px 14px 18px;
    }
    .kaqun-review-card__head {
        gap: 10px;
        margin-bottom: 14px;
    }
    .kaqun-review-card__name {
        font-size: 14px;
    }
    .kaqun-review-card__media {
        width: 100%;
        aspect-ratio: 4 / 3;
        max-height: 230px;
    }
    .kaqun-review-card__text {
        font-size: 15px;
    }
    .kaqun-reviews__arrow {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
}
