.header-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 44px;
  flex-shrink: 0;
  white-space: nowrap;
  padding-inline: 13px;
  border: 1px solid #29416a;
  border-radius: var(--radius);
  background: #101c31;
  text-align: right;
  font-size: 14px;
  font-weight: 620;
  color: #e0e6ef;
}

.header-map-link i {
  color: #86a6ff;
}

.header-map-link i[data-icon] svg {
  width: 16px;
  height: 16px;
}

.header-map-link:hover {
  border-color: #628df2;
  color: #fff;
}

.map-contact-intro p {
  margin-top: 12px;
  max-width: 45ch;
  color: var(--muted);
  line-height: 1.65;
}

.map-contact {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(22px, 5.4vw, 76px);
  margin-block: clamp(42px, 6vw, 84px);
  scroll-margin-top: 24px;
}

.map-contact h2 {
  max-width: 15ch;
  font-size: clamp(30px, 3.5vw, 45px);
  font-weight: 740;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.map-contact-intro p:first-of-type {
  margin-top: 17px;
}

.contact-form,
.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contact-form {
  gap: 17px;
  padding: clamp(18px, 2.7vw, 34px);
  border: 1px solid #c7d7ed;
  border-radius: var(--radius);
  background: #eaf2ff;
  color: #152848;
  color-scheme: light;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 620;
  color: #152848;
}

.contact-form :is(input, select, textarea) {
  width: 100%;
  min-height: 47px;
  border: 1px solid #aabfdb;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: #152848;
  font-weight: 400;
  font-size: 16px;
}

.contact-form select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #476083 50%), linear-gradient(135deg, #476083 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 10px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.contact-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.contact-form textarea::placeholder {
  color: #526480;
}

.contact-form :is(input, select, textarea):hover {
  border-color: #4b78bb;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.contact-actions .primary {
  min-height: 46px;
}

.contact-actions a {
  color: #254f86;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.contact-actions a:hover {
  color: #0643b7;
}

.contact-form button[disabled] {
  opacity: .65;
  cursor: wait;
}

.contact-status {
  color: #195c38;
  font-size: 14px;
  line-height: 1.5;
}

.contact-status:empty {
  margin-top: -17px;
}

.contact-status.error {
  color: #952e25;
}

@media(max-width: 800px) {
  .map-contact {
    grid-template-columns: 1fr;
  }
  .map-contact h2 {
    max-width: none;
  }
}

@media(max-width: 480px) {
  .header-map-link {
    max-width: 143px;
    padding-inline: 8px;
    white-space: normal;
    font-size: 13px;
    line-height: 1.26;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }
}
