body:has(.contact-card) {
  margin: 0;
  background: #f4f4f4;
  color: #191919;
  font-family: "Golos Text", Arial, sans-serif;
}
.contact-card {
  max-width: 580px;
  margin: auto;
  padding: 16px 20px 32px;
}
.contact-card *,
.contact-card *::before {
  box-sizing: border-box;
}
.contact-card__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 12px;
  color: #666;
  font-size: 14px;
  text-underline-offset: 5px;
}
.contact-card__sheet {
  background: white;
  border-top: 3px solid #bc3230;
}
.contact-card__profile {
  padding: 28px;
}
.contact-card__identity {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.contact-card__identity img {
  width: 80px;
  height: 104px;
  object-fit: cover;
  object-position: 50% 18%;
}
.contact-card h1 {
  margin: 0;
  font-family: inherit;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.2px;
}
.contact-card__identity p {
  margin: 10px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}
.contact-card__save {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: #bc3230;
  color: #fff;
  padding: 15px 10px;
  min-height: 52px;
  text-decoration: none;
  font-size: 15px;
}
.contact-card__save:hover {
  background: #a52826;
}
.contact-card__hint {
  margin: 10px 0 24px;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
  max-width: 47ch;
}
.contact-card__details + .contact-card__details {
  margin-top: 24px;
}
.contact-card h2 {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.4;
}
.contact-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.contact-card__actions :is(a, button) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 70px;
  padding: 12px;
  color: #191919;
  background: #f5f5f5;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
}
.contact-card__actions svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.5;
}
.contact-card__actions span {
  min-width: 0;
}
.contact-card__actions small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact-card__actions button:disabled {
  color: #666;
  background: #fafafa;
  cursor: default;
}
.contact-card__actions a:hover {
  border-color: #bc3230;
}
.contact-card__exchange {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #e5e5e5;
  padding: 20px 28px;
}
.contact-card__exchange img {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.contact-card__exchange p {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 500;
}
.contact-card__exchange span {
  display: block;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}
.contact-card__exchange button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #bc3230;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.contact-card__status {
  margin: 0;
  padding: 0 28px 12px;
  font-size: 13px;
  color: #666;
}
.contact-card__status:empty {
  display: none;
}
.contact-card input {
  max-width: calc(100% - 56px);
  margin: 0 28px 20px;
  padding: 12px;
}
.contact-card :is(a, button, input):focus-visible {
  outline: 2px solid #bc3230;
  outline-offset: 3px;
}
@media (max-width: 440px) {
  .contact-card {
    padding: 4px 12px 16px;
  }
  .contact-card__back {
    margin-bottom: 4px;
  }
  .contact-card__profile {
    padding: 20px 16px;
  }
  .contact-card__identity {
    grid-template-columns: 68px 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }
  .contact-card__identity img {
    width: 68px;
    height: 88px;
  }
  .contact-card h1 {
    font-size: 28px;
  }
  .contact-card__identity p {
    font-size: 12px;
    margin-top: 8px;
  }
  .contact-card__actions :is(a, button) {
    padding: 10px 8px;
    gap: 7px;
    font-size: 13px;
    min-height: 66px;
  }
  .contact-card__actions svg {
    width: 17px;
  }
  .contact-card__save {
    font-size: 14px;
  }
  .contact-card__exchange {
    padding: 14px 16px;
    gap: 12px;
  }
  .contact-card__exchange img {
    width: 76px;
    height: 76px;
  }
}
