:root { --ink:#14212b; --teal:#0f766e; --coral:#c2410c; --muted:#5b6b76; --line:#e8dfd2; --gold:#f59e0b; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui,'Segoe UI',sans-serif; color:var(--ink); min-height:100vh;
  background: linear-gradient(180deg, rgba(255,248,241,0.9), rgba(255,248,241,0.95)), url("/illustrated/backgrounds/bg-library.jpg") center/cover fixed; }
.nav { position:sticky; top:0; z-index:40; display:flex; flex-wrap:wrap; gap:.55rem; align-items:center; justify-content:space-between;
  padding:.75rem 1.15rem; background:rgba(255,253,248,.95); border-bottom:1px solid var(--line); }
.logo { font-family:Georgia,'Times New Roman',serif; font-weight:700; text-decoration:none; color:inherit; }
.logo span { color:var(--teal); }
.nav-links { display:flex; flex-wrap:wrap; gap:.75rem; }
.nav-links a { color:var(--teal); font-weight:800; text-decoration:none; min-height:40px; display:inline-flex; align-items:center; }
.wrap { max-width:760px; margin:0 auto; padding:1.5rem 1.25rem 3rem; }
h1 { font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.9rem,5vw,2.5rem); line-height:1.1; margin:.4rem 0; }
h2 { font-family:Georgia,'Times New Roman',serif; font-size:1.3rem; margin:1.2rem 0 .4rem; }
.lead { font-weight:700; color:var(--muted); }
.card { background:rgba(255,253,248,.97); border:1px solid var(--line); border-radius:20px; padding:1.1rem; margin:.75rem 0; box-shadow:0 18px 40px rgba(20,33,43,.1); }
.card.highlight { border:2px solid var(--teal); background:#ecfdf5; }
.plans { display:grid; gap:.75rem; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.price { color:var(--coral); font-family:Georgia,'Times New Roman',serif; font-size:1.6rem; font-weight:700; }
.price small { font-size:1rem; color:var(--muted); }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:.65rem 1.1rem; border-radius:999px;
  font-weight:800; text-decoration:none; border:2px solid var(--teal); background:var(--teal); color:#fff; cursor:pointer; font-size:1rem; }
.btn.ghost { background:#fff; color:var(--teal); }
.btn[disabled] { opacity:.6; cursor:wait; }
label { display:block; font-weight:800; margin:.6rem 0 .25rem; }
input, select { width:100%; min-height:46px; padding:.55rem .75rem; border:1px solid #cfc6b8; border-radius:12px; font-size:1rem; background:#fff; }
.row { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.9rem; }
.msg { font-weight:800; margin:.6rem 0; }
.msg.err { color:#b91c1c; } .msg.ok { color:var(--teal); }
.tabs { display:flex; gap:.5rem; margin-bottom:.4rem; }
.tabs button { flex:1; min-height:44px; border-radius:12px; border:2px solid var(--teal); background:#fff; color:var(--teal); font-weight:800; cursor:pointer; }
.tabs button[aria-selected="true"] { background:var(--teal); color:#fff; }
.note { background:#fff7ed; border-left:4px solid var(--gold); padding:.85rem 1rem; border-radius:0 12px 12px 0; font-weight:700; color:var(--muted); margin-top:1rem; }
ul.plain { padding-left:1.1rem; font-weight:700; } ul.plain li { margin:.3rem 0; }
[hidden] { display:none !important; }
.toggle { display:flex; gap:.5rem; flex-wrap:wrap; margin:1rem 0; }
.toggle .btn[aria-pressed="true"] { background:var(--teal); color:#fff; }
.students { display:grid; gap:.5rem; margin:.5rem 0; }
.students .stu { display:flex; gap:.5rem; align-items:center; }
.students .stu select { flex:1; }
