#block-contactblock {
  margin-bottom: 6em;
}

.contact-container {
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 3em;
}

.contact-wrapper {
  display: flex;
  width: 75%;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
}

.contact-left {
  color: #000000;
  height: 500px;
  background: url(../src/bg_contact_left.png) no-repeat center;
  overflow: visible;
  max-width: 691px;
  flex-direction: column;
  width: 40%;
  min-width: 691px;
  padding-left: 3em;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
}

.contact-title-left {
  padding-top: 0.5em;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-size: 50px;
  line-height: 55px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--pes-light-blue);
}

.contact-title-left > p, .contact-title-right > p {
  margin-bottom: 0;
}

.contact-title-left p:first-of-type {
  margin-top: 1em;
}

.contact-text-left {
  padding-bottom: 3.5em;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 1px;
}

.contact-text-left > p, .contact-text-right > p {
  margin-bottom: 0.5em;
}


/*.contact-btn-left > a {
  color: white;
  text-transform: uppercase;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 37px;
  letter-spacing: 0.05em;
  text-align: center;
  width: fit-content;
  text-decoration: none !important;
}*/
.contact-btn-left a{
  color: white;
  text-transform: uppercase;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 37px;
  letter-spacing: 0.05em;
  text-align: center;
  width: fit-content;
  text-decoration: none !important;
  background-color: var(--pes-light-blue);
  padding: 0.27em 0.35em;
  margin-bottom: 2em;
  border-radius: 30px;
  min-width: 209px;
  justify-content: center;
  align-items: center;
  display: flex;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
  border: 1px solid transparent;
}
.contact-btn-left a:hover {
  background-color: white;
  color: var(--pes-light-blue);
  text-decoration: var(--pes-light-blue) underline !important;
  border: 1px solid var(--pes-light-blue);
}

.contact-right {
  color: #ffffff;
  height: 500px;
  overflow: visible;
  max-width: 700px;
  min-width: 699px;
  padding-left: 4.4em;
  flex-direction: column;
  width: 40%;
  display: flex;
  justify-content: space-evenly;
  align-content: flex-start;
}

.contact-title-right {
  padding-top: 1em;
  font-family: 'Oswald';
  font-size: 50px;
  font-weight: 700;
  line-height: 55px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  width: 60%;
  min-width: 360px
}

.contact-text-right {
  padding-bottom: 4em;
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  width: 65%;
  min-width: 330px
}

/*.contact-btn-right>a {
  color: #0B122D;
  text-decoration: none !important;
  text-transform: uppercase;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 37px;
  letter-spacing: 0.05em;
  text-align: center;
  width: fit-content;
}*/

/*.contact-btn-right>a:hover {
  color: white!important;
  text-decoration: var(--pes-light-blue) underline;
}*/

.contact-btn-right a{
  color: #0B122D !important;
  text-decoration: none !important;
  text-transform: uppercase;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 37px;
  letter-spacing: 0.05em;
  text-align: center;
  background-color: white;
  padding: 0.27em 0.35em;
  border-radius: 30px!important;
  width: fit-content;
  min-width: 241px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s, color 0.3s;
}

.contact-btn-right a:hover {
  background-color: var(--pes-light-blue);
  color: white!important;
  text-decoration: white underline !important;
}

@media screen and (max-width: 1380px) {
  .contact-wrapper {
    flex-direction: column;
  }
}

@media screen and (min-width: 1700px) and (max-width: 1800px) {
  .contact-wrapper {
    width: 80%;
  }
}

@media screen and (min-width: 1600px) and (max-width: 1700px) {
  .contact-wrapper {
    width: 90%;
  }
}

@media screen and (min-width: 1381px) and (max-width: 1600px) {
  .contact-wrapper {
    width: 100%;
  }
}

@media screen and (min-width: 700px) and (max-width: 1380px) {
  .contact-wrapper {
    width: 100%;
  }
}

@media screen and (max-width: 700px) {
  .contact-wrapper {
    width: 100%;
    height: 1000px;
  }

  .contact-left {
    max-width: none;
    width: 100%;
    height: 50%;
    background: url(../src/bg_contact_left_mobile.png) no-repeat center;
    padding: 1em;
    margin-right: 0;
    min-width: unset;
    background-position-x: 100%;
    background-position-y: bottom;
  }

  .contact-btn-left {
    width: 234px;
  }

  .contact-right {
    max-width: none;
    width: 100%;
    height: 50%;
    padding: 1em;
    min-width: unset;
    background-size: auto;
  }

  .contact-container {
    margin: 10% auto 0 auto;
    width: 100%;
  }

  .contact-btn-right {
    width: 296px;
    margin-bottom: auto;
  }

  .contact-text-right {
    padding-bottom: 3em;
    font-family: Archivo;
    font-size: 17px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 0px;
    text-align: left;
  }
}

  @media screen and (max-width: 400px) {
    #block-contactblock {
      margin-bottom: 0;
    }

    .contact-container {
      margin-top: 10%;
      margin-bottom: 0;
    }

    .contact-text-left {
      padding-bottom: 0;
    }

    .contact-text-right {
      padding-bottom: 2em;
      padding-top: 2em;
    }

    .block-contact-block {
      overflow-x: hidden;
    }

    .contact-title-left {
      font-size: 40px;
      line-height: 45px;
    }

    .contact-right {
      justify-content: space-evenly;
    }

    .contact-title-right {
      font-size: 40px;
      line-height: 45px;
    }

    .contact-btn-right {
      margin-bottom: 4em;
    }
  }
