:root {
  --purple: #70557c;
  --purple-dark: #2a1831;
  --copper: #c77e5f;
  --ink: #251a29;
  --card: rgba(255, 255, 255, 0.97);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(24, 0, 0, 0.12), rgba(24, 0, 0, 0.12)),
    url("/img/background.png") center / cover fixed no-repeat;
}

.site-header img {
  display: block;
  max-width: min(360px, 78vw);
  max-height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}

.page-card {
  width: min(1020px, 94vw);
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--card);
  border-top: 4px solid var(--purple);
  border-radius: 0.45rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.message {
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.code {
  margin: 0;
  font-size: clamp(5rem, 11vw, 8rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--purple-dark);
}

h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.lead {
  margin: 0 auto 2rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.5;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.service {
  min-height: 62px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-align: left;
  font-weight: 650;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ddd6e1;
  border-radius: 0.65rem;
  box-shadow: 0 3px 10px rgba(55, 37, 62, 0.1);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.service:hover,
.service:focus-visible {
  transform: translateY(-2px);
  border-color: var(--purple);
  box-shadow: 0 7px 18px rgba(55, 37, 62, 0.18);
  outline: none;
}

.service-icon {
  width: 2rem;
  color: var(--purple);
  font-size: 1.6rem;
  text-align: center;
}

.help {
  margin: 1.8rem 0 0;
  color: #5e5162;
  font-size: 0.95rem;
}

.bear-wrap {
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.5rem 0 0;
  background:
    radial-gradient(circle at 50% 60%, rgba(199, 126, 95, 0.2), transparent 60%),
    linear-gradient(135deg, rgba(112, 85, 124, 0.08), rgba(199, 126, 95, 0.1));
}

.bear-wrap img {
  display: block;
  width: min(100%, 480px);
  max-height: 540px;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.25));
}

footer {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
}

footer span {
  margin: 0 0.6rem;
}

@media (max-width: 800px) {
  body {
    justify-content: flex-start;
    padding-top: 1.25rem;
  }

  .page-card {
    grid-template-columns: 1fr;
  }

  .message {
    padding: 2rem 1.25rem;
  }

  .bear-wrap {
    min-height: 300px;
  }

  .bear-wrap img {
    max-height: 380px;
  }
}

@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  footer span {
    display: none;
  }

  footer {
    display: grid;
    gap: 0.25rem;
  }
}
