@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
}
body {
  --hpad: 0px;
  background: #f5f3ff;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.form-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: 1064px;
  max-height: 730px;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 4px 21.7px 0 #c8c8c8;
}
h1 {
  text-align: center;
  font-family: Montserrat;
  font-size: 30px;
  font-weight: 700;
  line-height: 30px;
  margin-top: 0px;
  margin-bottom: 23px;
  background: linear-gradient(90deg, #000 0%, #666 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.form-block-wrapper {
  padding-inline: 50px;
  min-width: 444px;
}
#timer {
  color: #4735fd;
  text-align: center;
  font-family: Montserrat;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  margin-bottom: 30px;
  margin-top: 0px;
}
.form-block img {
  width: 100%;
  height: 100%;
  max-width: 500px;
}
.hidden {
  display: none;
}
#openForm {
  display: block;
  text-align: center;
  width: 100%;
  max-width: 260px;
  padding: 20px;
  background: url("/img/bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-family: Arial, sans-serif;
  border-radius: 16px;
  transition: all 0.3s ease;
  margin-inline: auto;
}

#openForm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#openForm:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 1140px) {
  .form-block img {
    display: none;
  }
  .form-block-wrapper {
    width: 100%;
    min-width: auto;
  }
  body {
    --hpad: 44px;
    padding-inline: 44px;
    background-image: url("/img/bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 110% 110%;
  }
  .form-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - (var(--hpad) * 2));
    max-width: none;
    box-sizing: border-box;
    padding: 50px 24px;
    max-width: 658px;
  }
  .form-block-wrapper {
    padding-inline: 0px;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 25px;
  }
  body {
    --hpad: 12px;
    padding-inline: 12px;
  }
  .form-block {
    width: calc(100% - (var(--hpad) * 2));
    padding: 50px 20px;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 16px;
}

/* окно */
.modal-content {
  background: url("/img/bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 10px solid white;
  padding: 30px;
  width: 400px;
  border-radius: 20px;
  position: relative;
  text-align: center;
  animation: popup 0.3s ease;
  p {
    color: white;
    font-size: 18px;
  }
}

/* крестик */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
}

/* кнопка */
.modal-btn {
  margin-top: 20px;
  display: block;
  width: 100%;
  max-width: 200px;
  margin-inline: auto;
  padding: 10px 20px;
  border: none;
  background: url("/img/bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid white;
}

.modal-btn:hover {
  filter: opacity(0.9);
}

/* анимация */
@keyframes popup {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
