.page {
  background: linear-gradient(180deg, rgba(209,201,184,1) 0%, rgba(75,64,61,1) 25%);
  background-repeat: no-repeat;
}

.container {
  background-image: url('./img/background3.png');
  background-repeat: no-repeat;
  background-position: right top;
}

.header-text {
  max-width: 606px;
}



.main {
  padding: 62px 30px 55px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.contact-image {
  border-radius: 50%;
  border: 23px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.contact-form {
  max-width: 1280px;
  width: 100%;
  border-radius: 20px;
  background-color: #BEB1AE;
  padding: 128px 64px 67px 60px; 
  box-sizing: border-box;
  position: relative;
  top: -87px;
  margin-bottom: -87px;
  display: flex;
  flex-direction: column;
}

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

.form-line:nth-child(2) {
  margin-top: 20px;
}

.form-line:nth-child(3) {
  margin-top: 37px;
}

.form-label {
  font-size: 20px;
  font-family: HelveticaNeueCyr-Roman;
  min-width: 209px;
}

.form-input {
  background-color: white;
  max-width: 948px;
  height: 70px;
  border-radius: 35px;
  width: 100%;
  box-sizing: border-box;
  padding: 24px 40px;
  font-size: 20px;
  font-family: HelveticaNeueCyr-Roman;
}

.form-input::placeholder {
  color: #BEB1AE;
}

.form-input:focus {
  outline: none;
}

.form-checkbox {
  display: none;
}

.checkbox-label {
  display: block;
  min-width: 41px;
  height: 41px;
  margin-left: 209px;
  background-color: white;
  border-radius: 5px;
  position: relative;
  cursor: pointer;
}

.form-checkbox:checked + .checkbox-label:before {
  content: '✔';
  font-size: 25px;
  position: absolute;
  left: 11px;
  top: 3px;
}

.checkbox-description {
  font-size: 20px;
  font-family: HelveticaNeueCyr-Roman;
  line-height: 30px;
  margin-left: 20px;
}

.main-button {
  max-width: 288px;
  width: 100%;
  min-height: 71px;
  margin-top: 37px;
  background-color: rgba(176, 36, 8, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #CEBE80;
  border-radius: 35px;
  color: white;
  text-transform: uppercase;
  font-family: HelveticaNeueCyr-Roman;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: 8px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  align-self: flex-end;
}

.main-button:hover {
  background-color: #8d1d06;
}

@media (min-width: 1920px) {
  .container {
    background-size: 100% auto;
  }
}

@media (max-width: 800px) {
  .form-line:nth-child(1), .form-line:nth-child(2) {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-input {
    margin-top: 20px;
  }

  .checkbox-label {
    margin-left: 0;
  }

}

@media (max-width: 620px) {
  .contact-image {
    box-sizing: border-box;
    width: 100%;
    height: auto;
  }

  .page-name {
    font-size: 50px;
  }

  .contact-form {
    padding: 128px 20px 67px;
  }
}

.popup {
  max-width: 500px;
  width: 85vw;
  position: fixed;
  z-index: 4;
  background-color: #BEB1AE;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  top: calc(50% - 65px);
  box-sizing: border-box;
  display: none;
}

.popup-title {
  color: #9C2E17;
  font-size: 28px;
  font-family: HelveticaNeueCyr-Bold;
  text-align: center;
}

.popup-text {
  margin-top: 20px;
  font-family: HelveticaNeueCyr-Roman;
  font-size: 19px;
  line-height: 25px;
  text-align: center;
}