.switcher {
  --treshold: 30rem;
  --space: var(--space-m, 1rem);

  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
}

.switcher > * {
  flex-grow: 1;
  flex-basis: calc((var(--treshold) - 100%) * 999);
}

.switcher > :nth-last-child(n + 5),
.switcher > :nth-last-child(n + 5) ~ * {
  flex-basis: 100%;
}
