:root {
  --text-primary: #050f19;
  --text-accept: #0057ff;
  --text-gray: #050f1966;
  --card: #fff;
  --bg: #fafbfc;
  --border: #e8ecf1;
  --danger: #e5484d;
  --ok: #30a46c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

body {
  min-height: 100vh;
}

.main-check {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

header a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

header .link p {
  font-weight: 700;
  font-size: 18px;
}

.container {
  max-width: 534px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px 40px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(5, 15, 25, 0.06);
  padding: 28px 22px 24px;
}

.c-head-h1 h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.head-desc {
  margin-top: 8px;
  color: var(--text-gray);
  font-size: 15px;
}

.chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5fb;
  font-size: 13px;
  font-weight: 600;
}

.chain-pill img {
  width: 20px;
  height: 20px;
}

.field {
  margin-top: 22px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: var(--text-accept);
  box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.12);
}

.field .hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-gray);
}

.field.error input {
  border-color: var(--danger);
}

.field .err {
  display: none;
  margin-top: 8px;
  color: var(--danger);
  font-size: 13px;
}

.field.error .err {
  display: block;
}

.actions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--text-accept);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  background: #eef2f7;
  color: var(--text-primary);
}

.panel {
  display: none;
  margin-top: 18px;
}

.panel.active {
  display: block;
}

.loading-box {
  text-align: center;
  padding: 18px 8px 8px;
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #dbe4f3;
  border-top-color: var(--text-accept);
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-box h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.loading-box p {
  color: var(--text-gray);
  font-size: 14px;
}

.progress {
  margin-top: 16px;
  height: 6px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0057ff, #5b8cff);
  border-radius: inherit;
  transition: width 0.2s linear;
}

.result-box h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.result-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 14px;
  border-radius: 14px;
  background: #f6f8fb;
  font-size: 14px;
}

.result-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.result-meta span:last-child {
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

.score-low {
  color: var(--ok);
}

.score-mid {
  color: #d97706;
}

.score-high {
  color: var(--danger);
}

footer.site-foot {
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 20px 28px;
  color: var(--text-gray);
  font-size: 12px;
  text-align: center;
}
