*{box-sizing:border-box}html{background:#f4effd}body{margin:0;background:white;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;color:#161026;font:18px/1.55 Inter,Arial,sans-serif}.wrap{width:min(1120px,90%);margin:auto}.bar,nav,.brand{display:flex;align-items:center}.bar{justify-content:space-between;padding:20px 0;gap:12px}a{color:inherit}.brand,nav a,.cta{text-decoration:none}.brand{font-size:clamp(18px,3vw,29px);font-weight:800;gap:12px;letter-spacing:-.045em}.brand i{width:37px;height:20px;border:2px solid currentColor;border-radius:50%;transform:rotate(-32deg);display:grid;place-items:center}.brand i:before{content:'';background:#7824ef;border-radius:50%;width:8px;height:8px}nav{gap:24px;font-size:16px}nav a:hover{text-decoration:underline}.banner{background:#532bbf linear-gradient(105deg,#331bb3bb,transparent 80%),url(gradient.webp);background-image:linear-gradient(100deg,#3020ac96,transparent),url(gradient.webp);background-size:cover;background-position:center;color:white}.hero{display:grid;grid-template-columns:1.35fr 1fr;gap:6%;align-items:center;padding:40px 0}.portrait{display:block;width:100%;height:clamp(290px,32vw,420px);object-fit:cover;object-position:50% 34%;border-radius:120px 22px 22px 22px}h1,h2,p{margin:0}h1,h2{letter-spacing:-.05em;line-height:1.04}h1{font-size:clamp(44px,6.8vw,90px)}h2{font-size:clamp(30px,3.8vw,48px)}.name{font-weight:bold;margin:16px 0}.cta,button{display:inline-block;background:white;color:#211039;border-radius:12px;padding:10px 22px;font:bold 18px/1.4 Arial}.section{padding:48px 0;display:grid;grid-template-columns:1fr 1.8fr;gap:8%}.section p+p{margin-top:14px}.tint{background:#f4effd}button:disabled{color:#685e76;border:1px solid #bbaacb}small{color:#625b68}.intro{padding:42px 0}.intro h1{margin:22px 0 12px}.intro a{font-size:16px}details{border-bottom:1px solid #d8cae9}summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:12px;font-weight:bold;padding:16px 0}summary:after{content:'+';margin-left:auto;color:#682ada}details[open]>summary:after{content:'−'}summary b{background:#eee5ff;color:#5821b8;border-radius:100%;min-width:28px;text-align:center}ul{margin:0 0 20px;padding-left:42px}li{margin:6px 0}li::marker{color:#7525df}.section p+ul{margin-top:18px}@media(max-width:680px){.bar{flex-wrap:wrap;padding:12px 0}nav{gap:12px;font-size:14px}.hero{grid-template-columns:1.2fr .86fr;gap:3%;padding:25px 0}.portrait{height:230px;border-radius:60px 12px 12px 12px}.hero h1{font-size:clamp(33px,8vw,48px)}.name{line-height:1.2}.section{display:block;padding:32px 0}h2{margin-bottom:18px}body{font-size:16px}.intro{padding:27px 0}.intro h1{font-size:40px}}
.docs,.section>*{min-width:0}
.strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c3acf0 #f6f2fc}
.strip figure{margin:0;flex:0 0 100%;min-width:0;scroll-snap-align:start}
.strip a{display:block;background:#f6f4fa;border-radius:12px;overflow:hidden;cursor:zoom-in}
.strip img{display:block;width:100%;height:auto;aspect-ratio:1.48;object-fit:contain}
.strip figcaption{padding:10px 2px;font-weight:600}
.paging{display:flex;align-items:center;gap:16px;margin-top:12px}
.paging button{font-size:26px;line-height:1;width:46px;height:46px;padding:0;border:1px solid #bfaed8;cursor:pointer}
.paging button:disabled{opacity:.45;cursor:default}
.contacts{display:flex;flex-wrap:wrap;gap:10px}
.contacts .cta{border:1px solid #a68bc5}
.contacts .cta:hover,.contacts .cta:focus-visible{background:#eee5ff}

.course-layout{display:grid;grid-template-columns:minmax(225px,.85fr) minmax(0,2fr);align-items:start;gap:5%;padding:48px 0}
.channel-offer{padding:24px;background:#f4effd;border-radius:16px}
.channel-offer h2{font-size:1.5rem;line-height:1.15}
.channel-offer p{margin:8px 0 20px}
.channel-offer button{font-size:1rem;max-width:100%}
.channel-offer small{display:block;margin-top:8px}
@media(max-width:680px){.course-layout{grid-template-columns:minmax(0,1fr);gap:28px;padding:28px 0}.channel-offer h2{margin-bottom:0}}

.curriculum h2{margin-bottom:24px}

main{display:flex;flex-direction:column;flex:1 0 auto}
main > .wrap{margin-block:0}
main > #lessons:last-child{flex:none;margin-top:auto}
html{scrollbar-gutter:stable}
.bio-copy{
  background: #f4effd;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 36px);
}
.bio-copy strong{font-weight:700;color:#42256d}
.bio-copy ul{margin:0;padding-inline-start:1.2em}
.bio-copy li{margin:0}
.bio-copy li+li{margin-top:.6em}
.curriculum li a,.lesson-text a{color:#5824a1;text-underline-offset:.19em}
.topic-heading h1{font-size:clamp(2.1rem,5vw,4.3rem)}
.lesson-text{max-width:760px;padding:clamp(28px,5vw,58px) 0;line-height:1.65}
.lesson-text p,.lesson-text table,.lesson-text ul{margin:0 0 1.2em}
.lesson-text h2{font-size:clamp(1.55rem,3vw,2.2rem);margin:1.35em 0 .5em}
.lesson-text table{width:100%;border-collapse:collapse;font-size:clamp(1rem,2vw,1.1rem)}
.lesson-text td,.lesson-text th{border-bottom:1px solid #dfd6ed;padding:.5em;text-align:left}
.lesson-text th,.equation,.experiment{background:#f4effd}
.equation,.experiment{border-radius:14px;padding:18px;text-align:center}
.fraction{display:inline-flex;flex-direction:column;vertical-align:middle;line-height:1.35}
.fraction span:first-child{border-bottom:1px solid}
.experiment{margin:1.4em 0}
.jars{display:flex;justify-content:center;align-items:end;gap:22px;margin:10px auto 16px}
.jars span{width:96px;height:58px;border:2px solid #5a6082;border-top:0;background:linear-gradient(to top,#a9dffa 20px,transparent 20px)}
.jars span+span{width:50px;background:linear-gradient(to top,#a9dffa 40px,transparent 40px)}
.lesson-text strong,.lesson-text .equation{color:#42256d;font-weight:700}

.lesson-text .course-return{display:inline-flex;align-items:center;min-height:44px;margin-bottom:20px;padding:0 18px;border:1px solid #d9c9f0;border-radius:12px;background:#f4effd;color:#39218a;font-weight:700;text-decoration:none}
.lesson-text .course-return:hover{background:#e9dff9}
.lesson-text .course-return:focus-visible{outline:3px solid #5824a1;outline-offset:3px}
