.testimonials {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(212, 119, 34, 0.055), transparent 70%);
  overflow: hidden;
}

.testi-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.testi-head h2 {
  max-width: 20ch;
  margin-bottom: 12px;
}

.testi-head p {
  max-width: 48ch;
  color: var(--text-2);
  font-size: 0.95rem;
}

.testi-rail {
  display: flex;
  gap: 16px;
  padding: 6px 4px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.testi-rail::-webkit-scrollbar {
  display: none;
}

.testi {
  flex: 0 0 clamp(240px, 26vw, 300px);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #090806;
  text-align: left;
  cursor: zoom-in;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: border-color 0.35s ease, transform 0.45s var(--ease);
}

.testi:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.testi img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.testi figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 7px 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.testi figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0. transform 0.3s ease;
}

.testi:hover figcaption span {
  opacity: 1;
  transform: none;
}

.testi figcaption svg {
  width: 12px;
  height: 12px;
}

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.testi-hint {
  color: var(--muted);
  font-size: 0.76rem;
}
  display: flex;
  align-items: center;
.testi-buttons {
  display: flex: center;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.icon-btn:hover {
  border-color: rgba(240, 160, 75, 0.5);
  background: rgba(240, 160, 75, 0.12);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.testi-counter {
  min-width: 46px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
