:root { --purple: #6d3ef0; --purple2: #5226d6; --yellow: #ffc83d; --pink: #ff6b9a; --sky: #e9e4ff; --cream: #fffaf0; --ink: #1e1640; --muted: #6a6487; --line: #ebe6fb; --kit-bg: #fff; --kit-fg: #1e1640; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.7 "Rubik", system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: "Baloo Bhaijaan 2", sans-serif; margin: 0; line-height: 1.2; font-weight: 800; }
input, select { font: inherit; width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--purple); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--purple); color: #fff; border-radius: 999px; padding: 10px 22px; font-weight: 600; box-shadow: 0 6px 0 var(--purple2); transition: transform .12s, box-shadow .12s; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--purple2); }
.btn.big { padding: 14px 30px; font-size: 17px; }
.btn.soft { background: #fff; color: var(--purple); box-shadow: 0 6px 0 var(--line); }
.btn.yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 #d9a31a; }
.btn.wide { width: 100%; }
.sticker { display: inline-block; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 14px; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }
.err { color: #d63d3d; margin: 0; }
.muted { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(16px, 5vw, 64px); background: rgba(255, 250, 240, .9); backdrop-filter: blur(10px); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 44px; height: 44px; border-radius: 14px; }
.logo span { display: grid; font-family: "Baloo Bhaijaan 2"; font-weight: 800; font-size: 26px; line-height: 1; color: var(--purple); }
.logo small { font-size: 12px; color: var(--muted); font-weight: 600; }
.top nav { display: flex; gap: 26px; font-weight: 500; }
.top nav a:hover { color: var(--purple); }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: clamp(30px, 6vw, 80px) clamp(16px, 5vw, 64px); max-width: 1320px; margin: 0 auto; }
.hero h1 { font-size: clamp(42px, 6.5vw, 76px); margin: 18px 0 12px; }
.hl { background: var(--yellow); padding: 0 14px; border-radius: 16px; display: inline-block; transform: rotate(-2deg); }
.hero p { color: var(--muted); font-size: 18px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; }
.blob { position: absolute; inset: -6% -4% -4% -6%; background: var(--purple); border-radius: 46% 54% 42% 58% / 52% 38% 62% 48%; animation: morph 10s ease-in-out infinite alternate; }
@keyframes morph { to { border-radius: 58% 42% 56% 44% / 40% 60% 40% 60%; transform: rotate(6deg); } }
.hero-art > img { position: relative; border-radius: 30px; aspect-ratio: 5/4; object-fit: cover; width: 100%; border: 6px solid #fff; }
.chip { position: absolute; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 6px 14px; font-weight: 600; box-shadow: 4px 4px 0 var(--ink); animation: float 4s ease-in-out infinite; }
.c1 { top: -14px; inset-inline-start: 10%; } .c2 { bottom: 12%; inset-inline-end: -18px; animation-delay: -1.3s; background: var(--yellow); } .c3 { bottom: -16px; inset-inline-start: 18%; animation-delay: -2.6s; background: var(--pink); color: #fff; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }

section { padding: clamp(56px, 8vw, 100px) clamp(16px, 5vw, 64px); }
.head { text-align: center; margin-bottom: 28px; }
.head h2 { font-size: clamp(32px, 4.5vw, 50px); }
.tools { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; max-width: 1200px; margin: 0 auto 24px; }
.tools input { max-width: 300px; border-radius: 999px; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cats button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 18px; font-weight: 500; color: var(--ink); }
.cats button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; }
.course { background: #fff; border-radius: 26px; border: 2px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; cursor: pointer; animation: kitpop .4s both; }
.course:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--purple); border-color: var(--purple); }
.course .ph { position: relative; aspect-ratio: 16/10; }
.course .ph img { width: 100%; height: 100%; object-fit: cover; }
.seats { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--yellow); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 600; }
.seats.low { background: var(--pink); color: #fff; }
.course .in { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; }
.course h3 { font-size: 21px; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.course .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.price { font-family: "Baloo Bhaijaan 2"; font-weight: 800; font-size: 24px; color: var(--purple); }
.course.closed { opacity: .5; }

.test-card { max-width: 820px; margin: 0 auto; background: var(--purple); color: #fff; border-radius: 34px; padding: clamp(26px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); }
.test-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,200,61,.25); top: -90px; left: -60px; }
.test-card > * { position: relative; }
.test-card h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 6px; }
.test-card p { color: #e3dbff; }
.test-card .sticker { color: var(--ink); }
.q { display: grid; gap: 16px; }
.q h3 { font-size: 26px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answers button { border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; border-radius: 18px; padding: 14px; font-weight: 500; direction: ltr; transition: .15s; }
.answers button:hover { background: #fff; color: var(--purple); }
.answers button.right { background: #29c46e; border-color: #29c46e; }
.answers button.wrong { background: #ff5c5c; border-color: #ff5c5c; }
.qbar { height: 8px; background: rgba(255,255,255,.2); border-radius: 8px; overflow: hidden; }
.qbar i { display: block; height: 100%; background: var(--yellow); transition: width .3s; }
.score { font-family: "Baloo Bhaijaan 2"; font-size: 70px; font-weight: 800; color: var(--yellow); line-height: 1; }
.test-card input { background: rgba(255,255,255,.95); }
.save-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.why-grid div { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 22px; }
.why-grid span { font-size: 36px; }
.why-grid h3 { font-size: 21px; margin: 6px 0; }
.why-grid p { color: var(--muted); margin: 0; font-size: 15px; }

.foot { text-align: center; padding: 36px 16px; color: var(--muted); display: grid; gap: 4px; justify-items: center; }
.made a { color: var(--purple); text-decoration: underline; }

/* course sheet */
.cs { display: grid; gap: 0; }
.cs > img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.cs .in { padding: 22px 24px 26px; display: grid; gap: 12px; }
.cs h3 { font-size: 28px; }
.outline { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: s; }
.outline li { counter-increment: s; display: flex; gap: 10px; align-items: center; background: var(--sky); border-radius: 14px; padding: 8px 12px; }
.outline li::before { content: counter(s); width: 28px; height: 28px; border-radius: 10px; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 600; flex: 0 0 28px; }
.teacher { display: flex; gap: 12px; align-items: center; }
.teacher img { width: 56px; height: 56px; border-radius: 18px; object-fit: cover; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plans button { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 9px 4px; color: var(--ink); font-size: 14px; }
.plans button.on { border-color: var(--purple); background: var(--sky); font-weight: 600; }
.plans small { display: block; color: var(--muted); }
.done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 30px 22px; }
.done .ok { font-size: 60px; }
.done .code { font-family: "Baloo Bhaijaan 2"; font-size: 40px; font-weight: 800; color: var(--purple); }
.kit-layer.center { border-radius: 28px; }

@media (max-width: 900px) {
  .top nav, .top > .btn { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin: 10px 14px 20px; }
  .c2 { inset-inline-end: -6px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .answers { grid-template-columns: 1fr; }
  .save-row { grid-template-columns: 1fr; }
}
.why-grid div { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 420px) { .why-grid { grid-template-columns: 1fr; } }
