.a .testimonials-section {
    position: relative;
    width: 100%;
}

/* ── Heading banner ─────────────────────────────────────── */

.a .group-52 {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 202px;
    overflow: hidden;
    padding: 20px clamp(24px, 9.8vw, 189px);
    position: relative;
    width: 100%;
    margin-top: 170px;
}

.a .rectangle-25-1 {
    background: linear-gradient(90deg, rgba(0, 67, 148, 1) 0%, rgba(1, 114, 253, 1) 100%);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: rotate(180deg);
    width: 100%;
}

.a .proven-results-across-every-genre {
    align-items: center;
    color: var(--cultured-pearl);
    display: flex;
    font-family: var(--font-family-montserrat);
    font-size: clamp(40px, 4vw, 70px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.4;
    position: relative;
    white-space: nowrap;
    z-index: 1;
}

.a .real-developers-rea {
    align-items: center;
    display: flex;
    font-size: clamp(20px, 2.5vw, 40px);
    letter-spacing: -1.50px;
    line-height: 1.5;
    position: relative;
    white-space: nowrap;
    z-index: 1;
}

/* ── Slides container ───────────────────────────────────── */

/* Fixed 1204px width so internal abs-positioned children render correctly;
   scaled at narrower viewports via zoom. */
.a .group-51 {
    height: 814px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    width: 1204px;
}

/* top/bottom gradient fades */
.a .group-51::before,
.a .group-51::after {
    content: '';
    left: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: 5;
}

.a .group-51::before {
    background: linear-gradient(to bottom, rgba(20, 20, 20, 1) 0%, rgba(20, 20, 20, 0.6) 60%, rgba(20, 20, 20, 0) 100%);
    height: 180px;
    top: 0;
}

.a .group-51::after {
    background: linear-gradient(to top, rgba(20, 20, 20, 1) 0%, rgba(20, 20, 20, 0.6) 60%, rgba(20, 20, 20, 0) 100%);
    bottom: 0;
    height: 180px;
}

.a .vector-7 {
    height: auto;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

.a .mask-group-2 {
    height: 138px;
    left: 0;
    position: absolute;
    top: 0;
    width: 1149px;
}

.a .mask-group-3 {
    height: 138px;
    left: 0;
    position: absolute;
    top: 676px;
    width: 1149px;
}

.a .slide-dot {
    background-color: #414141;
    border-radius: 11px;
    cursor: pointer;
    height: 22px;
    left: 1179px;
    position: absolute;
    transition: background-color 0.2s, width 0.2s, height 0.2s, left 0.2s, border-radius 0.2s;
    width: 22px;
    z-index: 10;
}

.a .slide-dot.is-active {
    background-color: var(--blue-ribbon);
    border-radius: 14px;
    height: 28px;
    left: 1176px;
    width: 28px;
}

/* top = 153px (card_top) − 508px (card_height) = −355px
   so cloned-last slide peeking 153px into the visible area */
.a .slides-track {
    display: flex;
    flex-direction: column;
    left: 59px;
    position: absolute;
    top: -355px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    width: 1059px;
}

.a .frame-52 {
    align-items: center;
    background: linear-gradient(180deg, rgba(44, 44, 44, 1) 55%, rgba(38, 55, 77, 1) 100%);
    border: 4px solid;
    border-color: var(--ship-gray);
    border-radius: 57px;
    box-shadow: 0px 4px 5px 1px #00000066;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 51px;
    height: 508px;
    justify-content: center;
    padding: 6px 100px 30px;
    position: relative;
    width: 1059px;
    /* inactive by default — JS adds .is-active to the current slide */
    opacity: 0;
    transform: scaleX(0.93);
    transform-origin: center center;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.a .frame-52.is-active {
    opacity: 1;
    transform: scaleX(1);
}

.a .frame {
    align-items: flex-start;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 20px;
    padding: 0px;
    position: relative;
}

.a .number {
    align-items: center;
    color: var(--blue-ribbon);
    display: flex;
    font-family: var(--font-family-raleway);
    font-size: 120px;
    font-weight: 600;
    height: 49px;
    letter-spacing: -2.29px;
    line-height: 54.5px;
    margin-top: -1.00px;
    position: relative;
    white-space: nowrap;
    width: 50px;
}

.a .frame-50 {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0px 620.13px 0px 0px;
    position: relative;
    width: 771.13px;
}

.a .surname {
    align-items: center;
    align-self: stretch;
    color: var(--blue-ribbon-2);
    display: flex;
    font-family: var(--font-family-raleway);
    font-size: var(--font-size-xxl);
    font-weight: 600;
    height: 37.34px;
    letter-spacing: -1.68px;
    line-height: 40px;
    margin-top: -1.00px;
    position: relative;
    white-space: nowrap;
}

.a .the-client-had-alrea {
    color: var(--protectioncomuawhite);
    font-family: var(--font-family-raleway);
    font-size: var(--font-size-m);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 29px;
    margin-right: -607.25px;
    position: relative;
    width: 758.25px;
}

.a .frame-49 {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 23px;
    position: relative;
    width: 641px;
}

.a .mask-group-1 {
    aspect-ratio: 1;
    height: 94.94px;
    margin-bottom: -4.00px;
    margin-left: -3.00px;
    margin-top: -2.00px;
    position: relative;
    width: 94.94px;
}

.a .the-connection-went {
    color: var(--protectioncomuawhite);
    font-family: var(--font-family-raleway);
    font-size: var(--font-size-m);
    font-style: italic;
    font-weight: 400;
    height: 79px;
    letter-spacing: 0;
    line-height: 29px;
    margin-right: -63.94px;
    position: relative;
    width: 593px;
}

/* 2K–4K */
@media (min-width: 2200px) {
  .a .group-52 { zoom: 1.11; width: calc(100vw / 1.11); margin-left: auto; margin-right: auto; }
  .a .group-51 { zoom: 1.11; }
}
@media (min-width: 2800px) {
  .a .group-52 { zoom: 1.41; width: calc(100vw / 1.41); }
  .a .group-51 { zoom: 1.41; }
}
@media (min-width: 3840px) {
  .a .group-52 { zoom: 1.94; width: calc(100vw / 1.94); }
  .a .group-51 { zoom: 1.94; }
}

/* zoom-out 1350px → 1060px (fixed-width container) */
@media (max-width: 1350px) { .a .group-51 { zoom: 0.95; } }
@media (max-width: 1250px) { .a .group-51 { zoom: 0.90; } }
@media (max-width: 1150px) { .a .group-51 { zoom: 0.85; } }
@media (max-width: 1060px) { .a .group-51 { zoom: 0.80; } }

/* ≤ 1024px */
@media (max-width: 1024px) {
    .a .group-52 {
        gap: 4px;
        margin-top: 60px;
        min-height: 114px;
        padding: 16px 53px;
    }

    .a .proven-results-across-every-genre {
        font-size: 35px;
        line-height: 1.1;
    }

    .a .real-developers-rea {
        font-size: 17px;
        letter-spacing: 0;
        line-height: 1.4;
        white-space: normal;
    }

    /* clip-path allows 200px right overflow so dots sit outside the card */
    .a .group-51 {
        transform: none;
        zoom: 1;
        margin: 0 auto;
        width: min(780px, calc(100% - 40px));
        height: 560px;
        overflow: visible;
        clip-path: inset(0 -200px 0 0);
    }

    .a .group-51::before,
    .a .group-51::after {
        height: 90px;
    }

    .a .mask-group-2 {
        height: 90px;
        left: 0;
        width: 100%;
    }

    .a .mask-group-3 {
        bottom: 0;
        height: 90px;
        left: 0;
        top: auto;
        width: 100%;
    }

    .a .slides-track {
        left: 0;
        top: -290px;
        width: 100%;
    }

    .a .frame-52 {
        border-radius: 36px;
        gap: 20px;
        height: 380px;
        overflow: hidden;
        padding: 20px 32px 24px;
        width: 100%;
    }

    .a .number {
        font-size: 72px;
        width: 40px;
    }

    .a .frame {
        display: flex;
        width: 100%;
    }

    .a .frame-50 {
        flex: 1;
        min-width: 0;
        padding-right: 0;
        width: auto;
    }

    .a .surname {
        font-size: var(--font-size-s);
        height: auto;
        white-space: normal;
    }

    .a .the-client-had-alrea {
        font-size: 14px;
        line-height: 20px;
        margin-right: 0;
        width: 100%;
    }

    .a .frame-49 {
        width: 100%;
    }

    .a .mask-group-1 {
        flex-shrink: 0;
        height: 60px;
        margin: 0;
        width: 60px;
    }

    .a .the-connection-went {
        font-size: 14px;
        height: auto;
        line-height: 20px;
        margin-right: 0;
        width: 100%;
    }

    /* dots: 14px beyond group-51's right edge, centred in margin */
    .a .slide-dot {
        left: calc(100% + (50vw - 50%) / 2 - 10px);
        right: auto;
    }

    .a .slide-dot.is-active {
        left: calc(100% + (50vw - 50%) / 2 - 10px);
        right: auto;
    }

    .a .slide-dot[data-slide="0"] { top: 230px !important; width: 20px; height: 20px; }
    .a .slide-dot[data-slide="1"] { top: 272px !important; width: 20px; height: 20px; }
    .a .slide-dot[data-slide="2"] { top: 312px !important; width: 20px; height: 20px; }
}

/* ≤ 890px — narrow group-51 for comfortable dot margin */
@media (max-width: 890px) {
    .a .group-51 {
        width: min(780px, calc(100% - 90px));
    }
}

/* ≤ 640px */
@media (max-width: 640px) {
    .a .group-52 {
        margin-top: 40px;
        min-height: 89px;
        padding: 16px 24px;
    }

    .a .proven-results-across-every-genre {
        font-size: var(--font-size-m);
        line-height: 1.2;
        white-space: normal;
    }

    .a .real-developers-rea {
        font-size: 12px;
        line-height: 1.4;
    }

    .a .group-51 {
        height: 480px;
        width: calc(100% - 90px);
    }

    .a .group-51::before,
    .a .group-51::after {
        height: 80px;
    }

    /* track top = -(card_h 320 - peek 80) */
    .a .slides-track {
        top: -240px;
    }

    .a .frame-52 {
        border-radius: 24px;
        gap: 14px;
        height: 320px;
        padding: 16px 20px 18px;
    }

    .a .number {
        font-size: 52px;
    }

    .a .surname {
        font-size: var(--font-size-xs);
    }

    .a .the-client-had-alrea,
    .a .the-connection-went {
        font-size: 12px;
        line-height: 17px;
    }

    .a .mask-group-1 {
        height: 44px;
        width: 44px;
    }

    .a .mask-group-2 {
        height: 70px;
    }

    .a .mask-group-3 {
        height: 70px;
    }

    .a .slide-dot[data-slide="0"] { top: 190px !important; }
    .a .slide-dot[data-slide="1"] { top: 232px !important; }
    .a .slide-dot[data-slide="2"] { top: 272px !important; }
}

/* ≤ 610px — taller card for readability
   card_h=460, peek=80, group-51=620, track top=−380, dots: 268/310/352 */
@media (max-width: 610px) {
    .a .group-51 {
        height: 620px;
    }

    .a .slides-track {
        top: -380px;
    }

    .a .frame-52 {
        height: 460px;
        gap: 16px;
        padding: 20px 24px 20px;
    }

    .a .surname {
        font-size: 15px;
    }

    .a .the-client-had-alrea,
    .a .the-connection-went {
        font-size: 14px;
        line-height: 21px;
    }

    .a .mask-group-1 {
        height: 50px;
        width: 50px;
    }

    .a .slide-dot[data-slide="0"] { top: 268px !important; }
    .a .slide-dot[data-slide="1"] { top: 310px !important; }
    .a .slide-dot[data-slide="2"] { top: 352px !important; }
}
