.stats {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.stat {
  min-width: 0;
}

.stat-programming-languages {
  border-right: 0;
}

@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(4n) {
    border-right: 0;
  }

  .stat:nth-last-child(-n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .stat:nth-child(even) {
    border-right: 0;
  }

  .stat:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-right: 0;
    border-bottom: 0;
  }
}

@media (max-width: 430px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:nth-child(odd),
  .stat:nth-child(even) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }
}
