:root {
  --ru-white: #ffffff;
  --ru-blue: #0039a6;
  --ru-red: #d52b1e;
  --ink: #172033;
  --muted: #667085;
  --line: #e6eaf2;
  --surface: rgba(255, 255, 255, 0.94);
  --shadow: 0 24px 70px rgba(0, 57, 166, 0.16);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.95) 0 31%, rgba(0,57,166,.10) 31% 65%, rgba(213,43,30,.12) 65% 100%),
    radial-gradient(circle at 15% 5%, rgba(0,57,166,.18), transparent 28%),
    radial-gradient(circle at 85% 95%, rgba(213,43,30,.18), transparent 32%),
    #f7f9fc;
}

a { color: var(--ru-blue); font-weight: 700; text-decoration: none; }
a:hover { color: var(--ru-red); text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--ru-white) 0 33.33%, var(--ru-blue) 33.33% 66.66%, var(--ru-red) 66.66% 100%);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

h1, h2, h3 { margin-top: 0; color: #101828; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.08; }
h2 { font-size: 24px; }
p { color: var(--muted); line-height: 1.6; }

.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: center; }
.badge { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(0,57,166,.08); color: var(--ru-blue); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.button, button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--ru-blue), #0d57db);
  box-shadow: 0 10px 22px rgba(0,57,166,.24);
  font-weight: 700;
}
.button.secondary { background: linear-gradient(135deg, var(--ru-red), #f04438); box-shadow: 0 10px 22px rgba(213,43,30,.20); }
button:hover, .button:hover { filter: brightness(1.04); text-decoration: none; color: #fff; }

input[type="text"], input[type="password"], input[type="file"], input:not([type]) {
  width: min(100%, 320px);
  padding: 11px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
}

code { padding: 2px 6px; border-radius: 7px; background: #eef2ff; color: var(--ru-blue); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ok { color: #067647; font-weight: 700; }
.bad { color: #b42318; font-weight: 700; }

.group-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.group-list li { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.status { display: inline-block; margin-left: 8px; padding: 4px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status.yes { background: #ecfdf3; color: #067647; }
.status.no { background: #fef3f2; color: #b42318; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { color: #344054; background: #f8fafc; }
.status-pending { color: #9a6b00; font-weight: 700; }
.status-processing { color: var(--ru-blue); font-weight: 700; }
.status-done { color: #067647; font-weight: 700; }
.status-failed { color: #b42318; font-weight: 700; }

.footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer img.logo { height: 54px; width: auto; max-width: 220px; }
.footer img.qr { height: 104px; width: 104px; border-radius: 16px; background: #fff; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .wrap { padding-top: 18px; }
  .card { padding: 18px; border-radius: 18px; }
  .footer { align-items: flex-start; flex-direction: column; }
}
