html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
.contact-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  padding: 112px 24px 54px;
}
.contact-page__inner {
  width: min(760px, 86vw);
  text-align: center;
  transition: opacity 0.55s ease;
}
.contact-title {
  margin: 0 0 54px;
  font-size: clamp(54px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 400;
  color: #171717;
}
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}
.field {
  position: relative;
}
.contact-input,
.contact-textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.22);
  background: transparent;
  color: #171717;
  font-size: max(16px, clamp(20px, 1.8vw, 27px));
  font-family: Inter, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.025em;
  outline: none;
  padding: 12px 2px 15px;
  border-radius: 0;
  transition: border-color 0.35s ease;
}
.contact-input:focus,
.contact-textarea:focus {
  border-bottom-color: rgba(23, 23, 23, 0.72);
}
.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(23, 23, 23, 0.38);
  opacity: 1;
}
.contact-textarea {
  min-height: 126px;
  max-height: 126px;
  resize: none;
}
.contact-action {
  align-self: center;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #171717;
  font: 300 12px / 1 Inter, Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 14px 20px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.contact-action:active {
  opacity: 0.6;
  transform: scale(0.97);
}
.contact-action::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 100%;
  bottom: 7px;
  height: 1px;
  background: #171717;
  transition: right 0.8s cubic-bezier(0.22, 0.72, 0.22, 1);
}
.contact-action:hover::after {
  right: 20px;
}
.contact-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background: #f5f5f5;
  text-align: center;
}
.contact-success.is-active {
  opacity: 1;
  pointer-events: auto;
}
.success-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(900px, 88vw);
  text-align: center;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.success-stage.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.success-stage--small {
  font-size: clamp(34px, 4vw, 58px);
}
.success-signoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.success-signoff-note {
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 300;
  letter-spacing: 0.11em;
  color: rgba(23, 23, 23, 0.52);
}
.success-back {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.success-back.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.contact-page.is-sent .contact-page__inner {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 767px) {
  .contact-page {
    padding: 84px 16px 36px;
  }
  .contact-title {
    margin-bottom: 40px;
    font-size: clamp(38px, 8vw, 64px);
  }
  .contact-form {
    gap: 22px;
  }
  .contact-textarea {
    min-height: 112px;
    max-height: 112px;
  }
  .site-nav__group {
    gap: 16px;
  }
  .success-back {
    bottom: 40px;
  }
}
