.hero-section {
  padding: 200px 0 16px;
  margin: 0 auto;
}

.hero-section h1 {
  color: #222e50;
  font-size: 60px;
  font-style: normal;
  font-weight: 700;
  line-height: 80px;
  letter-spacing: -0.8px;
  max-width: 670px;
  margin: 0 0 16px 0;
}

.hero-section h1 span {
  color: rgba(93, 138, 168, 1);
  padding-bottom: 5px;
  position: relative;
}

.hero-section h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background-image: url("../images/border.svg");
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-section p {
  color: #222e50;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
  margin-bottom: 32px;
}

.hero-section p span {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  color: rgba(93, 138, 168, 1);
  font-size: 26px;
}

.hero-section .newsletter {
  position: relative;
}

.hero-section .newsletter input[type="email"] {
  border-radius: 99px;
  padding: 8px 24px 8px;
  border: 1px solid #e3e8ef;
  height: 76px;
}

.hero-section .newsletter input[type="email"]:hover {
  border-color: rgba(105, 117, 134, 1);
}

.hero-section .newsletter input[type="email"]:focus {
  color: #212529;
  background-color: #fff;
  border-color: #ed6a5a;
  outline: 0;
  box-shadow: 0 0 0 1px #ed6a5a;
}

.hero-section .newsletter button[type="submit"] {
  background: #ed6a5a;
  padding: 16px 48px;
  border: 1px solid #ed6a5a;
  border-radius: 99px;
  height: 60px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  position: absolute;
  color: #fff;
  right: 8px;
  top: 8px;
  transition: all 0.3s ease-in-out;
}

.hero-section .newsletter button[type="submit"]:hover {
  background: rgba(191, 81, 69, 1);
  border-color: rgba(191, 81, 69, 1);
}

.hero-section .newsletter button[type="submit"]:active {
  background: rgba(237, 106, 90, 1);
  border-color: rgba(191, 81, 69, 1);
  box-shadow: 0px 0px 4px 2px rgba(234, 95, 80, 0.25);
}

.hero-section .newsletter button.confirmation {
  width: 100%;
  background: #fff;
  border-radius: 99px;
  padding: 8px 24px 8px;
  border: 1px solid #e3e8ef;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  display: none;
}

.hero-section .img-speech {
  position: relative;
  background-image: url("../images/hero/hero-bg.svg");
  background-position: left center;
  background-size: contain;
  background-repeat: no-repeat;
}

.speech-bubbles {
  position: absolute;
  top: -42px;
  right: -10px;
}

.speech-bubble {
  background: rgba(252, 252, 252, 1);
  border: 0.5px solid rgba(93, 138, 168, 1);
  padding: 12px 18px;
  border-radius: 18px;
}

.speech-bubble .name {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  color: rgba(93, 138, 168, 1);
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 4px;
}

.speech-bubble .text {
  font-family: "Instrument Sans", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: rgba(34, 46, 80, 1);
  margin-bottom: 0;
}

.speech-bubble-1 {
  max-width: 280px;
  margin-left: -71px;
  margin-bottom: 28.5px;
}

.speech-bubble-2 {
  max-width: 280px;
  margin-right: 0;
}

.hero-section .only-for-desktop {
  display: block;
}

.hero-section .only-for-mobile {
  display: none;
}

@media only screen and (max-width: 1439px) {
  .hero-section h1 {
    font-size: 42px;
    line-height: 50px;
  }

  .hero-section p {
    font-size: 21px;
    line-height: 30px;
    margin-bottom: 36px;
  }

  .hero-section .newsletter {
    margin-top: 90px;
  }

  .speech-bubbles {
    top: -28px;
    right: 0;
  }

  .speech-bubble-1 {
    max-width: 235px;
    margin-left: -60px;
    margin-bottom: 20px;
  }

  .speech-bubble-2 {
    max-width: 235px;
    margin-right: 0;
  }

  .speech-bubble .name {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 0;
  }

  .speech-bubble .text {
    font-size: 13px;
    line-height: 20px;
  }
}

@media only screen and (max-width: 1279px) {
  .hero-section {
    padding: 120px 0 0;
  }

  .hero-section h1 {
    font-size: 35px;
    line-height: 45px;
  }

  .hero-section p {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 36px;
  }

  .hero-section .newsletter {
    margin-top: 25px;
  }

  .hero-section .only-for-desktop{
    width: 70%;
  }

  .speech-bubble {
    padding: 8px 12px;
  }

  .speech-bubble-1 {
    max-width: 205px;
    margin-left: -40px;
    margin-bottom: 20px;
  }

  .speech-bubble-2 {
    max-width: 205px;
    margin-right: 0;
  }

  .speech-bubble .name {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 0;
  }

  .speech-bubble .text {
    font-size: 12px;
    line-height: 18px;
  }
}

@media only screen and (max-width: 1023px) {
  .hero-section {
    padding: 120px 0 0;
  }

  .hero-section h1 {
    font-size: 26px;
    line-height: 1.5;
  }

  .hero-section h1 span::after {
    bottom: -4px;
    background-size: 100%;
  }

  .hero-section p {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 26px;
  }

  .hero-section p span {
    font-size: 20px;
  }

  .hero-section .newsletter {
    margin-top: 0;
  }

  .hero-section .newsletter input[type="email"] {
    height: 56px;
    font-size: 14px;
    line-height: 20px;
  }

  .hero-section .newsletter button[type="submit"] {
    height: 40px;
    padding: 10px;
    font-size: 14px;
    max-width: 157px;
    line-height: 20px;
  }

  .speech-bubble {
    padding: 8px 12px;
  }

  .speech-bubble-1 {
    max-width: 176px;
    margin-left: -30px;
    margin-bottom: 20px;
  }

  .speech-bubble-2 {
    max-width: 176px;
    margin-right: 0;
  }

  .speech-bubble .name {
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 0;
  }

  .speech-bubble .text {
    font-size: 10px;
    line-height: 16px;
  }
}

