/* Contact — Форма «Обсудить проект» */

.contact {
  width: 100%;
  background-color: #f2f2f2;
}

.contact__inner {
  width: 100%;
  max-width: 1425px;
  margin-left: auto;
  margin-right: auto;
  padding: 80px 72.5px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  box-sizing: border-box;
}

.contact__header {
  width: 100%;
  max-width: 1215px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  text-align: center;
}

.contact__title-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.contact__tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: #051133;
}

.contact__title {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 89px;
  line-height: 1.1;
  color: #051133;
  width: 100%;
}

.contact__lead {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #051133;
  width: 100%;
  max-width: 930px;
}

.contact__form-wrap {
  width: 100%;
  max-width: 35rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__label {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #051133;
}

.contact__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  color: #051133;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background-color: #ffffff;
  border: 1px solid rgba(5, 17, 51, 0.12);
  border-radius: 7px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__input--textarea {
  min-height: 9rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  resize: vertical;
}

.contact__input:hover {
  background-color: #ffffff;
  border-color: rgba(5, 17, 51, 0.22);
}

.contact__input:focus {
  background-color: #ffffff;
  border-color: #0040bf;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 64, 191, 0.12);
}

.contact__input::placeholder {
  color: rgba(5, 17, 51, 0.45);
}

.contact__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.25rem 0 0;
  cursor: pointer;
}

.contact__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact__checkbox-box {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border: 1px solid rgba(5, 17, 51, 0.12);
  border-radius: 4px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.contact__consent:hover .contact__checkbox-box {
  border-color: rgba(5, 17, 51, 0.22);
}

.contact__checkbox:checked + .contact__checkbox-box {
  background-color: #0040bf;
  border-color: #0040bf;
}

.contact__checkbox:checked + .contact__checkbox-box::after {
  content: '';
  width: 0.35rem;
  height: 0.625rem;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -0.125rem;
}

.contact__checkbox:focus-visible + .contact__checkbox-box {
  border-color: #0040bf;
  box-shadow: 0 0 0 3px rgba(0, 64, 191, 0.12);
}

.contact__checkbox-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #051133;
}

.contact__link {
  color: #0040bf;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
  transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
}

.contact__link:hover {
  color: #ff840b;
  text-decoration-color: #ff840b;
}

.contact__submit-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
}

.contact__submit {
  cursor: pointer;
  background-color: #0040bf;
  color: #ffffff;
  border: none;
  padding: 14px 26px;
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.42px;
  transition: background-color 0.2s ease-in-out;
}

.contact__submit:hover {
  background-color: #ff840b;
}

.contact__message-wrap {
  display: none;
  margin-top: 1rem;
  padding: 0;
}

.contact__message {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.contact__message--success {
  color: #027a48;
  background-color: #ecfdf3;
  padding: 2.5rem;
}

.contact__message--error {
  color: #b42318;
  background-color: #fef3f2;
  padding: 1rem;
}

@media screen and (max-width: 1410px) {
  .contact__inner {
    gap: 40px;
  }

  .contact__header {
    gap: 2rem;
  }
}

@media screen and (max-width: 1200px) and (min-width: 768px) {
  .contact__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 767px) {
  .contact__inner {
    padding: 4rem var(--page-gutter);
    gap: 2rem;
  }

  .contact__header {
    gap: 1.5rem;
  }

  .contact__title-block {
    gap: 1rem;
  }

  .contact__tag {
    font-size: 1rem;
    line-height: 1.2;
  }

  .contact__title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .contact__lead {
    font-size: 1rem;
    line-height: 1.2;
  }

  .contact__submit {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.2px;
    box-sizing: border-box;
  }
}
