.wrap {
    max-width: 1100px;
    margin: 60px auto 120px;
    padding: 0 18px;
    position: relative;
}

/* STACK */
.testimonial-stack {
    position: relative;
    height: 420px; /* фиксирана височина */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

#slides-our-clients{
  position: relative;
  height: 100%;
}

.card {
    position: relative;
    background: var(--testimonial-card-color);
    border-radius: var(--testimonial-radius);
    box-shadow: var(--testimonial-shadow);
    padding: 56px 64px 0;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-items: start;
    font-family: var(--main-font);
    color: var(--testimonial-text-color);
    font-size: clamp(14px, 2.6vw, 15px);
}

/* stars */
.stars {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 18px;
}
.stars img {
    width: 22px;
    height: 22px;
    display: block;
}

/* Quote text */
.quote {
    font-size: clamp(16px, 2.6vw, 18px);
    line-height: 1.35;
    text-align: center;
    letter-spacing: 0.1px;
}

/* author text */
.author {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 26px 0 34px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.author-name {
    align-items: center;
    justify-content: center;
    text-align: center;
}
.author small {
    display: block;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--testimonial-role-color);
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* navigation by Y */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.15);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.2s;
}
.nav-btn:hover {
    transform: translateY(-50%) scale(1.04);
}
.nav-btn:active {
    transform: translateY(-50%) scale(0.98);
}
.nav-btn[disabled] {
    opacity: 0.4;
    pointer-events: none;
}
.nav-left {
    left: -14px;
}
.nav-right {
    right: -14px;
}
.nav-btn svg {
    width: 22px;
    height: 22px;
    fill: #99a3b5;
}

/* slides-base */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px) scale(0.98);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
    z-index: 1;
}
/* active slide TOP */
.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    z-index: 3;
}
/* slide animation up */
.slide.exit-up {
    transform: translateY(-40px) scale(0.98);
    opacity: 0;
}
/* enter animation */
.slide.will-enter {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
}

/* show second card above */
.slide.preview {
    opacity: 0.78;
    pointer-events: none;
    z-index: 2;
    left: 4%;
    right: 4%;
    transform: translateY(29px) scale(0.992);
    filter: saturate(0.9);
    border-radius: var(--radius);
}

/* simple „holo“ effect */
.edge-fade {
    position: absolute;
    inset: -60px -10px auto -10px;
    height: 140px;
    background: radial-gradient(60% 100% at 10% 10%, rgba(90, 108, 255, 0.08), transparent 100%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 4;
}

/* ----------- MOBILE FIXES (ultra-narrow) ----------- */
@media (max-width: 480px) {

    .card {
        padding: 28px 16px 0; /* по-тесни хоризонтални отстъпи */
    }

    .stars {
        gap: 4px;
        margin-bottom: 12px;
    }
    .stars img {
        width: 18px;
        height: 18px;
    }

    .quote {
        font-size: clamp(14px, 4.6vw, 16px);
        line-height: 1.35;
        text-align: center;
        margin-inline: auto;
        max-inline-size: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
        text-wrap: balance;
    }
    
    .author {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        gap: 10px;
        letter-spacing: 0.06em;
    }

    .author > div {
        max-inline-size: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    
    .avatar {
        width: 56px;
        height: 56px;
    }

    /* бутоните остават центрирани по Y, само ограничаваме колко да навлизат */
    .nav-left {
        left: max(-14px, -3vw);
    }
    .nav-right {
        right: max(-14px, -3vw);
    }
}

/* още по-тесни телефони */
@media (max-width: 340px) {
    .card {
        padding: 24px 12px 0;
    }
    .quote {
        font-size: clamp(13px, 4.8vw, 15px);
    }
    .avatar {
        width: 48px;
        height: 48px;
    }
}
