.contact {
  max-width: 620px;
}

.lead {
  margin: 8px 0 28px;
  color: var(--muted);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.kinds legend {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.kinds label {
  position: relative;
}

.kinds input {
  position: absolute;
  opacity: 0;
}

.kinds span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #cfcfd8;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.kinds input:checked + span {
  border-color: var(--accent);
  background: rgb(53 99 236 / 0.08);
  color: var(--accent);
  font-weight: 500;
}

.kinds input:focus-visible + span,
.field textarea:focus,
.submit:focus-visible {
  outline: 3px solid rgb(53 99 236 / 0.4);
  outline-offset: 1px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.field textarea {
  padding: 12px 14px;
  border: 1px solid #cfcfd8;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.submit {
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.submit:active {
  transform: scale(0.98);
}

.small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.other {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}
