
:root{
  --bg:#f4f7fb;
  --bg-soft:#ffffff;
  --bg-alt:#eef3ff;
  --text:#162033;
  --muted:#5b667a;
  --primary:#4965ff;
  --primary-2:#7b8fff;
  --primary-soft:rgba(73,101,255,.12);
  --border:rgba(22,32,51,.1);
  --shadow:0 12px 35px rgba(22,32,51,.08);
  --radius:24px;
}
:root[data-theme="dark"]{
  --bg:#0c1118;
  --bg-soft:#121a25;
  --bg-alt:#0f1520;
  --text:#edf2ff;
  --muted:#a8b1c6;
  --primary:#8aa1ff;
  --primary-2:#b6c2ff;
  --primary-soft:rgba(138,161,255,.14);
  --border:rgba(237,242,255,.10);
  --shadow:0 16px 42px rgba(0,0,0,.28);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  line-height:1.65;
  background:
    radial-gradient(circle at top left, var(--primary-soft), transparent 24%),
    radial-gradient(circle at bottom right, rgba(120,140,255,.08), transparent 22%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(1180px, calc(100% - 2rem));margin:0 auto}
.site-header{padding:2rem 0 1rem}
.nav,.topbar{
  display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;
}
.eyebrow,.tag{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.35rem .75rem;border-radius:999px;
  background:var(--primary-soft);border:1px solid var(--border);
  color:var(--primary);font-size:.88rem;
}
h1,h2,h3,h4{line-height:1.2;margin-top:0}
h1{font-size:clamp(2rem,4vw,3.5rem);margin-bottom:.75rem}
h2{font-size:1.6rem;margin-bottom:1rem}
h3{font-size:1.1rem;margin-bottom:.6rem}
.lead{font-size:1.06rem;color:var(--muted);max-width:74ch}
.card{
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:1.4rem;
  margin:1rem 0;
}
.hero{display:grid;grid-template-columns:2fr 1fr;gap:1.2rem}
.stats{display:grid;gap:1rem}
.stat{
  border:1px solid var(--border);
  background:var(--primary-soft);
  border-radius:20px;
  padding:1rem;
}
.stat strong{display:block;font-size:1.8rem}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}
.module-card{
  display:block;padding:1.15rem;border-radius:22px;
  border:1px solid var(--border);background:linear-gradient(180deg,var(--bg-soft),var(--bg-alt));
  transition:transform .18s ease,border-color .18s ease, box-shadow .18s ease;
}
.module-card:hover{transform:translateY(-3px);border-color:var(--primary);box-shadow:var(--shadow);text-decoration:none}
.module-card .num{
  width:42px;height:42px;display:grid;place-items:center;
  border-radius:12px;background:var(--primary-soft);color:var(--primary);font-weight:800;
}
.footer{padding:1rem 0 2rem;color:var(--muted)}
.checklist li,.steps li,.exercise-list li,.theory-list li,.resource-list li,.plan-list li{margin-bottom:.65rem}
.theme-toggle{
  width:54px;height:54px;border-radius:16px;border:1px solid var(--border);
  background:var(--bg-soft);color:var(--text);font-size:1.1rem;cursor:pointer;box-shadow:var(--shadow)
}
.columns{display:grid;grid-template-columns:1.1fr .9fr;gap:1rem}
.panel{
  border:1px solid var(--border);border-radius:18px;padding:1rem;background:rgba(255,255,255,.02)
}
.breadcrumb{font-size:.95rem;color:var(--muted);margin-bottom:.5rem}
.tag-row{display:flex;flex-wrap:wrap;gap:.55rem}
.prompt{
  background:var(--bg);border:1px dashed var(--border);border-radius:14px;padding:1rem;
  white-space:pre-wrap
}
.callout{
  border-left:4px solid var(--primary);
  background:var(--primary-soft);
  padding:1rem 1rem 1rem 1.1rem;
  border-radius:16px;
}
.button{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  border:none;border-radius:14px;padding:.9rem 1.15rem;cursor:pointer;
  background:var(--primary);color:#fff;font-weight:700;text-decoration:none
}
.button.secondary{background:transparent;color:var(--text);border:1px solid var(--border)}
.actions{display:flex;gap:.75rem;flex-wrap:wrap}
.quiz-form{display:grid;gap:1rem}
.question{
  border:1px solid var(--border);
  border-radius:18px;
  padding:1rem;
  background:linear-gradient(180deg,var(--bg-soft),var(--bg-alt));
}
.question p{margin:.1rem 0 .75rem;font-weight:700}
.question label{display:block;margin:.35rem 0}
.quiz-result{
  display:none;margin-top:.5rem;padding:1rem;border-radius:16px;border:1px solid var(--border);
  background:var(--primary-soft)
}
.table-like{
  display:grid;grid-template-columns:150px 1fr;gap:.5rem 1rem
}
.table-like div{padding:.45rem 0;border-bottom:1px dashed var(--border)}
.print-report{display:none}
.report{
  max-width:900px;margin:0 auto;background:#fff;color:#111;padding:28px;border:1px solid #ddd;border-radius:18px
}
.report h1,.report h2,.report h3{color:#111}
.report .small{color:#555}
.report table{width:100%;border-collapse:collapse;margin-top:14px}
.report th,.report td{border:1px solid #bbb;padding:8px 10px;text-align:left;vertical-align:top}
.report th{background:#f2f4f8}
.score-badge{
  display:inline-block;padding:.5rem .85rem;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-weight:700
}
.final-test-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.input{
  width:100%;padding:.9rem 1rem;border-radius:14px;border:1px solid var(--border);
  background:var(--bg-soft);color:var(--text)
}
@media (max-width: 900px){
  .hero,.columns,.topbar,.nav,.final-test-grid{display:grid;grid-template-columns:1fr}
  .theme-toggle{justify-self:start}
}
@media print{
  body{background:#fff !important;color:#111 !important}
  .site-header,.footer,.topbar,.actions,.button,.theme-toggle,.screen-only,.card:not(.print-card), .no-print{display:none !important}
  .print-report{display:block !important}
  .report{border:none;border-radius:0;box-shadow:none;padding:0}
  @page{size:A4;margin:14mm}
}

@media print{
  .report::before{
    content: "";
    display:block;
    height:80px;
  }
  .logo-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    text-align:center;
    background:white;
    padding:5px 0;
    z-index:9999;
  }
  .logo-header img{
		max-width:90%;
		height:auto;
		display:block;
		margin:0 auto;
	}
}