@media only screen and (max-width: 991px) {
  .hero-section {
    padding: 120px 0 0;
  }

  .hero-section h1 {
    font-size: 26px;
    line-height: 1.5;
  }

  .hero-section h1 span::after {
    bottom: -4px;
    background-size: 100%;
  }

  .hero-section p {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 26px;
  }

  .hero-section p span {
    font-size: 20px;
  }

  .hero-section .newsletter {
    margin-top: 0;
  }

  .hero-section .newsletter input[type="email"] {
    height: 56px;
    font-size: 14px;
    line-height: 20px;
  }

  .hero-section .newsletter button[type="submit"] {
    height: 40px;
    padding: 10px;
    font-size: 14px;
    max-width: 157px;
    line-height: 20px;
  }

  .speech-bubble {
    padding: 8px 12px;
  }

  .speech-bubble-1 {
    max-width: 176px;
    margin-left: -30px;
    margin-bottom: 20px;
  }

  .speech-bubble-2 {
    max-width: 176px;
    margin-right: 0;
  }

  .speech-bubble .name {
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 0;
  }

  .speech-bubble .text {
    font-size: 10px;
    line-height: 16px;
  }

  .hero-section .only-for-desktop {
    display: none;
  }

  .hero-section .only-for-mobile {
    max-width: 50%;
    display: block;
  }
}

@media only screen and (max-width: 767px) {
  .hero-section {
    padding: 120px 0 0;
  }

  .hero-section h1 {
    font-size: 19px;
    line-height: 29px;
    margin-bottom: 19px;
  }

  .hero-section h1 span::after {
    bottom: -5px;
    background-size: 100%;
  }

  .hero-section p {
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 16px;
  }

  .hero-section p span {
    font-size: 15px;
  }

  .hero-section .newsletter {
    margin: 0;
  }

  .hero-section .newsletter input[type="email"] {
    height: 40px;
    font-size: 12px;
    line-height: 20px;
    padding: 8px;
  }

  .hero-section .newsletter button[type="submit"] {
    height: 30px;
    padding: 10px;
    font-size: 12px;
    max-width: 157px;
    line-height: 10px;
    font-weight: 500;
    right: 4px;
    top: 5px;
  }

  .hero-section .only-for-desktop {
    display: none;
  }

  .hero-section .only-for-mobile {
    display: block;
  }

  .speech-bubble-1 {
    max-width: 147px;
    margin-left: -20px;
    margin-bottom: 28.5px;
  }

  .speech-bubble-2 {
    max-width: 147px;
  }

  .speech-bubble {
    padding: 6px 9px;
    border-radius: 9px;
  }

  .speech-bubble .name {
    font-size: 10px;
    line-height: 12px;
    margin-bottom: 4px;
  }

  .speech-bubble .text {
    font-size: 8px;
    line-height: 12px;
  }
}

@media only screen and (max-width: 575px) {
  .hero-section .newsletter {
    margin: 0 0 48px 0;
  }
}

@media only screen and (max-width: 479px) {
  .hero-section {
    padding: 120px 0 0;
  }

  .hero-section h1 {
    font-size: 36px;
    max-width: 320px;
    line-height: 48px;
    margin-bottom: 24px;
  }

  .hero-section h1 span::after {
    bottom: -5px;
    background-size: 100%;
  }

  .hero-section p {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 48px;
    max-width: 270px;
  }

  .hero-section p span {
    font-size: 26px;
  }

  .hero-section .newsletter {
    margin: 0 0 48px 0;
  }

  .hero-section .newsletter input[type="email"] {
    height: 56px;
    font-size: 14px;
    line-height: 20px;
    padding: 14px 16px;
  }

  .hero-section .newsletter button[type="submit"] {
    height: 45px;
    padding: 12px 16px;
    font-size: 14px;
    max-width: 157px;
    line-height: 20px;
    font-weight: 500;
  }

  .hero-section .only-for-desktop {
    display: none;
  }

  .hero-section .only-for-mobile {
    display: block;
    padding-top: 65px;
  }

  .speech-bubbles {
    top: 0;
    right: 0;
  }

  .speech-bubble-1 {
    max-width: 165px;
    margin-left: -50px;
    margin-bottom: 28.5px;
  }

  .speech-bubble-2 {
    max-width: 147px;
  }

  .speech-bubble {
    padding: 6px 9px;
    border-radius: 9px;
  }

  .speech-bubble .name {
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 4px;
  }

  .speech-bubble.speech-bubble-1 .name {
    font-size: 14px;
  }

  .speech-bubble .text {
    font-size: 10px;
    line-height: 12px;
  }
}

@media only screen and (max-width: 430px) {
  .hero-section .newsletter input[type="email"] {
    height: 50px;
  }
  .hero-section .newsletter button[type="submit"] {
    height: 40px;
  }
}
