.contact-page {
  padding-bottom: 4rem;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

.page-lead-underlined {
  position: relative;
  display: inline-block;
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
}

.page-lead-underlined::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(23, 24, 20, 0.35);
  transform-origin: left center;
  transform: scaleX(0);
  animation: drawUnderline 680ms cubic-bezier(.2, .8, .2, 1) 120ms forwards;
}

.contact-info-block h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.underlined-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.45rem;
}

.underlined-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(23, 24, 20, 0.55);
  transform-origin: left center;
  transform: scaleX(0);
  animation: drawUnderline 680ms cubic-bezier(.2, .8, .2, 1) 260ms forwards;
}

.contact-info-block p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.contact-info-block a {
  color: inherit;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-field {
  display: grid;
  gap: 0.5rem;
}

.contact-field span {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(23, 24, 20, 0.12);
  border-radius: 0;
  background: transparent;
  padding: 0.9rem 0;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(70, 72, 61, 0.75);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(23, 24, 20, 0.3);
  background: rgba(23, 24, 20, 0.05);
}

.contact-submit {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 0 0.35rem;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.contact-submit::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.contact-submit:hover::after,
.contact-submit:focus-visible::after {
  transform: scaleX(1);
}

@keyframes drawUnderline {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}
