@font-face {
  font-family: "DGO";
  src: url("../assets/fonts/DelaGothicOne-Regular.eot");
  src: url("../assets/fonts/DelaGothicOne-Regular.eot?#iefix") format("embedded-opentype"), url("../assets/fonts/DelaGothicOne-Regular.woff2") format("woff2"), url("../assets/fonts/DelaGothicOne-Regular.woff") format("woff"), url("../assets/fonts/DelaGothicOne-Regular.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MR";
  src: url("../assets/fonts/Mulish-Regular.eot");
  src: url("../assets/fonts/Mulish-Regular.eot?#iefix") format("embedded-opentype"), url("../assets/fonts/Mulish-Regular.woff2") format("woff2"), url("../assets/fonts/Mulish-Regular.woff") format("woff");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MM";
  src: url("../assets/fonts/Mulish-Medium.eot");
  src: url("../assets/fonts/Mulish-Medium.eot?#iefix") format("embedded-opentype"), url("../assets/fonts/Mulish-Medium.woff2") format("woff2"), url("../assets/fonts/Mulish-Medium.woff") format("woff"), url("../assets/fonts/Mulish-Medium.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MB";
  src: url("../assets/fonts/Mulish-Bold.eot");
  src: url("../assets/fonts/Mulish-Bold.eot?#iefix") format("embedded-opentype"), url("../assets/fonts/Mulish-Bold.woff2") format("woff2"), url("../assets/fonts/Mulish-Bold.woff") format("woff"), url("../assets/fonts/Mulish-Bold.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
.main__title {
  font-family: "DGO", sans-serif;
  font-size: 4rem;
}

.modal__title, .thanks__title {
  font-family: "MB", sans-serif;
  font-size: 2rem;
}

.main__text {
  font-family: "MR", sans-serif;
  font-size: 1.5rem;
}

.header__button, .form__submit {
  font-family: "MB", sans-serif;
  font-size: 1.25rem;
}

.form__input, .form__textarea {
  font-family: "MR", sans-serif;
  font-size: 1.125rem;
}

body {
  min-width: 360px;
  margin: 0;
  padding: 0;
  font-family: "MR", sans-serif;
  font-size: 16px;
  color: #292929;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

a,
a:hover {
  text-decoration: none;
  color: #292929;
}

button {
  padding: 0;
  cursor: pointer;
}

.img-fluid {
  width: 100%;
  height: auto;
}

.header {
  padding: 1.875rem 2.8rem 2.8rem 2.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}
.header__button {
  border-radius: 5px;
  background-color: #ec3232;
  color: #ffffff;
  padding: 0.625rem 1.875rem;
  border: 1px solid #ec3232;
  transition: 0.3s all;
}
.header__button:hover {
  background-color: #ffffff;
  color: #292929;
}

.main {
  padding: 0 1.875rem 1.5rem 1.875rem;
  height: 100%;
}
.main__wrapper {
  height: calc(100vh - 150px);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.main__box {
  position: absolute;
  top: 6rem;
  left: 3rem;
}
.main__title {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  font-weight: 400;
  line-height: 1.1;
}
.main__img {
  font-size: 0;
  position: relative;
}
.main__img::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.2);
}
.main__img img {
  height: 100vh;
  width: auto;
  font-size: 0;
}
.main__text {
  display: inline-block;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border: 1px solid #ec3232;
  border-radius: 10px;
  margin-top: 3.25rem;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: none;
  justify-content: flex-end;
  transition: 0.3s all;
}
.modal__wrapper {
  background-color: #ffffff;
  height: 100vh; /* Fallback for browsers that do not support Custom Properties */
  height: calc(var(--vh, 1vh) * 100 - 40px);
  max-width: 510px;
  width: 100%;
  padding: 1.25rem;
  visibility: hidden;
  margin-left: auto;
  margin-right: 0;
  right: -100%;
  transition: all 0.4s ease-in-out;
  position: relative;
  z-index: 200;
  touch-action: auto;
  -ms-touch-action: auto;
}
.modal__box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.modal__title {
  color: #292929;
}
.modal__close {
  width: 50px;
  height: 50px;
  position: relative;
  border: 0;
  background-color: transparent;
}
.modal__close::before, .modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -14px;
  width: 28px;
  height: 2px;
  background-color: #292929;
  transition: 0.3s all;
}
.modal__close::before {
  transform: rotate(45deg);
}
.modal__close::after {
  transform: rotate(-45deg);
}
.modal__close:hover::before, .modal__close:hover::after {
  background-color: #ec3232;
}

.form {
  height: calc(var(--vh, 1vh) * 100 - 140px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.form__wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 570px;
}
.form__input {
  padding: 1.25rem;
  border: 1px solid #ededed;
  border-radius: 5px;
  margin-bottom: 1.25rem;
}
.form__textarea {
  padding: 1.25rem;
  border: 1px solid #ededed;
  border-radius: 5px;
  resize: none;
  max-height: 360px;
  height: 100%;
  margin-bottom: 1rem;
}
.form__submit {
  color: #ffffff;
  background-color: #ec3232;
  width: 100%;
  padding: 2.9rem 0;
  border-radius: 20px;
  border: 1px solid #ec3232;
  cursor: pointer;
  transition: 0.3s all;
}
.form__submit:hover {
  color: #292929;
  background-color: #ffffff;
}

.thanks__wrapper {
  height: calc(var(--vh, 1vh) * 100 - 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 1.875rem;
}
.thanks__wrapper svg {
  width: 160px;
  height: 160px;
}
.thanks__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.625rem;
}
.thanks__text {
  font-family: "MR", sans-serif;
  font-size: 1.25rem;
  text-align: center;
}

@media (max-width: 1000px) {
  .form__submit {
    padding: 1.875rem 0;
  }
  .thanks__wrapper svg {
    width: 107px;
    height: 107px;
  }
}
@media (max-width: 576px) {
  .header {
    padding: 1.875rem 1.25rem;
  }
  .header__button {
    font-size: 1rem;
  }
  .main {
    padding: 0 1.25rem 1.3rem;
  }
  .main__box {
    top: 1.875rem;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.875rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }
  .main__title {
    font-size: 2.25rem;
  }
  .main__text {
    margin-top: 0;
    font-size: 1rem;
  }
  .modal__wrapper {
    width: calc(var(--vw, 1vw) * 100 - 40px);
  }
  .form {
    align-items: center;
    width: 100%;
  }
  .form__wrapper {
    width: 100%;
  }
  .thanks__wrapper svg {
    width: 85px;
    height: 85px;
  }
  .thanks__text {
    font-size: 1rem;
  }
}