.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px 104px;
  max-width: 760px;
  margin: 0 auto;
}

.error-404__heading {
  margin: 0;
  max-width: 620px;
  font-family: var(--font-secondary);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--color-night);
}

.error-404__emoji {
  margin-top: 24px;
  font-size: 44px;
  line-height: 1;
}

.error-404__code {
  margin: 20px 0 0;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 22.4px;
  color: var(--color-night);
}

.error-404__text {
  margin: 12px 0 0;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-night);
}

.error-404__text span {
  white-space: nowrap;
}

.error-404__actions {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.error-404__links {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
}

.error-404__link {
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--color-night);
}

.error-404__link:hover {
  color: var(--color-primary);
}

@media only screen and (max-width: 767px) {
  .error-404 {
    padding: 48px 20px 72px;
  }

  .error-404__br {
    display: none;
  }

  .error-404__text {
    max-width: 340px;
  }

  .error-404__heading {
    font-size: 40px;
    line-height: 1.2;
  }

  .error-404__emoji {
    font-size: 38px;
  }

  .error-404__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .error-404__actions .btn {
    width: 100%;
    max-width: 320px;
  }
}
