@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root{
  --bg:#0a0f0d;           /* глубокий тёмный */
  --grid:#062b1e;         /* линии сетки */
  --panel:#0f1613;        /* тёмная панель */
  --muted:#8aa39b;        /* приглушённый текст */
  --text:#e6fff5;         /* основной текст */
  --accent:#00ff9c;       /* неоново-зелёный */
  --accent-dim:#0ecf83;   /* более тёмный неон */
  --outline:#1f2a25;      /* контуры */
  --purple:#9c6bff;       /* вторичный акцент */
  --danger:#ff4d6d;       /* красный для ошибок */
  --shadow: 0 0 20px rgba(0,255,156,0.12), 0 0 4px rgba(0,255,156,0.2);
}
html,body{height:100%;}
body{
  margin:0;
  font: 16px/1.5 'JetBrains Mono', Consolas, Menlo, Monaco, 'SFMono-Regular', monospace;
  background:
    linear-gradient(transparent 23px, var(--grid) 24px),
    linear-gradient(90deg, transparent 23px, var(--grid) 24px),
    var(--bg);
  background-size: 24px 24px, 24px 24px, auto;
  color:var(--text);
}
header{
  position:sticky; top:0; z-index:10; backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(10,15,13,0.85), rgba(10,15,13,0.55));
  border-bottom:1px solid var(--outline);
}
.brand{display:flex; align-items:center; gap:16px; padding:12px 24px;}
.avatar{
  display:flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:10px; background:linear-gradient(135deg,var(--accent),var(--purple));
  box-shadow: var(--shadow);
  font-weight:700; color:#000;
}
h1{
  margin:0; font-size:28px; letter-spacing:0.6px; text-transform:uppercase; font-weight:800;
  text-shadow:0 0 18px rgba(156,107,255,0.25), 0 0 18px rgba(0,255,156,0.15);
}
h1 .cursor{color:var(--accent); animation:blink 1.1s steps(1) infinite;}
@keyframes blink{50%{opacity:0;}}

section{margin:28px 0;}
.section-title{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--muted);}
.section-title .dot{width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 10px rgba(0,255,156,.6);}    

.exam-card{
  border:1px solid var(--outline);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(17,25,22,0.92), rgba(9,14,12,0.95));
  padding:24px 20px;
  box-shadow: var(--shadow);
  display:grid;
  gap:18px;
}
.exam-card__title{margin:0;}
.exam-card .section-title{margin:0;}
.exam-card__section{display:grid; gap:14px;}
.exam-panel{
  border:1px solid var(--outline);
  border-radius:16px;
  background:linear-gradient(180deg,#0e1512,#0b120f);
  padding:16px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.exam-panel h3{margin:4px 0 0; font-size:18px; color:var(--accent); letter-spacing:.4px;}
.exam-panel h3 + .grid{margin-top:6px;}

.grid{display:grid; gap:12px; grid-template-columns: repeat(1, minmax(0,1fr));}
@media (min-width:700px){ .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }}
@media (min-width:1000px){ .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }}

.tasks-grid{
  display:grid;
  gap:12px;
  grid-template-columns:minmax(0,1fr);
}
@media (min-width:700px){
  .tasks-grid{
    grid-template-columns:minmax(0,1fr);
  }
}
@media (min-width:1000px){
  .tasks-grid{
    grid-template-columns:minmax(0,1fr);
  }
}

.tasks-grid .card{
  width:100%;
  height:100%;
  box-sizing:border-box;
}

.item{display:flex; flex-direction:column; gap:8px;}
.progress-label{display:flex; justify-content:space-between; gap:10px; font-weight:600;}
.pct{color:var(--muted);}
.progress-bar{position:relative; height:14px; border-radius:10px; overflow:hidden; background: #0a1411; border:1px solid var(--outline);}
.fill{
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  width:0%;
  background:linear-gradient(90deg, rgba(0,255,156,.9), rgba(156,107,255,.85));
  border-radius:inherit;
  box-shadow: inset 0 0 12px rgba(0,0,0,.35), 0 0 18px rgba(0,255,156,.35);
  transition:width .35s ease;
  z-index:1;
}

.controls{display:grid; gap:10px; grid-template-columns:repeat(1, minmax(0,1fr));}
@media (min-width:820px){ .controls{ grid-template-columns:repeat(3, minmax(0,1fr)); }}
.ctrl{display:flex; align-items:center; gap:10px; border:1px dashed var(--outline); padding:10px; border-radius:12px;}
.ctrl label{flex:1; color:var(--muted);} 
.ctrl input[type=number]{width:90px; padding:6px 8px; border-radius:8px; border:1px solid var(--outline); background:#0a1411; color:var(--text);
  box-shadow:inset 0 0 6px rgba(0,0,0,.4);}    

.toolbar{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; justify-content:center;}
.btn{appearance:none; border:1px solid var(--outline); background:#0d1613; color:var(--text); padding:10px 14px; border-radius:12px; font-weight:700; letter-spacing:.4px; cursor:pointer;
  box-shadow:var(--shadow);} 
.btn:hover{border-color:var(--accent);}
.btn.accent{border-color:transparent; background:linear-gradient(90deg, #0bbf84, #7a5ef7);} 

.matrix{position:fixed; inset:0; pointer-events:none; opacity:.05;
  background-image: linear-gradient(transparent 31px, rgba(0,255,156,.35) 32px), linear-gradient(90deg, transparent 31px, rgba(156,107,255,.35) 32px);
  background-size:32px 32px; mix-blend-mode:screen;}

footer{opacity:.7; font-size:12px; text-align:center; margin:18px 0 8px; color:var(--muted);} 
