.kztestimonials {
    --kztestimonials-surface: #ddd;
    --kztestimonials-card-border: #ababab;
    --kztestimonials-text: #131313;
    --kztestimonials-muted: #1f1f1f;
    margin: 0;
    padding: 3.5rem 0 4rem;
    color: var(--kztestimonials-text);
    position: relative;
}

.kztestimonials__title {
    margin: 0;
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.kztestimonials__inner {
    width: min(1230px, calc(100% - 2rem));
    margin: 0 auto;
}

.kztestimonials__stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-top: 3.25rem;
}

.kztestimonials__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.kztestimonials__button::after {
    display: none;
}

.kztestimonials__button svg {
    display: block;
    width: 3.2rem;
    height: 3.2rem;
    fill: #000;
}

.kztestimonials__button--prev svg {
    transform: rotate(180deg);
}

.kztestimonials__button:hover,
.kztestimonials__button:focus-visible {
    transform: translateY(-1px);
    opacity: 0.72;
}

.swiper.kztestimonials__slider {
    width: 100%;
    padding: 1rem;
}

.kztestimonials__slide {
    height: auto;
}

.kztestimonials__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 330px;
    padding: 1.25rem 1.1rem 0.95rem;
    border: 1px solid var(--kztestimonials-card-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.22);
    overflow: auto;
}

.kztestimonials__card p {
  color: var(--kztestimonials-text);
}
.kztestimonials__card-header {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    min-height: 42px;
}

.kztestimonials__card-header--no-logo {
    grid-template-columns: minmax(0, 1fr);
}

.kztestimonials__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

.kztestimonials__logo img {
    display: block;
    max-width: 56px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.kztestimonials__name {
    margin: 0;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

.kztestimonials__divider {
    width: 100%;
    height: 1px;
    margin: 1rem 0 1.05rem;
    background: #111;
}

.kztestimonials__quote {
    margin: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.45;
    font-style: italic;
}

.kztestimonials__quote p {
    margin: 0;
}

.kztestimonials__meta {
    margin-top: 1rem;
    text-align: right;
}

.kztestimonials__author {
    color: var(--kztestimonials-muted);
    font-size: 0.95rem;
    line-height: 1.2;
}

.swiper-button-next.kztestimonials__button,
.swiper-button-prev.kztestimonials__button {
  width: 3rem;
  top: 56%;
}

.swiper-button-next.kztestimonials__button {
  right: -1.5rem;
}
.swiper-button-prev.kztestimonials__button {
  left: -3rem;
}

@media (max-width: 1199px) {
    .kztestimonials__card {
    }
}

@media (max-width: 991px) {
    .kztestimonials__stage {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .kztestimonials__slider {
        order: 1;
    }

    .kztestimonials__button {
        width: 3.75rem;
        height: 3.75rem;
    }

    .kztestimonials__button--prev,
    .kztestimonials__button--next {
        order: 2;
    }

    .kztestimonials__button--prev {
        justify-self: start;
    }

    .kztestimonials__button--next {
        justify-self: end;
        margin-top: -5.25rem;
    }
}

@media (max-width: 767px) {
    .kztestimonials {
        margin: 2rem 0;
        padding: 2.5rem 0 3rem;
    }

    .kztestimonials__card {
        padding: 1.1rem 1rem 0.9rem;
    }

    .kztestimonials__card-header {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .kztestimonials__name {
        font-size: 1rem;
    }

    .kztestimonials__button svg {
        width: 4.6rem;
        height: 4.6rem;
        fill: #000;
    }

    .kztestimonials__button--next {
        margin-top: -4.75rem;
    }
  .swiper-button-prev.kztestimonials__button {
  left: -1.5rem;
}
}
