.contact-page {
  background: var(--bg);
}

.contact-hero {
  position: relative;
  min-height: 736px;
  background: url("../media/contact/contact-hero.jpg") center center / cover no-repeat;
}

.contact-hero::before,
.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.contact-hero::before {
  background:
    linear-gradient(180deg, rgba(4, 18, 42, 0.78) 0%, rgba(4, 18, 42, 0.2) 33%, rgba(242, 244, 247, 0) 74%);
}

.contact-hero::after {
  top: auto;
  height: 420px;
  background: linear-gradient(180deg, rgba(242, 244, 247, 0) 0%, rgba(242, 244, 247, 0.38) 34%, rgba(242, 244, 247, 0.98) 100%);
}

.contact-main {
  position: relative;
  margin-top: 0;
  padding-top: 80px;
  padding-bottom: 104px;
}

.contact-grid {
  display: grid;
  width: min(1265px, calc(100% - 160px));
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 592.5px));
  gap: 80px;
  align-items: start;
}

.contact-copy {
  max-width: 592.5px;
  padding-top: 128px;
}

.contact-copy h1 {
  margin: 0;
  max-width: 512.5px;
  font-size: 80px;
  font-weight: 500;
  line-height: 96px;
  letter-spacing: -0.04em;
}

.contact-copy p {
  max-width: 512.5px;
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22.4px;
  letter-spacing: -0.02em;
  color: rgb(0, 16, 58);
}

.contact-links {
  width: 512.5px;
  margin-top: 132px;
}

.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  border-bottom: 1px solid rgba(0, 16, 58, 0.14);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.contact-link-row span:last-child {
  font-size: 16px;
}

.contact-card {
  min-height: 744px;
  padding: 40px;
  border-radius: 24px;
  background: rgb(255, 255, 255);
  box-shadow: 0 26px 80px rgba(0, 16, 58, 0.08);
}

.contact-card-info {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.contact-card-info a {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.contact-card-info p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.02em;
  color: rgba(0, 16, 58, 0.82);
}

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

.contact-form label {
  display: block;
}

.contact-form-field {
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 16, 58, 0.08);
  border-radius: 8px;
  background: rgba(242, 244, 247, 0.82);
  min-height: 44px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(0, 16, 58, 0.44);
}

.contact-form textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-form-field.has-error input,
.contact-form-field.has-error textarea {
  border-color: rgba(180, 35, 24, 0.36);
  background: rgba(254, 243, 242, 0.92);
}

.contact-form-feedback {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.02em;
}

.contact-form-feedback--success {
  background: rgba(2, 129, 72, 0.08);
  color: #0f5132;
}

.contact-form-feedback--error {
  background: rgba(180, 35, 24, 0.08);
  color: #9f1c10;
}

.contact-form-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.02em;
  color: #9f1c10;
}

.contact-form-note {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.02em;
  color: rgba(0, 16, 58, 0.56);
}

.contact-form-field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #252525;
  box-shadow: none;
}

.closing-banner-inner {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.closing-banner-copy {
  max-width: 820px;
  padding-top: 120px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.closing-banner-kicker {
  display: none;
}

.closing-banner-copy h2 {
  margin: 0;
  font-size: 40px;
  line-height: 50px;
}

.closing-banner-copy p {
  max-width: 820px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22.4px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.6);
}

.closing-banner-actions {
  margin-top: 0;
}

.closing-banner .btn {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: normal;
}

@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1fr;
    width: calc(100% - 64px);
  }

  .contact-copy {
    max-width: none;
    padding-top: 0;
  }

  .contact-links {
    width: 100%;
  }

  .contact-card {
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .contact-hero {
    min-height: 460px;
  }

  .contact-main {
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

  .contact-copy h1 {
    font-size: 46px;
    line-height: 52px;
  }

  .contact-card {
    padding: 20px;
  }
}
