.section--tech {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 88% 10%, rgba(168, 192, 173, 0.28), transparent 28%),
    var(--color-bg-alt);
}

.tech-carousel__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.tech-carousel__top .section__header {
  margin-bottom: 0;
}

.tech-carousel__top .section__desc {
  margin-inline: 0;
}

.tech-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-bottom: 0.25rem;
}

.tech-trust span {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(21, 24, 22, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.tech-trust span::before {
  content: "✓";
  margin-right: 0.4rem;
  color: var(--color-accent);
}

.tech-carousel {
  position: relative;
}

.tech-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  padding: 0.15rem 0 1.2rem;
}

.tech-list::-webkit-scrollbar {
  display: none;
}

.tech-item {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 1.6rem;
  border: 1px solid rgba(21, 24, 22, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 15px 45px rgba(21, 24, 22, 0.045);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.tech-item:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: 0 22px 55px rgba(21, 24, 22, 0.1);
}

.tech-item__head {
  display: block;
  margin-bottom: 1rem;
}

.tech-item__index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.tech-item h3 {
  max-width: 300px;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.tech-item p {
  padding-left: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.tech-item__result {
  display: block;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tech-carousel__footer {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.tech-carousel__counter {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.tech-carousel__divider {
  width: 28px;
  height: 1px;
  background: var(--color-border);
}

.tech-carousel__progress {
  height: 2px;
  overflow: hidden;
  background: rgba(21, 24, 22, 0.09);
}

.tech-carousel__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tech-carousel__controls {
  display: flex;
  gap: 0.5rem;
}

.tech-carousel__controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-text);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.tech-carousel__controls button:hover {
  transform: translateY(-2px);
  background: #fff;
}

@media (max-width: 900px) {
  .tech-carousel__top { grid-template-columns: 1fr; }
  .tech-trust { justify-content: flex-start; }
  .tech-list { grid-auto-columns: calc((100% - 1rem) / 2); }
}

@media (max-width: 600px) {
  .tech-list { grid-auto-columns: 88%; }
  .tech-item { min-height: 270px; }
  .tech-carousel__footer { grid-template-columns: auto 1fr; }
  .tech-carousel__progress { grid-row: 2; grid-column: 1 / -1; }
}
