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

.contact-page .site-footer {
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: start;
  gap: 55px;
  width: min(1180px, 100% - 48px);
  min-height: 240px;
  margin: auto auto 0;
  padding: 55px 0 40px;
  display: grid;
  position: relative;
}

.contact-page .site-footer::before {
  content: "";
  background: #6286991f;
  width: 100vw;
  height: 1px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.contact-page .site-footer > div:first-child p {
  color: #8799a2;
  max-width: 300px;
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.contact-page .site-footer > div:not(:first-child) {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.contact-page .site-footer strong {
  color: #4c6878;
  margin-bottom: 4px;
  font-size: 16px;
}

.contact-page .site-footer > div:not(:first-child) a {
  color: #80939d;
  font-size: 14px;
}

.contact-page .site-footer > span {
  color: #9aaaae;
  white-space: nowrap;
  align-self: end;
  font-size: 12px;
}

.contact-hero {
  text-align: center;
  width: min(760px, 100% - 40px);
  margin: 0 auto;
  padding: 86px 0 38px;
}

.contact-hero h1 {
  color: #294553;
  letter-spacing: -0.06em;
  margin-top: 20px;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 620;
  line-height: 0.98;
}

.contact-hero h1 em {
  color: #6b9cb7;
  font-style: normal;
}

.contact-hero p {
  color: #748a95;
  max-width: 590px;
  margin: 22px auto 0;
  font-size: 16px;
  line-height: 1.7;
}

.contact-card {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: #ffffffa8;
  border: 1px solid #ffffffd9;
  border-radius: 28px;
  box-shadow: 0 24px 70px #29455317;
  width: min(900px, 100% - 40px);
  margin: 4px auto 96px;
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 46px;
  align-items: center;
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #54829a;
  background: #e4f1f6;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.contact-icon svg { width: 27px; height: 27px; }

.contact-label,
.contact-support > span {
  color: #6895aa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.contact-primary h2 {
  color: #294553;
  letter-spacing: -0.04em;
  margin-top: 9px;
  font-size: 30px;
  font-weight: 650;
}

.contact-primary > p,
.contact-support p {
  color: #748a95;
  font-size: 14px;
  line-height: 1.7;
}

.contact-primary > p { max-width: 470px; margin-top: 10px; }

.contact-email {
  margin-top: 22px;
  min-height: 52px;
  padding: 0 17px;
  border: 1px solid #dceaf0;
  border-radius: 14px;
  background: #f8fcfd;
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.contact-email a {
  color: #41687b;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-support {
  border-left: 1px solid #6e96a51f;
  padding: 10px 0 10px 34px;
}

.contact-support p { margin-top: 11px; }

.contact-support a {
  color: #fff;
  background: #41687b;
  border-radius: 12px;
  height: 44px;
  padding: 0 15px;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 750;
}

.contact-support a svg { width: 15px; height: 15px; }

@media (max-width: 800px) {
  .contact-card { grid-template-columns: 1fr; gap: 30px; padding: 32px; }
  .contact-support { border-left: 0; border-top: 1px solid #6e96a51f; padding: 25px 0 0; }
  .contact-page .site-footer { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact-page .site-footer > div:first-child { grid-column: 1 / -1; }
  .contact-page .site-footer > span { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .contact-hero { padding: 64px 0 30px; }
  .contact-hero h1 { font-size: 48px; }
  .contact-card { padding: 26px 22px; margin-bottom: 64px; }
  .contact-email { padding: 0 12px; }
  .contact-email a { font-size: 13px; }
  .contact-page .site-footer { width: calc(100% - 40px); }
}
