.tpm-testimonials {
  position: relative;
  overflow: hidden;
  padding: 106px 0 112px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(145deg, #02686c 0%, #038ba5 48%, #034e53 100%);
  color: var(--tpm-white);
  isolation: isolate;
}

.tpm-testimonials::before {
  content: "";
  position: absolute;
  top: -80px;
  right: max(-130px, calc((100% - 1180px) / 2 - 190px));
  z-index: 0;
  width: min(590px, 76vw);
  height: min(520px, 66vw);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.28) 1.6px, transparent 2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 76% 16%, #000 0%, rgba(0, 0, 0, 0.74) 30%, transparent 76%);
  mask-image: radial-gradient(circle at 76% 16%, #000 0%, rgba(0, 0, 0, 0.74) 30%, transparent 76%);
  pointer-events: none;
}

.tpm-testimonials::after {
  content: "”";
  position: absolute;
  right: max(-42px, calc((100% - 1180px) / 2 - 44px));
  bottom: -80px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.1);
  font-family: Georgia, serif;
  font-size: clamp(220px, 28vw, 390px);
  line-height: 0.72;
  pointer-events: none;
}

.tpm-testimonials .tpm-container {
  position: relative;
  z-index: 1;
}

.tpm-testimonials__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 850px;
  margin: 0 auto 44px;
  text-align: center;
}

.tpm-matriz .tpm-testimonials__kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--tpm-font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.tpm-testimonials__heading h2,
.tpm-matriz .tpm-testimonials__title {
  margin: 0;
  color: var(--tpm-white) !important;
  font-family: var(--tpm-font-body);
  font-size: clamp(30px, 4vw, 48px) !important;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08 !important;
  text-align: center;
  text-transform: uppercase;
}

.tpm-testimonials__heading p {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.58;
}

.tpm-testimonials__viewport {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  transition: min-height 260ms ease;
}

.tpm-testimonials__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.985);
  transition: opacity 360ms ease, transform 360ms ease;
}

.tpm-testimonials__slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.tpm-testimonials__card {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: clamp(34px, 5vw, 56px);
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  background: var(--tpm-white);
  color: var(--tpm-ink);
  box-shadow: 0 24px 54px rgba(0, 38, 44, 0.24);
}

.tpm-testimonials__card::before {
  content: "";
  position: absolute;
  inset: auto -70px -110px auto;
  width: 270px;
  height: 250px;
  border-radius: 999px;
  background: rgba(239, 0, 67, 0.09);
  pointer-events: none;
}

.tpm-testimonials__quote-mark {
  position: absolute;
  top: 18px;
  right: auto;
  left: 42px;
  color: rgba(239, 0, 67, 0.18);
  font-family: Georgia, serif;
  font-size: 112px;
  line-height: 1;
  pointer-events: none;
}

.tpm-testimonials__quote {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  padding-top: 18px;
  color: #123236 !important;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 750;
  line-height: 1.55;
}

.tpm-testimonials__author {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.tpm-testimonials__avatar {
  position: relative;
  display: inline-block;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--tpm-pink);
}

.tpm-testimonials__avatar img {
  display: block;
  position: absolute;
  inset: 0;
  width: 42px;
  height: 42px;
  margin: auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
}

.tpm-testimonials__author strong {
  display: block;
  color: var(--tpm-teal-dark);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}

.tpm-testimonials__author span {
  display: block;
  margin-top: 4px;
  color: var(--tpm-pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tpm-testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.tpm-testimonials__nav > button {
  display: inline-grid;
  width: 44px !important;
  height: 44px !important;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--tpm-white) !important;
  cursor: pointer;
  font-size: 14px !important;
  line-height: 1 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  appearance: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.tpm-testimonials__nav > button:hover,
.tpm-testimonials__nav > button:focus-visible {
  border-color: var(--tpm-pink) !important;
  background: var(--tpm-pink) !important;
  color: var(--tpm-white) !important;
  transform: translateY(-2px);
  outline: 0;
}

.tpm-testimonials__nav > button i {
  display: block;
  color: inherit !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.tpm-testimonials__dots {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.tpm-testimonials__dots button {
  width: 34px !important;
  height: 7px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.42) !important;
  box-shadow: none !important;
  cursor: pointer;
  appearance: none;
  transition: width 180ms ease, background 180ms ease;
}

.tpm-testimonials__dots button.is-active {
  width: 52px !important;
  background: var(--tpm-pink) !important;
}

@media (max-width: 1060px) {
  .tpm-testimonials__viewport {
    max-width: 820px;
  }
}

@media (max-width: 860px) {
  .tpm-testimonials {
    padding: 84px 0 92px;
  }

  .tpm-testimonials__heading {
    margin-bottom: 36px;
  }

  .tpm-testimonials__heading h2 {
    font-size: clamp(34px, 7vw, 46px) !important;
  }

  .tpm-testimonials__card {
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  .tpm-testimonials {
    padding: 68px 0 76px;
  }

  .tpm-testimonials::before {
    top: -100px;
    right: -210px;
    width: 460px;
    height: 390px;
  }

  .tpm-testimonials::after {
    right: -12px;
    bottom: -44px;
    font-size: 210px;
  }

  .tpm-matriz .tpm-testimonials__kicker {
    font-size: 13px;
  }

  .tpm-testimonials__heading h2 {
    font-size: 32px !important;
    line-height: 1.08 !important;
  }

  .tpm-testimonials__heading p {
    font-size: 15px;
  }

  .tpm-testimonials__viewport {
    min-height: 0 !important;
  }

  .tpm-testimonials__slide {
    position: static;
    display: none;
    opacity: 1;
    pointer-events: none;
    transform: none;
    transition: none;
  }

  .tpm-testimonials__slide.is-active {
    display: flex;
    pointer-events: auto;
  }

  .tpm-testimonials__card {
    padding: 28px 22px;
    border-width: 2px;
    border-radius: 20px;
  }

  .tpm-testimonials__quote-mark {
    top: 10px;
    right: auto;
    left: 24px;
    font-size: 78px;
  }

  .tpm-testimonials__quote {
    padding-top: 14px;
    font-size: 17px;
    line-height: 1.52;
  }

  .tpm-testimonials__author {
    gap: 12px;
    margin-top: 24px;
  }

  .tpm-testimonials__avatar {
    width: 58px;
    height: 58px;
  }

  .tpm-testimonials__avatar img {
    width: 36px;
    height: 36px;
  }

  .tpm-testimonials__author strong {
    font-size: 16px;
  }

  .tpm-testimonials__nav {
    gap: 10px;
  }

  .tpm-testimonials__nav > button {
    width: 38px !important;
    height: 38px !important;
    touch-action: manipulation;
  }

  .tpm-testimonials__dots button {
    width: 26px !important;
    touch-action: manipulation;
  }

  .tpm-testimonials__dots button.is-active {
    width: 42px !important;
  }
}

