<!DOCTYPE html>
<html lang="ru">
<head>
  <meta charset="UTF-8">
  <title>Ошибка <%= status %> — IP WhiteList</title>
  <link rel="icon" href="/favicon.png" type="image/png">
  <style>
    :root { --bg: #f5f5f5; --card: #fff; --text: #1a1a1a; --muted: #6b7280; --border: #d1d5db; }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg); color: var(--text); font-size: 14px;
      display: flex; align-items: center; justify-content: center; min-height: 100vh;
    }
    .card {
      background: var(--card); border: 1px solid var(--border); border-radius: 12px;
      box-shadow: 0 1px 3px rgba(0,0,0,.06); padding: 2.5rem 3rem; text-align: center;
    }
    .status { font-size: 3rem; font-weight: 700; color: #dc2626; line-height: 1; }
    .message { margin: 1rem 0 1.5rem; color: var(--muted); max-width: 340px; }
    a { color: #2563eb; text-decoration: none; }
    a:hover { text-decoration: underline; }
  </style>
</head>
<body>
<div class="card">
  <div class="status"><%= status %></div>
  <p class="message"><%= message %></p>
  <a href="/">← На главную</a>
</div>
</body>
</html>
