.shapes {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  overflow: scroll;
  list-style: none;
  padding: 0 24px 50px;
}

.shapes__item {
  display: flex;
  flex-direction: row;
  position: relative;
  gap: 12px;
  background-color: var(--bg-color);

  border-radius: 32px;
  padding: 30px 26px 10px 30px;
  height: 226px;
  width: 257px;
  flex-shrink: 0;
}

.shapes__wrapper {
  z-index: 10;
}

.shapes__arrow {
  flex-shrink: 0;
  position: relative;
  background-color: var(--accent-color);
  width: 6px;
  height: 6px;
  margin-top: 6px;
}

.shapes__arrow::before,
.shapes__arrow::after {
  content: "";
  position: absolute;
  background-color: var(--accent-color);
  width: 6px;
  height: 6px;
  left: -6px;
}

.shapes__arrow::before {
  top: -6px;
}

.shapes__arrow::after {
  bottom: -6px;
}

.shapes__title {
  letter-spacing: -0.01em;
  font-size: 18px;
  line-height: 110%;
  font-weight: 400;
  margin-bottom: 16px;
}

.shapes__text {
  font-size: 14px;
  line-height: 110%;
  letter-spacing: -0.01em;
  color: var(--second-color);
}

@media (min-width: 1024px) {
  .shapes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    height: auto;
    overflow: auto;
    padding: 0;
  }

  .shapes__item {
    height: 221px;
    width: 100%;
    padding: 50px 40px 20px 36px;
  }

  /*.shapes__item:nth-child(3n+3) {*/
  /*  border-radius: 115px;*/
  /*}*/

  .shapes__item:nth-child(3n+1)::before {
    content: "";
    position: absolute;
    top: 32px;
    right: 32px;
    width: 32px;
    height: 32px;
    background-color: var(--fg-color);
    z-index: 1;
  }

  .shapes__item:nth-child(3n+1)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: var(--fg-color);
    z-index: 2;
  }

  .shapes__title {
    line-height: 20px;
    font-size: 20px;
    width: calc(100% - 52px);
  }

  .shapes__text {
    font-size: 16px;
    line-height: 18px;
    letter-spacing: -0.01em;
    white-space: pre-line;
    color: var(--second-color);
  }
}

@media (min-width: 1280px) {
  .shapes {
    grid-template-columns: repeat(2, minmax(340px, 442px));
  }

  .shapes__item {
    padding: 50px 40px 20px 56px;
    border-radius: 40px;
  }

  .shapes__item:nth-child(3n+1)::before {
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
  }

  .shapes__item:nth-child(3n+1)::after {
    width: 40px;
    height: 40px;
  }

  .shapes__title {
    line-height: 24px;
    font-size: 24px;
  }

  .shapes__text {
    font-size: 17px;
    line-height: 19px;
  }
}