*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Segoe UI,Arial,sans-serif;color:#0B1F3A;background:#f5f7f9;line-height:1.5}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.container{width:min(1120px,92%);margin:0 auto}
header{background:#fff;border-bottom:1px solid #e3e8ed}
.nav{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand img{width:50px;height:50px;object-fit:contain;border-radius:8px}
.brand span{display:flex;flex-direction:column;min-width:0}
.brand b{font-size:16px;line-height:1.2}
.brand small{font-size:12px;color:#71808e;margin-top:3px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 19px;border:1px solid transparent;border-radius:9px;background:#D62828;color:#fff;font-weight:700;cursor:pointer;transition:.2s}
.btn:hover{filter:brightness(.94);transform:translateY(-1px)}
.btn.outline{background:#fff;color:#0B1F3A;border-color:#ccd5dd}
.btn.full{width:100%}

.hero{background:#fff;padding:90px 0}
.heroGrid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:60px;align-items:center}
.hero label,.section label,.panel label,.authCard label{display:block;color:#D62828;font-size:12px;font-weight:800;letter-spacing:1.6px}
.hero h1{font-size:clamp(40px,6vw,68px);line-height:1.03;margin:15px 0}
.hero em{color:#D62828;font-style:normal}
.hero p{font-size:18px;color:#5e6c78;max-width:650px}
.actions{display:flex;gap:12px;margin:28px 0}
.heroCard{background:#0B1F3A;color:#fff;padding:25px;border-radius:20px;box-shadow:0 20px 55px #0b1f3a22}
.mock{margin-top:20px;background:#fff;color:#0B1F3A;border-radius:13px;padding:18px}
.mock div{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #edf0f2}
.mock strong{font-size:12px}
.section{padding:80px 0}
.section h2,.cta h2{font-size:36px;margin:10px 0 30px}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.cards article{background:#fff;border:1px solid #e1e7eb;border-radius:14px;padding:22px}
.cards article>b{color:#D62828}
.cards p{color:#687783}

.cta{background:#eef2f5;padding:55px 0}
.cta .container{display:flex;align-items:center;justify-content:space-between;gap:30px}
.cta h2{margin-bottom:0}

footer{background:#0B1F3A;color:#dce5ed;padding:25px 0;font-size:13px}

/* LOGIN / AUTH */
.auth{min-height:100vh;background:linear-gradient(135deg,#f5f7f9,#edf1f4);display:flex;align-items:center;justify-content:center;padding:35px 16px}
.auth main{width:100%;max-width:460px}
.auth .center{justify-content:center;margin:0 auto 24px}
.authCard{width:100%;background:#fff;border:1px solid #e0e6eb;border-radius:16px;padding:34px;box-shadow:0 18px 55px rgba(11,31,58,.10)}
.authCard h1{font-size:30px;margin:9px 0}
.authCard p{color:#687783;margin:8px 0 22px}
.authCard input{display:block;width:100%;height:50px;margin:12px 0 18px;padding:0 15px;border:1px solid #cbd5dd;border-radius:9px;outline:none;background:#fff;color:#0B1F3A}
.authCard input:focus{border-color:#D62828;box-shadow:0 0 0 3px rgba(214,40,40,.10)}
.authCard .btn{margin-top:4px}
#msg{min-height:20px;font-size:13px;margin:12px 0 0}
.error{color:#b51d1d!important}

/* DASHBOARD */
.dashboard{padding:45px 0}
.dashboard h1{font-size:34px;margin:8px 0 0}
.dashboard>p{color:#687783}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:25px 0}
.stats div{background:#fff;border:1px solid #e1e7eb;border-radius:12px;padding:18px}
.stats small{color:#71808e}.stats b{display:block;font-size:28px;margin-top:5px}
.panel{background:#fff;border:1px solid #e1e7eb;border-radius:14px;padding:24px;margin:20px 0}
.panel h2{margin:7px 0 20px}
.panel .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.panel .cards article{padding:20px}
.resultRow{display:flex;align-items:center;justify-content:space-between;padding:14px 4px;border-bottom:1px solid #edf0f2}

/* EXAM */
.exam{background:#f3f5f7;min-height:100vh}
.examGrid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;padding:25px 0}
.examGrid>.panel{height:max-content}
.exam header strong{color:#D62828;font-size:20px}
.palette{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:15px 0}
.palette button{height:36px;border:1px solid #d3dbe2;border-radius:6px;background:#fff;color:#0B1F3A;cursor:pointer}
.palette button.answered{background:#eaf1fa}
.question{min-height:400px}
.option{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #dce3e8;border-radius:9px;padding:14px;margin:10px 0;background:#fff;cursor:pointer}
.option input{display:none}
.option span{flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#eef2f5;font-weight:800}
.option.selected{border-color:#D62828;background:#fff5f5}
.option.selected span{background:#D62828;color:#fff}
.examMeta,.between{display:flex;align-items:center;justify-content:space-between;gap:15px}
.between{margin-top:12px}

/* RESULT */
.result{text-align:center}
.result>img{width:75px;height:75px;object-fit:contain;margin-bottom:10px}
.score{width:150px;height:150px;border:8px solid #D62828;border-radius:50%;display:grid;place-items:center;margin:25px auto;font-size:34px;font-weight:900}

/* MOBILE */
@media(max-width:850px){
 .heroGrid,.examGrid{grid-template-columns:1fr}
 .heroCard{order:-1}
 .cards{grid-template-columns:1fr 1fr}
 .panel .cards{grid-template-columns:1fr 1fr}
 .stats{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
 .container{width:min(94%,1120px)}
 .nav{min-height:68px}
 .brand img{width:42px;height:42px}
 .brand small{display:none}
 .hero{padding:55px 0}
 .hero h1{font-size:42px}
 .actions{flex-direction:column}
 .actions .btn{width:100%}
 .cards,.panel .cards,.stats{grid-template-columns:1fr}
 .cta .container{flex-direction:column;align-items:stretch}
 .cta h2{font-size:28px}
 .auth{padding:20px 12px}
 .authCard{padding:25px 20px}
 .examGrid{padding:15px 0}
 .question{min-height:auto}
 .examMeta{font-size:13px}
 .between .btn{width:48%}
}
