.stack {
  padding: 80px 24px 100px;
  border-top: 1px solid #ffffff0d;
  background: transparent;
  color: #c9cbd0;
  font-family: Arial, Helvetica, sans-serif;
}

.stack__container {
  max-width: 1152px;
  margin-inline: auto;
}

.stack__header {
  margin-bottom: 52px;
}

.stack h2 {
  margin: 0 0 16px;
  color: #13c6a0;
  font-size: clamp(30px, 4vw, 38px);
}

.stack__header p {
  margin: 0;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.7;
}

.stack__group + .stack__group {
  margin-top: 38px;
}

.stack__group h3 {
  margin: 0 0 18px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}

.stack__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.stack__card {
  display: flex;
  width: 96px;
  min-height: 100px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 16px 6px;
  border: 1px solid #343a38;
  border-radius: 14px;
  background: #111514;
  color: #9ca3af;
  text-align: center;
  transition: border-color 200ms, background 200ms, transform 200ms, color 200ms;
}

.stack__card > span:last-child {
  font-size: 11px;
  line-height: 1.4;
}

.stack__card img,
.stack__symbol {
  width: 32px;
  height: 32px;
  opacity: 0.65;
  filter: grayscale(1) brightness(1.4);
  transition: filter 220ms, opacity 220ms, color 220ms;
}

.stack__card img {
  object-fit: contain;
}

.stack__card .stack__icon--light {
  filter: grayscale(1) invert(1);
}

.stack__symbol {
  display: grid;
  place-items: center;
  color: var(--brand, #13c6a0);
  font: 700 17px/1 Consolas, monospace;
}

.stack__card:is(:hover, :focus) {
  transform: translateY(-4px);
  border-color: #13c6a080;
  background: #151c19;
  color: #e6e9e8;
}

.stack__card:focus-visible {
  outline: 2px solid #13c6a0;
  outline-offset: 4px;
}

.stack__card:is(:hover, :focus) img,
.stack__card:is(:hover, :focus) .stack__symbol {
  filter: none;
  opacity: 1;
}

.stack__card:is(:hover, :focus) .stack__icon--light {
  filter: invert(1);
}

@media (max-width: 600px) {
  .stack {
    padding: 60px 20px 72px;
  }

  .stack__grid {
    gap: 10px;
  }

  .stack__card {
    width: 84px;
    min-height: 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack__card,
  .stack__card img,
  .stack__symbol {
    transition: none;
  }

  .stack__card:is(:hover, :focus) {
    transform: none;
  }
}
