.heroBlock {
  position: relative;
  min-height: 575px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  align-items: stretch;
}

.heroBlock__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--overlay-opacity, 0.4);
  pointer-events: none;
}

.heroBlock__container {
  position: relative;
  z-index: 1;
  container-type: inline-size;
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
  padding: 50px 0px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  box-sizing: border-box;
}

.heroBlock__center {
  align-self: center;
  justify-self: center;
  width: 100%;
}

.heroBlock__title {
  margin: 0;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 56px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  max-width: 630px;
}

.heroBlock__text {
  margin: 0 0 32px 0;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%;
}

.heroBlock__buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}

.heroBlock__button {
  display: inline-block;
  padding: 12px 24px;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  border-radius: 2px;
  text-decoration: none;
}

.heroBlock__button--primary {
  border-radius: 2px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
}

.heroBlock__button--primary:hover {
  background: #dff1ff;
  border-color: #dff1ff;
}
.heroBlock__button--secondary {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.heroBlock__button--secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.heroBlock__form {
  align-self: end;
  justify-self: end;
  width: min(100%, 344px);
  background: #e8f2fa;
  color: #1b2335;
  border-radius: 20px;
  padding: 40px 20px 20px 20px;
  margin-top: 235px;
  margin-bottom: 45px;
  box-sizing: border-box;
}

.heroBlock__form-title {
  color: #1b2335;
  font-family: "Inter", sans-serif;
  font-size: 38px;
  font-style: normal;
  font-weight: 800;
  line-height: 120%;
  letter-spacing: -0.76px;
  margin: 0 0 10px 0;
}

.heroBlock__form-text {
  margin: 0 0 18px 0;
  color: #1b2335;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}
.heroBlock__form-shortcode {
  margin: 0;
}

.heroBlock__form-shortcode form p {
  margin: 0;
}
.heroBlock__form-shortcode form input[type="text"],
.heroBlock__form-shortcode form input[type="email"] {
  border-radius: 5px;
  border: 0.5px solid rgba(27, 35, 53, 0.26);
  background: #fff;
  color: #242424;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.heroBlock__form-shortcode form input[type="submit"] {
  border-radius: 2px;
  background: #1b2335;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  padding: 12px 24px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  cursor: pointer;
  border: none;
}

.heroBlock__form-shortcode form input[type="submit"]:hover {
  background: #000;
  border-color: #000;
}

/* Tablet */
@media (max-width: 1024px) {
  .heroBlock {
    min-height: 520px;
  }
  .heroBlock__container {
    gap: 20px;
    padding: 110px 060px 0;
  }
  .heroBlock__title {
    font-size: 44px;
  }
  .heroBlock__text {
    font-size: 18px;
  }
  .heroBlock__form {
    margin-top: 120px;
  }
}

@media (max-width: 900px) {
  .heroBlock__container {
    grid-template-columns: 1fr;
  }
  .heroBlock__form {
    justify-self: center;
    align-self: stretch;
    margin-top: 24px;
    margin-bottom: 24px;
    width: min(100%, 380px);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .heroBlock {
    min-height: 0;
  }
  .heroBlock__container {
    padding: 110px 0;
    gap: 16px;
  }
  .heroBlock__title {
    font-size: 32px;
  }
  .heroBlock__text {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .heroBlock__buttons {
    gap: 12px;
  }
  .heroBlock__button {
    display: inline-flex;
    width: fit-content;
    justify-content: center;
  }
  .heroBlock__form {
    padding: 24px 16px 16px 16px;
    border-radius: 14px;
  }
  .heroBlock__form-title {
    font-size: 28px;
  }
  .heroBlock__form-text {
    font-size: 14px;
  }
}
