.contacts-page :where(section, div, nav, details, summary, table, tbody, tr, td, label, form) {
  white-space: normal;
}

.contact-accordion summary {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 8px 4px 8px 0;
  list-style: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s;
}

.contact-accordion summary::-webkit-details-marker {
  display: none;
}

.contact-accordion summary > img {
  position: absolute;
  right: 4px;
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.contact-accordion[open] summary {
  border-color: var(--border-strong);
}

.contact-accordion[open] summary > img {
  transform: rotate(180deg);
}

.contact-accordion__content {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 16px 0;
}

.contact-accordion__content > img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: grayscale(1);
}

.contact-accordion__content table {
  width: 100%;
  table-layout: auto;
}

.contact-accordion__content td {
  padding: 0 0 8px;
  font-family: var(--font-JetBrains-mono-next), monospace;
  font-size: 0.75rem;
  line-height: 1rem;
}

.contact-accordion__content tr:last-child td {
  padding-bottom: 0;
}

.contact-accordion__content td:first-child {
  width: auto;
  padding-right: 16px;
  color: var(--muted-foreground);
  font-size: 0.625rem;
}

.contact-accordion__content td:last-child {
  width: 100%;
}

.contacts-form__select-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.contacts-form__select-label {
  color: var(--muted-foreground);
  font-family: var(--font-JetBrains-mono-next), monospace;
  font-size: 0.875rem;
  line-height: 1.375;
}

.contacts-form__select-wrap {
  position: relative;
  display: flex;
  width: 100%;
  height: 32px;
  max-width: 334px;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  background: var(--muted);
}

.contacts-form__select-wrap select {
  appearance: none;
  width: 100%;
  height: 100%;
  padding: 0 36px 0 12px;
  background: transparent;
  font-family: var(--font-inter-next), Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  outline: none;
}

.contacts-form__select-wrap > img {
  pointer-events: none;
  position: absolute;
  right: 8px;
  width: 16px;
  height: 16px;
}

.contacts-form__attachment {
  max-width: 100%;
}

.contacts-form__attachment [data-contact-file-label] {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contacts-form .consent-text {
  line-height: 1.42857;
}

.contacts-form__submit {
  display: flex;
  width: 100%;
  max-width: 464px;
  height: 48px;
  align-items: flex-end;
  justify-content: space-between;
  border-radius: 3px;
  background: var(--foreground);
  padding: 8px 16px;
  color: var(--background);
  font-family: var(--font-JetBrains-mono-next), monospace;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  transition: background-color 0.16s;
}

.contacts-form__submit:hover,
.contacts-form__submit:focus-visible {
  background: var(--inverse-bg-muted);
}

.contacts-form__submit:disabled {
  cursor: wait;
  background: var(--border);
}

.contacts-form__mark {
  transform: rotate(-135deg);
}

.contact-file {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--muted);
  padding: 12px;
}

.contact-file__icon {
  position: relative;
  display: flex;
  flex: 0 0 40px;
  width: 40px;
  height: 56px;
}

.contact-file__icon svg {
  width: 40px;
  height: 56px;
}

.contact-file__icon span {
  position: absolute;
  bottom: 6px;
  left: 6px;
  color: #fff;
  font-family: var(--font-pixelCode-next), monospace;
  font-size: 0.625rem;
  line-height: 1;
  text-transform: uppercase;
}

.contact-file__content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.contact-file__content table {
  width: 100%;
  table-layout: auto;
}

.contact-file__content td {
  padding: 0 0 6px;
  font-family: var(--font-JetBrains-mono-next), monospace;
  font-size: 0.625rem;
  line-height: 1;
}

.contact-file__content tr:last-child td {
  padding-bottom: 0;
}

.contact-file__content td:first-child {
  padding-right: 8px;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.contact-file__content td:last-child {
  width: 100%;
  color: var(--secondary-foreground);
}

.contact-file__download {
  display: flex;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: var(--border);
  padding: 0 16px;
  color: var(--muted-foreground);
  font-family: var(--font-JetBrains-mono-next), monospace;
  font-size: 0.75rem;
  line-height: 1rem;
  transition: background-color 0.16s, color 0.16s;
}

.contact-file__download:hover,
.contact-file__download:focus-visible {
  background: #fff;
  color: var(--foreground);
}

@media (min-width: 49.75rem) {
  .contact-accordion__content {
    grid-template-columns: auto 1fr;
  }
}

@media (min-width: 64rem) {
  .contact-accordion summary {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .contacts-form__submit {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .contacts-form__file:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .contact-file {
    gap: 64px;
  }
}
