.category-switch {
  padding: clamp(2.5rem, 1.75rem + 3.75vw, 6.25rem) 0
    clamp(2.5rem, 1.75rem + 3.75vw, 6.25rem) 0;
}

.category-switch__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  list-style: none;
}

.category-switch__item {
  width: 100%;
  position: relative;
}

.category-switch__item-left,
.category-switch__item-right {
  display: flex;
  flex-direction: column;
  width: clamp(12.0625rem, 8.55rem + 17.625vw, 29.6875rem);
  /*align-items: center;
  margin-inline: auto;*/
}

.category-switch__item-left {
  margin-inline: clamp(1rem, 0.4rem + 3vw, 4rem) auto;
}

.category-switch__item-right {
  margin-inline: auto clamp(1rem, 0.4rem + 3vw, 4rem);
}

.category-switch__media {
  width: clamp(12.0625rem, 8.55rem + 17.625vw, 29.6875rem);
  height: auto;
  position: relative;
  z-index: 5;
}

.category-switch__btn--link .btn--link__text {
  font-family: var(--font-header-menu);
  font-size: clamp(1.875rem, 1.625rem + 1.25vw, 3.125rem);
  line-height: clamp(2.375rem, 2.0625rem + 1.5625vw, 3.9375rem);
}

.category-switch__btn--link .btn--link__arrow {
  width: clamp(2.6875rem, 2.65rem + 0.1875vw, 2.875rem);
}

.category-switch__item-left::before,
.category-switch__item-right::before {
  content: "";
  position: absolute;
  top: 50%;
  height: clamp(5rem, 3.5rem + 7.5vw, 12.5rem);
  width: 71%;
  background-color: var(--color-accent-green);
  transform: translateY(-50%);
  border-radius: var(--space-m) var(--space-m) 0 0;
  z-index: 1;
}

.category-switch__item-left::before {
  left: 0;
}

.category-switch__item-right::before {
  right: 0;
}

@media (min-width: 768px) {
  .category-switch__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-switch__item-left {
    margin-inline: auto clamp(1.625rem, 1.1375rem + 2.4375vw, 4.0625rem);
  }

  .category-switch__item-right {
    margin-inline: clamp(1.625rem, 1.1375rem + 2.4375vw, 4.0625rem) auto;
  }

  .category-switch__item-left::before,
  .category-switch__item-right::before {
    width: 100%;
  }
}
