:root {
  color-scheme: dark;
  --page: #191919;
  --panel: #10100f;
  --paper: #f4f1ea;
  --red: #d7272a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
}

body {
  color: var(--paper);
  font-family: "Courier New", Courier, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

.contacts-page {
  width: min(calc(100% - 90px), 1115px);
  min-height: 875px;
  margin: 7px auto 25px;
  padding-top: 9px;
  background: var(--panel);
}

.contacts-header {
  text-align: center;
}

.wordmark {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1;
}

.contacts-nav {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.contacts-nav li:not(:last-child)::after {
  padding: 0 10px;
  color: var(--paper);
  content: "|";
}

.contacts-nav a {
  color: var(--red);
}

.contacts-nav .is-current,
.contacts-nav a:hover,
.contacts-nav a:focus-visible {
  color: var(--paper);
  outline: none;
}

.contacts-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 796px;
  padding: 0 28px 38px;
}

.contact-details {
  margin-top: 208px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.45px;
  line-height: 1.25;
}

.contact-details h1,
.contact-details p {
  margin: 0;
}

.contact-details h1 {
  margin-bottom: 27px;
  font-size: 17px;
  text-align: center;
}

.contact-details a {
  color: var(--red);
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--paper);
  outline: none;
}

.share-site {
  display: block;
  margin: 28px auto 0;
  padding: 8px 13px;
  border: 1px solid rgba(244, 241, 234, 0.58);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.share-site:hover,
.share-site:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #10100f;
  outline: none;
}

.share-status {
  min-height: 16px;
  margin-top: 10px !important;
  color: rgba(244, 241, 234, 0.78);
  font-size: 11px;
  text-align: center;
}

.contact-logo {
  display: block;
  width: 126px;
  height: auto;
  margin-top: auto;
}

@media (max-width: 700px) {
  .contacts-page {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding-top: 31px;
  }

  .wordmark {
    font-size: 18px;
  }

  .contacts-nav {
    margin-top: 16px;
    font-size: 11px;
  }

  .contacts-content {
    min-height: calc(100vh - 96px);
    padding: 0 22px 34px;
  }

  .contact-details {
    width: min(100%, 330px);
    margin-top: 165px;
    font-size: 14px;
  }

  .contact-details h1 {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .share-site {
    margin-top: 24px;
    font-size: 11px;
  }

  .contact-logo {
    width: 108px;
  }
}
