/* =============================================
   styles-testimonials.css
   ============================================= */

/* ---------- Section ---------- */
.testimonials-section {
  padding: 25px 0 35px;
  background: var(--white, #fff);
}

/* ---------- Viewport ---------- */
.tst-viewport {
  overflow: hidden;
  margin-top: 32px;
}

/* ---------- Track ---------- */
.tst-track {
  display: flex;
  gap: 22px;
  align-items: stretch;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ---------- Card - NO lift effect, subtle shadow on hover only ---------- */
.tst-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white, #fff);
  border: 1px solid var(--border, #E6ECEF);
  border-radius: 16px;
  padding: 22px 22px 20px;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.tst-card:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  border-color: #d0d7de;
  /* no transform - card is not fully clickable, lift = misleading */
}

/* ---------- Top row ---------- */
.tst-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 26px;
}

/* Industry tag - filled blue pill (like .post-cat) */
.tst-industry {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 20px;
  background: #e8f3fd;
  color: var(--light-blue, #1E88E5);
  white-space: nowrap;
  line-height: 1.5;
}

/* Clutch - subtle text link top-right */
.tst-clutch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #999;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s;
}
.tst-clutch:hover { color: #444; text-decoration: none; }

/* ---------- Quote ---------- */
.tst-text {
  flex: 1;
  margin: 0 0 20px;
}

.tst-text p {
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-muted, #444);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Bottom ---------- */
.tst-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #E6ECEF);
  margin-top: auto;
}

/* ---------- Author ---------- */
.tst-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tst-name {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tst-role {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Case Study button
   Default: grey neutral pill
   Hover:   blue fill + white text
   This way it doesn't compete with the blue industry tag
   -------------------------------------------------- */
.tst-case-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 20px;
  padding: 5px 13px 5px 15px;
  background: transparent;
  color: #444 !important;
  border: 1.5px solid #999;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tst-case-link:hover {
  background: transparent;
  color: var(--light-blue, #1E88E5) !important;
  border-color: var(--light-blue, #1E88E5);
  text-decoration: none;
}

.tst-case-link svg {
  transition: transform 0.18s ease;
  stroke: currentColor;
}
.tst-case-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Dots ---------- */
.tst-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.tst-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: #cdd2d8;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
}

.tst-dot--active {
  background: var(--light-blue, #1E88E5);
  width: 20px;
  border-radius: 4px;
}

/* ---------- Tablet: 2 cols ---------- */
@media (max-width: 1024px) {
  .tst-card { flex: 0 0 calc((100% - 22px) / 2); }
}

/* ---------- Mobile: 1 col ---------- */
@media (max-width: 639px) {
  .testimonials-section { padding: 20px 0 28px; }
  .tst-card { flex: 0 0 100%; padding: 18px 16px 16px; }
  .tst-track { gap: 14px; }
}

/* Touch-devices: кнопка синяя по умолчанию (нет hover) */
@media (hover: none) {
  .tst-case-link {
    color: var(--light-blue, #1E88E5) !important;
    border-color: var(--light-blue, #1E88E5);
  }
}