.title-wrapper, .title-wrapper .grid {
  width: 100%; 
}

.title-wrapper__flex {
      display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

@media screen and (max-width: 768px) {
  .title-wrapper__flex {
    flex-direction: column;
  }
}