.mawp-speech-bubbles {
  padding-block: 80px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.mawp-speech-bubbles-container {
  width: 100%;
  max-width: calc(1200px + 1.5rem * 2);
  height: 500px;
  padding-inline: 1.5rem;
  margin: 0 auto;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mawp-speech-bubbles-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.25;
  color: #FFFFFF;
  text-align: center;
  text-transform: uppercase;
  max-width: 452px;
  margin-block: 20px;
  order: 2;
}

.mawp-speech-bubbles-group {
  display: flex;
  flex: 1;
  width: 100%;
}

.mawp-speech-bubbles-group.top-row {
  order: 1;
  gap: clamp(92px, 16vw, 307px);
}

.mawp-speech-bubbles-group.bottom-row {
  order: 3;
  justify-content: flex-end;
  gap: clamp(46px, 16vw, 309px);
}

.three-items .mawp-speech-bubbles-group.bottom-row {
  justify-content: flex-start;
}

.mawp-speech-bubbles-group .mawp-content {
  display: flex;
  flex-direction: column;
}

.bottom-row .mawp-content {
  flex-direction: column-reverse;
}

.mawp-speech-bubbles-group .mawp-content .mawp-card-content {
  padding: 20px 24px;
  border-radius: 16px;
  background-color: #FFFFFF;
}

.mawp-speech-bubbles-group .mawp-card-content {
  font-size: 20px;
  font-weight: 600;
  line-height: 150%;
  max-width: 400px;
  text-align: center;
}

.mawp-speech-bubbles-group .mawp-content .arrows {
  width: 33px;
}

.mawp-content:nth-of-type(1) {
  align-items: flex-end;
}

.mawp-content:nth-of-type(2) {
  align-items: flex-start;
}

.top-row .mawp-content:nth-of-type(1) {
  justify-content: end;
}

.bottom-row .mawp-content:nth-of-type(2) {
  justify-content: start;
}

.mawp-speech-bubbles-group .mawp-content:nth-of-type(1) .arrows {
  margin-right: 40px;
}

.mawp-speech-bubbles-group .mawp-content:nth-of-type(2) .arrows {
  margin-left: 40px;
}

@media screen and (max-width: 959px) {
  .mawp-speech-bubbles {
    padding-block: 72px;
  }

  .mawp-speech-bubbles-container {
    padding-inline: 32px;
    height: 450px;
  }

  .mawp-speech-bubbles-title {
    font-size: 24px;
  }

  .mawp-speech-bubbles-group .mawp-content .mawp-card-content {
    padding: 18px 21.6px;
    border-radius: 14.4px;
  }

  .mawp-speech-bubbles-group .mawp-card-content {
    font-size: 18px;
    max-width: 350px;
  }

  .mawp-speech-bubbles-group .mawp-content .arrows {
    width: 29.7px;
  }

  .mawp-speech-bubbles-group .mawp-content:nth-of-type(1) .arrows {
    margin-right: 36px;
  }

  .mawp-speech-bubbles-group .mawp-content:nth-of-type(2) .arrows {
    margin-left: 36px;
  }
}

@media screen and (max-width: 430px) {
  .mawp-speech-bubbles {
    padding-block: 40px;
  }

  .mawp-speech-bubbles-container {
    height: auto;
  }

  .mawp-speech-bubbles-title {
    order: 1;
    margin-block: 0 16px;
  }

  .mawp-speech-bubbles-group {
    flex-direction: column;
    gap: 16px!important;
  }

  .mawp-speech-bubbles-group.top-row {
    order: 2;
    flex-direction: column-reverse;
    margin-bottom: 16px;
  }

  .mawp-speech-bubbles-group.bottom-row {
    order: 3;
    flex-direction: column-reverse;
  }

  .bottom-row .mawp-content {
    flex-direction: column;
  }

  .mawp-speech-bubbles-group.bottom-row .mawp-content .arrows {
    transform: scaleY(-1);
    margin-top: -1px;
  }

  .mawp-speech-bubbles-group .mawp-content .mawp-card-content {
    max-width: 100%;
    padding-inline: 16px;
  }
}
