.tools-section {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) var(--space-page-x);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(247, 248, 250, 0.72), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(0deg, rgba(22, 23, 26, 0.04) 0 1px, transparent 1px 34px);
}

.tools-section .section-head {
  max-width: 760px;
  margin: 0 auto 3.2rem;
  text-align: center;
}

.tools-cloud {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 0.9rem;
}

.tool-token {
  --float-y: 0;
  position: relative;
  flex: 0 1 122px;
  min-height: 142px;
  padding: 0.9rem 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transform: translateY(var(--float-y));
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.tool-token:nth-child(6n + 1),
.tool-token:nth-child(6n + 4) {
  --float-y: -0.55rem;
}

.tool-token:nth-child(6n + 3),
.tool-token:nth-child(6n + 6) {
  --float-y: 0.5rem;
}

.tool-token:hover,
.tool-token:focus-within {
  transform: translateY(calc(var(--float-y) - 4px));
  border-color: rgba(64, 147, 109, 0.44);
  box-shadow: var(--shadow-md);
}

.tool-mark {
  width: 76px;
  height: 76px;
  padding: 0.68rem;
  border: 1px solid rgba(22, 23, 26, 0.08);
  border-radius: var(--r-sm);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(76, 81, 91, 0.1);
  display: grid;
  place-items: center;
}

.tool-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.tool-token--logotype .tool-mark img {
  width: 150%;
  height: 150%;
}

.tool-name {
  display: block;
  max-width: 100%;
  color: var(--base-300);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .tools-section .section-head {
    text-align: left;
  }

  .tools-cloud {
    gap: 0.75rem;
  }

  .tool-token {
    --float-y: 0 !important;
    flex-basis: calc(33.333% - 0.5rem);
    min-width: 94px;
    min-height: 126px;
    padding: 0.75rem 0.55rem;
  }

  .tool-mark {
    width: 64px;
    height: 64px;
    padding: 0.58rem;
  }

  .tool-name {
    font-size: 0.78rem;
  }
}

@media (max-width: 430px) {
  .tool-token {
    flex-basis: calc(50% - 0.4rem);
  }
}
