:root{
  --bg:#0b1020;
  --bg2:#131a31;
  --card:#11182b;
  --line:rgba(255,255,255,.08);
  --text:#eef3ff;
  --muted:#aab7d8;
  --accent:#56d364;
  --accent2:#3b82f6;
  --danger:#ff5d73;
  --shadow:0 25px 70px rgba(0,0,0,.35);
  --radius:24px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,Arial,Helvetica,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 35%),
    radial-gradient(circle at top right, rgba(86,211,100,.14), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #0a0f1d 100%);
  color:var(--text);
  min-height:100vh;
}

a{text-decoration:none;color:inherit}

.test-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.test-shell{
  width:100%;
  max-width:860px;
}

.test-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
  flex-wrap:wrap;
}

.test-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:#dce6ff;
  padding:10px 14px;
  border-radius:999px;
  font-size:14px;
}

.test-counter{
  font-weight:800;
  color:#fff;
}

.test-card{
  position:relative;
  background:linear-gradient(180deg, rgba(86,211,100,.10), rgba(59,130,246,.08));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.test-close-btn{
  position:absolute;
  top:14px;
  right:14px;
  width:44px;
  height:44px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:900;
  color:#fff;
  text-decoration:none;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  z-index:20;
  transition:.2s ease;
  line-height:1;
}

.test-close-btn:hover{
  background:rgba(255,255,255,.18);
  transform:scale(1.05);
}

.test-hero{
  padding:28px 78px 10px 28px;
}

.test-kicker{
  display:inline-block;
  margin-bottom:12px;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9fc2ff;
  font-weight:800;
}

.test-title{
  margin:0;
  font-size:34px;
  line-height:1.08;
  font-weight:900;
}

.test-subtitle{
  margin:14px 0 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

.test-progress-wrap{
  padding:0 28px 10px 28px;
}

.test-progress-meta{
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:#dfe7fb;
  font-size:14px;
  margin-bottom:10px;
}

.test-progress{
  width:100%;
  height:12px;
  background:rgba(255,255,255,.07);
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.05);
}

.test-progress-bar{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent2), var(--accent));
  transition:width .25s ease;
}

.test-body{
  padding:18px 28px 28px 28px;
}

.test-question-box{
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px;
  margin-bottom:18px;
}

.test-question{
  margin:0;
  font-size:25px;
  line-height:1.35;
  font-weight:800;
}

.test-answers{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}

.test-answer{
  width:100%;
  min-height:76px;
  background:rgba(255,255,255,.05);
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:18px 18px;
  text-align:center;
  cursor:pointer;
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
  font-size:18px;
  line-height:1.2;
  font-weight:900;
}

.test-answer:hover{
  transform:translateY(-1px);
  border-color:rgba(86,211,100,.35);
  background:rgba(255,255,255,.08);
}

.test-answer.correct{
  border-color:rgba(86,211,100,.6);
  background:rgba(86,211,100,.14);
}

.test-answer.disabled{
  pointer-events:none;
  opacity:.96;
}

.test-note{
  margin-top:16px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.test-result{
  display:none;

}

.test-result.show{
  display:block;
}

.test-result-title{
  margin:0 0 12px 0;
  font-size:28px;
  font-weight:900;
}

.test-score{
  font-size:18px;
  font-weight:800;
  margin-bottom:12px;
}

.test-result-text{
  color:#d8e2ff;
  line-height:1.7;
  margin:0 0 18px 0;
}

.test-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.test-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 20px;
  border-radius:16px;
  font-size:15px;
  font-weight:800;
  border:0;
  cursor:pointer;
  transition:transform .15s ease, opacity .15s ease;
}

.test-btn:hover{transform:translateY(-1px)}

.test-btn-primary{
  background:linear-gradient(90deg, var(--accent2), var(--accent));
  color:#fff;
}

.test-btn-secondary{
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
}

.test-footer-help{
  margin-top:14px;
  color:#9eb0d8;
  font-size:14px;
  line-height:1.6;
}

.test-footer-help strong{
  color:#fff;
}

.test-embed body,
body.test-embed{
  background:transparent;
}

@media (max-width: 760px){
  .test-page{
    padding:12px;
    align-items:flex-start;
  }

  .test-shell{
    max-width:100%;
  }

  .test-card{
    border-radius:18px;
  }

  .test-close-btn{
    top:10px;
    right:10px;
    width:40px;
    height:40px;
    font-size:20px;
  }

  .test-title{
    font-size:27px;
    line-height:1.15;
  }

  .test-subtitle{
    font-size:15px;
    line-height:1.55;
  }

  .test-question{
    font-size:21px;
  }

  .test-answers{
    grid-template-columns:1fr;
  }

  .test-hero{
    padding:22px 58px 10px 18px;
  }

  .test-progress-wrap,
  .test-body{
    padding-left:18px;
    padding-right:18px;
  }

  .test-question-box{
    padding:18px;
  }

  .test-answer{
    min-height:64px;
    font-size:17px;
    padding:16px;
  }

  .test-result{
    padding:18px;
  }

  .test-result-title{
    font-size:24px;
  }

  .test-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .test-btn{
    width:100%;
  }
}