:root {
  --bg: #0c0c0e;
  --panel: #17171a;
  --panel-2: #1d1d21;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.14);
  --text: #f0f0ef;
  --text-dim: #9a9a9f;
  --gold-1: #f0c25f;
  --gold-2: #c98a2c;
  --red: #e2574c;
  --red-dim: #3a1f1c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(240,194,95,0.08) 0%, transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.frame {
  width: 100%;
  max-width: 640px;
  background: linear-gradient(180deg, var(--panel) 0%, #131315 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--gold-1), var(--gold-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1b1305;
  flex-shrink: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1.2;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

.stamp {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.03);
}

.content {
  padding: 28px 26px 30px;
}

.step { display: none; }
.step.active { display: block; animation: fadein 0.25s ease; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-progress {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold-1);
  text-transform: uppercase;
  background: rgba(240,194,95,0.1);
  border: 1px solid rgba(240,194,95,0.25);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.image-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  background: #000;
  margin: 0 auto 20px;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.question-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: var(--text);
  margin: 0 0 24px;
}

.answers {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.answers.vertical {
  flex-direction: column;
}

.btn {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 14px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  min-width: 130px;
  transition: all 0.15s ease;
}

.btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(240,194,95,0.45);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.danger {
  background: linear-gradient(160deg, #d9564a, #a53a30);
  border-color: rgba(226,87,76,0.5);
  color: #fff;
}

.btn.danger:hover {
  background: linear-gradient(160deg, #e6685c, #b8453a);
}

.btn.wide { min-width: 260px; }

.btn.primary {
  background: linear-gradient(160deg, var(--gold-1), var(--gold-2));
  border: none;
  color: #201404;
  box-shadow: 0 8px 24px rgba(201,138,44,0.35);
}

.btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.status-block {
  text-align: center;
}

.status-block .status-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 4px 0 14px;
}

.status-block.fail .status-title { color: var(--red); }
.status-block.success .status-title { color: var(--gold-1); }

.status-text {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 22px;
}

.footer-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  margin-top: 22px;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  opacity: 0.6;
}

.center { display: flex; justify-content: center; }

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(240,194,95,0.15);
  border-top-color: var(--gold-1);
  border-radius: 50%;
  margin: 30px auto;
  animation: spin 0.8s linear infinite;
}

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

a.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.question-note {
  margin: -12px auto 22px;
  max-width: 520px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.special-contract {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin: 0 0 22px;
  border: 1px solid rgba(240,194,95,0.36);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240,194,95,0.13), rgba(201,138,44,0.04)),
    rgba(255,255,255,0.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.special-contract-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--gold-1), var(--gold-2));
  color: #1b1305;
  font-size: 29px;
  box-shadow: 0 8px 24px rgba(201,138,44,0.28);
}

.special-contract-title {
  color: var(--gold-1);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.special-contract-code {
  margin-top: 5px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

strong { color: var(--gold-1); }

@media (max-width: 560px) {
  body { padding: 10px; align-items: flex-start; }
  .frame { border-radius: 14px; }
  .topbar { padding: 14px 16px; }
  .content { padding: 20px 16px 24px; }
  .stamp { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .btn, .btn.wide { width: 100%; min-width: 0; }
  .answers { gap: 10px; }
  .image-frame img { max-height: 300px; }
  .special-contract { align-items: flex-start; padding: 15px; }
  .special-contract-icon { width: 50px; height: 50px; flex-basis: 50px; font-size: 25px; }
}


.office-mark { min-height: 108px; display: grid; place-items: center; background: repeating-linear-gradient(135deg,transparent 0 15px,#ffffff06 15px 16px),#232326; }
.office-mark span { font: 800 24px/1.15 system-ui,sans-serif; letter-spacing: .13em; }
.denied span { color:#f29d91; border:3px double currentColor; padding:.35em .6em; transform:rotate(-5deg); }
.four span { color:#f0c570; border:1px solid currentColor; border-radius:50%; width:64px; height:64px; display:grid; place-items:center; }
.topbar { flex-wrap:wrap; gap:10px; }
.topbar .language-switch { min-width:0; width:auto; padding:9px 14px; }
.btn:focus-visible { outline:3px solid #ffe4a6; outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }
