* {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

ul, ol {
  list-style: none;
}

a {
  display: block;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

p a {
  display: inline;
}

img, video, iframe, picture, figure {
  display: block;
  max-width: 100%;
}

form, input, select, textarea, button, label {
  display: block;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

@font-face {
  font-family: "roboto";
  src: url("../fonts/Roboto-Regular.ttf");
  font-weight: 400;
}
@font-face {
  font-family: "roboto";
  src: url("../fonts/Roboto-Bold.ttf");
  font-weight: 700;
}
html {
  font-size: 62.5%;
}

body {
  font-family: roboto;
  background-color: #ffffff;
  display: grid;
  justify-items: center;
  align-items: center;
}

.layout {
  display: grid;
  background-color: #ffffff;
}

.images__head--desktop {
  display: none;
}

.images__head--mobile {
  border-radius: 0 0 1.6rem 1.6rem;
}

.layout__head {
  margin-top: 4rem;
  padding-inline: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: start;
  gap: 2.4rem;
}

.head__title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: #242742;
}

.head__subtitle {
  font-size: 1.6rem;
  font-weight: 400;
  color: #242742;
}

.head__list {
  width: 90%;
}

.list__item {
  font-size: 1.6rem;
  color: #242742;
  display: flex;
  align-items: start;
  gap: 1.6rem;
  margin-bottom: 0.8rem;
}

.item__check {
  width: 2.1rem;
  height: 2.1rem;
}

.layout__form {
  margin: 3rem 2.4rem;
}

.form__header-mail {
  display: flex;
  justify-content: space-between;
}

.form__mail {
  font-size: 1.2rem;
  font-weight: 700;
  color: #242742;
  margin-bottom: 0.8rem;
}

.form__mail-error {
  display: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ff6155;
}

.form__input {
  width: 100%;
  height: 5.6rem;
  font-size: 1.6rem;
  color: #949494;
  border-radius: 1rem;
  padding: 1.6rem 2.4rem;
  border: 1px solid #949494;
  outline: none;
}
.form__input:focus {
  color: #242742;
  border: 2px solid #949494;
}

.form__input::placeholder {
  font-size: 1.7rem !important;
  color: #949494;
}

.form__input-error {
  border: 1px solid #ff6155;
  background-color: rgba(255, 97, 85, 0.1568627451);
  transition: border 0.5 ease, background-color 0.5s ease;
}

.form__input-error::placeholder {
  color: #ff6155;
}

.form__buttons {
  width: 100%;
  height: 5.6rem;
  border: none;
  border-radius: 1rem;
  background-color: #242742;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1.6rem;
  font-size: 1.4rem;
  margin-top: 2.4rem;
}
.form__buttons:hover {
  background: linear-gradient(to right, #ff6a3a, #ff527b) padding-box, linear-gradient(45deg, #ff6a3a, #ff527b) border-box;
  box-shadow: 0px 4px 16px 4px rgba(255, 106, 58, 0.6);
}
.form__buttons:focus {
  background: linear-gradient(to right, #ff6a3a, #ff527b) padding-box, linear-gradient(45deg, #ff6a3a, #ff527b) border-box;
  box-shadow: 0px 4px 16px 4px rgba(255, 106, 58, 0.6);
}
.form__buttons:active {
  background: linear-gradient(to right, #ff6a3a, #ff527b) padding-box, linear-gradient(45deg, #ff6a3a, #ff527b) border-box !important;
  box-shadow: 0px 4px 16px 4px rgba(255, 106, 58, 0.6) !important;
  transition: background 1s ease !important;
}

.display-none {
  display: none !important;
}

/* ##### Sign-up form end ###### */
.layout__success {
  display: none;
  opacity: 0;
  /* visibility: hidden; */
  transition: opacity 1s ease, visibility 1s ease;
  /* display: grid; */
  height: 74vh;
  align-items: center;
  gap: 3.2rem;
  background-color: #ffffff;
  margin: 17.7vh 2.4rem 8.3vh 2.4rem;
}

.layout__success--visible {
  display: grid !important;
  opacity: 1;
  /* visibility: visible; */
}

.success__title {
  color: #242742;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.success__lead {
  color: #242742;
  font-size: 1.6rem;
}

.success__buttons {
  padding-top: 26vh;
}

.buttons__message {
  width: 100%;
  height: 5.6rem;
  border: none;
  border-radius: 1rem;
  background-color: #242742;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1.6rem;
}
.buttons__message:hover {
  background: linear-gradient(to right, #ff6a3a, #ff527b) padding-box, linear-gradient(45deg, #ff6a3a, #ff527b) border-box;
  box-shadow: 0px 4px 16px 4px rgba(255, 106, 58, 0.6);
}
.buttons__message:focus {
  background: linear-gradient(to right, #ff6a3a, #ff527b) padding-box, linear-gradient(45deg, #ff6a3a, #ff527b) border-box;
  box-shadow: 0px 4px 16px 4px rgba(255, 106, 58, 0.6);
}

@media (min-width: 767px) {
  body {
    background-color: #242742;
  }
  .layout {
    max-height: 64.1rem;
    display: grid;
    padding: 4rem;
    border-radius: 1.6rem;
  }
  .images__head--mobile {
    width: 100%;
  }
  .image__mobile {
    width: 100%;
    height: 100%;
    max-height: 35.8rem;
    object-fit: cover;
    border-radius: 1rem;
  }
  .head__title {
    font-size: 5.6rem;
  }
  .layout__form {
    margin-inline: 0;
  }
  .layout__head {
    padding-inline: 0;
  }
  .head__list {
    width: 37.6rem;
  }
  /* ### LAYOUT SUCCESS #### */
  .layout__success {
    width: 50.2rem;
    height: 52rem;
    padding: 6.4rem;
    border-radius: 3.6rem;
    margin: 0;
  }
  .succes__image {
    width: 6.4rem;
    height: 6.4rem;
  }
  .success__title {
    font-size: 5.6rem;
    line-height: 1;
  }
  .success__lead {
    width: 37.6rem;
    font-size: 1.6rem;
  }
  .success__buttons {
    width: 37.6rem;
    padding: 0;
  }
}
@media (min-width: 1100px) {
  .images__head--mobile {
    display: none;
  }
  .images__head--desktop {
    display: block;
  }
  .layout {
    display: grid;
    grid-template-columns: auto 40rem;
    gap: 6.4rem;
    padding: 3.2rem;
  }
  .layout__images {
    order: 2;
  }
  .layout__container {
    max-width: 37.6rem;
    order: 1;
    display: grid;
    justify-content: center;
    align-content: center;
  }
  .layout__head {
    margin-top: 2.4rem;
    gap: 3.2rem;
  }
  .head__subtitle {
    letter-spacing: 0.2px;
  }
}
@media (max-height: 667px) {
  .layout__success {
    margin: 5vh 1.2rem 3vh 1.2rem;
  }
  .success__buttons {
    padding-top: 15vh;
  }
}
@media (max-height: 550px) {
  .layout__success {
    margin: 2vh 1.2rem 3vh 1.2rem;
  }
  .success__buttons {
    padding-top: 3vh;
  }
}

/*# sourceMappingURL=style.css.map */
