#primary section.switcher {
  background: #fefefe;
}

.switcher__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.switcher__title {
  max-width: 660px;
  text-wrap-style: balance;
  color: var(--black-color);
}

.switcher__toggle-wrapper {
  position: relative;
  display: inline-flex;
  background: #f3f5fb;
  border-radius: 40px;
  box-shadow: 0 0 4px 0 #d0dbff inset;
}

.switcher__button {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  color: #0d1118;
  padding: 13px 22px;
  font-size: 14px;
  border-radius: 40px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.switcher__button.active {
  color: #fff;
  font-size: 16px;
}

.switcher__button.colored-bg {
  box-shadow: 0 0 6px 0 #bec1f6 inset;
  background: #06063c;
}

.switcher__toggle-slider {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  box-shadow: 0 0 6px 0 #bec1f6 inset;
  background: #06063c;
  width: 0;
  border-radius: 40px;
  transition: all 0.3s ease;
  z-index: 1;
}

.switcher__right {
  position: relative;
  flex: 1;
}

.switcher__cards-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 1px;
}

.switcher__wrapper {
  display: flex;
  gap: 40px;
}

.switcher__cards-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.switcher__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 100%;
  max-height: fit-content;
}

.switcher__cards.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.switcher__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
  padding: 40px;
  border: 1px solid #f3f5fb;
  box-shadow:
    0px 4px 4px 0px #2d60e20d,
    0px 4px 4px 0px #e2e2e21a inset;
  max-height: fit-content;
}

.switcher__card-title {
  font-weight: 500;
  font-size: 66px;
  line-height: 110.00000000000001%;
  letter-spacing: 0;
  color: #1629d6;
}

.switcher__card-title strong,
.switcher__card-suffix strong {
  font-weight: 500;
  font-size: 28px;
  line-height: 140%;
  letter-spacing: 0;
  color: #1629d6;
}

.switcher__card-suffix em {
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0;
  color: #1629d6;
}

.switcher__card-number {
  display: inline-block;
}

.switcher__card-title:not(.counter-animation) strong {
  margin-left: 12px;
}

.switcher__card-title strong,
.switcher__card-suffix,
.switcher__card-suffix em {
  vertical-align: top;
  display: inline-block;
}

.switcher__card-description p {
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: 0;
  color: #4f4f4f;
}

.switcher__cards--default .switcher__card:nth-child(1) {
  background: #f3f5fb;
  border-top-left-radius: 99px;
  border-bottom-right-radius: 99px;
}

.switcher__cards--default .switcher__card:nth-child(2) {
  border-top-right-radius: 99px;
  border-bottom-right-radius: 99px;
}

.switcher__cards--default .switcher__card:nth-child(3) {
  border-bottom-right-radius: 99px;
}

.switcher__cards--default .switcher__card:nth-child(4) {
  border-top-right-radius: 99px;
  background: #f3f5fb;
}

.switcher__cards--variant .switcher__card:nth-child(1) {
  border-top-right-radius: 99px;
  border-bottom-right-radius: 99px;
  background: #f3f5fb;
}

.switcher__cards--variant .switcher__card:nth-child(2) {
  border-top-left-radius: 99px;
}

.switcher__cards--variant .switcher__card:nth-child(3) {
  border-bottom-right-radius: 99px;
}

.switcher__cards--variant .switcher__card:nth-child(4) {
  background: #f3f5fb;
  border-top-right-radius: 99px;
  border-bottom-left-radius: 99px;
}

@media screen and (min-width: 1201px) {
  .switcher__button:not(.active):hover {
    background: #1629d6;
    box-shadow:
      0 -2px 8px 0 rgba(150, 154, 242, 0.8) inset,
      0 2px 8px 0 rgba(6, 6, 60, 0.3) inset;
    color: #fff;
  }
}

@media screen and (max-width: 1200px) {
  .switcher__wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .switcher__title {
    max-width: unset;
  }

  .switcher__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (min-width: 769px) {
  #primary section.switcher {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media screen and (max-width: 768px) {
  #primary section.switcher {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .switcher__cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .switcher__card-title {
    font-size: 56px;
  }

  .switcher__card-title h2 {
    font-size: 48px;
  }

  .switcher__button {
    font-size: 14px;
  }
}
