.trust {
  padding: 60px 0 120px;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--accent);
  position: relative;
}

.trust__grid::before {
  position: absolute;
  content: '';
  display: block;
  width: calc(33.34% + 5px);
  height: calc(100% + 10px);
  left: -5px;
  top: -5px;
  border: 1px solid var(--accent);
  z-index: -1;
}

.trust__item {
  padding: 24px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 191px;
  box-shadow: 0px 2px 2px 0px #00000040;
}

.trust__item--dark {
  background: var(--secondary);
  color: var(--surface);
}

.trust__wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 183px;
  position: relative;
  z-index: 1;
}

.trust__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'EdgeLine', var(--font);
  font-size: 60px;
  color: var(--color-text);
}

.trust__item--dark .trust__value {
  color: var(--surface);
}

.trust__unit {
  font-size: 18px;
  font-family: var(--font);
  color: var(--accent);
}

.trust__item--dark .trust__unit {
  color: var(--surface);
}

.trust__label {
  padding-top: 10px;
  border-top: 1px solid var(--accent);
}

.trust__item--dark .trust__label {
  color: var(--surface);
}

@media (max-width: 768px) {
  .trust {
    padding: 60px 0 60px;
  }

  .trust__grid {
    grid-template-columns: 1fr;
  }

  .trust__grid::before {
    display: none;
  }

  .trust__item {
    padding: 15px;
    position: relative;
    background-color: transparent;
    height: auto;
  }

  .trust__item::after {
    pointer-events: none;
    display: block;
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 1px solid var(--accent);
    z-index: -1px;
  }

  .trust__item--dark::after {
    background-color: var(--secondary);
  }

  .trust__wrapper {
    width: 100%;
  }

  .trust__label {
    position: relative;
  }

  .trust__label::after {
    display: block;
    position: absolute;
    content: '';
    width: 5px;
    height: 5px;
    top: -1px;
    transform: translateY(-50%);
    right: 0;
    border-radius: 50%;
    background-color: var(--accent);
  }

  .trust__value {
    font-size: 30px;
  }

  .trust__unit {
    font-size: 15px;
  }
}
