.tst {
  --tst-from: #ffffff;
  --tst-bg: #ffffff;
  --tst-text: #5a5b5e;
  --tst-muted: #75767a;
  --tst-card: linear-gradient(132.65deg, #ffffff 0%, #f8f8f8 100%);
  --tst-card-line: rgb(0 0 0 / .05);
  --tst-card-shadow: 0 24px 60px -24px rgb(0 0 0 / .18);
  --tst-avatar: #f0f0f2;
  --cw: 380px;
  --gap: 56px;
  position: relative;
  overflow: clip;
  color: var(--tst-text);
  background: linear-gradient(to bottom, var(--tst-from), var(--tst-bg) 140px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tst {
    --tst-from: #0e111b;
    --tst-bg: #0e111b;
    --tst-text: #ffffff;
    --tst-muted: #b6b6b6;
    --tst-card: linear-gradient(132.65deg, rgb(255 255 255 / .05) 0%, rgb(255 255 255 / .02) 100%);
    --tst-card-line: rgb(255 255 255 / .09);
    --tst-card-shadow: 0 24px 60px -24px rgb(0 0 0 / .6);
    --tst-avatar: rgb(255 255 255 / .08);
  }
}
:root[data-theme="dark"] .tst {
  --tst-from: #0e111b;
  --tst-bg: #0e111b;
  --tst-text: #ffffff;
  --tst-muted: #b6b6b6;
  --tst-card: linear-gradient(132.65deg, rgb(255 255 255 / .05) 0%, rgb(255 255 255 / .02) 100%);
  --tst-card-line: rgb(255 255 255 / .09);
  --tst-card-shadow: 0 24px 60px -24px rgb(0 0 0 / .6);
  --tst-avatar: rgb(255 255 255 / .08);
}

.tst__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1728px;
  margin: 0 auto;
  padding: 0 0 120px;
}

.tst__accent {
  display: block;
  width: 2px;
  height: clamp(90px, 8.8vw, 152px);
  background: var(--c-red);
  transform-origin: 50% 0;
}
.tst__label {
  margin: 19px 0 0;
  color: var(--tst-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tst__title {
  margin: 5px 0 0;
  padding: 0 30px;
  color: var(--tst-text);
  font-size: clamp(34px, 3.24vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.tst__title .accent { color: var(--c-red); }

.tst-logos {
  width: 100%;
  margin-top: clamp(32px, 2.84vw, 49px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.tst-logos__track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tst-logo { flex: none; display: flex; align-items: center; height: 34px; padding: 0 clamp(36px, 3.8vw, 66px); }
.tst-logo img { display: block; height: auto; max-height: 34px; width: auto; }

.tst-logos.is-loop .tst-logos__track { animation: tst-logos var(--loop-t, 40s) linear infinite; }
.tst-logos.is-loop:hover .tst-logos__track { animation-play-state: paused; }
.tst.is-out .tst-logos__track { animation-play-state: paused; }
@keyframes tst-logos { to { transform: translateX(-50%); } }
.tst-logos:not(.is-loop) .tst-logos__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 20px; }

.tst-car {
  position: relative;
  width: 100%;
  margin-top: clamp(36px, 3vw, 52px);
}
.tst-car__view { position: relative; touch-action: pan-y; }
.tst-car__track {
  position: relative;
  height: 380px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tst-card {
  --o: 0;
  position: absolute;
  top: 0;
  left: calc(50% - var(--cw) / 2);
  width: var(--cw);
  height: 350px;
  transform: translateX(calc(var(--o) * (var(--cw) + var(--gap)))) scale(.84);
  opacity: .35;
  transition: transform .8s cubic-bezier(.2, .7, .25, 1), opacity .8s ease, box-shadow .8s ease;
  border-radius: 16px;
  cursor: pointer;
}
.tst-card.is-active { transform: translateX(0) scale(1); opacity: 1; cursor: auto; z-index: 1; box-shadow: var(--tst-card-shadow); }
.tst-card.is-far { opacity: 0; pointer-events: none; }
.tst-card.is-jump { transition: none; }
.tst-card__in {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin: 0;
  padding: 36px;
  border-radius: inherit;
  background: var(--tst-card);
  box-shadow: inset 0 0 0 1px var(--tst-card-line);
}
.tst-card__quote { margin: 0; }
.tst-card__quote p { margin: 0; color: var(--tst-text); font-size: 20px; line-height: 1.45; }
.tst-card__author { display: flex; align-items: center; gap: 16px; }
.tst-card__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tst-avatar);
  color: var(--tst-text);
  font-size: 16px;
  font-weight: 600;
}
.tst-card__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tst-card__name { font-size: 20px; font-weight: 700; line-height: 1.3; }
.tst-card__role { color: var(--tst-muted); font-size: 14px; line-height: 1.4; }
.tst-card__company { color: var(--tst-muted); font-size: 12px; line-height: 1.4; }

.tst-car__nav {
  position: absolute;
  z-index: 2;
  top: 175px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--c-red);
  cursor: pointer;
  transition: background-color .2s ease;
}
.tst-car__nav--prev { left: max(12px, calc(50% - 723px)); }
.tst-car__nav--next { right: max(12px, calc(50% - 723px)); }
.tst-car__nav--next svg { transform: scaleX(-1); }
.tst-car__nav:hover { background: rgb(238 28 37 / .08); }
.tst-car__nav:focus-visible { outline: 2px solid var(--c-red); outline-offset: 2px; }
.tst-card:focus-visible { outline: 2px solid var(--c-red); outline-offset: 4px; }

.tst__all { margin-top: 20px; }

.tst .tst__all { border-color: var(--tst-muted); color: var(--tst-text); }
.tst .tst__all:hover, .tst .tst__all:focus-visible { background: var(--tst-text); border-color: var(--tst-text); color: var(--tst-bg); }

@media (max-width: 767px) {
  .tst { --cw: min(340px, 100vw - 72px); --gap: 16px; }
  .tst__inner { padding-bottom: 80px; }
  .tst-card__in { padding: 28px; }
  .tst-card__quote p { font-size: 18px; }
  .tst-car__nav { display: none; }
}

.has-motion .tst .tst-reveal { opacity: 0; transform: translateY(24px); }
.has-motion .tst .tst__accent { transform: scaleY(0); }
.tst.is-text-in .tst-reveal {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease var(--d), transform .8s cubic-bezier(.2, .7, .3, 1) var(--d);
}
.tst.is-text-in .tst__accent { transform: none; transition: transform .7s cubic-bezier(.5, 0, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  .tst-card { transition: none; }
}
