.error-page {
  min-height: 680px;
  padding: 118px 24px 148px;
  background: #f5f5f1;
  color: #292929;
}

.error-page__inner {
  width: min(100%, 880px);
  margin: 0 auto;
  text-align: center;
}

.error-page__code {
  margin: 0;
  color: #2f765e;
  font-family: "Inter", sans-serif;
  font-size: clamp(96px, 11vw, 154px);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.045em;
}

.error-page h1 {
  margin: 42px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.45;
  letter-spacing: .03em;
}

.error-page__message {
  margin: 24px 0 0;
  color: #5b5b5b;
  font-size: 15px;
  line-height: 2;
}

.error-page__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 54px auto 0;
  max-width: 720px;
}

.error-page__link {
  min-height: 66px;
  padding: 12px 24px;
  border: 1px solid #cfd5d1;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  color: #292929;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.error-page__link:hover,
.error-page__link:focus-visible {
  border-color: #2f765e;
  background: #2f765e;
  color: #fff;
  transform: translateY(-2px);
}

.error-page__link--primary {
  border-color: #2f765e;
  background: #2f765e;
  color: #fff;
}

.error-page__link--primary:hover,
.error-page__link--primary:focus-visible {
  background: #245f4c;
  color: #fff;
}

.thanks-page__mark {
  width: 86px;
  height: 86px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2f765e;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.thanks-page .error-page__links {
  grid-template-columns: 1fr;
  max-width: 360px;
}

@media (max-width: 767px) {
  .error-page {
    min-height: 0;
    padding: 88px 20px 104px;
  }

  .error-page__code { font-size: 92px; }
  .error-page h1 { margin-top: 34px; font-size: 24px; }
  .error-page__message { margin-top: 18px; font-size: 13px; text-align: left; }
  .error-page__message br { display: none; }
  .error-page__links { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .error-page__link { min-height: 58px; padding-inline: 22px; }
  .thanks-page__mark { width: 72px; height: 72px; font-size: 32px; }
}
