.contact-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.contact-main {
  flex: 1;
  padding: clamp(36px, 7vw, 88px) 0;
  background: radial-gradient(ellipse at 22% 32%, #234858, transparent 56%), #112c3b;
}

.contact-intro p, .contact-card p {
  line-height: 1.6;
}

.contact-card a {
  color: #24576d;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.contact-card {
  padding: clamp(14px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 52px #071c2a45;
}

.contact-card h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: -.025em;
}

.contact-card form {
  display: grid;
  gap: 9px;
}

.contact-card label {
  font-weight: 650;
}

.contact-card input, .contact-card textarea {
  width: 100%;
  margin-bottom: 9px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #899da8;
  border-radius: 8px;
  font: inherit;
}

.contact-card textarea {
  resize: vertical;
}

.contact-card :is(input, textarea, button):focus-visible {
  outline: 2px solid #2463a5;
  outline-offset: 3px;
}

.contact-card button {
  justify-self: start;
  margin-top: 5px;
  cursor: pointer;
}

.contact-error {
  padding: 10px 12px;
  border-radius: 8px;
  color: #832e23;
  background: #fff0ed;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(38px, 7vw, 108px);
  max-width: var(--max);
}

.contact-intro {
  margin: 0;
  padding-block: clamp(12px, 3vw, 44px) 0;
  color: #fff;
}

.contact-intro h1 {
  margin: 0 0 12px;
  line-height: 1.12;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -.055em;
}

.contact-intro > p {
  max-width: 33ch;
  margin: 18px 0 30px;
  color: #c5d8df;
  font-size: clamp(16px, 2vw, 19px);
}

.contact-phone {
  display: inline-flex;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid #accbd4;
  border-radius: 13px;
  background: #e2eff2;
  color: #112c3b;
}

.contact-phone:hover {
  background: #f2f9fa;
}

.contact-phone:focus-visible {
  outline: 2px solid #e2eff2;
  outline-offset: 5px;
}

.contact-phone-label {
  color: #355b68;
  font-size: 14px;
  font-weight: 650;
}

.contact-phone-number {
  font-size: clamp(28px, 4.3vw, 55px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.contact-phone:hover .contact-phone-number,
.contact-phone:focus-visible .contact-phone-number {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.contact-company {
  max-width: 26rem;
  margin-top: clamp(26px, 4vw, 48px);
  padding: 2px 0 2px 18px;
  border-left: 2px solid #89b4bf;
}

.contact-company p, .contact-company span {
  margin: 0;
  color: #c5d8df;
  font-size: 15px;
  line-height: 1.5;
}

.contact-company strong {
  display: block;
  margin: 5px 0 3px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
    gap: 28px;
  }

  .contact-intro {
    padding-top: 0;
  }

  .contact-intro > p {
    margin-bottom: 20px;
  }

  .contact-phone-number {
    font-size: clamp(30px, 8vw, 45px);
  }
}
