@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600;1,700&display=swap');

:root {
  --ink: #17151d;
  --muted: #696672;
  --paper: #fffefb;
  --soft: #f6f2ff;
  --violet: #7350ee;
  --violet-dark: #5834d8;
  --yellow: #ffd75b;
  --pink: #f2d7f8;
  --mint: #d9f4e8;
  --line: rgba(23, 21, 29, .12);
  --shadow: 0 24px 70px rgba(69, 45, 145, .14);
  --radius: 30px;
  --container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
body.menu-open { overflow: hidden; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: white; background: var(--violet); }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.container { width: var(--container); margin-inline: auto; }
.section { padding: 112px 0; position: relative; }
.section-sm { padding: 72px 0; }
.purple-section { color: white; background: var(--violet); }
.soft-section { background: var(--soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.purple-section .eyebrow { color: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(54px, 7.5vw, 105px); line-height: .91; letter-spacing: -.065em; }
h2 { font-size: clamp(42px, 5.1vw, 70px); line-height: .98; letter-spacing: -.055em; }
h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.025em; }
.accent { color: var(--violet); font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: -.035em; }
.accent-yellow { color: #efb800; font-family: "Playfair Display", Georgia, serif; font-style: italic; }
.purple-section .accent { color: var(--yellow); }
.lead { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.purple-section .lead { color: rgba(255,255,255,.76); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 52px; }
.section-head h2 { margin-bottom: 0; max-width: 760px; }

/* Header */
.site-header {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 40;
  transition: transform .35s ease;
}
.nav-shell {
  width: var(--container);
  min-height: 68px;
  margin: 0 auto;
  padding: 9px 10px 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 42px rgba(38, 24, 78, .10);
  backdrop-filter: blur(16px);
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.logo-mark { position: relative; width: 31px; height: 31px; transform: rotate(-8deg); }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; border-radius: 50%; background: var(--violet); }
.logo-mark::before { width: 25px; height: 18px; left: 1px; top: 4px; }
.logo-mark::after { width: 18px; height: 22px; right: 0; bottom: 0; background: var(--yellow); mix-blend-mode: multiply; }
.nav-links { display: flex; align-items: center; gap: 30px; color: #4f4b56; font-size: 14px; font-weight: 600; }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--violet); transition: right .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.mobile-nav { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 15px; color: white; background: var(--violet); cursor: pointer; }

/* Buttons */
.btn {
  min-height: 50px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary { color: white; background: var(--violet); box-shadow: 0 12px 25px rgba(115,80,238,.25); }
.btn-primary:hover { background: var(--violet-dark); box-shadow: 0 16px 35px rgba(115,80,238,.35); }
.btn-light { color: var(--violet); background: white; }
.btn-outline { border-color: var(--line); background: transparent; }
.btn-yellow { color: var(--ink); background: var(--yellow); box-shadow: 0 12px 25px rgba(255,215,91,.23); }
.btn .arrow { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.17); transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px) rotate(-10deg); }

/* Home hero */
.hero { min-height: 860px; padding: 165px 0 80px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 35px; }
.hero-copy { position: relative; z-index: 3; }
.hero-copy h1 { max-width: 720px; margin-bottom: 28px; }
.hero-copy .lead { max-width: 565px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.social-proof { display: flex; align-items: center; gap: 15px; margin-top: 40px; color: var(--muted); font-size: 13px; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 35px; height: 35px; margin-right: -9px; border: 3px solid white; border-radius: 50%; background-size: cover; background-position: center; }
.avatar-stack span:nth-child(1) { background-image: url('assets/teacher-mia.webp'); }
.avatar-stack span:nth-child(2) { background-image: url('assets/teacher-daniel.webp'); }
.avatar-stack span:nth-child(3) { background-image: url('assets/teacher-emma.webp'); }
.rating b { color: var(--ink); }
.hero-art { position: relative; min-height: 590px; }
.portrait-main {
  position: absolute;
  inset: 20px 5px 10px 68px;
  overflow: hidden;
  border-radius: 48% 52% 42% 58% / 44% 42% 58% 56%;
  background: var(--pink);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.portrait-main::after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.6); border-radius: inherit; }
.portrait-main .sprite { width: 100%; height: 100%; background-image: url('assets/teacher-mia.webp'); background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.portrait-main:hover .sprite { transform: scale(1.045); }
.orbit-word { position: absolute; width: 140px; height: 140px; right: -18px; top: -20px; z-index: 4; animation: spin 18s linear infinite; }
.orbit-word svg { width: 100%; height: 100%; overflow: visible; }
.orbit-word text { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; fill: var(--ink); }
.orbit-center { position: absolute; inset: 45px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-size: 26px; animation: spin 18s linear infinite reverse; }
.float-tag { position: absolute; z-index: 5; padding: 12px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgba(38,24,78,.15); font-weight: 700; font-size: 14px; animation: bob 4s ease-in-out infinite; }
.tag-one { left: 8px; top: 92px; background: var(--yellow); transform: rotate(-8deg); }
.tag-two { right: -22px; bottom: 88px; color: white; background: var(--violet); transform: rotate(6deg); animation-delay: -1.5s; }
.scribble { position: absolute; z-index: 4; color: var(--violet); }
.scribble-one { width: 100px; left: 0; bottom: 50px; transform: rotate(-18deg); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.blob-a { width: 170px; height: 170px; left: -80px; top: 190px; background: var(--pink); }
.blob-b { width: 110px; height: 110px; right: -42px; bottom: 40px; background: var(--yellow); }
.doodle-star { position: absolute; right: 43%; top: 135px; color: var(--yellow); font-size: 45px; animation: pulse 3s ease-in-out infinite; }

/* Stats and cards */
.stats-strip { padding: 30px 0; border-block: 1px solid var(--line); overflow: hidden; }
.stats-row { display: flex; justify-content: space-between; gap: 35px; }
.stat { min-width: 160px; }
.stat strong { display: block; font-size: 38px; letter-spacing: -.055em; }
.stat span { color: var(--muted); font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 350px; padding: 31px; position: relative; overflow: hidden; border-radius: 32px; transition: transform .35s ease; }
.feature-card:nth-child(1) { background: var(--pink); transform: rotate(-1.5deg); }
.feature-card:nth-child(2) { color: white; background: var(--violet); transform: translateY(26px) rotate(1deg); }
.feature-card:nth-child(3) { background: var(--yellow); transform: rotate(2deg); }
.feature-card:hover { transform: translateY(-9px) rotate(0); }
.feature-icon { width: 64px; height: 64px; margin-bottom: 72px; display: grid; place-items: center; border: 1px solid rgba(23,21,29,.15); border-radius: 22px; background: rgba(255,255,255,.35); font-size: 27px; }
.feature-card h3 { font-size: 30px; }
.feature-card p { max-width: 275px; line-height: 1.65; opacity: .72; }
.card-pattern { position: absolute; width: 130px; height: 130px; right: -40px; top: -35px; border: 2px solid currentColor; border-radius: 50%; opacity: .16; box-shadow: 0 0 0 18px transparent, 0 0 0 20px currentColor, 0 0 0 38px transparent, 0 0 0 40px currentColor; }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card { padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: white; transition: transform .3s, box-shadow .3s, opacity .3s; }
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.course-card.hidden { display: none; }
.course-top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 45px; }
.course-level { padding: 8px 12px; border-radius: 999px; background: var(--soft); color: var(--violet); font-size: 12px; font-weight: 700; }
.course-emoji { font-size: 35px; transition: transform .25s; }
.course-card:hover .course-emoji { transform: rotate(10deg) scale(1.15); }
.course-card p { color: var(--muted); line-height: 1.6; }
.course-meta { margin-top: 28px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 35px; }
.filter-btn { padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-weight: 600; transition: .2s; }
.filter-btn.active, .filter-btn:hover { color: white; border-color: var(--violet); background: var(--violet); }

/* Teachers */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.teacher-card { cursor: pointer; }
.teacher-photo { aspect-ratio: .82; overflow: hidden; border-radius: 26px; background-size: cover; background-position: center; transition: border-radius .4s, transform .4s; }
.teacher-card:nth-child(1) .teacher-photo { background-image: url('assets/teacher-mia.webp'); }
.teacher-card:nth-child(2) .teacher-photo { background-image: url('assets/teacher-daniel.webp'); }
.teacher-card:nth-child(3) .teacher-photo { background-image: url('assets/teacher-emma.webp'); }
.teacher-card:nth-child(4) .teacher-photo { background-image: url('assets/teacher-leo.webp'); }
.teacher-card:nth-child(even) { padding-top: 40px; }
.teacher-card:hover .teacher-photo { border-radius: 50%; transform: scale(.97); }
.teacher-info { padding: 18px 7px; }
.teacher-info h3 { margin-bottom: 6px; }
.teacher-info p { color: var(--muted); font-size: 14px; }
.teacher-drawer { position: fixed; inset: 0; z-index: 70; display: grid; justify-items: end; overflow: hidden; background: rgba(17,12,31,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.teacher-drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { width: min(520px, 100%); height: 100%; padding: 30px; overflow-y: auto; background: white; transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.teacher-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close { width: 45px; height: 45px; float: right; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.drawer-portrait { height: 380px; margin: 70px 0 28px; border-radius: 28px; background-size: cover; background-position: center; }
.drawer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0; }
.drawer-tags span { padding: 9px 12px; border-radius: 999px; background: var(--soft); color: var(--violet); font-size: 13px; font-weight: 700; }

/* Testimonials & quiz */
.testimonial-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.quote-stack { position: relative; min-height: 360px; }
.quote-card { position: absolute; inset: 0; padding: 42px; border-radius: 32px; color: var(--ink); background: white; box-shadow: var(--shadow); opacity: 0; transform: translateX(30px) rotate(2deg); transition: .55s cubic-bezier(.2,.8,.2,1); }
.quote-card.active { opacity: 1; transform: translateX(0) rotate(-1deg); }
.quote-card blockquote { margin: 0 0 28px; font-size: clamp(24px, 3vw, 35px); line-height: 1.28; letter-spacing: -.035em; }
.quote-author { display: flex; align-items: center; gap: 13px; }
.quote-author span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-weight: 700; }
.slider-controls { display: flex; gap: 8px; margin-top: 25px; }
.slider-controls button { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: white; background: transparent; cursor: pointer; transition: .2s; }
.slider-controls button:hover { color: var(--violet); background: white; }
.quiz-card { padding: 46px; border-radius: 36px; background: var(--yellow); }
.quiz-progress { height: 7px; margin: 25px 0 38px; overflow: hidden; border-radius: 99px; background: rgba(23,21,29,.12); }
.quiz-progress span { display: block; width: 33.33%; height: 100%; border-radius: inherit; background: var(--violet); transition: width .35s; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: rise .4s ease both; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option { padding: 16px 18px; border: 1px solid rgba(23,21,29,.15); border-radius: 18px; background: rgba(255,255,255,.55); text-align: left; cursor: pointer; font-weight: 600; transition: .2s; }
.option:hover, .option.selected { color: white; border-color: var(--violet); background: var(--violet); transform: translateY(-2px); }
.quiz-nav { margin-top: 30px; display: flex; justify-content: space-between; }

/* Page hero */
.page-hero { min-height: 620px; padding: 180px 0 90px; position: relative; overflow: hidden; background: var(--soft); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 900px; margin-bottom: 28px; }
.page-hero .lead { max-width: 600px; }
.page-pill { position: absolute; padding: 14px 22px; border-radius: 99px; font-weight: 700; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.page-pill.one { right: 8%; top: 35%; color: white; background: var(--violet); transform: rotate(9deg); }
.page-pill.two { right: 25%; bottom: 14%; background: var(--yellow); transform: rotate(-7deg); animation-delay: -2s; }
.page-circle { position: absolute; width: 310px; height: 310px; right: -80px; top: -70px; border: 60px solid var(--pink); border-radius: 50%; opacity: .8; }

/* Course detail layout */
.syllabus { display: grid; grid-template-columns: 340px 1fr; gap: 55px; }
.sticky-note { position: sticky; top: 115px; align-self: start; padding: 35px; border-radius: 30px; color: white; background: var(--violet); }
.sticky-note .big { margin-bottom: 10px; font-size: 50px; font-weight: 700; letter-spacing: -.06em; }
.syllabus-list { border-top: 1px solid var(--line); }
.lesson { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center; padding: 26px 5px; border-bottom: 1px solid var(--line); }
.lesson-no { color: var(--violet); font-weight: 700; }
.lesson h3 { margin: 0 0 5px; }
.lesson p { margin: 0; color: var(--muted); }
.lesson-time { color: var(--muted); font-size: 13px; }

/* Trial page */
.trial-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 65px; align-items: start; }
.benefit-list { display: grid; gap: 13px; margin: 35px 0; }
.benefit { display: flex; align-items: center; gap: 13px; }
.benefit i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); font-style: normal; }
.booking-card { padding: 42px; border: 1px solid var(--line); border-radius: 34px; background: white; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; outline: none; background: #fbfaff; transition: border .2s, box-shadow .2s; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(115,80,238,.1); }
.time-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.time-pill { padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: white; cursor: pointer; transition: .2s; }
.time-pill.active { color: white; border-color: var(--violet); background: var(--violet); }
.success-state { display: none; padding: 50px 15px; text-align: center; }
.success-state.show { display: block; animation: rise .5s ease; }
.success-icon { width: 90px; height: 90px; margin: 0 auto 25px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); font-size: 40px; }

/* FAQ and CTA */
.faq-list { max-width: 850px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; padding: 25px 0; display: flex; justify-content: space-between; gap: 25px; border: 0; background: transparent; text-align: left; font-size: 19px; font-weight: 700; cursor: pointer; }
.faq-question span:last-child { transition: transform .3s; }
.faq-answer { max-height: 0; overflow: hidden; color: var(--muted); line-height: 1.7; transition: max-height .35s ease, padding .35s; }
.faq-item.open .faq-answer { max-height: 220px; padding-bottom: 25px; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }
.cta-card { min-height: 430px; padding: 65px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 45px; color: white; background: var(--violet); text-align: center; }
.cta-card h2 { max-width: 750px; position: relative; z-index: 2; }
.cta-card .btn { position: relative; z-index: 2; }
.cta-bubble { position: absolute; border-radius: 50%; background: var(--yellow); }
.cta-bubble.a { width: 150px; height: 150px; left: -35px; top: -30px; }
.cta-bubble.b { width: 210px; height: 210px; right: -70px; bottom: -85px; background: var(--pink); }
.cta-loop { position: absolute; width: 310px; height: 130px; right: 4%; top: 10%; border: 3px solid rgba(255,255,255,.25); border-radius: 50%; transform: rotate(-20deg); }

/* Marquee & footer */
.marquee { padding: 20px 0; overflow: hidden; color: var(--ink); background: var(--yellow); transform: rotate(-1deg) scale(1.01); }
.marquee-track { width: max-content; display: flex; gap: 30px; font-size: 20px; font-weight: 700; animation: marquee 22s linear infinite; }
.marquee-track span::after { content: "✦"; margin-left: 30px; color: var(--violet); }
footer { padding: 70px 0 28px; background: #17151d; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; }
.footer-brand p { max-width: 320px; margin: 22px 0; color: rgba(255,255,255,.56); line-height: 1.7; }
.footer-col h4 { color: rgba(255,255,255,.45); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: block; margin: 14px 0; color: rgba(255,255,255,.76); }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { margin-top: 60px; padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.4); font-size: 12px; }

/* Reveal and motion */
.reveal { opacity: 1; transform: none; transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.2,1); }
body.motion-ready .reveal { opacity: 0; transform: translateY(28px); }
body.motion-ready .reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -13px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: rotate(12deg) scale(1.18); } }
@keyframes rise { from { opacity: 0; transform: translateY(15px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  :root { --container: min(100% - 32px, 760px); }
  .nav-shell { position: relative; z-index: 3; }
  .nav-links { display: none; }
  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(116px + env(safe-area-inset-top)) 28px calc(36px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(22px, 4vh, 34px);
    color: var(--ink);
    font-size: clamp(30px, 8vw, 42px);
    font-weight: 600;
    background: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Панель остаётся в пределах экрана (inset:0) и раскрывается обрезкой справа,
       вместо ухода за правый край через translateX — иначе она создаёт горизонтальный
       скролл на мобильных (overflow предков не режет position: fixed). */
    clip-path: inset(0 0 0 100%);
    transition: clip-path .4s cubic-bezier(.2,.75,.2,1), opacity .25s ease, visibility 0s linear .4s;
  }
  .mobile-nav a { position: relative; }
  .mobile-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 3px; border-radius: 3px; background: var(--violet); transition: right .25s; }
  .mobile-nav a:hover::after, .mobile-nav a.active::after { right: 0; }
  body.menu-open .mobile-nav { opacity: 1; visibility: visible; pointer-events: auto; clip-path: inset(0 0 0 0); transition-delay: 0s; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-actions .btn { display: none; }
  .hero { min-height: auto; padding-top: 145px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 540px; max-width: 590px; width: 100%; margin: 20px auto 0; }
  .doodle-star { display: none; }
  .feature-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(3) { grid-column: 1 / -1; }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-wrap, .trial-layout { grid-template-columns: 1fr; }
  .syllabus { grid-template-columns: 1fr; }
  .sticky-note { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --container: calc(100vw - 24px); --radius: 24px; }
  .section { padding: 78px 0; }
  .site-header { top: calc(8px + env(safe-area-inset-top)); }
  .nav-shell { min-height: 60px; padding-left: 14px; border-radius: 18px; }
  .menu-toggle { width: 42px; height: 42px; }
  h1 { font-size: clamp(48px, 16vw, 72px); }
  h2 { font-size: 42px; }
  .hero { padding-top: 125px; }
  .hero-actions .btn { width: 100%; }
  .hero-art { min-height: 430px; }
  .portrait-main { inset: 20px 18px 15px 35px; }
  .orbit-word { width: 110px; height: 110px; right: 0; }
  .orbit-center { inset: 35px; }
  .tag-two { right: 0; }
  .stats-row { display: grid; grid-template-columns: repeat(2, 1fr); }
  .stat strong { font-size: 31px; }
  .section-head { display: block; }
  .section-head .btn { margin-top: 22px; }
  .feature-grid, .course-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(2) { transform: none; }
  .feature-card:nth-child(3) { grid-column: auto; }
  .teacher-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .teacher-card:nth-child(even) { padding-top: 22px; }
  .teacher-info { padding-inline: 3px; }
  .teacher-info h3 { font-size: 17px; }
  .teacher-info p { font-size: 12px; }
  .quote-card { padding: 28px; }
  .option-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .quiz-card, .booking-card { padding: 26px; }
  .page-hero { min-height: 560px; padding-top: 150px; }
  .page-pill.one { right: 1%; top: auto; bottom: 135px; }
  .page-pill.two { right: 45%; bottom: 50px; }
  .page-circle { width: 220px; height: 220px; }
  .lesson { grid-template-columns: 42px 1fr; }
  .lesson-time { grid-column: 2; }
  .cta-card { min-height: 400px; padding: 45px 22px; border-radius: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
