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

.hansu-reviews {
    --hansu-area-bg: #ffffff;
    --hansu-title: #0f172a;
    --hansu-text: #475569;
    --hansu-card-bg: #ffffff;
    --hansu-card-border: #e2e8f0;
    --hansu-accent: #b91c1c;
    --hansu-accent-light: rgba(185, 28, 28, 0.08);
    --hansu-slides-desktop: 3;
    --hansu-slides-tablet: 2;
    --hansu-slides-mobile: 1;
    width: 100%;
    background: var(--hansu-area-bg);
    color: var(--hansu-title);
    position: relative;
    isolation: isolate;
}

.hansu-reviews__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 64px 28px;
}

/* ── Header ────────────────────────────────────────────── */
.hansu-reviews__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.hansu-reviews__title {
    margin: 0 0 14px;
    color: var(--hansu-title);
    font-size: clamp(26px, 3.5vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hansu-reviews__subtitle {
    margin: 0;
    color: var(--hansu-text);
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.75;
}

/* ── Carousel ──────────────────────────────────────────── */
.hansu-reviews__carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.hansu-reviews__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 16px 0 24px;
    mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.hansu-reviews__viewport::-webkit-scrollbar { display: none; }

.hansu-reviews__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    align-items: stretch;
}

/* ── Nav buttons ───────────────────────────────────────── */
.hansu-reviews__nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid var(--hansu-card-border);
    background: #fff;
    color: var(--hansu-title);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    transition: all .22s ease;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.hansu-reviews__nav:hover {
    transform: translateY(-2px) scale(1.06);
    border-color: var(--hansu-accent);
    color: #fff;
    background: var(--hansu-accent);
    box-shadow: 0 8px 24px rgba(185, 28, 28, 0.22);
}

/* ── Review Card ───────────────────────────────────────── */
.hansu-review-card {
    flex: 0 0 auto;
    min-width: 0;
    width: calc((var(--hansu-viewport-width, 100%) - (var(--hansu-slides-desktop) - 1) * 22px) / var(--hansu-slides-desktop));

    /* Card base */
    background: var(--hansu-card-bg);
    border: 1px solid var(--hansu-card-border);
    border-radius: 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Shadow */
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);

    transition: transform .28s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow .28s ease;
}

.hansu-review-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.04),
        0 20px 48px rgba(15, 23, 42, 0.12);
}

/* Top accent bar */
.hansu-review-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--hansu-accent) 0%, #ef4444 100%);
    border-radius: 0;
    flex-shrink: 0;
}

/* Card body */
.hansu-review-card__body {
    padding: 26px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    position: relative;
}

/* Decorative large quote in background */
.hansu-review-card__body::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 96px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--hansu-accent);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
}

/* Stars */
.hansu-review-card__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.hansu-review-card__star {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1;
    transition: color .15s;
}

.hansu-review-card__star.is-active {
    color: #f59e0b;
}

/* Headline */
.hansu-review-card__headline {
    color: var(--hansu-title);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Body text */
.hansu-review-card__content,
.hansu-review-card__content p {
    margin: 0;
    color: var(--hansu-text);
    font-size: clamp(13px, 1.15vw, 15px);
    line-height: 1.8;
    flex: 1;
}

/* Footer */
.hansu-review-card__footer {
    margin-top: auto;
    padding: 16px 28px 20px;
    border-top: 1px solid var(--hansu-card-border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
}

/* Small colored dot */
.hansu-review-card__footer::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hansu-accent);
    flex-shrink: 0;
    opacity: 0.7;
}

.hansu-review-card__name {
    margin: 0;
    color: var(--hansu-title);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hansu-review-card__city {
    color: var(--hansu-text);
    font-size: 12px;
    line-height: 1.3;
}

.hansu-review-card.is-empty .hansu-review-card__body {
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 200px;
}

/* ── Quote icon (hidden – we use CSS pseudo instead) ───── */
.hansu-review-card__quote-icon { display: none; }

/* ── Footer section & CTA ──────────────────────────────── */
.hansu-reviews__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
}

.hansu-reviews__footer-note {
    margin: 0;
    color: var(--hansu-text);
    font-size: 13px;
    line-height: 1.6;
}

.hansu-reviews__toggle,
.hansu-review-form__submit {
    appearance: none;
    border: 0;
    background: linear-gradient(135deg, var(--hansu-accent) 0%, #dc2626 100%);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
    box-shadow: 0 4px 16px rgba(185, 28, 28, 0.24);
}

.hansu-reviews__toggle:hover,
.hansu-review-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(185, 28, 28, 0.34);
}

/* ── Review Form ───────────────────────────────────────── */
.hansu-review-form {
    margin-top: 32px;
}

.hansu-review-form__inner {
    background: #fff;
    border: 1px solid var(--hansu-card-border);
    border-radius: 18px;
    padding: 36px;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);
}

.hansu-review-form__title {
    margin: 0 0 8px;
    color: var(--hansu-title);
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hansu-review-form__desc {
    margin: 0 0 26px;
    color: var(--hansu-text);
    font-size: 14px;
    line-height: 1.7;
}

.hansu-review-form__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hansu-review-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hansu-review-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hansu-review-form__field label {
    color: var(--hansu-title);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hansu-review-form__field input,
.hansu-review-form__field select,
.hansu-review-form__field textarea {
    width: 100%;
    min-height: 48px;
    border: 1.5px solid var(--hansu-card-border);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--hansu-title);
    padding: 12px 16px;
    outline: none;
    box-shadow: none;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.hansu-review-form__field textarea {
    min-height: 130px;
    resize: vertical;
}

.hansu-review-form__field input:focus,
.hansu-review-form__field select:focus,
.hansu-review-form__field textarea:focus {
    border-color: var(--hansu-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
}

.hansu-review-form__message {
    min-height: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--hansu-text);
}

.hansu-review-form__message.is-success { color: #15803d; }
.hansu-review-form__message.is-error   { color: var(--hansu-accent); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hansu-review-card {
        width: calc((var(--hansu-viewport-width, 100%) - (var(--hansu-slides-tablet) - 1) * 22px) / var(--hansu-slides-tablet));
    }
}

@media (max-width: 767px) {
    .hansu-reviews__inner   { padding: 44px 16px; }
    .hansu-reviews__header  { margin-bottom: 30px; }

    .hansu-reviews__carousel {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hansu-reviews__nav { display: none; }

    .hansu-reviews__track { gap: 14px; }

    .hansu-review-card {
        width: calc(var(--hansu-viewport-width, 100%) / var(--hansu-slides-mobile));
        border-radius: 14px;
    }

    .hansu-review-card__body  { padding: 22px 20px 18px; }
    .hansu-review-card__footer { padding: 14px 20px 18px; }

    .hansu-review-form__inner  { padding: 26px 20px; border-radius: 14px; }
    .hansu-review-form__grid   { grid-template-columns: 1fr; gap: 14px; }

    .hansu-reviews__footer { align-items: stretch; }

    .hansu-reviews__toggle,
    .hansu-review-form__submit { width: 100%; text-align: center; }
}
