html,
body {
  margin: 0;
  background: #f7f8fa;
  /* overflow-x: hidden; */
}

p,
a,
h1,
h2,
h3,
label,
span {
  margin: 0;
  font-family: "SF Pro Text";
  font-style: normal;
}

a{
    text-decoration: none;
}

header {
  background: linear-gradient(180deg, rgba(32, 36, 46, 0) 0%, #20242e 77.33%),
    url("./assets/header-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 600px;
  width: 100%;
}

.content {
  width: 1248px;
  margin: 0 auto;
}

.header-content {
  display: flex;
  justify-content: space-between;
  padding-top: 64px;
}

.header-block {
  max-width: 718px;
}

.header-logo {
  width: 172px;
  margin-bottom: 64px;
}

.header-title {
  font-family: "SF Pro Text";
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  color: #ffffff;
  margin-bottom: 24px;
}

.header-title-span {
  color: #46b9ff;
}

.header-subtitle {
  font-family: "SF Pro Text";
  font-weight: 500;
  font-size: 20px;
  line-height: 32px;
  color: #ffffff;
  max-width: 612px;
  letter-spacing: 1px;
}

.header-awards {
  display: flex;
  justify-content: flex-end;
  text-align: center;
}

.header-award-item {
  width: 188px;
}

.header-award-item:first-of-type {
  margin-right: 24px;
}

.header-award-malta {
  width: 162.9px;
}

.header-award-hackernoon {
  width: 174px;
}

.award-img-wrapper {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-award-text {
  font-family: "SF Pro Text";
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  color: #dfe2e5;
  margin-top: 8px;
}

.promises {
  margin-top: -120px;
}

.promises-wrapper {
  display: flex;
}

.promises-row {
  display: flex;
  justify-content: space-between;
}

.promises-item {
  width: 234px;
  height: 184px;
  background: #ffffff;
  box-shadow: 0px 8px 40px rgba(32, 36, 46, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.3s ease;
  margin-right: 20px;
  cursor: default;
}

.promises-item:hover {
  transform: scale(1.1);
}

.promises-img-wrapper {
  margin-top: -28px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background: linear-gradient(
    28.3deg,
    #28498e 0%,
    #2b62d7 52.08%,
    #427fff 98.54%
  );
  border: 4px solid #20242e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promises-img {
  width: 32px;
}

.promises-title {
  font-family: "SF Pro Text";
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #20242e;
  margin: 20px 0 4px;
  letter-spacing: 0.8px;
  padding: 0 16px;
}

.promises-text {
  font-family: "SF Pro Text";
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0.8px;
  color: #979fa8;
  margin: 0;
  padding: 0 16px;
}

main {
  margin: 56px 0;
}

.main-content {
  display: flex;
}

.video-block {
  margin-right: 24px;
}

.video-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #20242e;
  margin-top: 14px;
  letter-spacing: 0.5px;
}

.embed-video-wrapper {
  border-radius: 16px;
  overflow: hidden;
  width: 612px;
  height: 340px;
  transition: all 0.3s ease;
}

iframe {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.embed-video-wrapper:hover {
  transform: scale(1.05);
}

.about-text{
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #20242E;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.about-span{
    font-weight: 600;
}

.call-button, .about-button{
    padding: 12px 16px;
    width: 240px;
    height: 48px;
    background: #46B9FF;
    box-shadow: 0px 1px 1px rgba(32, 36, 46, 0.12), 0px 2px 8px rgba(70, 185, 255, 0.24);
    border-radius: 6px;
    border: 0;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.send-button{
  padding: 12px 16px;
    width: 160px;
    height: 48px;
    background: #5fcd6b;
    box-shadow: 0px 1px 1px rgba(32, 36, 46, 0.12), 0px 2px 8px rgba(70, 185, 255, 0.24);
    border-radius: 6px;
    border: 0;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.send-button:hover{
  transform: scale(1.1);
  background: #399143;
}

.about-button{
    background: #2F4F92;
    margin-bottom: 0;
}

.call-button:hover{
    transform: scale(1.1);
    background: rgb(22, 161, 248);
}

.about-button:hover{
    transform: scale(1.1);
    background: #193266;
}

.button-icon{
    width: 24px;
    margin-right: 8px;
}

.buttons-wrapper{
  display: flex;
  gap: 24px;
}

footer{
    background: #20242E;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo{
    width: 104px;
}

.footer-text-wrapper{
    display: flex;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.25px;
    color: #979FA8;
}

.privacy-link{
    margin-right: 24px;
    color: #979FA8;
}

.privacy-link:hover{
    text-decoration: underline;
}

.form-label{
  display: block;
  margin-bottom: 6px;
}

.form-wrapper{
  margin: 16px 0;
}

.form-input{
  min-width: 260px;
  border-radius: 3px;
  height: 20px;
  padding: 5px 2px;
  border: 1px solid #575859;
}

.error-message{
  margin-top: 6px;
  color: rgb(206, 55, 55);
  font-size: 14px;
  line-height: 16px;
}

.success-message{
  padding: 10px;
  background-color: #5fcd6c7b;
  border-radius: 8px;
}

@media screen and (max-width: 1270px) {
  .content {
    width: 950px;
    margin: 0 auto;
  }

  .promises {
    margin-top: -100px;
  }

  .promises-item {
    width: 178px;
    height: 204px;
    margin-right: 10px;
  }
}

@media screen and (max-width: 1020px) {
  .content {
    width: 768px;
    margin: 0 auto;
  }

  .header-subtitle {
    width: 400px;
  }

  .promises {
    margin-top: -40px;
    background: #20242e;
    padding-bottom: 20px;
  }

  .promises-wrapper {
    display: block;
  }

  .promises-row {
    justify-content: center;
    margin-bottom: 40px;
  }

  .promises-item {
    margin-right: 20px;
  }

  .promises-row:last-of-type {
    justify-content: center;
    margin-bottom: 0px;
  }

  .promises-item:last-of-type {
    margin-right: 0px;
  }

  .header-awards {
    justify-content: flex-start;
    flex-direction: column;
  }

  .header-block {
    padding-left: 60px;
  }

  .header-awards {
    padding-right: 30px;
  }

  .embed-video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    width: 412px;
    height: 220px;
    transition: all 0.3s ease;
  }
}

@media screen and (max-width: 720px) {
  header {
    height: auto;
  }

  .content {
    width: 100%;
    margin: 0 auto;
  }

  .header-content {
    flex-direction: column;
    padding: 10px 16px 0px;
  }

  .header-block {
    text-align: center;
    max-width: none;
    padding-left: 0;
  }

  .header-subtitle {
    width: 100%;
    max-width: none;
  }

  .header-awards {
    padding-right: 0;
    align-items: center;
    margin-top: 20px;
    justify-content: center;
    flex-direction: row;
  }

  .promises {
    margin-top: -1px;
    background: #20242e;
    padding: 56px 16px 16px;
  }

  .promises-row {
    flex-direction: column;
    align-items: center;
    padding: 0 64px;
  }

  .promises-item {
    margin-right: 0px;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    padding-bottom: 20px;
  }

  .promises-item:hover {
    transform: scale(1);
  }

  .promises-title {
    margin-top: 10px;
  }

  .promises-item:last-of-type {
    margin-right: 0px;
  }

  .promises-row {
    justify-content: center;
    margin-bottom: 0px;
  }

  .main-content{
    flex-direction: column;
    padding: 0 32px;
  }

  .video-block {
    margin-right: 0px;
    margin-bottom: 64px;
  }
  
  .video-text {
    color: #575859;
  }
  
  .embed-video-wrapper {
    width: 100%;
    height: 200px;
  }
  
  .call-button, .about-button, .send-button{
      margin-left: auto;
      margin-right: auto;
      width: 100%;
  }

  .footer-content{
    padding: 0 16px;
  }

  .privacy-link{
    margin-right: 20px;
    margin-left: 20px;
  }

  .buttons-wrapper{
    flex-direction: column;
  }
}

@media screen and (max-width: 400px) {
  .header-title {
    font-size: 38px;
    line-height: 46px;
    margin-bottom: 24px;
  }

  .header-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .header-awards {
    flex-direction: column;
  }

  .header-logo {
    margin-bottom: 32px;
  }

  .promises-row {
    padding: 0 32px;
  }

  .embed-video-wrapper {
    width: 100%;
    height: 150px;
  }
}
