@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/main/homepage-v2/fonts/inter-regular.ttf') format('truetype'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/main/homepage-v2/fonts/inter-medium.ttf') format('truetype'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/main/homepage-v2/fonts/inter-semibold.ttf') format('truetype'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/main/homepage-v2/fonts/inter-bold.ttf') format('truetype'); }

:root {
  --ink: #120055;
  --muted: #988fbb;
  --muted-2: #a099bb;
  --lavender: #f1efff;
  --violet: #705eff;
  --violet-light: #b7aeff;
  --yellow: #f3ff40;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; height: 0; }
body { min-width: 320px; margin: 0; background: #fff; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.section { width: 100%; }
.section-inner { width: min(976px, calc(100% - 32px)); margin: 0 auto; }
.section-inner--narrow { max-width: 976px; }

.promo { position: relative; z-index: 2; min-height: 77px; display: grid; place-items: center; padding: 28px 64px 16px; isolation: isolate; }
.promo::after { position: absolute; z-index: -1; right: 16px; bottom: 0; left: 16px; height: 61px; border-radius: 16px; background: linear-gradient(96deg, #f1efff 10%, #ffeff6 55%, rgba(241,239,255,0) 98%), var(--yellow); content: ""; }
.promo__message { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.04em; }
.promo__message img { width: 29px; height: 29px; }
.promo__close { position: absolute; top: 24px; right: 24px; width: 24px; height: 24px; padding: 0; background: transparent; }
.promo__close img { width: 100%; height: 100%; }

.site-header { position: relative; z-index: 20; padding: 16px; background: #fff; }
.header-inner { width: min(976px, 100%); min-height: 51px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; height: 35px; }
.logo img { width: 42px; height: 28px; object-fit: contain; }
.logo span { margin-left: -1px; font-size: 25px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 16px; white-space: nowrap; }
.contact-menu { position: relative; display: flex; align-items: center; }
.contact-trigger { position: relative; z-index: 1; }
.contact-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 14px);
  left: 50%;
  display: flex;
  width: 300px;
  flex-direction: column;
  gap: 22px;
  padding: 32px 24px;
  border-radius: 32px;
  background: var(--lavender);
  box-shadow: 0 18px 44px rgba(18, 0, 85, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  visibility: hidden;
}
.contact-popover::before { position: absolute; top: -14px; right: 0; left: 0; height: 14px; content: ""; }
.contact-menu:hover .contact-popover,
.contact-menu[data-contact-open="true"] .contact-popover,
.contact-trigger:focus-visible + .contact-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}
.contact-popover__item,
.contact-popover__caption { display: block; margin: 0; font-size: 16px; line-height: 1.15; }
.contact-popover__caption { font-size: 14px; }
.contact-popover__item { color: var(--ink) !important; }
.contact-popover__item:hover { color: var(--violet) !important; }
.contact-popover__caption { color: var(--muted); }
.main-nav a:not(.phone-link), .footer-nav a:not(:last-child) { color: var(--muted); }
.main-nav a, .footer-nav a { transition: color .16s ease; }
.main-nav a:hover, .footer-nav a:hover { color: var(--violet); }
.phone-link { color: var(--ink); }
.header-actions, .footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; padding: 16px 24px; border-radius: 16px; color: var(--ink); font-size: 16px; line-height: 1.2; white-space: nowrap; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .pill-tab:focus-visible, .filter:focus-visible, .promo__close:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(112,94,255,.45); outline-offset: 3px; }
.button--light { background: #fff; color: var(--ink); }
.button--dark { background: var(--ink); color: #fff; }
.button--soft { background: var(--lavender); }
.button--outline { border: 1px solid rgba(18,0,85,.12); background: #fff; }
.button--outline-light { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; }
.button--icon { width: 51px; padding: 0; }
.button--icon img { width: 24px; height: 24px; }
.button--menu { display: none; }
.menu-icon { width: 24px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-icon i { display: block; width: 24px; height: 1px; background: currentColor; }

.hero { padding: 32px 16px 120px; }
.hero-inner { position: relative; width: min(1408px, 100%); min-height: 560px; margin: 0 auto; overflow: hidden; border-radius: 40px; background: var(--violet); color: #fff; }
.hero-copy { position: relative; z-index: 1; width: min(590px, 50%); padding: 92px 0 92px 112px; }
.hero-copy h1 { margin: 0 0 24px; font-size: clamp(42px, 4.6vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -0.055em; }
.hero-copy h1 span { color: var(--yellow); }
.hero-copy p { max-width: 470px; margin: 0 0 40px; color: rgba(255,255,255,.8); font-size: 16px; line-height: 1.4; }
.hero-art { position: absolute; inset: 0; overflow: hidden; }
.hero-art__orbit { position: absolute; right: 15%; top: 14%; width: 320px; height: 250px; border: 8px solid var(--yellow); border-radius: 50% 50% 48% 52%; transform: rotate(-14deg); opacity: .96; }
.hero-art__orbit::after { position: absolute; right: -34px; bottom: -64px; width: 250px; height: 8px; background: var(--yellow); content: ""; transform: rotate(22deg); }
.hero-art__gauge { position: absolute; right: 20%; top: 27%; width: 240px; height: 130px; padding-top: 40px; border: 7px solid var(--ink); border-bottom: 0; border-radius: 240px 240px 0 0; background: var(--violet-light); color: var(--ink); text-align: center; transform: rotate(-14deg); }
.hero-art__gauge span { display: block; font-size: 42px; font-weight: 700; line-height: .8; }
.hero-art__gauge small { font-size: 14px; }
.hero-art__pen { position: absolute; right: 12%; top: 16%; width: 28px; height: 320px; border: 4px solid var(--ink); border-radius: 18px; background: var(--yellow); transform: rotate(24deg); }
.hero-art__pen::after { position: absolute; right: 2px; bottom: -23px; border-top: 25px solid var(--ink); border-right: 10px solid transparent; border-left: 10px solid transparent; content: ""; }
.hero-asset { position: absolute; width: 84px; height: 84px; object-fit: contain; }
.hero-asset--1 { right: 8%; top: 10%; }
.hero-asset--2 { right: 5%; bottom: 18%; }
.hero-asset--3 { right: 37%; top: 10%; }
.hero-asset--4 { right: 46%; bottom: 9%; }
.hero-asset--5 { right: 17%; bottom: 8%; }
.hero-asset--6 { right: 42%; top: 56%; }

.benefits { padding: 0 0 120px; }
.split-heading { width: 100%; margin-bottom: 60px; }
.split-heading h2, .center-heading h2, .articles-heading h2, .consultation-copy h2 { margin: 0; font-size: clamp(38px, 4vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.benefit-card { min-height: 214px; display: grid; grid-template-columns: 80px 1fr; grid-template-rows: auto 1fr; gap: 4px 24px; padding: 24px; border-radius: 32px; background: var(--lavender); }
.benefit-card img { width: 80px; height: 110px; grid-row: 1 / span 2; object-fit: contain; }
.benefit-card h3 { align-self: end; margin: 0; font-size: 24px; font-weight: 500; line-height: 1.1; }
.benefit-card p { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.benefit-card--accent { background: var(--violet); color: #fff; }
.benefit-card--accent p { color: rgba(255,255,255,.72); }

.school { padding: 120px 16px; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px); background-position: 0 73px; background-size: 109px 108px; }
.center-heading { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.center-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.pill-tabs { display: flex; justify-content: center; gap: 4px; padding: 4px; border-radius: 20px; background: #fff; }
.school-tabs { width: fit-content; margin: 32px auto 60px; }
.pill-tab { min-height: 51px; padding: 16px 32px; border-radius: 16px; background: transparent; color: var(--muted); font-size: 16px; line-height: 1.2; }
.pill-tab--active { background: var(--lavender); color: var(--ink); }
.school-stage { position: relative; height: 628px; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0; border: 8px solid #fff; border-radius: 40px; background: #fff; }
.school-art { position: relative; flex: 0 0 482px; overflow: hidden; border-radius: 32px; background: var(--violet-light); }
.school-art-canvas { position: relative; width: 1008px; height: 482px; }
.school-piece { position: absolute; width: auto; height: auto; max-width: none; object-fit: contain; }
.school-frame-image { position: absolute; z-index: 2; inset: 0; display: none; width: 1008px; height: 482px; max-width: none; border-radius: 32px; object-fit: cover; object-position: top; }
.school-frame-image.is-active { display: block; }
.school-art--frame .school-piece { display: none; }
.school-piece--1 { left: 514px; top: 20px; }
.school-piece--2 { left: 20px; top: 22px; }
.school-piece--3 { left: 271px; top: 148px; }
.school-piece--4 { left: 271px; top: 400px; }
.school-piece--5 { left: 763px; top: 148px; }
.school-piece--6 { left: 23px; top: 283px; }
.school-piece--7 { left: 271px; top: -106px; }
.school-piece--8 { left: 514px; top: 283px; }
.school-piece--9 { left: 798px; top: 399px; }
.school-piece--10 { left: 759px; top: -105px; }
.school-stage__caption { position: relative; z-index: 1; flex: 1 1 auto; width: 100%; margin: 0; padding: 34px 32px; border-radius: 0 0 32px 32px; background: #fff; text-align: left; }
.school-stage__caption strong, .school-stage__caption span { display: block; }
.school-stage__caption strong { font-size: 24px; font-weight: 500; }
.school-stage__caption span { margin-top: 8px; color: var(--muted); font-size: 16px; }
.school > .section-inner > .button { display: flex; width: fit-content; margin: 24px auto 0; }

.bet { padding: 120px 16px; background: #fff; }
.bet-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.bet-copy h2 { margin: 0 0 32px; font-size: clamp(38px, 4vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.bet-copy p { max-width: 420px; margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.bet-copy .bet-lead { max-width: 360px; margin: 0; color: var(--muted); font-weight: 400; }
.bet-reward { width: 484px; height: 156px; margin-top: 32px; padding: 24px; border-radius: 32px; background: var(--lavender); }
.bet-reward h3 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.2; }
.bet-reward p { max-width: none; margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.slot-art { position: relative; width: 520px; height: 592px; margin: auto; overflow: hidden; background: #fff; }
.slot-art img { width: 520px; height: 592px; max-width: none; object-fit: contain; }

.referral { padding: 0 16px 120px; }
.referral-inner, .trial-inner { position: relative; width: min(1408px, 100%); min-height: 430px; margin: 0 auto; overflow: hidden; border-radius: 40px; background: var(--violet); color: #fff; }
.referral-inner { background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-position: 0 0; background-size: 109px 108px; }
.referral-copy, .trial-copy { position: relative; z-index: 1; width: 50%; padding: 80px 0 80px 112px; }
.referral-copy h2, .trial-copy h2 { margin: 0 0 24px; font-size: clamp(38px, 4vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.referral-copy p, .trial-copy p { max-width: 390px; margin: 0 0 32px; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.4; }
.referral-actions, .trial-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.referral-art, .trial-art { position: absolute; inset: 0; }
.referral-art img { position: absolute; width: auto; height: auto; max-width: none; object-fit: contain; }
.referral-art img:nth-child(1) { left: 360px; top: 96px; width: 35.97px; height: 42.23px; }
.referral-art img:nth-child(2) { left: 64px; top: 96px; width: 33px; height: 35.76px; }
.referral-art img:nth-child(3) { left: 608px; top: 220px; width: 31.95px; height: 18.29px; }
.referral-art img:nth-child(4) { left: 64px; top: 48px; width: 590.94px; height: 449px; }

.reviews { position: relative; padding: 0 0 120px; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 60px; }
.review-card { min-height: 360px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border-radius: 32px; background: var(--lavender); }
.review-card__author { display: flex; align-items: center; gap: 16px; }
.review-card__author img { width: 81px; height: 81px; border-radius: 50%; object-fit: cover; }
.review-card__author strong { font-size: 16px; font-weight: 500; }
.review-card p { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.review-card .review-card__quote { color: var(--ink); font-weight: 500; }
.review-card__tag { margin-top: auto; padding: 7px 12px; border-radius: 8px; background: #fff; color: var(--violet); font-size: 12px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); }
.carousel-dots .is-active { background: var(--violet); }
.carousel-viewport { width: 100%; }
.carousel-arrows { display: flex; justify-content: center; gap: 24px; margin-top: 60px; }
.carousel-arrows button { width: 40px; height: 40px; padding: 0; border-radius: 12px; background: var(--lavender); color: var(--ink); font-size: 24px; line-height: 1; }

.teachers { padding: 120px 16px; background: var(--lavender); }
.teacher-filters { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 32px 0 60px; }
.filter { padding: 12px 20px; border-radius: 12px; background: #fff; color: var(--muted); }
.filter--active { background: var(--violet); color: #fff; }
.teacher-filters span { margin-left: 16px; color: var(--muted); font-size: 14px; }
.teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.teacher-card { min-height: 520px; display: flex; flex-direction: column; padding: 24px; border-radius: 32px; background: #fff; }
.teacher-card__photo { height: 190px; margin: -24px -24px 24px; overflow: hidden; border-radius: 32px 32px 0 0; background: var(--violet-light); }
.teacher-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card h3 { margin: 0 0 16px; font-size: 24px; font-weight: 500; line-height: 1.1; }
.teacher-card ul, .course-card ul, .price-card ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.teacher-card li, .course-card li, .price-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; }
.teacher-card li img, .course-card li img, .price-card li img { flex: 0 0 auto; width: 20px; height: 20px; object-fit: contain; }
.teacher-check { flex: 0 0 20px; color: var(--ink); font-size: 20px; line-height: 20px; }
.teacher-card__quote { margin: auto 0 0; padding-top: 24px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.teacher-card__head { display: grid; grid-template-columns: 81px 1fr; grid-template-rows: auto auto; column-gap: 24px; }
.teacher-card__badges { display: flex; align-items: center; gap: 8px; min-width: 0; }
.teacher-card__badges span { padding: 4px 12px; border: 1px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 -3px 0 rgba(18, 0, 85, .72); font-size: 16px; line-height: 1.2; white-space: nowrap; }
.teacher-card__badges .teacher-card__experience { background: var(--yellow); }
.teacher-card__head .teacher-card__photo { grid-column: 1; grid-row: 1 / span 2; }
.teacher-card__head h3 { grid-column: 2; grid-row: 2; align-self: start; }

.lessons { padding: 120px 16px; }
.lessons-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.lessons-copy h2 { margin: 0 0 24px; font-size: clamp(38px, 4vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.lessons-lead { margin: 0 0 32px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.lesson-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-bottom: 32px; }
.lesson-list div { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.lesson-list div.lesson-list__item--unavailable { cursor: default; opacity: .72; }
.lesson-list div:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.lesson-list strong { font-size: 16px; font-weight: 500; }
.lesson-list span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.lessons-copy > .button { margin-top: 8px; }
.lesson-device { display: grid; place-items: center; min-height: 490px; padding: 32px; border-radius: 32px; background: var(--violet); }
.lesson-device img { width: min(446px, 100%); border: 1px solid var(--ink); border-radius: 18px; box-shadow: 0 14px 0 rgba(18,0,85,.16); }

.trial { padding: 0 16px 120px; }
.trial-inner { min-height: 390px; }
.trial-copy { padding-top: 86px; }
.trial-art img { position: absolute; object-fit: contain; }
.trial-art img:first-child { right: 5%; bottom: -12%; width: 450px; height: 450px; }
.trial-art img:last-child { right: 0; top: 6%; width: 290px; height: 290px; }
.trial-art__main { max-width: none; }

.courses { padding: 0 0 120px; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 60px; }
.course-card { min-height: 660px; display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 32px; background: var(--lavender); }
.course-card--dark { background: var(--violet); color: #fff; }
.course-card__header strong { display: inline-flex; margin-bottom: 32px; padding: 8px 12px; border-radius: 8px; background: #fff; color: var(--violet); font-size: 14px; }
.course-card--dark .course-card__header strong { color: var(--ink); }
.course-card h3 { margin: 0; font-size: 32px; font-weight: 500; line-height: 1.1; }
.course-card__header p { margin: 8px 0 0; color: var(--muted); font-size: 18px; font-weight: 500; }
.course-card--dark .course-card__header p, .course-card--dark > p { color: rgba(255,255,255,.76); }
.course-card > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.course-card h4 { margin: 0; font-size: 16px; font-weight: 500; }
.course-card ul { gap: 12px; }
.course-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.course-check, .price-check { flex: 0 0 20px; color: var(--ink); font-size: 20px; line-height: 20px; }
.course-card__exam { display: block; width: auto; height: 50px; max-width: none; object-fit: contain; }

.pricing { padding: 120px 16px; background: var(--lavender); }
.pricing-tabs { width: fit-content; margin: 32px auto 60px; background: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price-card { min-height: 846px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 24px; border-radius: 32px; background: #fff; }
.price-card--featured { background: var(--violet); color: #fff; }
.price-card__top { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.price-card__icon { width: 40px; height: 40px; object-fit: contain; }
.price-card h3 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.1; }
.price-card > .price-card__top > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.price-card--featured > .price-card__top > p { color: rgba(255,255,255,.72); }
.price-card h4 { margin: 0; font-size: 16px; font-weight: 500; }
.price-card li { font-size: 16px; }
.price-card__bottom { display: flex; flex-direction: column; gap: 20px; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 4px; white-space: nowrap; }
.price span { color: rgba(18,0,85,.4); font-size: 24px; text-decoration: line-through; }
.price strong { font-size: 24px; font-weight: 500; }
.price small { color: rgba(18,0,85,.4); font-size: 16px; }
.price-card--featured .price span, .price-card--featured .price small { color: rgba(255,255,255,.6); }
.price-card--featured .price-check { color: #fff; }

.articles { padding: 120px 16px; }
.articles-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.articles-heading p { margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.article-list { display: flex; flex-direction: column; gap: 8px; }
.article-card { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 8px; border-radius: 32px; background: var(--lavender); }
.article-card > img { width: 160px; height: 150px; border-radius: 24px; object-fit: cover; }
.article-card > div { padding: 16px 16px 16px 0; }
.article-card h3 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.1; }
.article-card p { margin: 6px 0; color: var(--muted); font-size: 14px; line-height: 1.3; }
.article-card span { color: var(--muted); font-size: 12px; }
.article-card button { display: block; margin-top: 10px; padding: 0; background: transparent; color: var(--ink); font-size: 14px; text-decoration: underline; }

.faq { padding: 0 16px 120px; }
.faq-inner { max-width: 976px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 60px; }
.faq details { border-radius: 16px; background: var(--lavender); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; cursor: pointer; list-style: none; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 0 0 auto; font-size: 24px; line-height: 1; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 20px; color: var(--muted); font-size: 14px; line-height: 1.4; }

.consultation { padding: 0 16px 120px; }
.consultation-inner { position: relative; width: min(1408px, 100%); min-height: 591px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; overflow: hidden; padding: 72px max(16px, calc((100% - 976px) / 2)); border-radius: 40px; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.1) 1px, transparent 1px); background-size: 109px 59px; }
.consultation-art { display: grid; place-items: center; }
.consultation-art img { width: min(390px, 100%); }
.consultation-copy { width: 100%; }
.consultation-copy h2 { margin-bottom: 40px; }
#consultation-form, .consultation-copy form { display: flex; flex-direction: column; gap: 8px; width: min(458px, 100%); }
#consultation-form input:not([type="checkbox"]), .consultation-copy form input:not([type="checkbox"]) { width: 100%; height: 51px; padding: 16px 24px; border: 0; border-radius: 16px; color: var(--ink); background: #fff; font-size: 16px; }
#consultation-form input[type="hidden"], #consultation-form input.sr-only, .consultation-copy form input[type="hidden"], .consultation-copy form input.sr-only { width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
#consultation-form input::placeholder, .consultation-copy form input::placeholder { color: var(--muted); opacity: 1; }
.consent { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 16px; font-size: 12px; line-height: 1.4; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 21px; height: 21px; margin: 0; accent-color: var(--violet); }
.consent a { text-decoration: underline; }
.consultation-copy form > .button { width: 139px; flex: 0 0 auto; align-self: flex-start; }
@media (max-width: 520px) {
  .consultation-copy form { width: 100%; max-width: none; min-width: 0; }
  .consultation-copy form input:not([type="checkbox"]) { width: 100%; max-width: 100%; }
  .consultation-copy form .consent span { min-width: 0; overflow-wrap: anywhere; }
  .consultation-copy form > .button { align-self: center; }
}
.form-status { min-height: 18px; margin: 2px 0 0; color: var(--ink); font-size: 12px; line-height: 1.4; }
.form-status--error { color: #9d194a; }

.footer { padding: 0 16px 136px; }
.footer-shell { min-height: 680px; padding: 120px 0 136px; border-radius: 40px; background: var(--ink); color: #fff; }
.footer-inner { width: min(976px, calc(100% - 32px)); min-height: 424px; margin: 0 auto; display: grid; grid-template-columns: 458px 1fr; gap: 60px; }
.footer-left, .footer-right { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.footer-left { gap: 28px; }
.footer-left h2 { margin: 0 0 -8px; font-size: 36px; font-weight: 500; }
.socials { display: flex; gap: 12px; }
.social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--violet); }
.social img { width: 24px; height: 24px; }
.footer-phone { font-size: 16px; text-decoration: underline; }
.footer-left > p { margin: -18px 0 0; color: var(--muted); font-size: 16px; }
.documents { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; color: inherit; }
.documents:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.documents strong { font-size: 16px; font-weight: 500; }
.documents span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.footer-right { min-height: 440px; }
.footer-right .logo { color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 24px; font-size: 16px; }
.footer-nav a:last-child { color: #fff; }
.footer-actions { margin-top: auto; }

.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 14px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.toast--visible { opacity: 1; transform: translateY(0); }
.referral-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.referral-modal--visible { visibility: visible; opacity: 1; pointer-events: auto; }
.referral-modal__backdrop { position: absolute; inset: 0; background: rgba(18, 0, 85, .58); }
.referral-modal__dialog { position: relative; width: min(760px, 100%); max-height: min(760px, calc(100vh - 48px)); overflow: auto; padding: 48px 56px 52px; border: 1px solid rgba(18, 0, 85, .12); border-radius: 32px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(18, 0, 85, .24); }
.referral-modal__dialog h2 { margin: 0 56px 24px 0; font-size: clamp(28px, 4vw, 44px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.referral-modal__text { color: var(--muted); font-size: 17px; line-height: 1.55; white-space: normal; }
.referral-modal__text br + br { display: block; content: ""; margin-top: 14px; }
.referral-modal__close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--soft); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.referral-modal__close:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
body.referral-modal-open { overflow: hidden; }

@media (max-width: 1120px) {
  .header-inner, .section-inner, .footer-inner { width: min(976px, calc(100% - 32px)); }
  .hero-copy { padding-left: 72px; }
  .main-nav { gap: 14px; font-size: 14px; }
  .button { padding-right: 18px; padding-left: 18px; }
  .consultation-inner { padding-right: 32px; padding-left: 32px; }
}

@media (max-width: 820px) {
  .promo { min-height: 70px; padding: 25px 48px 13px 24px; }
  .promo::after { right: 8px; left: 8px; }
  .promo__message { font-size: 14px; }
  .promo__close { top: 23px; right: 16px; }
  .site-header { padding: 12px 16px; }
  .main-nav { display: none; }
  .header-inner { width: 100%; }
  .common-mobile-menu nav .contact-menu { display: block; }
  .common-mobile-menu nav .contact-trigger { display: block; padding: 12px; border-radius: 12px; color: var(--ink); font-size: 14px; }
  .common-mobile-menu nav .contact-trigger:hover { background: var(--lavender); }
  .common-mobile-menu nav .contact-popover { position: static; display: none; width: auto; gap: 14px; margin: 4px 0; padding: 16px; border-radius: 16px; box-shadow: none; transform: none; }
  .common-mobile-menu nav .contact-menu:hover .contact-popover,
  .common-mobile-menu nav .contact-menu[data-contact-open="true"] .contact-popover,
  .common-mobile-menu nav .contact-trigger:focus-visible + .contact-popover { display: flex; transform: none; }
  .common-mobile-menu nav .contact-menu:hover .contact-popover,
  .common-mobile-menu nav .contact-trigger:focus-visible + .contact-popover { display: none; }
  .common-mobile-menu nav .contact-menu[data-contact-open="true"] .contact-popover { display: flex; }
  .common-mobile-menu nav .contact-popover__item,
  .common-mobile-menu nav .contact-popover__caption { font-size: 14px; }
  .header-actions .button:not(.button--icon) { display: inline-flex; }
  .hero { padding: 16px 8px 72px; }
  .hero-inner { min-height: 620px; border-radius: 28px; }
  .hero-copy { width: 100%; padding: 48px 24px 0; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy p { max-width: 360px; }
  .hero-art { top: 270px; }
  .hero-art__orbit { right: 13%; top: 14%; width: 250px; height: 190px; }
  .hero-art__gauge { right: 22%; top: 28%; width: 185px; height: 104px; padding-top: 28px; }
  .hero-art__pen { right: 10%; top: 20%; height: 260px; }
  .hero-asset { width: 56px; height: 56px; }
  .benefits, .bet, .reviews, .lessons, .articles { padding-bottom: 80px; }
  .split-heading { margin-bottom: 40px; }
  .benefit-grid, .review-grid, .teacher-grid, .course-grid, .price-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 190px; }
  .school, .teachers, .pricing { padding-top: 80px; padding-bottom: 80px; }
  .school-tabs { width: 100%; margin-bottom: 40px; overflow-x: auto; justify-content: flex-start; }
  .pill-tab { flex: 0 0 auto; padding-right: 16px; padding-left: 16px; }
  .school-stage { min-height: 520px; padding: 350px 24px 24px; border-radius: 28px; }
  .school-piece { width: 130px; height: 130px; }
  .school-stage__caption strong { font-size: 20px; }
  .bet-inner, .lessons-inner, .articles-inner, .consultation-inner { grid-template-columns: 1fr; }
  .slot-art { width: min(340px, 90%); height: 300px; }
  .slot-art img { width: 100%; height: 100%; }
  .referral, .trial, .consultation { padding-bottom: 80px; }
  .referral-inner, .trial-inner { min-height: 620px; border-radius: 28px; }
  .referral-copy, .trial-copy { width: 100%; padding: 56px 24px 0; }
  .referral-art, .trial-art { top: 270px; }
  .referral-art img { width: 190px !important; height: 190px !important; }
  .referral-art img:nth-child(1) { right: 42%; top: 13%; }
  .referral-art img:nth-child(2) { right: 13%; top: 0; }
  .referral-art img:nth-child(3) { right: -3%; bottom: -2%; }
  .referral-art img:nth-child(4) { right: 5%; top: 7%; }
  .teacher-filters { margin-bottom: 40px; }
  .lesson-list { grid-template-columns: 1fr; }
  .lesson-device { min-height: 360px; padding: 20px; }
  .trial-art img:first-child { right: 7%; width: 290px; height: 290px; }
  .trial-art img:last-child { right: -8%; width: 210px; height: 210px; }
  .course-card, .price-card { min-height: 0; }
  .articles-inner { gap: 40px; }
  .article-card { grid-template-columns: 110px 1fr; }
  .article-card > img { width: 110px; height: 130px; }
  .consultation-inner { min-height: 0; padding: 56px 24px; border-radius: 28px; }
  .consultation-art { order: 2; }
  .consultation-copy { order: 1; }
  .footer { padding-bottom: 48px; }
  .footer-shell { min-height: 0; padding: 72px 24px; border-radius: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 64px; }
  .footer-right { min-height: 450px; }
  .footer-actions { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .logo span { font-size: 22px; }
  .header-actions .button:not(.button--icon) { display: none; }
  .section-inner { width: calc(100% - 32px); }
  .desktop-only { display: none; }
  .hero-copy h1, .split-heading h2, .center-heading h2, .articles-heading h2, .consultation-copy h2 { font-size: 36px; }
  .hero-copy p, .benefit-card p, .price-card li, .price-card > .price-card__top > p { font-size: 14px; }
  .benefit-card { grid-template-columns: 64px 1fr; padding: 20px; border-radius: 24px; }
  .benefit-card img { width: 64px; height: 90px; }
  .benefit-card h3 { font-size: 20px; }
  .school-stage { padding-top: 330px; }
  .school-piece { width: 100px; height: 100px; }
  .slot-art { transform: scale(.86) rotate(4deg); transform-origin: center; }
  .review-card, .teacher-card, .course-card, .price-card { border-radius: 24px; }
  .article-card > div { padding-right: 8px; }
  .article-card h3 { font-size: 16px; }
  .footer-actions .button { flex: 1 1 auto; }
}

/* Exact geometry from the supplied About / Tariffs / Documents references.
   The HTML remains Django-driven, while the reference frame dimensions are
   applied only to these public pages. */
@media (min-width: 821px) {
  .about-page .about-motivation { padding: 120px 16px; }
  .about-page .about-life { margin-bottom: 120px; padding: 120px 16px; }
  .about-page .about-team,
  .about-page .about-trust,
  .about-page .about-articles { padding: 120px 16px; }

  .tariffs-page .pricing {
    height: auto;
    min-height: 0;
    padding: 120px 16px;
    overflow: visible;
    background: #fff;
  }
  .tariffs-page .pricing > .section-inner {
    width: min(976px, calc(100% - 32px));
    max-width: 976px;
    min-height: 0;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .tariffs-page .pricing .center-heading h1 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .tariffs-page .tariffs-page__lead { margin: 32px auto; }
  .tariffs-page .pricing-tabs { margin: 0 auto 60px; }
  .tariffs-page .pricing .carousel-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .tariffs-page .pricing .carousel-viewport::-webkit-scrollbar { display: none; }
  .tariffs-page .pricing .price-grid { display: flex; flex-wrap: nowrap; width: max-content; min-width: 100%; height: 846px; margin: 0; gap: 16px; }
  .tariffs-page .pricing .price-card { flex: 0 0 calc((976px - 32px) / 3); width: calc((976px - 32px) / 3); height: 846px; min-height: 0; padding: 24px; border-radius: 32px; }

  .docs-section { padding: 120px 0; background: #fff; }
  .docs-inner { width: min(976px, calc(100% - 32px)); max-width: 976px; margin: 0 auto; }
  .docs-section > .docs-inner > h1 { margin: 0 0 60px; text-align: center; font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -1.92px; }
  .docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .docs-grid .document-card { height: 240px; min-height: 0; align-items: flex-start; justify-content: space-between; padding: 24px; border-radius: 32px; background: var(--lavender); }
  .docs-grid .document-card > div { display: block; }
  .docs-grid .document-card img { width: 40px; height: 40px; object-fit: contain; }
  .docs-grid .document-card h2 { margin: 12px 0 0; font-size: 24px; line-height: 1.4; }
  .docs-grid .document-card .button { min-height: 51px; padding: 16px 24px; border-radius: 16px; background: #fff; color: var(--ink); }
  .documents-consultation { height: 591px; margin: 0 16px; padding: 0; border-radius: 40px; overflow: hidden; background: var(--lavender); }
  .documents-consultation .consultation-inner { position: relative; width: min(976px, calc(100% - 32px)); max-width: 976px; height: 100%; min-height: 0; margin: 0 auto; padding: 120px 0 0; display: grid; grid-template-columns: 1fr 458px; gap: 60px; }
  .documents-consultation .consultation-art { position: absolute; left: -36px; bottom: -6px; width: 395px; height: 397px; display: block; }
  .documents-consultation .consultation-art img { width: 395px; height: 397px; max-width: none; }
  .documents-consultation .consultation-copy { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 458px; gap: 60px; }
  .documents-consultation .consultation-copy h2 { margin: 0; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .documents-consultation .consultation-copy form { grid-column: 2; display: flex; flex-direction: column; gap: 8px; }
}

@media (max-width: 820px) {
  .docs-section { padding: 80px 0; }
  .docs-inner { width: min(976px, calc(100% - 32px)); }
  .docs-section > .docs-inner > h1 { font-size: 40px; }
  .docs-grid { grid-template-columns: 1fr; }
  .documents-consultation { height: auto; min-height: 591px; margin: 0 16px; }
  .documents-consultation .consultation-inner { width: min(976px, calc(100% - 32px)); height: auto; min-height: 591px; padding: 80px 0; display: block; }
  .documents-consultation .consultation-copy { display: grid; grid-template-columns: 1fr; gap: 40px; }
  .documents-consultation .consultation-copy form { grid-column: auto; }
  .documents-consultation .consultation-art { opacity: .18; left: 20px; }
  .tariffs-page .pricing { padding: 80px 16px; }
  .tariffs-page .pricing > .section-inner { width: 100%; max-width: none; }
  .tariffs-page .pricing .price-grid { height: auto; }
  .tariffs-page .pricing .price-card { flex: 0 0 min(480px, calc(100vw - 80px)); width: min(480px, calc(100vw - 80px)); min-height: 650px; height: auto; }
}

@media (max-width: 520px) {
  .docs-section { padding: 72px 0; }
  .docs-section > .docs-inner > h1 { margin-bottom: 40px; font-size: 32px; }
  .docs-grid .document-card { height: 220px; padding: 24px; border-radius: 24px; }
  .docs-grid .document-card h2 { font-size: 20px; }
  .documents-consultation { min-height: 591px; margin: 0 8px; border-radius: 28px; }
  .documents-consultation .consultation-inner { min-height: 591px; padding: 64px 16px; }
  .documents-consultation .consultation-copy h2 { font-size: 32px; letter-spacing: -.96px; }
  .documents-consultation .consultation-art { left: -20px; }
  .tariffs-page .pricing { padding: 72px 0; }
  .tariffs-page .pricing .center-heading h1 { font-size: 32px; }
  .tariffs-page .pricing .price-card { flex-basis: min(320px, calc(100vw - 48px)); width: min(320px, calc(100vw - 48px)); min-height: 0; }
}

@media (min-width: 821px) {
  .home-page .courses { height: 988px; padding: 120px 16px 0; }
  .home-page .courses > .section-inner { width: 976px; max-width: 976px; }
  .home-page .course-grid { height: 640px; margin-top: 60px; }
  .home-page .course-card { position: relative; display: block; height: 640px; min-height: 0; padding: 0; overflow: hidden; border-radius: 32px; }
  .home-page .course-card__exam { position: absolute; top: 18px; left: 18px; margin: 0; }
  .home-page .course-card__header p { position: absolute; top: 91px; right: 24px; left: 24px; margin: 0; color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1.4; }
  .home-page .course-card > p { position: absolute; top: 118px; right: 24px; left: 24px; margin: 0; font-size: 16px; line-height: 1.4; }
  .home-page .course-card h4 { position: absolute; top: 222px; left: 24px; margin: 0; }
  .home-page .course-card ul { position: absolute; top: 260px; right: 24px; left: 24px; gap: 12px; margin: 0; }
  .home-page .course-card li { gap: 12px; font-size: 16px; line-height: 1.4; }
  .home-page .course-card__actions { position: absolute; right: 24px; bottom: 24px; left: 24px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
  .home-page .course-card__actions .button { width: 100%; }

  .home-page .pricing { height: 1313px; padding: 0 16px; overflow: hidden; background: #fff; }
  .home-page .pricing > .section-inner { width: 1408px; max-width: none; height: 1313px; padding-top: 120px; border-radius: 40px 40px 0 0; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px); background-position: 103px 54px; background-size: 109px 108px; }
  .home-page .pricing-tabs { margin-top: 56px; margin-bottom: 60px; }
  .home-page .price-grid { width: 976px; height: 846px; margin-right: auto; margin-left: auto; }
  .home-page .price-card { height: 846px; min-height: 0; }
}

@media (min-width: 821px) {
  .home-page .articles { height: 1322px; padding: 120px 16px 0; overflow: hidden; }
  .home-page .articles > .articles-inner { display: block; width: 976px; max-width: 976px; }
  .home-page .articles-heading { text-align: center; }
  .home-page .articles-heading h2 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .articles-heading p { margin-top: 24px; }
  .home-page .article-list { height: 1000px; margin-top: 60px; gap: 20px; }
  .home-page .article-card { display: grid; grid-template-columns: 472px 1fr; gap: 8px; height: 320px; min-height: 0; padding: 8px; border-radius: 32px; }
  .home-page .article-card > img { width: 472px; height: 304px; border-radius: 24px; object-fit: cover; }
  .home-page .article-card__content { display: flex; min-width: 0; flex-direction: column; padding: 32px 24px; }
  .home-page .article-card h3 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.2; }
  .home-page .article-card p { margin: 12px 0 8px; font-size: 16px; line-height: 1.4; }
  .home-page .article-card__likes { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 16px; line-height: 24px; }
  .home-page .article-like { width: 24px; height: 24px; flex: 0 0 24px; color: var(--muted); }
  .home-page .article-card .button { display: inline-flex; width: fit-content; min-height: 51px; margin-top: auto; padding: 16px 24px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 16px; text-decoration: none; }

  .home-page .faq { height: 1376px; padding: 0 16px; overflow: hidden; }
  .home-page .faq-inner { width: 976px; max-width: 976px; padding-top: 120px; }
  .home-page .faq .center-heading h2 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .faq-list { height: 1028px; margin-top: 60px; gap: 20px; }
  .home-page .faq details { min-height: 104px; flex: 0 0 auto; border-radius: 32px; }
  .home-page .faq summary { min-height: 104px; padding: 32px; font-size: 24px; line-height: 1.4; }
  .home-page .faq summary span { width: 40px; height: 40px; display: grid; flex: 0 0 40px; place-items: center; border-radius: 12px; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; }

  .home-page .consultation { height: 607px; padding: 0 16px; }
  .home-page .consultation-inner { width: 1408px; height: 591px; min-height: 0; padding: 0; border-radius: 40px; display: block; background-color: var(--lavender); background-image: url('/static/main/homepage-v2/assets/v2/footerDecor.svg'); background-position: center; background-size: 1408px 591px; }
  .home-page .consultation-copy { position: absolute; top: 120px; left: 216px; width: 458px; }
  .home-page .consultation-copy h2 { margin: 0; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page #consultation-form { position: absolute; top: 0; left: 518px; width: 458px; gap: 8px; }
  .home-page #consultation-form input:not([type="checkbox"]) { height: 51px; }
  .home-page #consultation-form .consent { margin: 32px 0; }
  .home-page #consultation-form > .button { width: 139px; align-self: flex-start; }
  .home-page .consultation-art { position: absolute; top: 270px; left: 175px; width: 394px; height: 397px; display: block; }
  .home-page .consultation-art img { width: 394px; height: 397px; max-width: none; }

  .footer .social { width: 40px; height: 40px; padding: 0; background: transparent; }
  .footer .social img { width: 40px; height: 40px; object-fit: cover; }
  .footer-right .logo { height: 40px; }
  .footer-right .logo img.footer-logo-exact { width: 160px; height: 40px; max-width: none; object-fit: cover; }
  .footer-left > .button { width: 188px; }
  .footer-actions { justify-content: flex-start; }
}

.inner-page { background: #fff; }
.inner-hero { position: relative; width: min(1408px, calc(100% - 32px)); min-height: 535px; margin: 32px auto 120px; overflow: hidden; border-radius: 40px; }
.inner-hero--violet { background: var(--violet); color: #fff; }
.inner-hero__copy { position: relative; z-index: 1; width: min(650px, 58%); padding: 110px 0 100px 112px; }
.inner-hero__copy h1 { margin: 0 0 24px; font-size: clamp(42px, 4.5vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.inner-hero__copy p { max-width: 500px; margin: 0 0 40px; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.4; }
.inner-hero__art { position: absolute; inset: 0; }
.inner-hero__art img { position: absolute; width: 300px; height: 300px; object-fit: contain; }
.inner-hero__art img:first-child { right: 15%; top: 7%; }
.inner-hero__art img:last-child { right: 3%; bottom: -10%; width: 440px; height: 440px; }
.about-values { padding: 0 16px 120px; }
.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 60px; }
.value-grid article { min-height: 250px; display: grid; grid-template-columns: 80px 1fr; grid-template-rows: auto 1fr; gap: 8px 24px; padding: 24px; border-radius: 32px; background: var(--lavender); }
.value-grid img { width: 80px; height: 110px; grid-row: 1 / span 2; object-fit: contain; }
.value-grid h3 { align-self: end; margin: 0; font-size: 24px; font-weight: 500; line-height: 1.1; }
.value-grid p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.section-heading-left { max-width: 720px; }
.section-heading-left h1, .section-heading-left h2 { margin: 0; font-size: clamp(38px, 4vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.section-heading-left p { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.program { padding: 0 16px 120px; }
.module-list { display: grid; gap: 8px; margin-top: 60px; }
.module-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: start; padding: 24px; border-radius: 24px; background: var(--lavender); }
.module-number { font-size: 22px; font-weight: 600; }
.module-card h3 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.1; }
.module-card p { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.module-status { padding: 8px 12px; border-radius: 8px; background: #fff; color: var(--violet); font-size: 12px; white-space: nowrap; }
.module-status--open { background: #d8ff8a; color: #3c6400; }
.module-status--locked { background: #ffedac; color: #9c6a00; }
.documents-section { padding: 80px 16px 120px; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 60px; }
.document-card { min-height: 240px; display: flex; gap: 24px; padding: 24px; border-radius: 32px; background: var(--lavender); }
.document-card__icon { flex: 0 0 auto; width: 80px; height: 80px; display: grid; place-items: center; border-radius: 20px; background: #fff; }
.document-card__icon img { width: 40px; height: 40px; }
.document-card h2 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.1; }
.document-card p { margin: 12px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.document-card a { color: var(--ink); font-size: 16px; text-decoration: underline; }
.document-card a span { display: inline-block; margin-left: 4px; text-decoration: none; }

@media (max-width: 820px) {
  .inner-hero { min-height: 620px; margin-top: 16px; border-radius: 28px; }
  .inner-hero__copy { width: 100%; padding: 56px 24px 0; }
  .inner-hero__copy h1 { font-size: 42px; }
  .inner-hero__art { top: 270px; }
  .inner-hero__art img { width: 220px; height: 220px; }
  .inner-hero__art img:first-child { right: 35%; top: 6%; }
  .inner-hero__art img:last-child { right: 0; bottom: -7%; width: 300px; height: 300px; }
  .about-values, .program, .documents-section { padding-bottom: 80px; }
  .value-grid, .document-grid { grid-template-columns: 1fr; }
  .module-card { grid-template-columns: 48px 1fr; }
  .module-status { grid-column: 2; justify-self: start; }
}

@media (max-width: 520px) {
  .inner-hero { min-height: 560px; }
  .inner-hero__copy h1 { font-size: 36px; }
  .inner-hero__copy p { font-size: 14px; }
  .value-grid article { grid-template-columns: 64px 1fr; padding: 20px; border-radius: 24px; }
  .value-grid img { width: 64px; height: 90px; }
  .value-grid h3 { font-size: 20px; }
  .module-card, .document-card { padding: 20px; border-radius: 24px; }
  .module-card h3, .document-card h2 { font-size: 20px; }
  .module-card p, .document-card p { font-size: 14px; }
  .document-card { flex-direction: column; }
}

/* Figma frame geometry: desktop 1440, tablet 640, mobile 370. */
@media (min-width: 821px) {
  .promo { height: 77px; min-height: 0; }
  .site-header { height: 83px; padding: 16px; }

  .home-page .hero { height: 729px; padding: 0 16px; }
  .home-page .hero-inner { height: 729px; min-height: 0; }
  .home-page .hero-copy { width: min(976px, calc(100% - 32px)); margin: 0 auto; padding: 120px 0 0; text-align: center; }
  .home-page .hero-copy h1 { font-size: 48px; }
  .home-page .hero-copy p { margin-right: auto; margin-left: auto; }
  .home-page .hero-copy .button { margin: 0 auto; }
  .hero-features { position: absolute; z-index: 3; right: 0; bottom: 120px; left: 0; width: min(976px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .hero-feature { height: 190px; display: flex; flex-direction: column; gap: 24px; padding: 28px 24px; border-radius: 32px; background: rgba(145,132,255,.42); color: #fff; }
  .hero-feature img { width: 40px; height: 40px; object-fit: contain; }
  .hero-feature span { font-size: 16px; line-height: 1.4; }
  .home-page .benefits { height: 812px; padding: 120px 16px; overflow: hidden; }
  .home-page .benefit-grid { height: 416px; }
  .home-page .benefit-card { height: 206px; min-height: 0; }
  .home-page .school { height: 1254px; padding: 0 16px; overflow: hidden; }
  .home-page .school > .section-inner { width: min(1024px, calc(100% - 32px)); max-width: 1024px; padding-top: 32px; }
  .home-page .school-tabs { margin-top: 58px; margin-bottom: 62px; }
  .home-page .school-stage { height: 628px; min-height: 0; }
  .home-page .bet { height: 592px; padding: 0 16px; overflow: hidden; }
  .home-page .bet-inner { position: relative; display: block; width: min(976px, calc(100% - 32px)); height: 592px; }
  .home-page .bet-copy { position: absolute; top: 120px; left: 0; width: 484px; padding: 0; }
  .home-page .bet-copy h2 { margin-bottom: 16px; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .bet-copy .bet-lead { max-width: 360px; margin: 0; color: var(--muted); font-weight: 400; }
  .home-page .bet-reward { width: 484px; height: 156px; margin-top: 32px; }
  .home-page .slot-art { position: absolute; top: 0; left: 568px; width: 520px; height: 592px; margin: 0; transform: none; }
  .home-page .referral { height: 495px; padding: 0 16px; }
  .home-page .referral-inner { height: 495px; min-height: 0; }
  .home-page .referral-copy { width: 50%; margin-left: 50%; padding: 120px 0 0; }
  .home-page .referral-copy h2 { margin-bottom: 24px; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .referral-copy p { max-width: 390px; margin-bottom: 32px; }
  .home-page .referral-actions .button { width: 211px; overflow: hidden; }
  .home-page .referral-art img:nth-child(1) { left: 360px; right: auto; top: 96px; }
  .home-page .referral-art img:nth-child(2) { left: 64px; right: auto; top: 96px; }
  .home-page .referral-art img:nth-child(3) { left: 608px; right: auto; top: 220px; bottom: auto; }
  .home-page .referral-art img:nth-child(4) { left: 64px; right: auto; top: 48px; width: 590.94px; height: 449px; }
  .home-page .reviews { height: 550px; padding: 0; overflow: hidden; }
  .home-page .reviews > .section-inner { width: 100%; max-width: none; padding-top: 120px; }
  .home-page .review-grid { display: flex; width: max-content; height: 222px; margin: 60px 0 0 calc(50% - 776px); gap: 8px; }
  .home-page .review-card { position: relative; flex: 0 0 512px; width: 512px; height: 222px; min-height: 0; display: grid; grid-template-columns: 81px 1fr; grid-template-rows: auto auto 1fr; column-gap: 24px; padding: 24px; border-radius: 24px; }
  .home-page .review-card__author { display: contents; }
  .home-page .review-card__author img { grid-column: 1; grid-row: 1 / span 3; width: 81px; height: 81px; }
  .home-page .review-card__author strong { grid-column: 2; grid-row: 1; align-self: start; font-size: 24px; font-weight: 500; line-height: 1.2; }
  .home-page .review-card p { grid-column: 2; margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
  .home-page .review-card .review-card__quote { grid-row: 2; color: var(--muted); font-weight: 400; }
  .home-page .review-card p:not(.review-card__quote) { grid-row: 3; }
  .home-page .review-card__tag { position: absolute; top: 24px; right: 24px; margin: 0; padding: 4px 12px; border: 1px solid var(--ink); border-radius: 16px; background: #c5bdff; color: var(--ink); font-size: 16px; line-height: 1.2; }
  .home-page .reviews::before, .home-page .reviews::after { position: absolute; z-index: 2; top: 228px; width: 220px; height: 222px; pointer-events: none; content: ""; }
  .home-page .reviews::before { left: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 38%, rgba(255,255,255,0) 100%); }
  .home-page .reviews::after { right: 0; background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,.92) 38%, rgba(255,255,255,0) 100%); }
  .home-page .teachers { position: relative; height: 978px; padding: 120px 0 0; overflow: hidden; background: #fff; }
  .home-page .teachers > .section-inner { width: 100%; max-width: none; }
  .home-page .teacher-grid { display: flex; width: max-content; height: 600px; margin: 52px 0 0 calc(50% - 776px); gap: 8px; }
  .home-page .teacher-card { position: relative; flex: 0 0 512px; flex-basis: 464px !important; width: 512px; height: 600px; min-height: 0; padding: 24px; border-radius: 32px; background: var(--lavender); }
  .home-page .teacher-card__photo { width: 81px; height: 81px; margin: 0; border-radius: 50%; background: transparent; }
  .home-page .teacher-card__photo img { width: 81px; height: 81px; object-fit: cover; }
  .home-page .teacher-card__badges { overflow: hidden; }
  .home-page .teacher-card__badges span:first-child { background: #c5bdff; }
  .home-page .teacher-card__badges span { padding: 4px 12px; }
  .home-page .teacher-card h3 { margin: 8px 0 0; font-size: 24px; line-height: 1.2; }
  .home-page .teacher-card ul { gap: 12px; margin-top: 24px; }
  .home-page .teacher-card li { gap: 12px; font-size: 16px; line-height: 1.4; }
  .home-page .teacher-card .teacher-check { width: 20px; height: 20px; color: var(--ink); }
  .home-page .teacher-card__quote { margin: auto 0 0; padding: 24px; border-radius: 24px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; }
  .home-page .teachers .carousel-arrows { margin-top: 60px; }
  .home-page .teachers::before, .home-page .teachers::after { position: absolute; z-index: 2; top: 267px; width: 220px; height: 600px; pointer-events: none; content: ""; }
  .home-page .teachers::before { left: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 38%, rgba(255,255,255,0) 100%); }
  .home-page .teachers::after { right: 0; background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,.92) 38%, rgba(255,255,255,0) 100%); }
  .home-page .lessons { height: 1016px; padding: 0 16px; overflow: hidden; background: #fff; }
  .home-page .lessons-inner { position: relative; width: 1408px; max-width: none; height: 1016px; padding: 0; border-radius: 40px 40px 0 0; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px); background-position: 103px 54px; background-size: 109px 108px; }
  .home-page .lessons-heading { position: absolute; top: 120px; left: 0; width: 100%; }
  .home-page .lessons-heading h2 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .lessons-heading p { margin: 0; }
  .home-page .lessons-layout { position: absolute; top: 267px; left: 193px; display: grid; grid-template-columns: 506px 508px; gap: 9px; align-items: start; }
  .home-page .lesson-list { width: 506px; height: 490px; display: grid; grid-template-columns: 250px 250px; grid-template-rows: 156px 175px 153px; gap: 4px 6px; margin: 0; }
  .home-page .lesson-list div { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 32px; background: #fff; }
  .home-page .lesson-list div:last-child { grid-column: 1 / span 2; }
  .home-page .lesson-list strong { font-size: 24px; font-weight: 500; line-height: 1.2; }
  .home-page .lesson-list span { color: var(--muted); font-size: 16px; line-height: 1.4; }
  .home-page .lesson-device { position: relative; width: 508px; height: 490px; min-height: 0; padding: 0; border-radius: 24px; background: var(--violet); }
  .home-page .lesson-device img { position: absolute; top: 95px; left: 18px; width: 440px; height: 300px; border: 0; border-radius: 16px; box-shadow: none; object-fit: contain; }
  .home-page .lessons-inner > .button { position: absolute; top: 815px; left: 50%; margin: 0; transform: translateX(-50%); }
  .home-page .trial { height: 543px; padding: 0 16px; }
  .home-page .trial-inner { position: relative; height: 543px; min-height: 0; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-position: 103px 54px; background-size: 109px 108px; }
  .home-page .trial-copy { position: absolute; top: 120px; left: 216px; width: 500px; padding: 0; }
  .home-page .trial-copy h2 { margin-bottom: 24px; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .trial-copy p { max-width: 390px; margin-bottom: 24px; }
  .home-page .trial-actions .button { width: 216px; }
  .home-page .trial-art img.trial-art__main { position: absolute; top: 40px; left: 650px; right: auto; bottom: auto; width: 758px; height: 503px; max-width: none; object-fit: contain; }
  .home-page .courses { height: 988px; padding: 0 16px; overflow: hidden; }
  .home-page .course-grid { height: 640px; margin-top: 60px; }
  .home-page .course-card { height: 640px; min-height: 0; }
  .home-page .pricing { height: 1313px; padding: 120px 16px 0; overflow: hidden; }
  .home-page .price-grid { height: 846px; }
  .home-page .price-card { height: 846px; min-height: 0; }
  .home-page .articles { height: 1322px; padding: 120px 16px 0; overflow: hidden; }
  .home-page .article-list { height: 1000px; }
  .home-page .article-card { height: 320px; }
  .home-page .article-card > img { height: 304px; }
  .home-page .faq { height: 1376px; padding: 0 16px; overflow: hidden; }
  .home-page .faq-inner { padding-top: 120px; }
  .home-page .faq-list { height: 1028px; margin-top: 60px; }
  .home-page .faq details { min-height: 104px; flex: 0 0 auto; }
  .home-page .consultation { height: 607px; padding: 0 16px; }
  .home-page .consultation-inner { height: 591px; min-height: 0; }

  .footer { height: 696px; padding: 0 16px; }
  .footer-shell { height: 680px; min-height: 0; padding: 120px 0 136px; }

  .inner-hero { margin: 0 16px; width: calc(100% - 32px); min-height: 0; }
  .about-hero { height: 676px; }
  .about-hero .inner-hero__copy { left: 216px; width: 976px; padding: 120px 0 0; text-align: center; }
  .about-hero .inner-hero__copy p { margin-right: auto; margin-left: auto; }
  .about-hero .inner-hero__copy .button { margin: 0 auto; }
  .about-hero .inner-hero__art img:first-child { left: 64px; right: auto; top: 38px; width: 351px; height: 350px; }
  .about-hero .inner-hero__art img:last-child { right: 50px; bottom: auto; top: 138px; width: 240px; height: 193px; }
  .about-motivation { height: 749px; padding: 120px 16px 0; overflow: hidden; }
  .motivation-grid { display: flex; gap: 8px; height: 258px; margin-top: 60px; }
  .motivation-grid article { flex: 0 0 320px; height: 258px; padding: 24px; border-radius: 24px; background: var(--lavender); }
  .motivation-grid img { width: 48px; height: 48px; margin-bottom: 20px; object-fit: contain; }
  .motivation-grid h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.1; }
  .motivation-grid p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
  .about-life { height: 1460px; padding: 120px 16px 0; overflow: hidden; background: var(--lavender); }
  .life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 1024px; height: 1069px; margin: 60px auto 0; }
  .life-grid img { width: 100%; height: 351px; border-radius: 24px; object-fit: cover; }
  .about-team { height: 997px; padding: 120px 16px 0; overflow: hidden; background: #fff; }
  .about-team .teacher-grid { height: 487px; }
  .about-team .teacher-card { height: 487px; min-height: 0; }
  .about-trust { height: 430px; padding: 0 16px; overflow: hidden; background: #fff; }
  .about-trust .review-grid { height: 222px; margin-top: 60px; }
  .about-trust .review-card { height: 222px; min-height: 0; }
  .about-articles { height: 1442px; padding: 120px 16px 0; overflow: hidden; }
  .about-articles .article-list { height: 1000px; }
  .about-articles .article-card { height: 320px; }
  .about-page .consultation { height: 607px; padding: 0 16px; }
  .about-page .consultation-inner { height: 591px; min-height: 0; }
  .about-articles .article-card > img { height: 304px; }

  .course-hero { height: 535px; }
  .course-hero .inner-hero__copy { left: 216px; width: 484px; padding: 120px 0 0; }
  .course-hero .inner-hero__art img:first-child { right: 44px; top: 22px; width: 491px; height: 491px; }
  .course-hero .inner-hero__art img:last-child { right: 72px; bottom: 28px; top: auto; width: 160px; height: 160px; }
  .course-page .program { height: 2689px; padding: 120px 16px 0; overflow: hidden; }
  .course-page .program .section-inner { height: 100%; }
  .course-page .module-list { height: 2230px; margin-top: 60px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); gap: 8px; }
  .course-page .module-card { min-height: 0; height: auto; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; }
  .course-page .module-card h3 { font-size: 18px; }
  .course-page .module-card p { font-size: 13px; }
  .course-page .module-status { align-self: flex-start; }
  .program-action { display: flex; justify-content: center; margin-top: 24px; }
  .course-teacher { height: 965px; padding: 120px 16px 0; overflow: hidden; background: var(--violet); color: #fff; }
  .course-teacher-inner { width: min(976px, 100%); height: 700px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  .course-teacher-copy h2 { margin: 0 0 24px; font-size: 48px; font-weight: 500; line-height: 1; }
  .course-teacher-copy p { max-width: 360px; color: rgba(255,255,255,.78); font-size: 16px; }
  .course-teacher-profile { display: flex; align-items: end; gap: 24px; }
  .course-teacher-profile > img { width: 250px; height: 420px; border-radius: 32px; object-fit: cover; background: var(--violet-light); }
  .course-teacher-card { width: 320px; padding: 24px; border-radius: 24px; background: #fff; color: var(--ink); }
  .course-teacher-card strong, .course-teacher-card span { display: block; }
  .course-teacher-card span { margin-top: 8px; color: var(--violet); font-size: 12px; }
  .course-teacher-card p { color: var(--muted); font-size: 14px; line-height: 1.4; }
  .course-page .pricing { height: 1313px; padding: 120px 16px 0; overflow: hidden; }
  .course-page .price-grid { height: 846px; }
  .course-page .price-card { height: 846px; min-height: 0; }
  .course-page .lessons { height: 1016px; padding: 0 16px; overflow: hidden; }
  .course-page .lessons-inner { height: 1016px; padding-top: 120px; }
  .course-page .consultation { height: 591px; padding: 0 16px; }
  .course-page .consultation-inner { height: 591px; min-height: 0; }
  .course-page .faq { height: 852px; padding: 0 16px; overflow: hidden; }
  .course-page .faq-inner { padding-top: 120px; }
  .course-page .faq-list { margin-top: 60px; }
  .course-page .reviews { height: 670px; padding: 0; overflow: hidden; }
  .course-page .review-grid { height: 222px; margin-top: 60px; }
  .course-page .review-card { height: 222px; min-height: 0; }

  .documents-section { height: 836px; padding: 120px 16px 0; overflow: hidden; }
  .documents-section .document-grid { height: 422px; margin-top: 60px; }
  .documents-section .document-card { height: 206px; min-height: 0; }
  .documents-page .consultation { height: 607px; padding: 0 16px; }
  .documents-page .consultation-inner { height: 591px; min-height: 0; }
  .tariffs-page .pricing { height: 1361px; padding: 120px 16px 0; overflow: hidden; }
  .tariffs-page .price-grid { height: 846px; }
  .tariffs-page .price-card { height: 846px; min-height: 0; }
  .tariffs-page .consultation { height: 607px; padding: 0 16px; }
  .tariffs-page .consultation-inner { height: 591px; min-height: 0; }
}

@media (max-width: 820px) {
  .school-stage { display: block; padding: 350px 24px 24px; }
  .school-art { position: absolute; inset: 0; display: block; }
  .school-piece { width: 130px; height: 130px; }
  .school-piece--1 { left: 1%; top: 8%; }
  .school-piece--2 { left: 25%; top: 4%; }
  .school-piece--3 { left: 49%; top: 7%; }
  .school-piece--4 { right: 3%; left: auto; top: 3%; }
  .school-piece--5 { left: 8%; top: 43%; }
  .school-piece--6 { left: 33%; top: 41%; }
  .school-piece--7 { left: 57%; top: 41%; }
  .school-piece--8 { right: 6%; left: auto; top: 40%; }
  .school-piece--9 { left: 22%; top: auto; bottom: -3%; }
  .school-piece--10 { right: 25%; left: auto; top: auto; bottom: -3%; }
  .school-stage__caption { width: min(510px, 100%); margin: auto; padding: 24px; border-radius: 24px; text-align: center; }
}

@media (max-width: 520px) {
  .school-stage { padding-top: 190px; }
  .school-piece { width: 100px; height: 100px; }
}

@media (max-width: 820px) {
  .promo { height: 69px; min-height: 0; padding-top: 25px; padding-bottom: 13px; }
  .site-header { height: 91px; padding: 20px 16px; }
  .header-inner { height: 51px; min-height: 0; }

  .home-page .hero { height: 922px; padding: 0; }
  .home-page .hero-inner { width: 100%; height: 922px; min-height: 0; border-radius: 40px; }
  .home-page .hero-copy { text-align: center; }
  .home-page .hero-copy h1 { font-size: 48px; letter-spacing: -1.92px; }
  .home-page .hero-copy p { margin-right: auto; margin-left: auto; }
  .hero-features { position: absolute; z-index: 3; right: 24px; bottom: 64px; left: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .hero-feature { height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 32px; background: rgba(145,132,255,.42); color: #fff; }
  .hero-feature img { width: 40px; height: 40px; object-fit: contain; }
  .hero-feature span { font-size: 16px; line-height: 1.4; }
  .home-page .benefits { height: 1012px; padding: 120px 16px 0; overflow: hidden; }
  .home-page .benefit-grid { height: 660px; }
  .home-page .benefit-card { height: 162px; min-height: 0; }
  .home-page .school { height: 934px; padding: 80px 16px 0; overflow: hidden; }
  .home-page .school-stage { height: 520px; min-height: 0; }
  .home-page .bet { height: 1033px; padding: 80px 16px 0; overflow: hidden; }
  .home-page .bet-inner { height: 953px; }
  .home-page .referral { height: 828px; padding: 0 16px; }
  .home-page .referral-inner { height: 828px; min-height: 0; }
  .home-page .reviews { height: 490px; padding: 80px 0 0; overflow: hidden; }
  .home-page .review-grid, .about-trust .review-grid, .course-page .review-grid { display: flex; width: max-content; height: 258px; margin-top: 40px; gap: 8px; }
  .home-page .review-card, .about-trust .review-card, .course-page .review-card { flex: 0 0 320px; height: 258px; min-height: 0; }
  .home-page .teachers { height: 798px; padding: 80px 16px 0; overflow: hidden; }
  .home-page .teacher-grid, .about-team .teacher-grid { display: flex; width: max-content; height: 487px; gap: 8px; }
  .home-page .teacher-card, .about-team .teacher-card { flex: 0 0 320px; height: 487px; min-height: 0; }
  .home-page .lessons { height: 1398px; padding: 80px 16px 0; overflow: hidden; }
  .home-page .lessons-inner { height: 1318px; padding-top: 0; }
  .home-page .trial { height: 861px; padding: 0 16px; }
  .home-page .trial-inner { height: 861px; min-height: 0; }
  .home-page .courses { height: 848px; padding: 80px 16px 0; overflow: hidden; }
  .home-page .course-grid, .home-page .price-grid, .tariffs-page .price-grid, .course-page .price-grid { display: flex; width: max-content; height: 640px; margin-top: 40px; gap: 8px; }
  .home-page .course-card { flex: 0 0 320px; height: 640px; min-height: 0; }
  .home-page .pricing { height: 1027px; padding: 80px 16px 0; overflow: hidden; }
  .home-page .price-card, .tariffs-page .price-card, .course-page .price-card { flex: 0 0 200px; height: 846px; min-height: 0; padding: 16px; }
  .home-page .articles { height: 1941px; padding: 80px 16px 0; overflow: hidden; }
  .home-page .article-list, .about-articles .article-list { height: 1600px; }
  .home-page .article-card, .about-articles .article-card { height: 320px; }
  .home-page .article-card > img, .about-articles .article-card > img { height: 304px; }
  .home-page .faq { height: 1420px; padding: 80px 16px 0; overflow: hidden; }
  .home-page .faq-inner { padding-top: 0; }
  .home-page .faq-list { height: 1180px; margin-top: 40px; }
  .home-page .consultation { height: 994px; padding: 0 16px; }
  .home-page .consultation-inner { height: 994px; min-height: 0; }
  .footer { height: 975px; padding: 0 16px; }
  .footer-shell { height: 975px; min-height: 0; padding: 72px 24px; }

  .inner-hero { margin: 0 16px; width: calc(100% - 32px); min-height: 0; }
  .about-hero { height: 922px; }
  .course-hero { height: 755px; }
  .about-motivation { height: 636px; padding: 80px 16px 0; overflow: hidden; }
  .motivation-grid { display: flex; width: max-content; height: 258px; margin-top: 40px; gap: 8px; }
  .motivation-grid article { flex: 0 0 280px; height: 258px; }
  .about-life { height: 937px; padding: 80px 16px 0; overflow: hidden; }
  .life-grid { width: 596px; height: 700px; margin-top: 40px; grid-template-columns: repeat(2, 1fr); }
  .life-grid img { height: 220px; }
  .about-team { height: 817px; padding: 80px 16px 0; overflow: hidden; }
  .about-trust { height: 490px; padding: 80px 0 0; overflow: hidden; }
  .about-articles { height: 2021px; padding: 80px 16px 0; overflow: hidden; }
  .about-articles .article-list { height: 1800px; }
  .about-page .consultation { height: 994px; padding: 0 16px; }
  .about-page .consultation-inner { height: 994px; min-height: 0; }

  .course-page .program { height: 4374px; padding: 80px 16px 0; overflow: hidden; }
  .course-page .module-list { height: 3900px; margin-top: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(11, minmax(0, 1fr)); gap: 8px; }
  .course-page .module-card { min-height: 0; height: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; }
  .course-page .module-card h3 { font-size: 16px; }
  .course-page .module-card p { font-size: 12px; }
  .program-action { margin-top: 16px; }
  .course-teacher { height: 1113px; padding: 80px 16px 0; overflow: hidden; }
  .course-teacher-inner { height: 900px; display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .course-teacher-copy h2 { font-size: 42px; }
  .course-teacher-profile { justify-content: center; }
  .course-teacher-profile > img { width: 220px; height: 500px; }
  .course-teacher-card { width: 280px; }
  .course-page .pricing { height: 1027px; padding: 80px 16px 0; overflow: hidden; }
  .course-page .lessons { height: 1378px; padding: 80px 16px 0; overflow: hidden; }
  .course-page .lessons-inner { height: 1298px; padding-top: 0; }
  .course-page .consultation { height: 994px; padding: 0 16px; }
  .course-page .consultation-inner { height: 994px; min-height: 0; }
  .course-page .faq { height: 834px; padding: 80px 16px 0; overflow: hidden; }
  .course-page .reviews { height: 490px; padding: 80px 0 0; overflow: hidden; }

  .documents-section { height: 1128px; padding: 80px 16px 0; overflow: hidden; }
  .documents-section .document-grid { height: 900px; margin-top: 40px; grid-template-columns: 1fr; }
  .documents-section .document-card { height: 206px; min-height: 0; }
  .documents-page .consultation, .tariffs-page .consultation { height: 994px; padding: 0 16px; }
  .documents-page .consultation-inner, .tariffs-page .consultation-inner { height: 994px; min-height: 0; }
  .tariffs-page .consultation, .tariffs-page .consultation-inner { height: 718px; }
  .tariffs-page .pricing { height: 1092px; padding: 80px 16px 0; overflow: hidden; }
}

@media (max-width: 520px) {
  /* Keep compact header controls at their Figma size after the shared button padding rule. */
  .button--icon {
    flex: 0 0 51px;
    width: 51px;
    padding: 0;
  }
  .button--icon img {
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    height: 24px;
  }

  .home-page .hero { height: 740px; padding: 0; }
  .home-page .hero-inner { width: 100%; height: 740px; border-radius: 24px; }
  .hero-copy { padding: 44px 20px 0; text-align: center; }
  .hero-copy h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
  .hero-copy p { max-width: 330px; margin-right: auto; margin-left: auto; font-size: 14px; line-height: 1.35; }
  .hero-copy .button { margin: 0 auto; }
  .hero-features { right: 16px; bottom: 32px; left: 16px; grid-template-columns: 1fr; gap: 4px; }
  .hero-feature { height: 92px; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; padding: 16px 24px; border-radius: 24px; }
  .hero-feature span { font-size: 14px; line-height: 1.35; text-align: left; }
  .hero-art__orbit { right: 36%; top: 29%; width: 170px; height: 130px; border-width: 5px; }
  .hero-art__gauge { right: 39%; top: 31%; width: 130px; height: 76px; padding-top: 22px; border-width: 4px; }
  .hero-art__gauge span { font-size: 28px; }
  .hero-art__gauge small { font-size: 10px; }
  .hero-art__pen { right: 10%; top: 28%; height: 220px; width: 18px; border-width: 3px; }
  .hero-asset { width: 44px; height: 44px; }
  .home-page .benefits { height: 1454px; padding-top: 80px; }
  .home-page .benefit-grid { height: 1120px; }
  .home-page .benefit-card { height: 270px; }
  .home-page .school { height: 644px; padding-top: 64px; }
  .home-page .school > .section-inner { width: 100%; }
  .home-page .school-stage { height: 330px; padding-top: 190px; }
  .home-page .bet { height: 607px; padding-top: 64px; }
  .home-page .bet-inner { height: 543px; }
  .home-page .referral { height: 576px; }
  .home-page .referral-inner { height: 576px; }
  .home-page .reviews { height: 496px; padding-top: 64px; }
  .home-page .review-grid, .about-trust .review-grid, .course-page .review-grid { height: 222px; margin-top: 32px; }
  .home-page .review-card, .about-trust .review-card, .course-page .review-card { flex-basis: 280px; height: 222px; }
  .home-page .teachers { height: 878px; padding-top: 64px; }
  .home-page .teacher-card, .about-team .teacher-card { flex-basis: 280px; height: 487px; }
  .home-page .lessons { height: 1271px; padding-top: 64px; }
  .home-page .lessons-inner { height: 1207px; }
  .home-page .trial { height: 576px; }
  .home-page .trial-inner { height: 576px; }
  .home-page .courses { height: 821px; padding-top: 64px; }
  .home-page .course-grid { height: 640px; margin-top: 32px; }
  .home-page .course-card { flex-basis: 280px; height: 640px; }
  .home-page .pricing { height: 931px; padding-top: 64px; }
  .home-page .price-grid, .tariffs-page .price-grid, .course-page .price-grid { height: 700px; margin-top: 32px; }
  .home-page .price-card, .tariffs-page .price-card, .course-page .price-card { flex-basis: 170px; height: 700px; }
  .home-page .articles { height: 1450px; padding: 32px 0 0; }
  .home-page .articles > .articles-inner { width: calc(100% - 32px); max-width: none; display: block; padding: 0; }
  .home-page .articles-heading { text-align: center; }
  .home-page .articles-heading h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.96px; }
  .home-page .articles-heading p { margin-top: 16px; font-size: 14px; line-height: 1.4; }
  .home-page .article-list { height: auto; display: flex; flex-direction: column; margin-top: 32px; gap: 20px; }
  .home-page .article-card { display: flex; flex-direction: column; width: 100%; height: auto; min-height: 0; gap: 0; padding: 8px; border-radius: 24px; }
  .home-page .article-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; object-fit: cover; }
  .home-page .article-card__content { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 24px; }
  .home-page .article-card h3 { margin: 0; font-size: 18px; line-height: 1.2; }
  .home-page .article-card p { margin: 12px 0 8px; font-size: 14px; line-height: 1.4; }
  .home-page .article-card__likes { display: flex; align-items: center; gap: 8px; margin-top: 0; color: var(--muted); font-size: 14px; line-height: 24px; }
  .home-page .article-like { width: 24px; height: 24px; }
  .home-page .article-card .button { display: inline-flex; width: fit-content; min-height: 51px; margin-top: auto; padding: 16px 24px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 16px; text-decoration: none; }
  .about-articles .article-list { height: 1120px; }
  .about-articles .article-card { height: 320px; }
  .about-articles .article-card > img { height: 304px; }
  .home-page .faq { height: 1017px; padding-top: 64px; }
  .home-page .faq-list { height: 850px; margin-top: 32px; }
  .home-page .consultation { height: 763px; }
  .home-page .consultation-inner { height: 763px; }
  .footer { height: 952px; }
  .footer-shell { height: 952px; }

  .about-hero { height: 741px; }
  .course-hero { height: 576px; }
  .about-motivation { height: 489px; padding-top: 64px; }
  .about-life { height: 1530px; padding-top: 64px; }
  .life-grid { width: 620px; height: 1200px; margin-top: 32px; grid-template-columns: repeat(2, 1fr); }
  .life-grid img { height: 250px; }
  .about-team { height: 878px; padding-top: 64px; }
  .about-trust { height: 496px; padding-top: 64px; }
  .about-articles { height: 1431px; padding-top: 64px; }
  .about-articles .article-list { height: 1120px; }
  .about-page .consultation { height: 763px; }
  .about-page .consultation-inner { height: 763px; }

  .course-page .program { height: 4205px; padding-top: 64px; }
  .course-page .module-list { height: 3700px; margin-top: 32px; }
  .course-teacher { height: 1027px; padding-top: 64px; }
  .course-teacher-inner { height: 850px; }
  .course-page .pricing { height: 931px; padding-top: 64px; }
  .course-page .lessons { height: 1251px; padding-top: 64px; }
  .course-page .lessons-inner { height: 1187px; }
  .course-page .consultation { height: 763px; }
  .course-page .consultation-inner { height: 763px; }
  .course-page .faq { height: 595px; padding-top: 64px; }
  .course-page .reviews { height: 496px; padding-top: 64px; }

  .documents-section { height: 938px; padding-top: 64px; }
  .documents-section .document-grid { height: 763px; margin-top: 32px; }
  .documents-page .consultation, .tariffs-page .consultation { height: 763px; }
  .documents-page .consultation-inner, .tariffs-page .consultation-inner { height: 763px; }
  .tariffs-page .consultation, .tariffs-page .consultation-inner { height: 599px; }
  .tariffs-page .pricing { height: 1002px; padding-top: 64px; }
  .footer-shell { overflow: hidden; }
}

.home-page .hero-inner { background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 109px 109px; }
.inner-hero--violet, .course-teacher { background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 109px 59px; }
.hero-feature { background: #7b68ff; }
.home-page .hero-copy h1 .hero-title--desktop,
.home-page .hero-copy h1 .hero-title--tablet,
.home-page .hero-copy h1 .hero-title--mobile { color: inherit; }
.hero-title--tablet, .hero-title--mobile { display: none; }

@media (max-width: 820px) {
  .home-page .teachers { padding: 80px 0 0; background: #fff; }
  .home-page .teachers > .section-inner { width: 100%; max-width: none; }
  .home-page .teacher-grid { display: flex; width: max-content; height: 487px; margin: 40px 0 0 16px; gap: 8px; }
  .home-page .teacher-card { flex: 0 0 320px; width: 320px; height: 487px; min-height: 0; padding: 24px; border-radius: 24px; background: var(--lavender); overflow: hidden; }
  .home-page .teacher-card__photo { width: 81px; height: 81px; margin: 0; border-radius: 50%; }
  .home-page .teacher-card__photo img { width: 81px; height: 81px; object-fit: cover; }
  .home-page .teacher-card__badges { gap: 6px; overflow: hidden; }
  .home-page .teacher-card__badges span { padding: 4px 10px; font-size: 14px; }
  .home-page .teacher-card h3 { margin: 8px 0 0; font-size: 22px; }
  .home-page .teacher-card ul { gap: 10px; margin-top: 20px; }
  .home-page .teacher-card li { gap: 8px; font-size: 14px; }
  .home-page .teacher-card__quote { padding: 20px; border-radius: 20px; font-size: 14px; }
  .home-page .teachers .carousel-arrows { margin-top: 40px; }
  .home-page .teachers::before, .home-page .teachers::after { top: 217px; height: 487px; width: 72px; }
  .home-page .teachers::before { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.86) 45%, rgba(255,255,255,0) 100%); }
  .home-page .teachers::after { background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,.86) 45%, rgba(255,255,255,0) 100%); }

  .home-page .lessons { padding: 80px 8px 0; background: #fff; }
  .home-page .lessons-inner { position: relative; width: 100%; max-width: none; height: 1318px; padding: 0 16px; border-radius: 28px 28px 0 0; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px); background-position: 96px 54px; background-size: 109px 108px; }
  .home-page .lessons-heading { position: static; width: 100%; padding-top: 0; }
  .home-page .lessons-heading h2 { font-size: 42px; }
  .home-page .lessons-layout { position: static; display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
  .home-page .lesson-list { width: 100%; height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 156px 175px 153px; gap: 4px; }
  .home-page .lesson-list div { padding: 20px; border-radius: 24px; background: #fff; }
  .home-page .lesson-list strong { font-size: 20px; }
  .home-page .lesson-list span { font-size: 14px; }
  .home-page .lesson-device { width: 100%; height: 490px; border-radius: 24px; }
  .home-page .lesson-device img { left: 50%; transform: translateX(-50%); }
  .home-page .lessons-inner > .button { position: static; display: flex; width: fit-content; margin: 40px auto 0; transform: none; }

  .home-page .trial-inner { height: 861px; min-height: 0; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-position: 96px 54px; background-size: 109px 108px; }
  .home-page .trial-copy { position: relative; top: auto; left: auto; width: 100%; padding: 56px 24px 0; }
  .home-page .trial-copy h2 { font-size: 42px; }
  .home-page .trial-art { top: 270px; }
  .home-page .trial-art img.trial-art__main { top: 0; left: auto; right: -310px; width: 758px; height: 503px; }
}

@media (max-width: 520px) {
  .home-page .teachers { padding-top: 64px; }
  .home-page .teacher-grid { margin-top: 32px; margin-left: 16px; }
  .home-page .teacher-card { flex-basis: 280px; width: 280px; }
  .home-page .teachers::before, .home-page .teachers::after { top: 201px; width: 48px; }
  .home-page .teachers .carousel-arrows { margin-top: 32px; }

  .home-page .lessons { padding-top: 64px; }
  .home-page .lessons-inner { height: 1207px; padding: 0 16px; border-radius: 24px 24px 0 0; }
  .home-page .lessons-heading h2 { font-size: 32px; }
  .home-page .lessons-layout { margin-top: 32px; }
  .home-page .lesson-list { grid-template-columns: 1fr; grid-template-rows: repeat(5, auto); }
  .home-page .lesson-list div { min-height: 120px; }
  .home-page .lesson-list div:last-child { grid-column: auto; }
  .home-page .lesson-device { height: 360px; }
  .home-page .lesson-device img { top: 30px; width: 320px; height: 218px; }
  .home-page .lessons-inner > .button { margin-top: 32px; }

  .home-page .trial-inner { height: 576px; }
  .home-page .trial-copy { padding: 48px 20px 0; }
  .home-page .trial-copy h2 { font-size: 32px; }
  .home-page .trial-copy p { font-size: 14px; }
  .home-page .trial-art { top: 250px; }
  .home-page .trial-art img.trial-art__main { right: -390px; width: 758px; height: 503px; }
}
.hero-description--mobile { display: none; }

@media (min-width: 821px) {
  .about-hero .inner-hero__copy { left: 216px; width: 976px; padding: 120px 0 0; text-align: center; }
  .about-hero .inner-hero__copy h1 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .about-hero .inner-hero__copy p { max-width: 590px; margin-right: auto; margin-left: auto; color: #fff; }
  .about-hero .inner-hero__art img:first-child { left: 94px; right: auto; top: 72px; width: 244.782px; height: 281.359px; transform: rotate(-14.53deg); }
  .about-hero .inner-hero__art img:last-child { right: 50px; bottom: auto; top: 96px; width: 240.632px; height: 197.931px; }
  .home-page .hero-copy h1 { letter-spacing: -1.92px; }
  .home-page .hero-copy p { max-width: 590px; margin-bottom: 24px; color: #fff; }
  .hero-asset { width: auto; height: auto; }
  .hero-asset--1 { right: 79px; top: 63px; width: 228px; height: 373px; transform: rotate(5.13deg); }
  .hero-asset--2 { left: 88px; top: 221px; width: 280px; height: 201px; transform: rotate(-31.8deg); }
  .hero-asset--3 { left: 64px; top: 66px; width: 158px; height: 109px; transform: rotate(17.76deg); }
  .hero-asset--4 { right: 291px; top: 219px; width: 36px; height: 42px; }
  .hero-asset--5 { left: 42px; top: 238px; width: 33px; height: 36px; }
  .hero-asset--6 { right: 42px; top: 363px; width: 32px; height: 18px; transform: rotate(35.34deg); }
  .hero-feature { padding: 24px; }
}

@media (max-width: 820px) {
  .hero-title--desktop { display: none; }
  .hero-title--tablet { display: block; }
  .home-page .hero-art { top: 0; }
  .hero-asset { width: auto; height: auto; }
  .hero-asset--1 { right: 8px; top: 203px; width: 95px; height: 155px; transform: rotate(-.55deg); }
  .hero-asset--2 { left: -51px; top: 193px; width: 154px; height: 111px; transform: rotate(-52.65deg); }
  .hero-asset--3 { left: 24px; top: 252px; width: 100px; height: 69px; transform: rotate(17.76deg); }
  .hero-asset--4 { right: 106px; top: 330px; width: 28px; height: 33px; }
  .hero-asset--5 { left: 12px; top: 395px; width: 25px; height: 27px; }
  .hero-asset--6 { right: 20px; top: 490px; width: 24px; height: 14px; transform: rotate(35.34deg); }
}

@media (max-width: 520px) {
  .hero-title--tablet { display: none; }
  .hero-title--mobile { display: block; }
  .hero-description--desktop { display: none; }
  .hero-description--mobile { display: block; }
  .home-page .hero-copy { padding: 44px 20px 0; text-align: center; }
  .home-page .hero-copy h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.96px; }
  .home-page .hero-copy p { max-width: 330px; margin-right: auto; margin-left: auto; font-size: 14px; line-height: 1.35; }
  .home-page .hero-copy p { margin-bottom: 24px; }
  .home-page .hero-copy .button { width: 162px; min-height: 0; margin: 0 auto; font-size: 14px; }
  .hero-asset--1 { right: 8px; top: 203px; width: 95px; height: 155px; }
  .hero-asset--2 { left: -51px; top: 233px; width: 154px; height: 111px; }
  .hero-asset--3 { display: none; }
  .hero-asset--4 { right: 80px; top: 242px; width: 22px; height: 26px; }
  .hero-asset--5 { left: 4px; top: 272px; width: 20px; height: 22px; }
  .hero-asset--6 { right: 14px; top: 326px; width: 18px; height: 10px; }
}

@media (min-width: 821px) {
  .course-hero .inner-hero__copy h1 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; margin-bottom: 16px; }
  .course-hero .inner-hero__copy p { max-width: 484px; margin-bottom: 40px; color: #fff; }
}

@media (max-width: 820px) {
  .about-hero, .course-hero { width: 100%; margin: 0; border-radius: 40px; }
  .about-hero .inner-hero__copy { left: 20px; width: 600px; padding: 80px 0 0; text-align: center; }
  .about-hero .inner-hero__copy h1 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .about-hero .inner-hero__copy p { max-width: 590px; margin-right: auto; margin-left: auto; color: #fff; }
  .about-hero .hero-features { top: 374px; right: 20px; bottom: auto; left: 20px; }

  .course-hero .inner-hero__copy { left: 20px; width: 600px; padding: 80px 0 0; text-align: center; }
  .course-hero .inner-hero__copy h1 { width: 458px; margin: 0 auto 16px; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .course-hero .inner-hero__copy p { max-width: 474px; margin: 0 auto 40px; color: #fff; }
  .course-hero .inner-hero__copy .button { margin: 0 auto; }
}

@media (max-width: 520px) {
  .about-hero, .course-hero { border-radius: 24px; }
  .about-hero { height: 741px; }
  .about-hero .inner-hero__copy { left: 0; width: 100%; padding: 40px 16px 0; }
  .about-hero .inner-hero__copy h1 { font-size: 24px; line-height: 1.2; letter-spacing: -0.96px; }
  .about-hero .inner-hero__copy p { max-width: 338px; font-size: 14px; line-height: 1.4; }
  .about-hero .inner-hero__art { display: none; }
  .about-hero .hero-features { top: 234px; right: 16px; bottom: auto; left: 16px; }
  .about-hero .hero-feature { height: 93px; }

  .course-hero { height: 576px; }
  .course-hero .inner-hero__copy { left: 0; width: 100%; padding: 60px 16px 0; }
  .course-hero .inner-hero__copy h1 { width: 100%; margin: 0 0 24px; font-size: 24px; line-height: 1.2; letter-spacing: -0.96px; }
  .course-hero .inner-hero__copy p { max-width: 338px; margin: 0 auto 24px; font-size: 14px; line-height: 1.4; color: #fff; }
  .course-hero .inner-hero__copy .button { width: 196px; min-height: 0; margin: 0 auto; font-size: 14px; }
  .course-hero .inner-hero__art { top: 0; }
}

@media (min-width: 821px) {
  .home-page .courses { height: 988px; padding: 120px 16px 0; }
  .home-page .courses > .section-inner { width: 976px; max-width: 976px; }
  .home-page .course-grid { height: 640px; margin-top: 60px; }
  .home-page .course-card { position: relative; display: block; height: 640px; min-height: 0; padding: 0; overflow: hidden; border-radius: 32px; }
  .home-page .course-card__exam { position: absolute; top: 18px; left: 18px; margin: 0; }
  .home-page .course-card__header p { position: absolute; top: 91px; right: 24px; left: 24px; margin: 0; color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1.4; }
  .home-page .course-card > p { position: absolute; top: 118px; right: 24px; left: 24px; margin: 0; font-size: 16px; line-height: 1.4; }
  .home-page .course-card h4 { position: absolute; top: 222px; left: 24px; margin: 0; }
  .home-page .course-card ul { position: absolute; top: 260px; right: 24px; left: 24px; gap: 12px; margin: 0; }
  .home-page .course-card li { gap: 12px; font-size: 16px; line-height: 1.4; }
  .home-page .course-card__actions { position: absolute; right: 24px; bottom: 24px; left: 24px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
  .home-page .course-card__actions .button { width: 100%; }

  .home-page .pricing { height: 1313px; padding: 0 16px; overflow: hidden; background: #fff; }
  .home-page .pricing > .section-inner { width: 1408px; max-width: none; height: 1313px; padding-top: 120px; border-radius: 40px 40px 0 0; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px); background-position: 103px 54px; background-size: 109px 108px; }
  .home-page .pricing-tabs { margin-top: 56px; margin-bottom: 60px; }
  .home-page .price-grid { width: 976px; height: 846px; margin-right: auto; margin-left: auto; }
  .home-page .price-card { height: 846px; min-height: 0; }
}

/* Mobile first-pass alignment against the Figma frame. */
@media (max-width: 520px) {
  .button--menu { display: flex; }
  .home-page .benefits { padding-right: 0; padding-left: 0; padding-top: 64px; }
  .home-page .benefits > .section-inner,
  .home-page .school > .section-inner { width: calc(100% - 32px); }
  .home-page .split-heading { margin-bottom: 26px; text-align: center; }
  .home-page .split-heading h2,
  .home-page .school .center-heading h2 { font-size: 24px; line-height: 1.2; }
  .home-page .benefit-grid { height: auto; gap: 4px; }
  .home-page .benefit-card { height: auto; min-height: 0; display: block; padding: 24px; border-radius: 24px; }
  .home-page .benefit-card img { width: 80px; height: 110px; margin: 0 0 24px; }
  .home-page .benefit-card h3 { margin: 0; font-size: 20px; line-height: 1.1; }
  .home-page .benefit-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
  .home-page .school { padding-right: 0; padding-left: 0; }
  .home-page .school-tabs { margin-top: 20px; margin-bottom: 32px; scrollbar-width: none; }
  .home-page .school-tabs::-webkit-scrollbar { display: none; }
  .home-page .school .pill-tab { min-height: 48px; padding: 14px 16px; font-size: 14px; }
  .home-page .school-stage { height: 270px; display: flex; flex-direction: column; padding: 0; border-radius: 24px; }
  .home-page .school-art { position: relative; inset: auto; flex: 0 0 154px; height: 154px; }
  .home-page .school-art-canvas { transform: scale(.319444); transform-origin: top left; }
  .home-page .school-piece { width: auto; height: auto; }
  .home-page .school-piece--1 { left: 514px; right: auto; top: 20px; bottom: auto; }
  .home-page .school-piece--2 { left: 20px; right: auto; top: 22px; bottom: auto; }
  .home-page .school-piece--3 { left: 271px; right: auto; top: 148px; bottom: auto; }
  .home-page .school-piece--4 { left: 271px; right: auto; top: 400px; bottom: auto; }
  .home-page .school-piece--5 { left: 763px; right: auto; top: 148px; bottom: auto; }
  .home-page .school-piece--6 { left: 23px; right: auto; top: 283px; bottom: auto; }
  .home-page .school-piece--7 { left: 271px; right: auto; top: -106px; bottom: auto; }
  .home-page .school-piece--8 { left: 514px; right: auto; top: 283px; bottom: auto; }
  .home-page .school-piece--9 { left: 798px; right: auto; top: 399px; bottom: auto; }
  .home-page .school-piece--10 { left: 759px; right: auto; top: -105px; bottom: auto; }
  .home-page .school-stage__caption { flex: 1 1 auto; padding: 12px 16px; }
  .home-page .school-stage__caption strong { font-size: 16px; line-height: 1.2; }
  .home-page .school-stage__caption span { margin-top: 8px; font-size: 14px; line-height: 1.4; }
  .home-page .bet { padding-right: 0; padding-left: 0; }
  .home-page .bet-inner { width: calc(100% - 32px); min-width: 0; }
  .home-page .bet-copy { width: 100%; min-width: 0; text-align: center; }
  .home-page .bet-copy h2 { font-size: 32px; line-height: 1; }
  .home-page .bet-copy .bet-lead { margin-right: auto; margin-left: auto; }
  .home-page .bet-reward { width: 100%; min-width: 0; }

  /* Remaining mobile sections: match the 370px Figma frame. */
  .home-page .referral { height: 576px; padding: 0; }
  .home-page .referral-inner { width: 100%; height: 576px; min-height: 0; border-radius: 24px; }
  .home-page .referral-copy { width: 100%; padding: 64px 16px 0; text-align: center; }
  .home-page .referral-copy h2 { margin-bottom: 24px; font-size: 24px; line-height: 1.2; letter-spacing: -.96px; }
  .home-page .referral-copy h2 br,
  .home-page .trial-copy h2 br { display: none; }
  .home-page .referral-copy p { max-width: 338px; margin: 0 auto 24px; font-size: 14px; line-height: 1.4; }
  .home-page .referral-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .home-page .referral-actions .button { width: 190px; }
  .home-page .referral-art { top: 0; width: 100%; height: 100%; }
  .home-page .referral-art img:nth-child(-n+3) { display: none; }
  .home-page .referral-art img:nth-child(4) { top: 320px; right: auto; bottom: auto; left: 50%; width: 395px !important; height: 300px !important; transform: translateX(-50%); }

  .home-page .reviews { height: 496px; padding: 40px 0 0; overflow: hidden; }
  .home-page .reviews > .section-inner { width: 100%; max-width: none; }
  .home-page .carousel-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; touch-action: pan-x; }
  .home-page .carousel-viewport::-webkit-scrollbar { display: none; }
  .home-page .reviews .center-heading h2,
  .home-page .teachers .center-heading h2,
  .home-page .lessons-heading h2,
  .home-page .courses .center-heading h2,
  .home-page .pricing .center-heading h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.96px; }
  .home-page .review-grid { display: flex; width: max-content; height: 314px; margin-top: 28px; margin-left: 0; padding: 0 25px; gap: 4px; }
  .home-page .review-card { position: relative; flex: 0 0 320px; width: 320px; height: 314px; min-height: 0; display: block; padding: 24px; border-radius: 24px; overflow: hidden; scroll-snap-align: center; }
  .home-page .review-card__author { display: block; height: auto; }
  .home-page .review-card__author img { display: block; width: 81px; height: 81px; }
  .home-page .review-card__author strong { display: block; margin-top: 16px; font-size: 16px; line-height: 1.2; }
  .home-page .review-card p,
  .home-page .review-card .review-card__quote { margin-top: 8px; font-size: 14px; line-height: 1.4; }
  .home-page .review-card .review-card__quote { margin-top: 12px; }
  .home-page .review-card__tag { position: absolute; top: 16px; right: 16px; margin: 0; padding: 5px 12px; border: 1px solid var(--ink); border-radius: 16px; background: #c5bdff; color: var(--ink); font-size: 14px; line-height: 1.2; }
  .home-page .reviews .carousel-arrows { display: none; }
  .home-page .reviews::before,
  .home-page .reviews::after { top: 96px; width: 28px; height: 314px; }

  .home-page .teachers { height: 878px; padding: 16px 0 0; overflow: hidden; background: #fff; }
  .home-page .teachers > .section-inner { width: 100%; max-width: none; }
  .home-page .teachers .center-heading { gap: 8px; }
  .home-page .teachers .center-heading p { max-width: 338px; font-size: 14px; line-height: 1.4; }
  .home-page .teacher-grid { display: flex; width: max-content; height: 687px; margin: 30px 0 0; padding: 0 25px; gap: 4px; }
  .home-page .teacher-card { flex: 0 0 320px; width: 320px; height: 687px; min-height: 0; padding: 24px; border-radius: 24px; background: var(--lavender); overflow: hidden; scroll-snap-align: center; }
  .home-page .teacher-card__head { display: flex; flex-direction: column; align-items: stretch; }
  .home-page .teacher-card__photo { width: 81px; height: 81px; margin: 0 0 24px; border-radius: 50%; background: transparent; }
  .home-page .teacher-card__photo img { width: 81px; height: 81px; object-fit: cover; }
  .home-page .teacher-card__badges { gap: 6px; overflow: hidden; }
  .home-page .teacher-card__badges span { padding: 4px 10px; font-size: 14px; }
  .home-page .teacher-card h3 { margin: 12px 0 0; font-size: 16px; line-height: 1.2; }
  .home-page .teacher-card ul { gap: 12px; margin-top: 24px; }
  .home-page .teacher-card li { gap: 12px; font-size: 14px; line-height: 1.4; }
  .home-page .teacher-card .teacher-check { width: 20px; height: 20px; color: var(--ink); }
  .home-page .teacher-card__quote { margin: auto 0 0; padding: 24px; border-radius: 24px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.4; }
  .home-page .teachers .carousel-arrows { display: none; }
  .home-page .teachers::before,
  .home-page .teachers::after { top: 120px; width: 28px; height: 687px; }

  .home-page .lessons { height: 1271px; padding: 64px 0 0; overflow: hidden; }
  .home-page .lessons-inner { display: block; width: 100%; height: 1207px; padding: 0 16px; border-radius: 24px 24px 0 0; }
  .home-page .lessons-heading { gap: 8px; }
  .home-page .lessons-heading p { max-width: 338px; font-size: 14px; line-height: 1.4; }
  .home-page .lessons-layout { gap: 4px; margin-top: 12px; }
  .home-page .lesson-list { gap: 4px; margin-bottom: 0; }
  .home-page .lesson-list div { min-height: 0; padding: 24px; border-radius: 24px; gap: 8px; }
  .home-page .lesson-list strong { font-size: 16px; line-height: 1.2; }
  .home-page .lesson-list span { font-size: 14px; line-height: 1.4; }
  .home-page .lesson-device { width: 100%; height: 350px; min-height: 0; padding: 20px; border-radius: 24px; }
  .home-page .lesson-device img { position: static; width: 298px; height: auto; max-width: 100%; transform: none; border: 0; border-radius: 16px; box-shadow: none; }
  .home-page .lessons-inner > .button { margin-top: 32px; }

  .home-page .trial { height: 576px; padding: 0; }
  .home-page .trial-inner { width: 100%; height: 576px; min-height: 0; border-radius: 24px; }
  .home-page .trial-copy { width: 100%; padding: 64px 16px 0; text-align: center; }
  .home-page .trial-copy h2 { margin-bottom: 24px; font-size: 24px; line-height: 1.2; letter-spacing: -.96px; }
  .home-page .trial-copy p { max-width: 338px; margin: 0 auto 24px; font-size: 14px; line-height: 1.4; }
  .home-page .trial-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .home-page .trial-actions .button { width: 338px; max-width: 100%; }
  .home-page .trial-art { top: 0; width: 100%; height: 100%; }
  .home-page .trial-art img.trial-art__main { top: 330px; right: auto; bottom: auto; left: 50%; width: 430px; height: auto; max-width: none; transform: translateX(-50%); }

  .home-page .courses { height: 821px; padding: 20px 0 0; overflow: hidden; }
  .home-page .courses > .section-inner { width: 100%; max-width: none; }
  .home-page .courses .carousel-viewport { width: 100%; padding-left: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; touch-action: pan-x; }
  .home-page .courses .carousel-viewport::-webkit-scrollbar { display: none; }
  .home-page .course-grid { display: flex; width: max-content; height: 640px; margin: 28px 0 0; gap: 4px; }
  .home-page .course-card { flex: 0 0 320px; width: 320px; height: 640px; min-height: 0; gap: 16px; padding: 24px; border-radius: 24px; scroll-snap-align: center; }
  .home-page .course-card__exam { width: 272px; height: auto; max-width: 100%; }
  .home-page .course-card__header p { margin-top: 0; font-size: 16px; font-weight: 400; line-height: 1.4; }
  .home-page .course-card > p { font-size: 14px; line-height: 1.4; }
  .home-page .course-card h4 { font-size: 14px; }
  .home-page .course-card ul { gap: 8px; }
  .home-page .course-card li { gap: 8px; font-size: 14px; line-height: 1.4; }
  .home-page .course-card__actions { flex-direction: column; gap: 12px; margin-top: auto; }
  .home-page .course-card__actions .button { width: 100%; }

  .home-page .pricing { height: 931px; padding: 30px 0 0; overflow: hidden; background: #fff; }
  .home-page .pricing > .section-inner { width: 100%; max-width: none; height: 901px; padding: 64px 16px 0; border-radius: 24px 24px 0 0; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px); background-position: 16px 0; background-size: 54px 54px; }
  .home-page .pricing-tabs { width: 194px; height: 56px; margin: 36px auto 32px; }
  .home-page .pricing-tabs .pill-tab { flex: 1 1 0; min-height: 48px; padding: 14px 8px; font-size: 14px; }
  .home-page .price-grid { display: flex; width: max-content; height: 654px; margin: 0; gap: 4px; }
  .home-page .price-card { flex: 0 0 320px; width: 320px; height: 654px; min-height: 0; gap: 20px; padding: 24px; border-radius: 24px; scroll-snap-align: start; }
  .home-page .price-card__top { gap: 12px; }
  .home-page .price-card h3 { font-size: 18px; line-height: 1.2; }
  .home-page .price-card > .price-card__top > p { font-size: 14px; line-height: 1.4; }
  .home-page .price-card h4 { font-size: 16px; }
  .home-page .price-card ul { gap: 8px; }
  .home-page .price-card li { font-size: 14px; line-height: 1.4; }
  .home-page .price span { font-size: 16px; }
  .home-page .price strong { font-size: 18px; }
  .home-page .price small { font-size: 14px; }
}

@media (min-width: 1200px) {
  .home-page .teacher-grid { height: 540px; }
  .home-page .teacher-card {
    flex-basis: 464px !important;
    width: 512px !important;
    height: 540px !important;
  }
  .home-page .teachers::before,
  .home-page .teachers::after { height: 540px; }
}

/* Tablet frame: 640px Figma layout. */
@media (min-width: 521px) and (max-width: 820px) {
  .promo { height: 69px; min-height: 0; padding: 25px 48px 13px 24px; }
  .promo::after { right: 0; left: 0; }
  .site-header { height: 91px; padding: 20px; }
  .header-inner { width: 600px; height: 51px; min-height: 0; }
  .header-actions .button:not(.button--icon) { display: inline-flex; padding-right: 24px; padding-left: 24px; }
  .button--menu { display: inline-flex; }
  .button--menu .menu-icon { position: relative; height: 18px; }
  .button--menu .menu-icon i {
    position: static;
    top: auto;
    left: auto;
    opacity: 1;
    transform: none;
  }
  .common-mobile-menu[open] .button--menu .menu-icon { height: 24px; }
  .common-mobile-menu[open] .button--menu .menu-icon i {
    position: absolute;
    top: 11px;
    left: 0;
  }
  .common-mobile-menu[open] .button--menu .menu-icon i:first-child { transform: rotate(45deg); }
  .common-mobile-menu[open] .button--menu .menu-icon i:nth-child(2) { opacity: 0; }
  .common-mobile-menu[open] .button--menu .menu-icon i:last-child { transform: rotate(-45deg); }

  .home-page .hero,
  .home-page .benefits,
  .home-page .school,
  .home-page .bet,
  .home-page .referral,
  .home-page .reviews,
  .home-page .teachers,
  .home-page .lessons,
  .home-page .trial,
  .home-page .courses,
  .home-page .pricing,
  .home-page .articles,
  .home-page .faq,
  .home-page .consultation { overflow: hidden; }

  .home-page .hero { height: 922px; padding: 0; }
  .home-page .hero-inner { width: 640px; height: 922px; min-height: 0; border-radius: 40px; background-size: 80px 80px; }
  .home-page .hero-copy { width: 100%; padding: 80px 20px 0; text-align: center; }
  .home-page .hero-copy h1 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .hero-copy p { max-width: 590px; margin-right: auto; margin-bottom: 24px; margin-left: auto; line-height: 1.4; }
  .home-page .hero-copy .button { width: 180px; margin: 0 auto; padding-right: 24px; padding-left: 24px; }
  .home-page .hero-asset--1 { right: 8px; top: 330px; width: 95px; height: 155px; }
  .home-page .hero-asset--2 { left: -17px; top: 384px; width: 200px; height: 144px; transform: rotate(-31.8deg); }
  .home-page .hero-asset--3 { display: none; }
  .home-page .hero-asset--4 { right: 98px; top: 390px; width: 28px; height: 33px; }
  .home-page .hero-asset--5 { left: 12px; top: 520px; width: 25px; height: 27px; }
  .home-page .hero-asset--6 { right: 20px; top: 550px; width: 24px; height: 14px; transform: rotate(35.34deg); }
  .home-page .hero-features { right: 20px; bottom: 64px; left: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .home-page .hero-feature { height: 190px; padding: 24px; border-radius: 32px; }

  .home-page .benefits { height: 1012px; padding: 80px 0 0; }
  .home-page .benefits > .section-inner,
  .home-page .school > .section-inner,
  .home-page .bet-inner,
  .home-page .articles-inner,
  .home-page .faq-inner { width: 600px; max-width: none; }
  .home-page .split-heading { margin-bottom: 60px; text-align: center; }
  .home-page .split-heading h2,
  .home-page .school .center-heading h2,
  .home-page .reviews .center-heading h2,
  .home-page .teachers .center-heading h2,
  .home-page .lessons-heading h2,
  .home-page .courses .center-heading h2,
  .home-page .pricing .center-heading h2,
  .home-page .articles-heading h2,
  .home-page .faq .center-heading h2 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .benefit-grid { height: auto; grid-template-columns: 1fr; gap: 4px; }
  .home-page .benefit-card { height: auto; min-height: 0; grid-template-columns: 80px 1fr; grid-template-rows: auto auto; padding: 24px; border-radius: 32px; }
  .home-page .benefit-card h3 { font-size: 24px; line-height: 1.1; }
  .home-page .benefit-card p { font-size: 16px; line-height: 1.4; }

  .home-page .school { height: 934px; padding: 0; border-radius: 40px 40px 0 0; background-size: 80px 80px; }
  .home-page .school > .section-inner { padding-top: 80px; }
  .home-page .school-tabs { width: 600px; margin: 32px auto 60px; overflow: visible; }
  .home-page .school .pill-tab { height: 51px; min-height: 51px; flex: 1 1 0; padding-right: 16px; padding-left: 16px; }
  .home-page .school-stage { width: 600px; height: 424px; min-height: 0; display: block; padding: 282px 0 0; border-radius: 40px; }
  .home-page .school-art { position: absolute; inset: 0; display: block; }
  .home-page .school-art-canvas { transform: scale(.579365); transform-origin: top left; }
  .home-page .school-piece { width: auto; height: auto; }
  .home-page .school-piece--1 { left: 514px; right: auto; top: 20px; bottom: auto; }
  .home-page .school-piece--2 { left: 20px; right: auto; top: 22px; bottom: auto; }
  .home-page .school-piece--3 { left: 271px; right: auto; top: 148px; bottom: auto; }
  .home-page .school-piece--4 { left: 271px; right: auto; top: 400px; bottom: auto; }
  .home-page .school-piece--5 { left: 763px; right: auto; top: 148px; bottom: auto; }
  .home-page .school-piece--6 { left: 23px; right: auto; top: 283px; bottom: auto; }
  .home-page .school-piece--7 { left: 271px; right: auto; top: -106px; bottom: auto; }
  .home-page .school-piece--8 { left: 514px; right: auto; top: 283px; bottom: auto; }
  .home-page .school-piece--9 { left: 798px; right: auto; top: 399px; bottom: auto; }
  .home-page .school-piece--10 { left: 759px; right: auto; top: -105px; bottom: auto; }
  .home-page .school-stage__caption { width: 100%; margin: 0; padding: 32px; border-radius: 24px; text-align: left; }
  .home-page .school-stage__caption strong { font-size: 24px; }
  .home-page .school-stage__caption span { font-size: 16px; }
  .home-page .school > .section-inner > .button { margin-top: 24px; }

  .home-page .bet { height: 1033px; padding: 80px 0 0; }
  .home-page .bet-inner { position: relative; height: 953px; display: block; }
  .home-page .bet-copy { width: 600px; padding: 0; text-align: center; }
  .home-page .bet-copy h2 { margin-bottom: 24px; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .bet-copy .bet-lead { max-width: none; margin: 0 auto; }
  .home-page .bet-reward { width: 600px; height: 134px; margin: 24px 0 0; padding: 24px; text-align: left; }
  .home-page .bet-reward h3 { font-size: 24px; }
  .home-page .slot-art { position: absolute; top: 360px; left: 40px; width: 520px; height: 592px; margin: 0; }
  .home-page .slot-art img { width: 520px; height: 592px; }

  .home-page .referral { height: 828px; padding: 0; }
  .home-page .referral-inner { width: 640px; height: 828px; min-height: 0; border-radius: 40px; background-size: 80px 80px; }
  .home-page .referral-copy { width: 100%; margin: 0; padding: 80px 20px 0; text-align: center; }
  .home-page .referral-copy h2 { margin-bottom: 24px; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .referral-copy p { max-width: 390px; margin: 0 auto 24px; }
  .home-page .referral-actions { justify-content: center; flex-wrap: nowrap; gap: 8px; }
  .home-page .referral-actions .button { width: 211px; }
  .home-page .referral-art { top: 0; }
  .home-page .referral-art img:nth-child(1) { left: 312px; right: auto; top: 395px; width: 36px !important; height: 42px !important; }
  .home-page .referral-art img:nth-child(2) { left: 24px; right: auto; top: 394px; width: 33px !important; height: 36px !important; }
  .home-page .referral-art img:nth-child(3) { left: 565px; right: auto; top: 520px; width: 32px !important; height: 18px !important; }
  .home-page .referral-art img:nth-child(4) { left: 24px; right: auto; top: 382px; width: 590.94px !important; height: 449px !important; }

  .home-page .reviews { height: 490px; padding: 80px 0 0; background: #fff; }
  .home-page .reviews > .section-inner,
  .home-page .teachers > .section-inner { width: 100%; max-width: none; }
  .home-page .carousel-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; touch-action: pan-x; }
  .home-page .carousel-viewport::-webkit-scrollbar { display: none; }
  .home-page .review-grid { display: flex; width: max-content; height: 222px; margin: 60px 0 0; gap: 8px; padding: 0; }
  .home-page .review-card { position: relative; flex: 0 0 512px; width: 512px; height: 222px; min-height: 0; display: grid; grid-template-columns: 81px 1fr; grid-template-rows: auto auto 1fr; column-gap: 24px; padding: 24px; border-radius: 24px; scroll-snap-align: center; }
  .home-page .review-card__author { display: contents; }
  .home-page .review-card__author img { grid-column: 1; grid-row: 1 / span 3; width: 81px; height: 81px; }
  .home-page .review-card__author strong { grid-column: 2; grid-row: 1; font-size: 24px; line-height: 1.2; }
  .home-page .review-card p { grid-column: 2; margin: 8px 0 0; font-size: 16px; line-height: 1.4; }
  .home-page .review-card .review-card__quote { grid-row: 2; }
  .home-page .review-card p:not(.review-card__quote) { grid-row: 3; }
  .home-page .review-card__tag { position: absolute; top: 24px; right: 24px; margin: 0; padding: 4px 12px; border: 1px solid var(--ink); border-radius: 16px; background: #c5bdff; color: var(--ink); font-size: 16px; line-height: 1.2; }
  .home-page .review-card .review-card__quote { color: var(--muted); font-weight: 400; }
  .home-page .reviews::before, .home-page .reviews::after,
  .home-page .teachers::before, .home-page .teachers::after { display: none; }

  .home-page .teachers { height: 798px; padding: 80px 0 0; background: #fff; }
  .home-page .teachers .center-heading { gap: 24px; }
  .home-page .teacher-grid { display: flex; width: max-content; height: 487px; margin: 52px 0 0; gap: 8px; padding: 0; }
  .home-page .teacher-card { position: relative; flex: 0 0 512px; width: 512px; height: 487px; min-height: 0; padding: 24px; border-radius: 32px; background: var(--lavender); scroll-snap-align: center; }
  .home-page .teacher-card__photo { width: 81px; height: 81px; margin: 0; border-radius: 50%; }
  .home-page .teacher-card__photo img { width: 81px; height: 81px; }
  .home-page .teacher-card__badges { gap: 8px; overflow: hidden; }
  .home-page .teacher-card__badges span { padding: 4px 12px; font-size: 16px; }
  .home-page .teacher-card h3 { margin: 8px 0 0; font-size: 24px; line-height: 1.2; }
  .home-page .teacher-card ul { gap: 12px; margin-top: 24px; }
  .home-page .teacher-card li { gap: 12px; font-size: 16px; line-height: 1.4; }
  .home-page .teacher-card__quote { padding: 24px; border-radius: 24px; font-size: 16px; line-height: 1.4; }

  .home-page .lessons { height: 1398px; padding: 0; }
  .home-page .lessons-inner { width: 640px; height: 1398px; display: block; padding: 80px 20px 0; border-radius: 40px 40px 0 0; background-size: 80px 80px; }
  .home-page .lessons-heading { width: 600px; gap: 24px; }
  .home-page .lessons-heading p { font-size: 16px; }
  .home-page .lessons-layout { position: static; width: 600px; display: flex; flex-direction: column; gap: 4px; margin-top: 60px; }
  .home-page .lesson-list { width: 600px; height: 454px; grid-template-columns: 298px 298px; grid-template-rows: 134px 156px 156px; gap: 4px; margin: 0; }
  .home-page .lesson-list div { min-width: 0; padding: 24px; border-radius: 32px; gap: 8px; }
  .home-page .lesson-list strong { font-size: 24px; line-height: 1.2; }
  .home-page .lesson-list span { font-size: 16px; line-height: 1.4; }
  .home-page .lesson-device { position: relative; width: 600px; height: 498px; min-height: 0; display: block; overflow: hidden; padding: 0; border-radius: 32px; }
  .home-page .lesson-device img { position: absolute; top: 95px; left: 80px; width: 440px; height: 300px; transform: none; border: 0; border-radius: 16px; box-shadow: none; }
  .home-page .lessons-inner > .button { margin: 60px auto 0; }

  .home-page .trial { height: 861px; padding: 0; }
  .home-page .trial-inner { width: 640px; height: 861px; min-height: 0; border-radius: 40px; background-size: 80px 80px; }
  .home-page .trial-art { top: 0; }
  .home-page .trial-copy { width: 100%; padding: 80px 20px 0; text-align: center; }
  .home-page .trial-copy h2 { margin-bottom: 24px; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .trial-copy p { max-width: 390px; margin: 0 auto 24px; }
  .home-page .trial-actions { justify-content: center; flex-wrap: nowrap; gap: 8px; }
  .home-page .trial-actions .button { width: 216px; }
  .home-page .trial-art img.trial-art__main { top: 394px; right: auto; left: 50%; width: 758px; height: 503px; max-width: none; transform: translateX(-50%); }

  .home-page .courses { height: 848px; padding: 80px 0 0; }
  .home-page .courses > .section-inner { width: 640px; max-width: none; }
  .home-page .courses .carousel-viewport { width: 100%; padding-left: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; touch-action: pan-x; }
  .home-page .courses .carousel-viewport::-webkit-scrollbar { display: none; }
  .home-page .course-grid { display: flex; width: max-content; height: 580px; margin: 60px 0 0; gap: 16px; }
  .home-page .course-card { flex: 0 0 480px; width: 480px; height: 580px; min-height: 0; gap: 20px; padding: 24px; border-radius: 32px; scroll-snap-align: center; }
  .home-page .course-card__exam { width: 290px; height: 50px; max-width: none; }
  .home-page .course-card__header p { margin-top: 8px; font-size: 16px; font-weight: 400; line-height: 1.4; }
  .home-page .course-card > p { font-size: 16px; line-height: 1.4; }
  .home-page .course-card h4 { font-size: 16px; }
  .home-page .course-card ul { gap: 12px; }
  .home-page .course-card li { gap: 12px; font-size: 16px; line-height: 1.4; }
  .home-page .course-card__actions { flex-direction: column; gap: 12px; margin-top: auto; }
  .home-page .course-card__actions .button { width: 100%; }

  .home-page .pricing { height: 1027px; padding: 0; background: #fff; }
  .home-page .pricing > .section-inner { width: 640px; height: 1027px; max-width: none; padding: 80px 20px 0; border-radius: 40px 40px 0 0; background-color: var(--lavender); background-size: 80px 80px; }
  .home-page .pricing-tabs { width: 204px; height: 59px; margin: 32px auto 60px; }
  .home-page .pricing-tabs .pill-tab { flex: 1 1 0; min-height: 51px; padding: 16px 8px; font-size: 16px; }
  .home-page .pricing .carousel-viewport { width: 640px; margin-left: -20px; overflow-x: auto; overflow-y: hidden; scroll-padding-left: 20px; }
  .home-page .price-grid { display: flex; width: max-content; height: 660px; margin: 0 0 0 20px; gap: 16px; }
  .home-page .price-card { flex: 0 0 480px; width: 480px; height: 660px; min-height: 0; gap: 32px; padding: 24px; border-radius: 32px; scroll-snap-align: start; }
  .home-page .price-card__top { gap: 16px; }
  .home-page .price-card h3 { font-size: 24px; line-height: 1.1; }
  .home-page .price-card > .price-card__top > p { font-size: 16px; line-height: 1.4; }
  .home-page .price-card h4 { font-size: 16px; }
  .home-page .price-card ul { gap: 8px; }
  .home-page .price-card li { font-size: 16px; line-height: 1.4; }
  .home-page .price span { font-size: 24px; }
  .home-page .price strong { font-size: 24px; }
  .home-page .price small { font-size: 16px; }

  .home-page .articles { height: 1941px; padding: 80px 0 0; }
  .home-page .articles > .articles-inner { width: 640px; max-width: none; display: block; }
  .home-page .articles-heading { text-align: center; }
  .home-page .articles-heading h2 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page .articles-heading p { margin-top: 24px; font-size: 16px; }
  .home-page .article-list { height: 1654px; margin-top: 60px; margin-left: 20px; gap: 20px; }
  .home-page .article-card { display: flex; flex-direction: column; width: 600px; height: 538px; min-height: 0; gap: 0; padding: 8px; border-radius: 32px; }
  .home-page .article-card > img { width: 584px; height: 304px; max-width: none; border-radius: 24px; object-fit: cover; }
  .home-page .article-card__content { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 32px; }
  .home-page .article-card h3 { margin: 0; font-size: 24px; line-height: 1.2; }
  .home-page .article-card p { margin: 12px 0 8px; font-size: 16px; line-height: 1.4; }
  .home-page .article-card__likes { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; }
  .home-page .article-like { width: 24px; height: 24px; }
  .home-page .article-card .button { display: inline-flex; width: fit-content; min-height: 51px; margin-top: auto; padding: 16px 24px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 16px; text-decoration: none; }

  .home-page .faq { height: 1420px; padding: 80px 0 0; }
  .home-page .faq-inner { padding: 0; }
  .home-page .faq-list { height: auto; margin-top: 60px; gap: 20px; }
  .home-page .faq details { min-height: 104px; border-radius: 32px; }
  .home-page .faq summary { min-height: 104px; padding: 32px; font-size: 24px; line-height: 1.4; }
  .home-page .faq summary span { width: 40px; height: 40px; display: grid; flex: 0 0 40px; place-items: center; border-radius: 12px; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; }

  .home-page .consultation { height: 994px; padding: 0; }
  .home-page .consultation-inner { width: 640px; height: 994px; min-height: 0; padding: 80px 20px 0; border-radius: 40px; background-size: 80px 80px; }
  .home-page .consultation-copy { text-align: center; }
  .home-page .consultation-copy h2 { margin-bottom: 40px; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .home-page #consultation-form { width: 600px; margin: 0 auto; text-align: left; }
  .home-page .consultation-art { order: 2; }

  .home-page ~ .footer { padding: 0; }
}

/* Keep the fixed 640px tablet frame centered when the preview viewport is wider. */
@media (min-width: 641px) and (max-width: 820px) {
  .promo,
  .site-header,
  .home-page { width: 640px; margin-right: auto; margin-left: auto; }
}

@media (min-width: 521px) and (max-width: 820px) {
  .home-page ~ .footer { width: 640px; height: 975px; margin: 0 auto; padding: 0; }
  .home-page ~ .footer .footer-shell { width: 640px; height: 975px; }
}

/* iPad/tablet viewport: use the complete available width instead of the 640px reference frame. */
@media (min-width: 641px) and (max-width: 820px) {
  .promo,
  .site-header,
  .home-page,
  .home-page ~ .footer { width: 100%; max-width: none; }
  .home-page ~ .footer .footer-shell { width: 100%; }

  .home-page .hero-inner,
  .home-page .referral-inner,
  .home-page .trial-inner,
  .home-page .lessons-inner,
  .home-page .pricing > .section-inner,
  .home-page .consultation-inner { width: 100%; }

  .home-page .benefits > .section-inner,
  .home-page .school > .section-inner,
  .home-page .bet-inner,
  .home-page .articles-inner,
  .home-page .faq-inner { width: calc(100% - 40px); }

  .home-page .school-tabs,
  .home-page .school-stage { width: 100%; }
  .home-page .school-art-canvas { transform: scale(.75); }

  .home-page .bet-copy,
  .home-page .bet-reward { width: 100%; }
  .home-page .slot-art { top: 360px; left: 50%; transform: translateX(-50%); }

  .home-page .lessons-heading,
  .home-page .lessons-layout,
  .home-page .lesson-list,
  .home-page .lesson-device,
  .home-page #consultation-form { width: 100%; }
  .home-page .lesson-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .lesson-list div:last-child { grid-column: 1 / -1; }
  .home-page .lesson-device img { left: 50%; transform: translateX(-50%); }

  .home-page .courses > .section-inner,
  .home-page .articles > .articles-inner { width: 100%; }
  .home-page .pricing .carousel-viewport { width: 100%; }
  .home-page .article-card { width: 100%; }
  .home-page .article-card > img { width: 100%; }
  .home-page .article-list { width: calc(100% - 40px); }
}

/* Final mobile corrections: keep the cart icon from flex-shrinking and let the school card span the viewport. */
@media (max-width: 520px) {
  .button--icon {
    flex: 0 0 51px;
    width: 51px;
    padding: 0;
  }
  .button--icon img {
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    height: 24px;
  }
  .home-page .school > .section-inner { width: calc(100% - 32px); }
  .home-page .school-stage { width: 100%; }

  /* Keep the slot machine in the mobile flow instead of clipping it at the referral block. */
  .home-page .bet { height: 607px; }
  .home-page .bet-inner {
    height: 543px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .home-page .bet-copy {
    flex: 0 0 auto;
  }
  .home-page .bet-copy h2 {
    margin-bottom: 16px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.96px;
  }
  .home-page .bet-copy .bet-lead {
    font-size: 14px;
    line-height: 1.4;
  }
  .home-page .bet-reward {
    height: 156px;
    margin-top: 16px;
  }
  .home-page .bet-reward h3 {
    font-size: 20px;
    line-height: 1.2;
  }
  .home-page .bet-reward p {
    font-size: 14px;
    line-height: 1.4;
  }
  .home-page .slot-art {
    flex: 0 0 300px;
    width: min(340px, 100%);
    height: 300px;
    margin: 32px auto 0;
    transform: none;
  }
  .home-page .slot-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .footer {
    height: 1008px;
    padding: 0;
  }
  .footer-shell {
    width: 100%;
    height: 1008px;
    padding: 64px 16px 40px;
  }
  .footer-inner {
    width: 100%;
    min-height: 0;
    gap: 56px;
  }
  .footer-left > .button {
    display: none;
  }
  .footer-right .logo {
    height: 40px;
  }
  .footer-right .logo img.footer-logo-exact {
    width: 160px;
    height: 40px;
    max-width: none;
    object-fit: cover;
  }
  .footer-actions .button {
    flex: 0 0 auto;
  }
  .footer-actions .button--icon {
    flex: 0 0 51px;
    width: 51px;
  }
}

/* Keep mobile school artwork proportional to the supplied 1008x484 frames.
   This prevents narrow browser windows from letterboxing or clipping the
   switched images and keeps the card rounded at both ends. */
@media (max-width: 520px) {
  .home-page .school {
    height: max(648px, calc(48vw + 441px));
  }

  .home-page .school-stage {
    height: auto;
    overflow: hidden;
    border-radius: 24px;
  }

  .home-page .school-art {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1008 / 484;
    overflow: hidden;
    border-radius: 16px;
  }

  .home-page .school-stage__caption {
    flex: 0 0 auto;
    min-height: 112px;
    border-radius: 0 0 16px 16px;
  }

  .home-page .school-art--frame .school-art-canvas {
    width: 100%;
    height: 100%;
    transform: none;
  }

  .home-page .school-art--frame .school-frame-image {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: contain;
    object-position: center;
  }
}

/* Effective tariff geometry: keep this final so older shared breakpoints
   cannot restore the legacy full-width cards on responsive pages. */
@media (min-width: 821px) {
  .tariffs-page .tariffs-page__lead {
    max-width: 448px;
    line-height: 1.4;
  }

  .tariffs-page .pricing-tabs {
    margin-bottom: 54px;
  }
}

@media (min-width: 521px) and (max-width: 820px) {
  .tariffs-page .pricing {
    padding: 80px 20px;
  }

  .tariffs-page .pricing > .section-inner {
    width: 100%;
    max-width: none;
  }

  .tariffs-page .pricing .center-heading h1 {
    font-size: 48px;
    line-height: 1;
  }

  .tariffs-page .tariffs-page__lead {
    max-width: 448px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.2;
  }

  .tariffs-page .pricing-tabs {
    margin: 24px auto 59px;
  }

  .tariffs-page .pricing .carousel-viewport {
    width: 100%;
    margin: 0;
  }

  .tariffs-page .pricing .price-grid {
    height: 660px;
    margin: 0;
    gap: 16px;
  }

  .tariffs-page .pricing .price-card {
    flex-basis: 480px;
    width: 480px;
    height: 660px;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .tariffs-page .pricing {
    padding: 60px 16px 40px;
  }

  .tariffs-page .pricing > .section-inner {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .tariffs-page .pricing .center-heading h1 {
    font-size: 24px;
    line-height: 1;
  }

  .tariffs-page .tariffs-page__lead {
    width: 100%;
    max-width: 338px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.2;
  }

  .tariffs-page .pricing-tabs {
    width: 194px;
    height: 57px;
    margin: 24px auto 32px;
  }

  .tariffs-page .pricing .carousel-viewport {
    width: 100%;
    margin: 0;
  }

  .tariffs-page .pricing .price-grid {
    height: 653px;
    margin: 0 0 0 0;
    gap: 4px;
  }

  .tariffs-page .pricing .price-card {
    flex-basis: 320px;
    width: 320px;
    height: 653px;
    min-height: 0;
  }
}

/* About page: teacher and review cards are horizontal carousels on compact
   layouts. The desktop content grid must not leave overflow visible here,
   otherwise scrollBy() has no scroll container to move. */
@media (max-width: 820px) {
  .about-page .about-team .carousel-viewport,
  .about-page .about-trust .carousel-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
  }

  .about-page .about-team .carousel-viewport::-webkit-scrollbar,
  .about-page .about-trust .carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .about-page .about-team .teacher-grid,
  .about-page .about-trust .review-grid {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    height: auto;
    margin-top: 40px;
    gap: 8px;
  }

  .about-page .about-team .teacher-card {
    flex: 0 0 320px;
    width: 320px;
    min-height: 490px;
    height: auto;
    scroll-snap-align: center;
  }

  .about-page .about-trust .review-card {
    flex: 0 0 320px;
    width: 320px;
    min-height: 280px;
    height: 280px;
    scroll-snap-align: center;
  }
}

@media (max-width: 520px) {
  .about-page .about-team .teacher-grid,
  .about-page .about-trust .review-grid {
    margin-top: 32px;
  }

  .about-page .about-team .teacher-card {
    flex-basis: 280px;
    width: 280px;
    min-height: 0;
  }

  .about-page .about-trust .review-card {
    flex-basis: 280px;
    width: 280px;
    min-height: 0;
    height: 222px;
  }
}

/* Final page-specific precedence after the shared homepage breakpoints. */
@media (min-width: 821px) {
  .tariffs-page .pricing { height: auto; min-height: 0; padding: 120px 16px; overflow: visible; background: #fff; }
  .tariffs-page .pricing > .section-inner { width: min(976px, calc(100% - 32px)); max-width: 976px; height: auto; min-height: 0; padding: 0; border-radius: 0; background: transparent; }
  .tariffs-page .pricing .price-grid { display: flex; flex-wrap: nowrap; width: max-content; min-width: 100%; height: 846px; margin: 0; gap: 16px; }
  .tariffs-page .pricing .price-card { flex: 0 0 calc((976px - 32px) / 3); width: calc((976px - 32px) / 3); height: 846px; min-height: 0; }
}

@media (max-width: 820px) {
  .tariffs-page .pricing { height: auto; min-height: 0; padding: 80px 16px; overflow: visible; background: #fff; }
  .tariffs-page .pricing > .section-inner { width: 100%; max-width: none; height: auto; min-height: 0; padding: 0; border-radius: 0; background: transparent; }
  .tariffs-page .pricing .price-grid { height: auto; }
}

@media (max-width: 520px) {
  .tariffs-page .pricing { padding: 72px 0; }
  .tariffs-page .pricing .price-card { flex-basis: min(320px, calc(100vw - 48px)); width: min(320px, calc(100vw - 48px)); min-height: 0; }
}

/* Kept at the end so the shared course-video and carousel fallbacks above
   cannot shrink the landing components back to their legacy dimensions. */
@media (min-width: 821px) {
  .course-page .pricing .carousel-viewport { overflow: hidden; }
  .course-page .pricing .price-grid { display: flex; flex-wrap: nowrap; width: max-content; min-width: 0; height: 846px; margin: 0 auto; gap: 16px; }
  .course-page .pricing .price-card { flex: 0 0 320px; width: 320px; height: 846px; }
  .course-page .lesson-video-carousel .lesson-video { top: 50%; left: 50%; width: 440px; height: 300px; transform: translate(-50%, -50%); }
}

@media (min-width: 521px) and (max-width: 820px) {
  .course-page .pricing .price-grid { display: flex; width: max-content; height: 660px; margin: 0; gap: 16px; }
  .course-page .pricing .price-card { flex: 0 0 480px; width: 480px; height: 660px; }
}

@media (max-width: 520px) {
  .course-page .pricing .price-grid { display: flex; width: max-content; height: auto; margin: 0; gap: 4px; }
  .course-page .pricing .price-card { flex: 0 0 320px; width: 320px; min-height: 654px; height: auto; }
}

/* FAQ answers are editable and may be longer than the reference copy. Let
   the section grow with an opened details element instead of overlapping the
   following consultation block. */
.home-page .faq,
.home-page .faq-inner,
.home-page .faq-list {
  height: auto !important;
  min-height: 0 !important;
}

.home-page .faq {
  overflow: visible !important;
  padding-bottom: 120px !important;
}
.home-page .faq details { flex: 0 0 auto; }

@media (max-width: 820px) {
  .home-page .faq { padding-bottom: 80px !important; }
}

/* Program pages reuse the three interactive landing components instead of
   maintaining narrower copies.  The course data remains dynamic; only the
   Figma geometry, carousel rail and responsive behaviour are shared. */
.course-page .price-card[hidden] { display: none !important; }

/* The course reference uses a real teacher card, not a cropped text block.
   Keep the copy data-driven while matching the supplied desktop composition. */
.course-page .course-teacher-card { display: flex; flex-direction: column; }
.course-page .course-teacher-card .teacher-card__list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.course-page .course-teacher-card .teacher-card__list li { position: relative; padding-left: 22px; color: var(--ink); font-size: 14px; line-height: 1.35; }
.course-page .course-teacher-card .teacher-card__list li::before { position: absolute; top: 0; left: 0; content: "✓"; color: var(--violet); font-weight: 700; }
.course-page .course-teacher-card blockquote { margin: auto 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--lavender); color: var(--ink); font-size: 14px; line-height: 1.35; }
.course-page .course-teacher-card > .button { width: 100%; }

@media (min-width: 821px) {
  .course-page .course-teacher-card { height: 553px; overflow: hidden; }
}

@media (max-width: 520px) {
  .course-page .course-teacher-card { width: min(320px, 100%); }
  .course-page .course-teacher-card .teacher-card__list { gap: 8px; margin-top: 14px; }
  .course-page .course-teacher-card .teacher-card__list li { font-size: 13px; }
  .course-page .course-teacher-card blockquote { font-size: 13px; }
}

@media (min-width: 821px) {
  .course-page .pricing {
    height: auto;
    min-height: 1313px;
    padding: 0 16px 64px;
    overflow: hidden;
    background: #fff;
  }

  .course-page .pricing > .section-inner {
    width: min(1408px, 100%);
    max-width: 1408px;
    min-height: 1249px;
    height: auto;
    padding: 120px 32px 56px;
    border-radius: 40px;
    background-color: var(--lavender);
    background-image: linear-gradient(rgba(112, 94, 255, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 94, 255, .11) 1px, transparent 1px);
    background-position: 0 0;
    background-size: 109px 109px;
  }

  .course-page .pricing .carousel-viewport,
  .course-page .reviews .carousel-viewport {
    width: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
  }

  .course-page .pricing .price-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: max-content;
    height: 846px;
    margin: 0 auto;
    gap: 16px;
  }

  .course-page .pricing .price-card {
    flex: 0 0 320px;
    width: 320px;
    height: 846px;
    min-height: 0;
    scroll-snap-align: start;
  }

  .course-page .pricing .carousel-arrows--pricing { margin-top: 24px; }

  .course-page .lessons {
    height: 1016px;
    padding: 0 16px;
    overflow: hidden;
    background: #fff;
  }

  .course-page .lessons-inner {
    position: relative;
    display: block;
    width: min(1408px, 100%);
    max-width: 1408px;
    height: 1016px;
    padding: 0;
    border-radius: 40px 40px 0 0;
    background-color: var(--lavender);
    background-image: linear-gradient(rgba(112, 94, 255, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 94, 255, .11) 1px, transparent 1px);
    background-size: 109px 109px;
  }

  .course-page .lessons-heading {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
  }

  .course-page .lessons-heading h2 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .course-page .lessons-heading p { margin: 0; }

  .course-page .lessons-layout {
    position: absolute;
    top: 267px;
    left: 50%;
    display: grid;
    grid-template-columns: 506px 508px;
    gap: 9px;
    align-items: start;
    transform: translateX(-50%);
  }

  .course-page .lesson-list {
    width: 506px;
    height: 490px;
    display: grid;
    grid-template-columns: 250px 250px;
    grid-template-rows: 156px 175px 153px;
    gap: 4px 6px;
    margin: 0;
  }

  .course-page .lesson-list div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 32px;
    background: #fff;
  }

  .course-page .lesson-list div:last-child { grid-column: 1 / span 2; }
  .course-page .lesson-list strong { font-size: 24px; font-weight: 500; line-height: 1.2; }
  .course-page .lesson-list span { color: var(--muted); font-size: 16px; line-height: 1.4; }

  .course-page .lesson-device {
    position: relative;
    width: 508px;
    height: 490px;
    min-height: 0;
    padding: 0;
    border-radius: 24px;
    background: var(--violet);
  }

  .course-page .lesson-device > img {
    position: absolute;
    top: 95px;
    left: 50%;
    width: 440px;
    height: 300px;
    transform: translateX(-50%);
    border: 0;
    border-radius: 16px;
    box-shadow: none;
    object-fit: contain;
  }

  .course-page .lesson-video-carousel .lesson-video {
    top: 50%;
    left: 50%;
    width: 440px;
    height: 300px;
    transform: translate(-50%, -50%);
  }

  .course-page .lessons-inner > .button {
    position: absolute;
    top: 815px;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
  }

  .course-page .reviews {
    position: relative;
    height: 550px;
    padding: 0;
    overflow: hidden;
    background: #fff;
  }

  .course-page .reviews > .section-inner { width: 100%; max-width: none; padding-top: 120px; }
  .course-page .reviews .review-grid { display: flex; width: max-content; height: 222px; margin: 60px 0 0 calc(50% - 776px); gap: 8px; }
  .course-page .reviews .review-card { position: relative; flex: 0 0 512px; width: 512px; height: 222px; min-height: 0; display: grid; grid-template-columns: 81px 1fr; grid-template-rows: auto auto 1fr; column-gap: 24px; padding: 24px; border-radius: 24px; }
  .course-page .reviews .review-card__author { display: contents; }
  .course-page .reviews .review-card__author img { grid-column: 1; grid-row: 1 / span 3; width: 81px; height: 81px; }
  .course-page .reviews .review-card__author strong { grid-column: 2; grid-row: 1; align-self: start; font-size: 24px; font-weight: 500; line-height: 1.2; }
  .course-page .reviews .review-card p { grid-column: 2; margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
  .course-page .reviews .review-card .review-card__quote { grid-row: 2; color: var(--muted); font-weight: 400; }
  .course-page .reviews .review-card p:not(.review-card__quote) { grid-row: 3; }
.course-page .reviews .review-card__tag { position: absolute; top: 24px; right: 24px; margin: 0; padding: 4px 12px; border: 1px solid var(--ink); border-radius: 16px; background: #c5bdff; color: var(--ink); font-size: 16px; line-height: 1.2; }
  .course-page .reviews::before, .course-page .reviews::after { position: absolute; z-index: 2; top: 228px; width: 220px; height: 222px; pointer-events: none; content: ""; }
  .course-page .reviews::before { left: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 38%, rgba(255,255,255,0) 100%); }
  .course-page .reviews::after { right: 0; background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,.92) 38%, rgba(255,255,255,0) 100%); }
}

@media (min-width: 521px) and (max-width: 820px) {
  .course-page .pricing { height: auto; min-height: 1027px; padding: 0 16px 48px; overflow: hidden; background: #fff; }
  .course-page .pricing > .section-inner { min-height: 979px; padding: 80px 20px 48px; border-radius: 40px; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg,rgba(112,94,255,.11) 1px,transparent 1px); background-size: 80px 80px; }
  .course-page .pricing .carousel-viewport, .course-page .reviews .carousel-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; touch-action: pan-x pan-y; }
  .course-page .pricing .carousel-viewport::-webkit-scrollbar, .course-page .reviews .carousel-viewport::-webkit-scrollbar { display: none; }
  .course-page .pricing .price-grid { display: flex; width: max-content; height: 660px; margin: 0; gap: 16px; }
  .course-page .pricing .price-card { flex: 0 0 480px; width: 480px; height: 660px; min-height: 0; padding: 24px; border-radius: 32px; scroll-snap-align: start; }
  .course-page .pricing .carousel-arrows--pricing { display: none; }

  .course-page .lessons { height: auto; padding: 0 16px 64px; overflow: hidden; background: #fff; }
  .course-page .lessons-inner { width: 100%; min-height: 1240px; display: block; padding: 80px 20px 64px; border-radius: 40px; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px,transparent 1px), linear-gradient(90deg,rgba(112,94,255,.11) 1px,transparent 1px); background-size: 80px 80px; }
  .course-page .lessons-heading h2 { font-size: 42px; line-height: 1; letter-spacing: -1.68px; }
  .course-page .lessons-layout { display: flex; flex-direction: column; gap: 8px; margin-top: 48px; }
  .course-page .lesson-list { width: 100%; height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 134px 156px 156px; gap: 4px; margin: 0; }
  .course-page .lesson-list div { padding: 24px; border-radius: 28px; background: #fff; }
  .course-page .lesson-list strong { font-size: 20px; }
  .course-page .lesson-list span { font-size: 14px; }
  .course-page .lesson-device { width: 100%; height: 498px; min-height: 0; padding: 0; border-radius: 28px; }
  .course-page .lesson-device > img { position: absolute; top: 50%; left: 50%; width: 440px; height: 300px; transform: translate(-50%, -50%); border: 0; box-shadow: none; }
  .course-page .lesson-video-carousel .lesson-video { width: min(440px, calc(100% - 40px)); height: min(300px, calc(100% - 100px)); }
  .course-page .lessons-inner > .button { display: flex; width: fit-content; margin: 48px auto 0; }

  .course-page .reviews { height: auto; min-height: 490px; padding: 80px 0 48px; overflow: hidden; background: #fff; }
  .course-page .reviews > .section-inner { width: 100%; max-width: none; }
  .course-page .reviews .review-grid { display: flex; width: max-content; height: 258px; margin: 40px 0 0 20px; gap: 8px; }
  .course-page .reviews .review-card { position: relative; flex: 0 0 320px; width: 320px; height: 258px; min-height: 0; padding: 24px; border-radius: 24px; scroll-snap-align: start; }
  .course-page .reviews .carousel-arrows, .course-page .reviews::before, .course-page .reviews::after { display: none; }
}

@media (max-width: 520px) {
  .course-page .pricing { height: auto; min-height: 931px; padding: 30px 0 32px; overflow: hidden; background: #fff; }
  .course-page .pricing > .section-inner { min-height: 869px; padding: 64px 16px 48px; border-radius: 24px; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px,transparent 1px), linear-gradient(90deg,rgba(112,94,255,.11) 1px,transparent 1px); background-size: 54px 54px; }
  .course-page .pricing .pricing-tabs { width: 194px; height: 56px; margin: 36px auto 32px; }
  .course-page .pricing .pricing-tabs .pill-tab { flex: 1 1 0; min-height: 48px; padding: 14px 8px; font-size: 14px; }
  .course-page .pricing .carousel-viewport, .course-page .reviews .carousel-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; touch-action: pan-x pan-y; }
  .course-page .pricing .carousel-viewport::-webkit-scrollbar, .course-page .reviews .carousel-viewport::-webkit-scrollbar { display: none; }
  .course-page .pricing .price-grid { display: flex; width: max-content; height: auto; margin: 0; gap: 4px; }
  .course-page .pricing .price-card { flex: 0 0 320px; width: 320px; min-height: 654px; height: auto; gap: 20px; padding: 24px; border-radius: 24px; scroll-snap-align: start; }
  .course-page .pricing .price-card__top { gap: 12px; }
  .course-page .pricing .price-card h3 { font-size: 18px; line-height: 1.2; }
  .course-page .pricing .price-card > .price-card__top > p, .course-page .pricing .price-card li { font-size: 14px; line-height: 1.4; }
  .course-page .pricing .carousel-arrows--pricing { display: none; }

  .course-page .lessons { height: auto; padding: 64px 0 32px; overflow: hidden; background: #fff; }
  .course-page .lessons-inner { width: 100%; min-height: 0; display: block; padding: 0 16px 48px; border-radius: 24px; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px,transparent 1px), linear-gradient(90deg,rgba(112,94,255,.11) 1px,transparent 1px); background-size: 54px 54px; }
  .course-page .lessons-heading { gap: 8px; }
  .course-page .lessons-heading h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.96px; }
  .course-page .lessons-heading p { max-width: 338px; font-size: 14px; line-height: 1.4; }
  .course-page .lessons-layout { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
  .course-page .lesson-list { width: 100%; height: auto; display: grid; grid-template-columns: 1fr; grid-template-rows: none; gap: 4px; margin: 0; }
  .course-page .lesson-list div, .course-page .lesson-list div:last-child { grid-column: auto; min-height: 0; padding: 24px; border-radius: 24px; gap: 8px; background: #fff; }
  .course-page .lesson-list strong { font-size: 16px; line-height: 1.2; }
  .course-page .lesson-list span { font-size: 14px; line-height: 1.4; }
  .course-page .lesson-device { width: 100%; height: 350px; min-height: 0; padding: 20px; border-radius: 24px; }
  .course-page .lesson-device > img { position: static; width: 298px; height: auto; max-width: 100%; transform: none; border: 0; border-radius: 16px; box-shadow: none; }
  .course-page .lesson-video-carousel .lesson-video { width: min(298px, calc(100% - 40px)); height: min(203px, calc(100% - 104px)); }
  .course-page .lessons-inner > .button { display: flex; width: fit-content; margin: 32px auto 0; }

  .course-page .reviews { height: auto; min-height: 496px; padding: 40px 0 32px; overflow: hidden; background: #fff; }
  .course-page .reviews > .section-inner { width: 100%; max-width: none; }
  .course-page .reviews .center-heading h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.96px; }
  .course-page .reviews .review-grid { display: flex; width: max-content; height: 222px; margin: 32px 0 0; padding: 0 16px; gap: 4px; }
  .course-page .reviews .review-card { position: relative; flex: 0 0 280px; width: 280px; height: 222px; min-height: 0; display: block; padding: 20px; border-radius: 24px; overflow: hidden; scroll-snap-align: center; }
  .course-page .reviews .review-card__author { display: block; }
  .course-page .reviews .review-card__author img { display: block; width: 64px; height: 64px; }
  .course-page .reviews .review-card__author strong { display: block; margin-top: 8px; font-size: 16px; line-height: 1.2; }
  .course-page .reviews .review-card p, .course-page .reviews .review-card .review-card__quote { margin-top: 6px; font-size: 13px; line-height: 1.35; }
  .course-page .reviews .review-card p:not(.review-card__quote) { display: none; }
  .course-page .reviews .review-card__tag { position: absolute; top: 16px; right: 16px; margin: 0; padding: 4px 10px; border: 1px solid var(--ink); border-radius: 16px; background: #c5bdff; color: var(--ink); font-size: 13px; line-height: 1.2; }
  .course-page .reviews .carousel-arrows, .course-page .reviews::before, .course-page .reviews::after { display: none; }
}

/* The original document card styles colour every link purple. Restore the
   semantic light label for a dark action button in the redesigned cards. */
.document-card__actions .button--dark { color: #fff; text-decoration: none; }
.document-card__actions .button--outline { color: var(--ink); text-decoration: none; }

/* “About” contains variable CMS content (teachers, reviews and articles), so
   it cannot use the fixed canvas heights of a Figma export. These rules keep
   the visual system, while every section grows only as far as its real HTML
   content requires. */
.about-page .about-motivation,
.about-page .about-team,
.about-page .about-trust,
.about-page .about-articles {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.about-page .about-motivation { padding: 120px 16px; }
.about-page .about-motivation .section-inner,
.about-page .about-team .section-inner,
.about-page .about-trust .section-inner,
.about-page .about-articles .articles-inner { width: min(976px, calc(100% - 32px)); max-width: 976px; }
.about-page .motivation-viewport,
.about-page .about-team .carousel-viewport,
.about-page .about-trust .carousel-viewport { overflow: visible; }
.about-page .motivation-grid { display: grid; width: 100%; height: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.about-page .motivation-grid article { min-height: 238px; height: auto; padding: 24px; border-radius: 24px; background: var(--lavender); }
.about-page .about-motivation .carousel-arrows,
.about-page .about-team .carousel-arrows,
.about-page .about-trust .carousel-arrows { margin-top: 32px; }

.about-page .about-life { width: min(1408px, calc(100% - 32px)); height: auto; min-height: 0; margin: 0 auto 120px; padding: 120px 16px; overflow: visible; border-radius: 40px; background: var(--lavender); }
.about-page .about-life .section-inner { width: min(976px, 100%); max-width: 976px; }
.about-page .life-grid { display: grid; width: 100%; height: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 56px auto 0; }
.about-page .life-grid img { width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / .86; border-radius: 24px; object-fit: cover; }

.about-page .about-team { padding: 120px 16px; background: #fff; }
.about-page .about-team .teacher-grid { display: grid; width: 100%; height: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.about-page .about-team .teacher-card { width: auto; min-height: 490px; height: auto; padding: 24px; border-radius: 28px; background: var(--lavender); }
.about-page .about-team .teacher-card__head { grid-template-columns: 82px minmax(0, 1fr); column-gap: 16px; }
.about-page .about-team .teacher-card__head .teacher-card__photo { width: 82px; height: 82px; margin: 0; align-self: start; border-radius: 50%; background: var(--violet-light); }
.about-page .about-team .teacher-card__photo img { border-radius: inherit; }
.about-page .about-team .teacher-card__badges { flex-wrap: wrap; gap: 6px; }
.about-page .about-team .teacher-card__badges span { padding: 3px 9px; font-size: 13px; }
.about-page .about-team .teacher-card h3 { margin: 6px 0 0; font-size: 21px; line-height: 1.08; }
.about-page .about-team .teacher-card ul { gap: 8px; margin-top: 24px; }
.about-page .about-team .teacher-card li { gap: 8px; font-size: 14px; line-height: 1.35; }
.about-page .about-team .teacher-card__quote { margin-top: auto; padding: 14px 16px; border-radius: 16px; background: #fff; color: var(--muted); font-size: 13px; line-height: 1.35; }

.about-page .about-trust { padding: 120px 16px; background: #fff; }
.about-page .about-trust .review-grid { display: grid; width: 100%; height: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.about-page .about-trust .review-card { min-height: 280px; height: auto; padding: 24px; border-radius: 24px; background: var(--lavender); }

.about-page .about-articles { padding: 120px 16px; background: #fff; }
.about-page .about-articles .articles-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 64px; }
.about-page .about-articles .articles-heading h2 { font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
.about-page .about-articles .article-list { height: auto; margin: 0; gap: 16px; }
.about-page .about-articles .article-card { min-height: 220px; height: auto; padding: 8px; border-radius: 28px; }
.about-page .about-articles .article-card > img { width: 200px; height: 204px; border-radius: 20px; object-fit: cover; }
.about-page .about-articles .article-card__content { padding: 20px 20px 20px 4px; }

@media (max-width: 820px) {
  .about-page .about-motivation,
  .about-page .about-team,
  .about-page .about-trust,
  .about-page .about-articles { padding: 80px 16px; }
  .about-page .about-life { width: calc(100% - 32px); margin-bottom: 80px; padding: 80px 16px; border-radius: 32px; }
  .about-page .motivation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .about-page .life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .about-page .about-team .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .about-page .about-trust .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .about-page .about-articles .articles-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 520px) {
  .about-page .about-motivation,
  .about-page .about-team,
  .about-page .about-trust,
  .about-page .about-articles { padding: 64px 16px; }
  .about-page .about-life { width: 100%; margin-bottom: 64px; padding: 64px 16px; border-radius: 24px; }
  .about-page .motivation-grid,
  .about-page .about-team .teacher-grid,
  .about-page .about-trust .review-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .about-page .motivation-grid article { min-height: 0; }
  .about-page .life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
  .about-page .life-grid img { border-radius: 16px; }
  .about-page .about-team .teacher-card { min-height: 0; padding: 20px; border-radius: 24px; }
  .about-page .about-team .teacher-card h3 { font-size: 20px; }
  .about-page .about-trust .review-card { min-height: 0; }
  .about-page .about-articles .articles-heading { text-align: left; }
  .about-page .about-articles .articles-heading h2 { font-size: 36px; letter-spacing: -.96px; }
  .about-page .about-articles .article-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); min-height: 150px; }
  .about-page .about-articles .article-card > img { width: 110px; height: 134px; border-radius: 16px; }
  .about-page .about-articles .article-card__content { min-width: 0; padding: 12px 10px 12px 4px; }
  .about-page .about-articles .article-card h3 { font-size: 16px; }
  .about-page .about-articles .article-card p { display: none; }
}

/* Public utility pages deliberately use the same palette, grid and chrome as
   the homepage. Keeping the content in real HTML makes legal texts and
   documents readable, searchable and usable on every device. */
.public-content-page { padding: 32px 16px 64px; background: #fff; }
.public-content-panel { width: min(976px, 100%); margin: 0 auto; padding: 72px; border-radius: 40px; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px); background-size: 109px 109px; color: var(--ink); }
.public-content-panel__eyebrow { margin: 0 0 12px; color: var(--violet); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.public-content-panel h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 4vw, 56px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.public-content-panel__lead { max-width: 640px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.45; }
.public-content-panel__empty { margin: 32px 0 0; color: var(--muted); }
.document-grid, .requisites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.document-card, .requisites-card { display: flex; min-height: 250px; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: 28px; background: #fff; }
.document-card__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--yellow); color: var(--ink); font-size: 23px; font-weight: 600; }
.document-card h2, .requisites-card h2 { margin: 24px 0 0; font-size: 22px; font-weight: 500; line-height: 1.18; }
.document-card p { margin: 12px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.document-card__actions, .document-view-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.document-card__actions .button { min-height: 48px; }
.requisites-card dl { width: 100%; margin: 24px 0 0; }
.requisites-card dl > div { display: grid; grid-template-columns: minmax(100px, .72fr) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(18,0,85,.1); }
.requisites-card dt { color: var(--muted); font-size: 14px; }
.requisites-card dd { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; }
.legal-panel { background-color: #fff; box-shadow: 0 0 0 1px rgba(112,94,255,.12); }
.legal-panel h1 { margin-bottom: 32px; }
.legal-panel h2 { margin: 36px 0 14px; font-size: 24px; font-weight: 500; line-height: 1.2; }
.legal-panel p, .legal-panel li { max-width: 800px; color: #3c336e; font-size: 16px; line-height: 1.55; }
.legal-panel ol, .legal-panel ul { display: grid; gap: 10px; margin: 16px 0; padding-left: 24px; }
.public-content-panel__back { display: inline-flex; margin-bottom: 32px; color: var(--violet); font-size: 16px; font-weight: 500; }
.document-frame { display: block; width: 100%; height: min(75vh, 900px); margin-top: 32px; border: 0; border-radius: 20px; background: #fff; }
.document-view-panel__actions { margin-top: 24px; }
.tariffs-page__lead { max-width: 520px; margin: 20px auto 0; color: var(--muted); text-align: center; font-size: 18px; line-height: 1.4; }
.tariffs-page .pricing .center-heading h1 { margin: 0; font-size: clamp(38px, 4vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.tariffs-page .price-card h2 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.1; }
.tariffs-page .price-card h3 { margin: 0; font-size: 16px; font-weight: 500; }
.tariffs-page .price-card__form { width: 100%; }
.tariffs-page .price-card__form .button { width: 100%; }
.tariffs-page .carousel-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth; }
.tariffs-page .carousel-viewport::-webkit-scrollbar { display: none; }
.tariffs-page .price-grid { display: flex; width: max-content; min-width: 100%; gap: 16px; }
.tariffs-page .price-card { flex: 0 0 320px; width: 320px; }
.tariffs-page .price-card[hidden] { display: none !important; }
.tariffs-page__empty { margin: 0; padding: 48px; color: var(--muted); }

@media (min-width: 821px) {
  .tariffs-page .pricing { height: auto; min-height: 1120px; padding: 64px 16px; }
  .tariffs-page .pricing > .section-inner { width: min(1408px, 100%); max-width: 1408px; height: auto; min-height: 992px; padding: 96px 32px 56px; border-radius: 40px; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px); background-size: 109px 109px; }
  .tariffs-page .pricing-tabs { margin: 32px auto 48px; }
  .tariffs-page .carousel-viewport { overflow: hidden; }
  .tariffs-page .price-grid { height: 720px; margin: 0 auto; }
  .tariffs-page .price-card { height: 720px; min-height: 0; }
  .tariffs-page .consultation { height: 607px; padding: 0 16px; }
  .tariffs-page .consultation-inner { width: min(1408px, 100%); height: 591px; min-height: 0; padding: 0; display: block; background-image: url('/static/main/homepage-v2/assets/v2/footerDecor.svg'); background-position: center; background-size: 1408px 591px; }
  .tariffs-page .consultation-copy { position: absolute; top: 120px; left: 216px; width: 458px; }
  .tariffs-page .consultation-copy h2 { margin: 0; font-size: 48px; line-height: 1; letter-spacing: -1.92px; }
  .tariffs-page #consultation-form { position: absolute; top: 0; left: 518px; width: 458px; gap: 8px; }
  .tariffs-page #consultation-form .consent { margin: 32px 0; }
  .tariffs-page .consultation-art { position: absolute; top: 270px; left: 175px; width: 394px; height: 397px; display: block; }
  .tariffs-page .consultation-art img { width: 394px; height: 397px; max-width: none; }
}

@media (max-width: 820px) {
  .public-content-page { padding: 16px 16px 48px; }
  .public-content-panel { padding: 48px 32px; border-radius: 28px; background-size: 80px 80px; }
  .tariffs-page .pricing { height: auto; min-height: 0; padding: 32px 16px 48px; overflow: hidden; background: #fff; }
  .tariffs-page .pricing > .section-inner { width: 100%; max-width: none; height: auto; min-height: 0; padding: 64px 24px 40px; border-radius: 32px; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px); background-size: 80px 80px; }
  .tariffs-page .pricing-tabs { margin: 32px auto; }
  .tariffs-page .carousel-viewport { width: calc(100% + 24px); }
  .tariffs-page .price-card { flex-basis: min(480px, calc(100vw - 80px)); width: min(480px, calc(100vw - 80px)); min-height: 660px; }
  .tariffs-page .consultation { height: auto; padding: 0 16px 64px; }
  .tariffs-page .consultation-inner { height: auto; min-height: 0; }
}

@media (max-width: 520px) {
  .public-content-panel { padding: 32px 24px; border-radius: 24px; background-size: 54px 54px; }
  .public-content-panel h1 { font-size: 36px; }
  .public-content-panel__lead { font-size: 16px; }
  .document-grid, .requisites-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .document-card, .requisites-card { min-height: 0; padding: 24px; border-radius: 20px; }
  .requisites-card dl > div { grid-template-columns: 1fr; gap: 4px; }
  .legal-panel { padding: 32px 24px; }
  .legal-panel h1 { margin-bottom: 24px; }
  .legal-panel h2 { margin-top: 30px; font-size: 21px; }
  .legal-panel p, .legal-panel li { font-size: 15px; }
  .document-frame { height: 60vh; margin-top: 24px; border-radius: 14px; }
  .tariffs-page .pricing { padding: 16px 0 40px; }
  .tariffs-page .pricing > .section-inner { padding: 56px 16px 32px; border-radius: 24px; background-size: 54px 54px; }
  .tariffs-page .pricing-tabs { margin: 28px auto; }
  .tariffs-page .carousel-viewport { width: calc(100% + 16px); }
  .tariffs-page .price-grid { gap: 8px; }
  .tariffs-page .price-card { flex-basis: min(320px, calc(100vw - 48px)); width: min(320px, calc(100vw - 48px)); min-height: 654px; }
  .tariffs-page .price-card h2 { font-size: 20px; }
}

/* Tariffs page: final responsive geometry from the supplied Figma frames.
   Keep the cards as real HTML and let the viewport scroll when more tariffs
   are returned by the database. */
@media (min-width: 821px) {
  .tariffs-page .tariffs-page__lead {
    max-width: 448px;
    line-height: 1.4;
  }

  .tariffs-page .pricing-tabs {
    margin-bottom: 54px;
  }
}

@media (min-width: 521px) and (max-width: 820px) {
  .tariffs-page .pricing {
    padding: 80px 20px;
  }

  .tariffs-page .pricing > .section-inner {
    width: 100%;
    max-width: none;
  }

  .tariffs-page .pricing .center-heading h1 {
    font-size: 48px;
    line-height: 1;
  }

  .tariffs-page .tariffs-page__lead {
    max-width: 448px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.2;
  }

  .tariffs-page .pricing-tabs {
    margin: 24px auto 59px;
  }

  .tariffs-page .pricing .carousel-viewport {
    width: 100%;
    margin: 0;
  }

  .tariffs-page .pricing .price-grid {
    height: 660px;
    margin: 0;
    gap: 16px;
  }

  .tariffs-page .pricing .price-card {
    flex-basis: 480px;
    width: 480px;
    height: 660px;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .tariffs-page .pricing {
    padding: 60px 16px 40px;
  }

  .tariffs-page .pricing > .section-inner {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .tariffs-page .pricing .center-heading h1 {
    font-size: 24px;
    line-height: 1;
  }

  .tariffs-page .tariffs-page__lead {
    width: 100%;
    max-width: 338px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.2;
  }

  .tariffs-page .pricing-tabs {
    width: 194px;
    height: 57px;
    margin: 24px auto 32px;
  }

  .tariffs-page .pricing .carousel-viewport {
    width: 100%;
    margin: 0;
  }

  .tariffs-page .pricing .price-grid {
    height: 653px;
    margin: 0;
    gap: 4px;
  }

  .tariffs-page .pricing .price-card {
    flex-basis: 320px;
    width: 320px;
    height: 653px;
    min-height: 0;
  }
}

/* The two transition pages are part of the cart flow, so they use the same
   real components and responsive grid rather than the previous shop theme. */
.checkout-verify-main, .payment-status-main { width: min(1440px, 100%); margin: 0 auto; padding: 32px 16px 64px; background: #fff; }
.checkout-verify-panel, .payment-status-panel { width: min(1120px, 100%); margin: 0 auto; padding: 64px; border-radius: 40px; background-color: var(--lavender); background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px); background-size: 109px 109px; }
.checkout-verify-panel__heading { max-width: 620px; text-align: center; margin: 0 auto 48px; }
.checkout-verify-panel__heading p, .payment-status-panel__eyebrow { margin: 0 0 12px; color: var(--violet); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.checkout-verify-panel__heading h1, .payment-status-panel h1 { margin: 0; font-size: clamp(38px, 4vw, 52px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.checkout-verify-panel__heading > span { display: block; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.45; }
.checkout-verify-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr); gap: 16px; align-items: start; }
.checkout-verify-summary, .checkout-verify-form-card { padding: 32px; border-radius: 28px; background: #fff; }
.checkout-verify-summary > p { margin: 0 0 24px; font-size: 22px; font-weight: 500; }
.checkout-verify-summary > div { display: grid; gap: 12px; }
.checkout-verify-summary article { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(18,0,85,.1); }
.checkout-verify-summary article > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: var(--yellow); font-size: 14px; font-weight: 700; }
.checkout-verify-summary strong, .checkout-verify-summary b { font-size: 15px; line-height: 1.3; }
.checkout-verify-summary small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.checkout-verify-summary footer { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 20px; border-top: 1px solid rgba(18,0,85,.16); }
.checkout-verify-summary footer span { color: var(--muted); font-size: 16px; }
.checkout-verify-summary footer strong { font-size: 24px; font-weight: 500; }
.checkout-verify-summary > a, .checkout-verify-change { display: inline-flex; margin-top: 24px; color: var(--violet); font-size: 14px; font-weight: 500; }
.checkout-verify-form-card { min-height: 330px; }
.checkout-verify-form-card__meta { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.checkout-verify-form-card form { display: grid; gap: 24px; margin-top: 32px; }
.checkout-verify-form-card form .button { width: 100%; }
.checkout-verify-code { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
.checkout-verify-code input { width: 100%; height: 58px; padding: 0 16px; border: 1px solid #ded9ff; border-radius: 14px; outline: 0; color: var(--ink); background: #fbfaff; font: inherit; font-size: 24px; letter-spacing: .18em; text-align: center; }
.checkout-verify-code input:focus { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(110,92,255,.13); }
.checkout-verify-code small { color: #b42318; font-size: 13px; }
.checkout-verify-debug { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(18,0,85,.1); }
.checkout-verify-debug p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.payment-status-panel { max-width: 760px; background-color: #fff; box-shadow: 0 0 0 1px rgba(112,94,255,.12); }
.payment-status-panel__message { margin: 28px 0; padding: 18px 20px; border-radius: 16px; font-size: 16px; line-height: 1.45; }
.payment-status-panel__message--success { background: #eafbd5; color: #386400; }
.payment-status-panel__message--pending { background: #fff5cf; color: #876000; }
.payment-status-panel__message--error { background: #ffe8e8; color: #9c2424; }
.payment-status-details { display: grid; gap: 0; margin: 32px 0; border: 1px solid rgba(18,0,85,.1); border-radius: 20px; overflow: hidden; }
.payment-status-details > div { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 18px 20px; background: #fff; border-top: 1px solid rgba(18,0,85,.1); }
.payment-status-details > div:first-child { border-top: 0; }
.payment-status-details dt { color: var(--muted); font-size: 14px; }.payment-status-details dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.payment-status-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 820px) {
  .checkout-verify-main, .payment-status-main { padding: 16px 16px 48px; }
  .checkout-verify-panel, .payment-status-panel { padding: 48px 32px; border-radius: 28px; background-size: 80px 80px; }
  .checkout-verify-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .checkout-verify-panel, .payment-status-panel { padding: 32px 24px; border-radius: 24px; background-size: 54px 54px; }
  .checkout-verify-panel__heading { margin-bottom: 32px; }
  .checkout-verify-summary, .checkout-verify-form-card { padding: 24px; border-radius: 20px; }
  .checkout-verify-summary article { grid-template-columns: 24px minmax(0, 1fr); }
  .checkout-verify-summary article > b { grid-column: 2; }
  .payment-status-details > div { grid-template-columns: 1fr; gap: 6px; }
  .payment-status-details dd { text-align: left; }
}

/* Responsive alignment from the supplied “О нас / Программа курса” Figma
   export. The carousel wrapper keeps the reference card rail scrollable on
   narrow screens instead of merely clipping the next cards. Course modules
   retain the original top-right status placement; their rail grows for CMS
   programs that contain more than the 22 cards of the design sample. */
.about-motivation .motivation-viewport { overflow: hidden; }
.about-motivation .motivation-grid { margin-top: 60px; }

@media (min-width: 821px) {
  .course-page .program {
    height: auto;
    min-height: 2689px;
    padding-bottom: 120px;
  }

  .course-page .module-list {
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(272px, auto);
  }

  .course-page .module-card {
    position: relative;
    display: block;
    padding: 20px;
  }

  .course-page .module-card .module-number { margin-bottom: 8px; }
  .course-page .module-status { position: absolute; top: 20px; right: 20px; }
}

@media (min-width: 521px) and (max-width: 820px) {
  .about-motivation .motivation-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
  }

  .about-motivation .motivation-viewport::-webkit-scrollbar { display: none; }
  .about-motivation .motivation-grid { margin-top: 40px; }
  .about-motivation .motivation-grid article { scroll-snap-align: start; }

  .course-page .program {
    height: auto;
    min-height: 4374px;
    padding-bottom: 80px;
  }

  .course-page .module-list {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(170px, auto);
  }

  .course-page .module-card {
    position: relative;
    display: block;
    padding: 16px;
  }

  .course-page .module-card .module-number { margin-bottom: 8px; font-size: 14px; }
  .course-page .module-status { position: absolute; top: 16px; right: 16px; }
}

@media (max-width: 520px) {
  .about-motivation .motivation-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
  }

  .about-motivation .motivation-viewport::-webkit-scrollbar { display: none; }
  .about-motivation .motivation-grid { margin-top: 32px; }
  .about-motivation .motivation-grid article { scroll-snap-align: start; }

  .course-page .program {
    height: auto;
    min-height: 4205px;
    padding-bottom: 64px;
  }

  .course-page .module-list {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(161px, auto);
  }

  .course-page .module-card {
    position: relative;
    display: block;
    padding: 16px;
  }

  .course-page .module-card .module-number { margin-bottom: 8px; font-size: 14px; }
  .course-page .module-status { position: absolute; top: 16px; right: 16px; }
}

/* Shared chrome for Django pages. Header and footer intentionally use the
   same Figma classes as the homepage; only the mobile navigation needs a
   native-details wrapper because these pages do not mount home.js. */
.common-mobile-menu { position: relative; display: none; }
.common-mobile-menu > summary { list-style: none; }
.common-mobile-menu > summary::-webkit-details-marker { display: none; }
.common-mobile-menu nav { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; display: grid; width: min(280px, calc(100vw - 32px)); gap: 4px; padding: 12px; border: 1px solid rgba(18, 0, 85, .1); border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(18, 0, 85, .16); }
.common-mobile-menu:not([open]) nav { display: none; }
.common-mobile-menu nav a { padding: 12px; border-radius: 12px; color: var(--ink); font-size: 14px; }
.common-mobile-menu nav a:hover { background: var(--lavender); }
.figma-public-page .inner-page { width: min(1440px, 100%); margin-inline: auto; }
.figma-public-page .course-page .pricing [data-pricing-card][hidden] { display: none; }
.footer .button--light { color: var(--ink); }

/* The media pane is an independent Figma component. Keeping this rule out of
   the homepage scope prevents a program-page video from inheriting stale
   absolute coordinates on tablet/mobile. */
.home-page .lesson-video-carousel,
.course-page .lesson-video-carousel { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; user-select: none; }
.home-page .lesson-video-carousel__stage,
.course-page .lesson-video-carousel__stage { position: absolute; inset: 0; display: grid; place-items: center; }
.home-page .lesson-device,
.course-page .lesson-device { position: relative; overflow: hidden; }
.home-page .lesson-video-carousel .lesson-video,
.course-page .lesson-video-carousel .lesson-video { position: absolute; top: 50%; left: 50%; display: block; margin: 0; padding: 0; border: 0; border-radius: 16px; background: #fff; object-fit: cover; opacity: 0; pointer-events: none; transform: translate(-50%, -50%); transition: opacity .28s ease; }
.home-page .lesson-video-carousel .lesson-video.is-active,
.course-page .lesson-video-carousel .lesson-video.is-active { z-index: 1; opacity: 1; pointer-events: auto; }
.home-page .lesson-video-carousel__dots,
.course-page .lesson-video-carousel__dots { position: absolute; z-index: 2; right: 0; bottom: 37px; left: 0; display: flex; justify-content: center; gap: 8px; }
.home-page .lesson-video-carousel__dot,
.course-page .lesson-video-carousel__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .48); box-shadow: 0 0 0 1px rgba(18, 0, 85, .14); cursor: pointer; }
.home-page .lesson-video-carousel__dot.is-active,
.course-page .lesson-video-carousel__dot.is-active { background: #fff; transform: scale(1.32); }

@media (min-width: 821px) {
  .figma-public-page .promo,
  .figma-public-page .footer { width: min(1440px, 100%); max-width: 1440px; margin-inline: auto; }
  .figma-public-page .promo { width: min(1408px, calc(100% - 32px)); }
  .course-page .lesson-video-carousel .lesson-video { width: 440px; height: 300px; }
  .course-page .pricing .carousel-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth; }
  .course-page .pricing .carousel-viewport::-webkit-scrollbar { display: none; }
  .course-page .pricing .price-grid { display: flex; width: max-content; min-width: 100%; gap: 8px; }
  .course-page .pricing .price-card { flex: 0 0 calc((976px - 16px) / 3); }
}

@media (min-width: 521px) and (max-width: 820px) {
  .common-mobile-menu { display: block; }
  .figma-public-page .header-actions > .button--icon:not(.button--menu) { display: none; }
  .course-page .lesson-video-carousel .lesson-video { width: min(440px, calc(100% - 40px)); height: min(300px, calc(100% - 100px)); }

  /* A closed menu must look like a menu. The old tablet export permanently
     rotated the first and third bars, so the control looked like an X. */
  .figma-public-page .button--menu .menu-icon { position: relative; height: 18px; }
  .figma-public-page .button--menu .menu-icon i {
    position: static;
    width: 24px;
    height: 1px;
    opacity: 1;
    transform: none;
  }
  .figma-public-page .button--menu .menu-icon i:first-child,
  .figma-public-page .button--menu .menu-icon i:last-child { transform: none; }
  .figma-public-page .button--menu .menu-icon i:nth-child(2) { opacity: 1; }
}

@media (max-width: 520px) {
  .common-mobile-menu { display: block; }
  .course-page .lesson-video-carousel .lesson-video { width: min(298px, calc(100% - 40px)); height: min(203px, calc(100% - 104px)); }
  .course-page .lesson-video-carousel__dots { bottom: 24px; }
}

/* Video carousel in the purple lesson window. The media frame preserves the
   same 440 × 300 px desktop geometry as the supplied lesson screenshot. */
.home-page .lesson-video-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.home-page .lesson-video-carousel__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.home-page .lesson-video {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.home-page .lesson-video.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.home-page .lesson-video-carousel__dots {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-page .lesson-video-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 0 0 1px rgba(18, 0, 85, .14);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}

.home-page .lesson-video-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.32);
}

.home-page .lesson-video-carousel__dot:focus-visible {
  outline: 3px solid rgba(243, 255, 64, .9);
  outline-offset: 3px;
}

/* The carousel must be anchored to the purple media window itself. Some
   mobile layouts intentionally change the window from a positioned desktop
   block to normal document flow, so keep the containing block explicit and
   centre every video from one shared rule. */
.home-page .lesson-device {
  position: relative;
  overflow: hidden;
}

.home-page .lesson-video-carousel .lesson-video {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (min-width: 821px) {
  .home-page .lesson-video {
    top: 95px;
    left: 18px;
    width: 440px;
    height: 300px;
  }

  .home-page .lesson-video-carousel__dots {
    bottom: 37px;
  }
}

@media (min-width: 521px) and (max-width: 820px) {
  .home-page .lesson-video {
    top: 95px;
    left: 50%;
    width: 440px;
    height: 300px;
    transform: translateX(-50%);
  }

  .home-page .lesson-video-carousel__dots {
    bottom: 38px;
  }
}

@media (max-width: 520px) {
  .home-page .lesson-video {
    top: 30px;
    left: 50%;
    width: min(298px, calc(100% - 40px));
    height: min(203px, calc(100% - 104px));
    transform: translateX(-50%);
  }

  .home-page .lesson-video-carousel__dots {
    bottom: 24px;
  }
}

/* Tariffs stay in one horizontal rail on desktop. The rail is clipped by its
   viewport: extra cards are reached with the arrow controls, never by a
   second row below the block. */
@media (min-width: 821px) {
  .home-page .pricing {
    height: auto;
    min-height: 1313px;
    padding: 0 16px 64px;
    overflow: hidden;
    background: #fff;
  }

  .home-page .pricing > .section-inner {
    width: min(1408px, 100%);
    max-width: 1408px;
    height: auto;
    min-height: 1249px;
    padding: 120px 32px 56px;
    border-radius: 40px;
    background-color: var(--lavender);
    background-image: linear-gradient(rgba(112, 94, 255, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 94, 255, .11) 1px, transparent 1px);
    background-position: 0 0;
    background-size: 109px 109px;
  }

  .home-page .reviews .carousel-viewport,
  .home-page .teachers .carousel-viewport,
  .home-page .pricing .carousel-viewport {
    width: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
  }

  .home-page .pricing .price-grid {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    height: 846px;
    margin: 0 auto;
    gap: 16px;
    align-items: stretch;
  }

  .home-page .pricing .price-card {
    flex: 0 0 320px;
    width: 320px;
    height: 846px;
    min-height: 0;
    scroll-snap-align: start;
  }

  .home-page .pricing .price-card[hidden] {
    display: none !important;
  }

  .home-page .pricing .carousel-arrows--pricing {
    margin: 24px 0 0;
  }

  .home-page .carousel-arrows button:disabled {
    cursor: default;
    opacity: .32;
  }
}

/* The homepage filter uses the semantic hidden attribute. Existing card
   display rules are intentionally strong, so retain the attribute's meaning
   across every responsive breakpoint. */
.home-page .price-card[hidden] {
  display: none !important;
}

/* The achievements view is assembled from positioned pieces rather than a
   single frame image, so scale its 1008px canvas to the mobile art width. */
@media (max-width: 359px) {
  .home-page .school-art:not(.school-art--frame) .school-art-canvas {
    transform: scale(.31);
  }
}

@media (min-width: 360px) and (max-width: 399px) {
  .home-page .school-art:not(.school-art--frame) .school-art-canvas {
    transform: scale(.35);
  }
}

@media (min-width: 400px) and (max-width: 459px) {
  .home-page .school-art:not(.school-art--frame) .school-art-canvas {
    transform: scale(.38);
  }
}

@media (min-width: 460px) and (max-width: 520px) {
  .home-page .school-art:not(.school-art--frame) .school-art-canvas {
    transform: scale(.44);
  }
}

/* Mobile school frames: show each supplied 1008x484 composition completely
   and keep the stage rounded on every side. */
@media (max-width: 520px) {
  .home-page .school-stage {
    height: 304px;
    overflow: hidden;
    border-radius: 24px;
  }

  .home-page .school-art {
    flex: 0 0 176px;
    height: 176px;
    border-radius: 16px 16px 0 0;
  }

  .home-page .school-stage__caption {
    min-height: 112px;
    border-radius: 0 0 16px 16px;
  }

  .home-page .school-art--frame .school-art-canvas {
    width: 100%;
    height: 100%;
    transform: none;
  }

  .home-page .school-art--frame .school-frame-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

/* Effective tariff geometry at EOF: older shared breakpoints above must not
   restore the legacy full-width cards after these responsive values. */
@media (min-width: 821px) {
  /* The desktop Figma frame gives the lead two lines; tablet and mobile
     intentionally use the narrower 448px/338px text boxes below. */
  .tariffs-page .tariffs-page__lead { max-width: 896px; line-height: 1.4; }
  .tariffs-page .pricing-tabs { margin-bottom: 54px; }
}

@media (min-width: 521px) and (max-width: 820px) {
  .tariffs-page .pricing { padding: 80px 20px; }
  .tariffs-page .pricing > .section-inner { width: 100%; max-width: none; }
  .tariffs-page .pricing .center-heading h1 { font-size: 48px; line-height: 1; }
  .tariffs-page .tariffs-page__lead {
    max-width: 448px; margin-top: 24px; font-size: 16px; line-height: 1.2;
  }
  .tariffs-page .pricing-tabs { margin: 24px auto 59px; }
  .tariffs-page .pricing .carousel-viewport { width: 100%; margin: 0; }
  .tariffs-page .pricing .price-grid { height: 660px; margin: 0; gap: 16px; }
  .tariffs-page .pricing .price-card {
    flex-basis: 480px; width: 480px; height: 660px; min-height: 0;
  }
}

@media (max-width: 520px) {
  .tariffs-page .pricing { padding: 60px 16px 40px; }
  .tariffs-page .pricing > .section-inner {
    width: 100%; max-width: none; padding: 0;
  }
  .tariffs-page .pricing .center-heading h1 { font-size: 24px; line-height: 1; }
  .tariffs-page .tariffs-page__lead {
    width: 100%; max-width: 338px; margin-top: 24px;
    font-size: 14px; line-height: 1.2;
  }
  .tariffs-page .pricing-tabs {
    width: 194px; height: 57px; margin: 24px auto 32px;
  }
  .tariffs-page .pricing .carousel-viewport { width: 100%; margin: 0; }
  .tariffs-page .pricing .price-grid { height: 653px; margin: 0; gap: 4px; }
  .tariffs-page .pricing .price-card {
    flex-basis: 320px; width: 320px; height: 653px; min-height: 0;
  }
}

/* Global visual corrections, August 2026.
   These deliberately sit at EOF: the original Figma export contains several
   overlapping tablet canvases with fixed 640px geometry. */
.home-page .teacher-card__badges span {
  box-shadow: 0 3px 0 rgba(18, 0, 85, .72);
}

.home-page .bet-reward__note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

/* Three whole teacher cards fit into the 1440px desktop canvas. */
@media (min-width: 1200px) {
  .home-page .teachers {
    width: min(1440px, 100vw) !important;
    max-width: 1440px !important;
    margin-inline: auto !important;
    padding-inline: 8px !important;
  }

  .home-page .teachers > .section-inner,
  .home-page .teachers .carousel-viewport {
    width: 100% !important;
    max-width: none !important;
  }

  .home-page .teacher-grid {
    width: max-content !important;
    height: 590px !important;
    margin-inline: auto !important;
    gap: 16px !important;
  }

  .home-page .teacher-card {
    flex: 0 0 464px !important;
    flex-basis: 464px !important;
    width: 464px !important;
    height: 590px !important;
  }
}

/* A tablet is neither the 1440px desktop nor the 640px phone mock-up.
   Keep every section fluid, let editable text determine the height and keep
   all controls inside the visual frame. */
@media (min-width: 521px) and (max-width: 820px) {
  .home-page,
  .home-page .section,
  .home-page .section-inner {
    max-width: 100% !important;
  }

  .home-page .teachers {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 72px 24px !important;
    overflow: visible !important;
  }

  .home-page .teachers > .section-inner,
  .home-page .teachers .carousel-viewport {
    width: 100% !important;
    max-width: none !important;
  }

  .home-page .teachers .carousel-viewport {
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  .home-page .teachers .carousel-viewport::-webkit-scrollbar { display: none; }

  .home-page .teacher-grid {
    display: flex !important;
    width: max-content !important;
    height: auto !important;
    margin: 40px 0 0 !important;
    gap: 16px !important;
  }

  .home-page .teacher-card {
    flex: 0 0 min(460px, calc(100vw - 80px)) !important;
    width: min(460px, calc(100vw - 80px)) !important;
    height: auto !important;
    min-height: 560px !important;
    scroll-snap-align: start;
  }

  .home-page .teacher-card__badges {
    overflow: visible !important;
    flex-wrap: wrap;
  }

  .home-page .lessons {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 24px 72px !important;
    overflow: visible !important;
  }

  .home-page .lessons-inner {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 64px 32px !important;
    border-radius: 32px !important;
  }

  .home-page .lessons-heading,
  .home-page .lessons-layout {
    width: 100% !important;
    position: static !important;
  }

  .home-page .lessons-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 40px !important;
  }

  .home-page .lesson-list {
    width: 100% !important;
    height: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(140px, auto)) !important;
    gap: 8px !important;
  }

  .home-page .lesson-list div {
    height: auto !important;
    min-height: 140px !important;
    padding: 20px !important;
    overflow: visible !important;
  }
  .home-page .lesson-list div:last-child { grid-column: 1 / -1 !important; }

  .home-page .lesson-device {
    width: 100% !important;
    height: min(460px, 60vw) !important;
    min-height: 380px !important;
  }

  .home-page .lesson-video,
  .home-page .lesson-video-carousel .lesson-video {
    top: 50% !important;
    left: 50% !important;
    width: min(440px, calc(100% - 48px)) !important;
    height: min(300px, calc(100% - 100px)) !important;
    object-fit: contain !important;
    transform: translate(-50%, -50%) !important;
  }

  .home-page .lessons-inner > .button {
    position: static !important;
    margin: 40px auto 0 !important;
    transform: none !important;
  }

  .home-page .consultation {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 24px 72px !important;
    overflow: visible !important;
  }

  .home-page .consultation-inner {
    width: 100% !important;
    height: auto !important;
    min-height: 620px !important;
    padding: 64px 32px 250px !important;
    border-radius: 32px !important;
    overflow: hidden !important;
  }

  .home-page .consultation-copy {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    text-align: left !important;
    z-index: 2;
  }

  .home-page .consultation-copy h2 {
    margin: 0 !important;
    font-size: clamp(38px, 6vw, 48px) !important;
  }

  .home-page #consultation-form {
    position: static !important;
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .home-page #consultation-form input:not([type="checkbox"]) { width: 100% !important; }
  .home-page #consultation-form .consent { width: 100% !important; margin: 20px 0 !important; }
  .home-page #consultation-form .consent span { min-width: 0; overflow-wrap: anywhere; }

  .home-page .consultation-art {
    top: auto !important;
    right: auto !important;
    bottom: -24px !important;
    left: 20px !important;
    width: 310px !important;
    height: auto !important;
  }
  .home-page .consultation-art img { width: 310px !important; height: auto !important; }

  .home-page .school,
  .home-page .bet,
  .home-page .referral,
  .home-page .trial,
  .home-page .courses,
  .home-page .pricing,
  .home-page .articles,
  .home-page .faq {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

/* Medium tablet layout: the desktop export is wider than an iPad/compact
   landscape viewport. Keep the homepage content inside the viewport and let
   editable copy determine the height of the cards and consultation form. */
@media (min-width: 821px) and (max-width: 1199px) {
  .home-page .lessons-inner {
    height: auto !important;
    min-height: 0 !important;
    padding: 80px 20px 64px !important;
  }

  .home-page .lesson-list {
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: auto auto auto !important;
    align-items: stretch;
  }

  .home-page .lesson-list div {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
  }

  .home-page .lessons {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .home-page .consultation {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 16px 24px !important;
    overflow: visible !important;
  }

  .home-page .consultation-inner {
    width: 100% !important;
    max-width: none !important;
    height: 626px !important;
    min-height: 0 !important;
    padding: 80px 48px 40px !important;
    overflow: hidden;
  }

  .home-page .consultation-copy {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    width: 100% !important;
    align-items: start;
  }

  .home-page .consultation-copy h2 {
    margin: 0 !important;
    font-size: clamp(40px, 4vw, 48px) !important;
    line-height: 1 !important;
  }

  .home-page #consultation-form {
    position: static !important;
    grid-column: 2;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    gap: 8px;
    text-align: left;
  }

  .home-page #consultation-form input:not([type="checkbox"]) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    height: 51px;
  }

  .home-page #consultation-form .consent {
    width: 100%;
    min-width: 0;
    margin: 24px 0;
  }

  .home-page #consultation-form .consent span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .home-page .consultation-art {
    top: auto !important;
    right: auto !important;
    bottom: -20px !important;
    left: 24px !important;
    z-index: 1;
    width: 360px !important;
    height: 363px !important;
  }

  .home-page .consultation-art img {
    width: 360px !important;
    height: 363px !important;
    max-width: none !important;
  }
}


/* Keep the final article card and its CTA fully visible on mobile. */
@media (max-width: 820px) {
  .home-page .articles {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 80px !important;
    overflow: visible !important;
  }

  .home-page .articles .article-list {
    height: auto !important;
  }
}

/* Final desktop teacher-card sizing. Keep the original horizontal rail and
   give each card more vertical room for its editable biography and quote. */
@media (min-width: 1200px) {
  .home-page .teachers {
    width: min(1408px, calc(100vw - 32px)) !important;
    max-width: 1408px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .home-page .teachers > .section-inner {
    width: 100% !important;
    max-width: 1408px !important;
  }

      .home-page .teacher-grid {
        gap: 8px !important;
        height: 540px !important;
      }
  .home-page .teacher-card {
    flex-basis: 464px !important;
    width: 512px !important;
    height: 540px !important;
  }
  .home-page .teacher-card__badges { overflow: visible !important; }
}

/* The supplied tablet captures include widths around 834px. The old export
   switched to its desktop canvas at 821px, which pushed the header controls
   and decorative rails outside the viewport. Keep the desktop composition,
   but make its chrome fit and clip only intentional carousel artwork. */
@media (min-width: 821px) and (max-width: 900px) {
  body:has(#app),
  body.figma-public-page {
    overflow-x: hidden;
  }

  body:has(#app) .header-inner,
  body.figma-public-page .header-inner {
    width: 100%;
    gap: 12px;
  }

  body:has(#app) .header-actions .button--soft,
  body.figma-public-page .header-actions .button--soft {
    display: none;
  }

  body:has(#app) .header-actions .button:not(.button--icon),
  body.figma-public-page .header-actions .button:not(.button--icon) {
    min-height: 44px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 14px;
  }

  body:has(#app) .school-art-canvas,
  body:has(#app) .reviews .carousel-viewport,
  body:has(#app) .teachers .carousel-viewport,
  body.figma-public-page .carousel-viewport {
    overflow: hidden;
  }
}

/* Final mobile tariffs pass. Cards and the consultation form contain
   editable CMS text, so the standalone page must grow with its content
   instead of clipping it inside the exported fixed-height frame. */
@media (max-width: 520px) {
  .tariffs-page .pricing {
    height: auto !important;
    min-height: 0 !important;
    padding: 64px 0 40px !important;
    overflow: visible !important;
  }

  .tariffs-page .pricing > .section-inner {
    height: auto !important;
    min-height: 0 !important;
  }

  .tariffs-page .pricing .carousel-viewport {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }

  .tariffs-page .pricing .carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .tariffs-page .pricing .price-grid {
    height: auto !important;
    min-height: 0 !important;
    align-items: stretch;
  }

  .tariffs-page .pricing .price-card {
    height: auto !important;
    min-height: 654px !important;
  }

  .tariffs-page .pricing .price-card__top {
    min-height: 0;
  }

  .tariffs-page .pricing .price-card__bottom {
    margin-top: auto;
  }

  .tariffs-page .consultation {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 16px 48px !important;
  }

  .tariffs-page .consultation-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 48px 20px 40px !important;
    border-radius: 24px !important;
    background-color: var(--lavender) !important;
    background-image: linear-gradient(rgba(112,94,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.1) 1px, transparent 1px) !important;
    background-size: 54px 54px !important;
  }

  .tariffs-page .consultation-copy {
    position: static !important;
    width: 100% !important;
    text-align: center !important;
  }

  .tariffs-page .consultation-copy h2 {
    margin: 0 0 28px !important;
    font-size: 32px !important;
    line-height: 1.05 !important;
    letter-spacing: -1px !important;
  }

  .tariffs-page #consultation-form {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    max-width: 458px !important;
    margin: 0 auto !important;
  }

  .tariffs-page .consultation-art {
    position: static !important;
    order: 2;
    width: min(280px, 100%) !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .tariffs-page .consultation-art img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
  }
}

/* Do not clip CMS FAQ questions or answers at compact widths. The original
   export used a fixed-height frame, while the actual text is editable. */
@media (max-width: 1199px) {
  .home-page .faq {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .home-page .faq-inner,
  .home-page .faq-list {
    height: auto !important;
    min-height: 0 !important;
  }

  .home-page .faq-inner {
    padding-top: 0 !important;
  }

  .home-page .faq summary {
    min-height: 0 !important;
    align-items: flex-start;
    white-space: normal;
  }
}

/* iPad Pro/tablet rail. The exported desktop frame is 1408px wide, so it
   must become fluid before the viewport reaches the phone breakpoints. */
@media (min-width: 821px) and (max-width: 1199px) {
  body.home-page { overflow-x: hidden; }

  .home-page .bet-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    width: min(976px, calc(100% - 32px));
  }

  .home-page .bet-copy {
    position: static;
    width: auto;
    padding-top: 96px;
  }

  .home-page .slot-art {
    position: static;
    width: 100%;
    max-width: 480px;
    height: 592px;
    margin: 0 auto;
  }

  .home-page .slot-art img {
    width: 100%;
    height: 100%;
  }

  .home-page .referral-copy {
    width: 48%;
    margin-left: 52%;
    padding: 96px 24px 0 0;
  }

  .home-page .referral-art img:nth-child(4) {
    left: 24px;
    width: min(500px, 52vw);
    height: auto;
  }

  .home-page .reviews,
  .home-page .teachers {
    width: 100%;
    margin-inline: 0;
  }

  .home-page .reviews .carousel-viewport,
  .home-page .teachers .carousel-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
  }

  .home-page .reviews .carousel-viewport::-webkit-scrollbar,
  .home-page .teachers .carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .home-page .review-grid,
  .home-page .teacher-grid {
    margin-left: 20px;
  }

  .home-page .review-card,
  .home-page .teacher-card {
    flex-basis: min(420px, calc(100vw - 64px));
    width: min(420px, calc(100vw - 64px));
    scroll-snap-align: start;
  }

  .home-page .reviews::before,
  .home-page .reviews::after,
  .home-page .teachers::before,
  .home-page .teachers::after {
    display: none !important;
  }

  .home-page .lessons {
    height: auto;
    padding: 0 16px 64px;
  }

  .home-page .lessons-inner {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    padding: 80px 20px 64px;
    border-radius: 40px;
    background-size: 80px 80px;
  }

  .home-page .lessons-heading,
  .home-page .lessons-layout {
    position: static;
  }

  .home-page .lessons-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 48px;
  }

  .home-page .lesson-list {
    width: 100%;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 134px 156px 156px;
  }

  .home-page .lesson-device {
    width: 100%;
    height: 498px;
  }

  .home-page .lesson-video-carousel .lesson-video {
    width: min(440px, calc(100% - 40px));
    height: min(300px, calc(100% - 100px));
  }

  .home-page .lessons-inner > .button {
    position: static;
    margin: 48px auto 0;
    transform: none;
  }

  .home-page .pricing {
    height: auto;
    min-height: 0;
    padding: 80px 16px 64px;
  }

  .home-page .pricing > .section-inner {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    padding: 80px 20px 48px;
    border-radius: 40px;
    background-size: 80px 80px;
  }

  .home-page .pricing .carousel-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
  }

  .home-page .pricing .carousel-viewport::-webkit-scrollbar { display: none; }

  .home-page .price-grid {
    width: max-content;
    min-width: 0;
    height: auto;
    margin: 0;
    gap: 16px;
  }

  .home-page .price-card {
    flex-basis: min(480px, calc(100vw - 96px));
    width: min(480px, calc(100vw - 96px));
    height: auto;
    min-height: 660px;
    scroll-snap-align: start;
  }

  .home-page .consultation {
    height: auto;
    padding: 0 16px 64px;
  }

  .home-page .consultation-inner {
    width: min(976px, 100%);
    height: auto;
    min-height: 591px;
    padding: 80px 40px;
    background-size: 80px 80px;
  }
}

/* Mobile tariff cards remain a swipe rail instead of three compressed cards. */
@media (max-width: 520px) {
  .home-page .pricing .carousel-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
  }

  .home-page .pricing .carousel-viewport::-webkit-scrollbar { display: none; }

  .home-page .price-grid {
    width: max-content;
    min-width: 0;
    margin: 0;
    gap: 4px;
  }

  .home-page .price-card {
    flex-basis: min(320px, calc(100vw - 48px));
    width: min(320px, calc(100vw - 48px));
    min-height: 654px;
    height: auto;
    scroll-snap-align: center;
  }

  .home-page .reviews::before,
  .home-page .reviews::after,
  .home-page .teachers::before,
  .home-page .teachers::after {
    display: none !important;
  }
}

/* Responsive rail start: the first teacher/review must remain reachable and
   visible in the initial frame. The previous desktop export used a negative
   canvas offset, which hid the first card behind the viewport edge. */
@media (min-width: 821px) {
  .home-page .review-grid,
  .home-page .teacher-grid,
  .course-page .review-grid {
    margin-left: 0 !important;
  }
}

/* The edge fade was masking the first and last cards even after the rail was
   corrected. Sliders remain swipeable, but their content is shown at full
   opacity at both edges. */
.home-page .reviews::before,
.home-page .reviews::after,
.home-page .teachers::before,
.home-page .teachers::after,
.course-page .reviews::before,
.course-page .reviews::after {
  display: none !important;
}

/* Give the desktop teacher rail enough room for the three visible cards.
   The previous 1408px frame clipped the right card and its experience badge. */
.home-page .teacher-card__badges { overflow: visible; }

@media (min-width: 1200px) {
  .home-page .teachers {
    width: min(1600px, calc(100vw - 32px));
    max-width: none;
  }

  .home-page .teachers > .section-inner {
    width: 100%;
    max-width: none;
  }

  .home-page .teacher-grid { gap: 16px; }
  .home-page .teacher-card {
    flex-basis: 520px;
    width: 520px;
  }
}

/* Tariff cards must read as separate blocks on the standalone tariffs page.
   Important keeps the contrast intact when older shared responsive rules
   later in this legacy export declare a generic card surface. */
.tariffs-page .pricing .price-card:not(.price-card--featured) {
  background: var(--lavender) !important;
  box-shadow: inset 0 0 0 1px rgba(112, 94, 255, .08);
}

.tariffs-page .pricing .price-card--featured {
  background: var(--violet) !important;
  box-shadow: 0 12px 28px rgba(112, 94, 255, .2);
}

/* Last-pass tariff geometry. This block intentionally comes after the
   legacy export overrides above, so responsive values cannot be replaced by
   the older homepage canvas rules. */
@media (min-width: 821px) {
  .tariffs-page .tariffs-page__lead {
    max-width: 448px;
    line-height: 1.4;
  }

  .tariffs-page .pricing-tabs {
    margin-bottom: 54px;
  }
}

@media (min-width: 521px) and (max-width: 820px) {
  .tariffs-page .pricing {
    padding: 80px 20px;
  }

  .tariffs-page .pricing > .section-inner {
    width: 100%;
    max-width: none;
  }

  .tariffs-page .pricing .center-heading h1 {
    font-size: 48px;
    line-height: 1;
  }

  .tariffs-page .tariffs-page__lead {
    max-width: 448px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.2;
  }

  .tariffs-page .pricing-tabs {
    margin: 24px auto 59px;
  }

  .tariffs-page .pricing .carousel-viewport {
    width: 100%;
    margin: 0;
  }

  .tariffs-page .pricing .price-grid {
    height: 660px;
    margin: 0;
    gap: 16px;
  }

  .tariffs-page .pricing .price-card {
    flex-basis: 480px;
    width: 480px;
    height: 660px;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .tariffs-page .pricing {
    padding: 60px 16px 40px;
  }

  .tariffs-page .pricing > .section-inner {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .tariffs-page .pricing .center-heading h1 {
    font-size: 24px;
    line-height: 1;
  }

  .tariffs-page .tariffs-page__lead {
    width: 100%;
    max-width: 338px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.2;
  }

  .tariffs-page .pricing-tabs {
    width: 194px;
    height: 57px;
    margin: 24px auto 32px;
  }

  .tariffs-page .pricing .carousel-viewport {
    width: 100%;
    margin: 0;
  }

  .tariffs-page .pricing .price-grid {
    height: 653px;
    margin: 0;
    gap: 4px;
  }

  .tariffs-page .pricing .price-card {
    flex-basis: 320px;
    width: 320px;
    height: 653px;
    min-height: 0;
  }
}

/* Final compact-layout precedence for the About page carousels. */
@media (max-width: 820px) {
  .figma-export-about .about-team .carousel-viewport,
  .figma-export-about .about-trust .carousel-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
  }

  .figma-export-about .about-team .carousel-viewport::-webkit-scrollbar,
  .figma-export-about .about-trust .carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .figma-export-about .about-team .teacher-grid,
  .figma-export-about .about-trust .review-grid {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    height: auto;
    margin-top: 40px;
    gap: 8px;
  }

  .figma-export-about .about-team .teacher-card {
    flex: 0 0 320px;
    width: 320px;
    min-height: 490px;
    height: auto;
    scroll-snap-align: center;
  }

  .figma-export-about .about-trust .review-card {
    flex: 0 0 320px;
    width: 320px;
    min-height: 280px;
    height: 280px;
    scroll-snap-align: center;
  }

  .figma-export-about .about-team .carousel-arrows,
  .figma-export-about .about-trust .carousel-arrows {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .figma-export-about .about-team .teacher-grid,
  .figma-export-about .about-trust .review-grid {
    margin-top: 32px;
  }

  .figma-export-about .about-team .teacher-card {
    flex-basis: 280px;
    width: 280px;
    min-height: 0;
  }

  .figma-export-about .about-trust .review-card {
    flex-basis: 280px;
    width: 280px;
    min-height: 0;
    height: 222px;
  }
}

/* Keep the cart button stable on tablet and desktop as well: shared button padding
   must not shrink the 24px icon inside the fixed 51px control. */
.header-actions .button--icon,
.footer-actions .button--icon {
  flex: 0 0 51px;
  width: 51px;
  min-width: 51px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.header-actions .button--icon img,
.footer-actions .button--icon img {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Wide desktop layout: center the benefits heading and show all visible
   carousel cards without edge fades once the viewport has room for them. */
@media (min-width: 821px) {
  .home-page .benefits .split-heading {
    text-align: center;
  }

  /* Keep the carousel edge fades attached to the fixed card rail rather than
     to the viewport, so wide screens receive the same visible fade. */
  .home-page .reviews::before,
  .home-page .teachers::before {
    left: max(0px, calc(50% - 776px));
  }
  .home-page .reviews::after,
  .home-page .teachers::after {
    right: max(0px, calc(50% - 776px));
  }
}

/* Temporarily show the outer review and teacher cards at full opacity. */
.home-page .reviews::before,
.home-page .reviews::after,
.home-page .teachers::before,
.home-page .teachers::after {
  display: none !important;
}

/* The desktop consultation block uses the same grid treatment as the tablet
   composition and meets the blue footer without a detached strip. */
@media (min-width: 821px) {
  .home-page .consultation,
  .home-page .consultation-inner {
    height: 607px;
  }
  .home-page .consultation-inner {
    background-color: var(--lavender);
    background-image: linear-gradient(rgba(112,94,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.1) 1px, transparent 1px);
    background-position: 0 0;
    background-size: 109px 59px;
  }
}

/* Tablet/mobile final alignment: sliders remain swipe-only, while the
   tablet keeps the same grid, illustration scale, and compact CTA widths as
   the reference composition. */
@media (max-width: 820px) {
  .carousel-arrows {
    display: none !important;
  }
}

@media (min-width: 521px) and (max-width: 820px) {
  .home-page .trial-art img.trial-art__main {
    top: 394px;
    right: auto;
    left: 50%;
    width: 680px;
    height: auto;
    max-width: none;
    transform: translateX(-50%);
  }

  .home-page .pricing > .section-inner {
    background-color: var(--lavender);
    background-image: linear-gradient(rgba(112,94,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(112,94,255,.11) 1px, transparent 1px);
    background-position: 0 0;
    background-size: 80px 80px;
  }

  .home-page #consultation-form > .button {
    width: 139px;
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .footer-left > .button {
    width: 188px;
    flex: 0 0 auto;
  }
}

/* Mobile art and section spacing: keep the illustrations inside their full
   compositions instead of letting the fixed section heights crop them. */
@media (max-width: 520px) {
  .home-page .bet {
    height: 681px;
  }

  .home-page .bet-inner {
    height: 617px;
  }

  .home-page .referral,
  .home-page .referral-inner {
    height: 620px;
  }

  .home-page .referral-art img:nth-child(4) {
    top: 320px;
  }

  .home-page .lessons-inner {
    padding-top: 28px;
  }

  .home-page .trial-art img.trial-art__main {
    top: 345px;
    width: 330px;
  }

  /* Match the compact mobile composition: the target meets the footer edge
     instead of creating an oversized empty consultation section. */
  .home-page .consultation {
    height: 779px;
    padding-bottom: 16px;
  }

  .home-page .consultation-inner {
    width: 100%;
    max-width: none;
    height: 763px;
    border-radius: 24px;
  }

  .home-page .trial-art img.trial-art__main {
    top: 320px;
    width: 100%;
    height: auto;
  }

  /* The replacement artwork has a tighter transparent crop, so give the
     controls their own space and keep the complete cat-and-laptop image below. */
  .home-page .trial,
  .home-page .trial-inner {
    height: min(680px, calc(344px + 65.8vw));
  }

  /* The target illustration is intentionally wider than the mobile form
     column, as in the reference frame. Give the consultation enough vertical
     room so the artwork is not cut off before the footer begins. */
  .home-page .consultation {
    height: 956px;
    padding-right: 0;
    padding-left: 0;
  }

  .home-page .consultation-inner {
    height: 940px;
  }

  .home-page .consultation-art img {
    width: min(330px, 100%);
    max-width: 100%;
  }

  /* Let the target sit slightly lower and tuck behind the footer, matching
     the mobile composition where roughly its lower tenth is covered. */
  .home-page .consultation-inner {
    overflow: visible;
  }

  .home-page .consultation-art {
    transform: translateY(34px);
  }

  .home-page ~ .footer {
    position: relative;
    z-index: 2;
    margin-top: -31px;
  }

  .home-page .consultation-copy,
  .home-page #consultation-form {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .home-page #consultation-form input:not([type="checkbox"]) {
    width: 100%;
    max-width: 100%;
  }

  .home-page #consultation-form > .button {
    width: 139px;
    max-width: 139px;
    align-self: center;
  }

  .home-page #consultation-form .consent span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .footer .social {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    padding: 0;
  }

  .footer .social img {
    width: 40px;
    height: 40px;
  }
}

/* Let a touch that starts over a horizontal carousel continue vertically
   when the user is scrolling the page. */
@media (max-width: 820px) {
  .home-page .carousel-viewport,
  .home-page .courses .carousel-viewport,
  .home-page .pricing .carousel-viewport {
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: auto;
  }
}

/* Keep the full cat-and-laptop artwork inside the desktop trial frame. */
@media (min-width: 821px) {
  .home-page .trial-art img.trial-art__main {
    top: 40px;
    right: 0;
    left: auto;
    width: 758px;
    height: 503px;
  }
}

/* Use one square grid throughout the page, matching the main hero block. */
.home-page .hero-inner,
.home-page .school,
.home-page .referral-inner,
.home-page .lessons-inner,
.home-page .trial-inner,
.home-page .pricing > .section-inner,
.home-page .consultation-inner,
.inner-hero--violet,
.course-teacher {
  background-size: 109px 109px;
}

@media (min-width: 521px) and (max-width: 820px) {
  .home-page .hero-inner,
  .home-page .school,
  .home-page .referral-inner,
  .home-page .lessons-inner,
  .home-page .trial-inner,
  .home-page .pricing > .section-inner,
  .home-page .consultation-inner,
  .inner-hero--violet,
  .course-teacher {
    background-size: 80px 80px;
  }
}

@media (max-width: 520px) {
  .home-page .hero-inner,
  .home-page .school,
  .home-page .referral-inner,
  .home-page .lessons-inner,
  .home-page .trial-inner,
  .home-page .pricing > .section-inner,
  .home-page .consultation-inner,
  .inner-hero--violet,
  .course-teacher {
    background-size: 54px 54px;
  }
}

/* Final corner pass against the supplied full-page references. */
@media (min-width: 821px) {
  .home-page .school {
    overflow: hidden;
    border-radius: 40px;
  }

  .home-page .lessons-inner,
  .home-page .pricing > .section-inner {
    border-radius: 40px;
  }

  .home-page .bet-reward,
  .home-page .faq details {
    border-radius: 32px;
  }
}

@media (min-width: 521px) and (max-width: 820px) {
  .home-page .school {
    overflow: hidden;
    border-radius: 40px;
  }

  .home-page .lessons-inner,
  .home-page .pricing > .section-inner {
    border-radius: 40px;
  }

  .home-page .bet-reward,
  .home-page .faq details {
    border-radius: 32px;
  }
}

@media (max-width: 520px) {
  .home-page .school {
    overflow: hidden;
    border-radius: 24px;
  }

  .home-page .lessons-inner,
  .home-page .pricing > .section-inner,
  .home-page .bet-reward,
  .home-page .faq details,
  .footer-shell {
    border-radius: 24px;
  }
}

/* Keep the desktop page on the same 1440px canvas as the hero. */
@media (min-width: 821px) {
  .home-page {
    width: min(1440px, 100%);
    max-width: 1440px;
    margin-inline: auto;
  }

  .promo,
  .footer {
    width: min(1440px, 100%);
    max-width: 1440px;
    margin-inline: auto;
  }

  .promo {
    width: min(1408px, calc(100% - 32px));
  }

  .promo::after {
    right: 0;
    left: 0;
  }

  .home-page .school,
  .home-page .reviews,
  .home-page .teachers {
    width: min(1408px, calc(100% - 32px));
    margin-inline: auto;
  }

  .home-page .lessons-inner,
  .home-page .pricing > .section-inner,
  .home-page .consultation-inner {
    width: min(1408px, 100%);
    max-width: 100%;
  }
}

/* Final page-specific precedence after all shared public-page breakpoints. */
@media (min-width: 821px) {
  .tariffs-page .pricing { height: auto; min-height: 0; padding: 120px 16px; overflow: visible; background: #fff; }
  .tariffs-page .pricing > .section-inner { width: min(976px, calc(100% - 32px)); max-width: 976px; height: auto; min-height: 0; padding: 0; border-radius: 0; background: transparent; }
  .tariffs-page .pricing .price-grid { display: flex; flex-wrap: nowrap; width: max-content; min-width: 100%; height: 846px; margin: 0; gap: 16px; }
  .tariffs-page .pricing .price-card { flex: 0 0 calc((976px - 32px) / 3); width: calc((976px - 32px) / 3); height: 846px; min-height: 0; }
}
@media (max-width: 820px) {
  .tariffs-page .pricing { height: auto; min-height: 0; padding: 80px 16px; overflow: visible; background: #fff; }
  .tariffs-page .pricing > .section-inner { width: 100%; max-width: none; height: auto; min-height: 0; padding: 0; border-radius: 0; background: transparent; }
  .tariffs-page .pricing .price-grid { height: auto; }
}
@media (max-width: 520px) {
  .tariffs-page .pricing { padding: 72px 0; }
  .tariffs-page .pricing .price-card { flex-basis: min(320px, calc(100vw - 48px)); width: min(320px, calc(100vw - 48px)); min-height: 0; }
}

/* Final mobile school sizing: the image area follows the native frame ratio
   so every switched PNG remains complete at the narrowest window widths. */
@media (max-width: 520px) {
  .home-page .school {
    height: max(648px, calc(48vw + 441px));
  }

  .home-page .school-stage {
    height: auto;
    overflow: hidden;
    border-radius: 24px;
  }

  .home-page .school-art {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1008 / 484;
    overflow: hidden;
    border-radius: 16px;
  }

  .home-page .school-stage__caption {
    flex: 0 0 auto;
    min-height: 112px;
    border-radius: 0 0 16px 16px;
  }

  .home-page .school-art--frame .school-art-canvas {
    width: 100%;
    height: 100%;
    transform: none;
  }

  .home-page .school-art--frame .school-frame-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

/* Effective tariff geometry at EOF: older shared breakpoints above must not
   restore the legacy full-width cards after these responsive values. */
@media (min-width: 821px) {
  /* The desktop Figma frame gives the lead two lines; tablet and mobile
     intentionally use the narrower 448px/338px text boxes below. */
  .tariffs-page .tariffs-page__lead { max-width: 896px; line-height: 1.4; }
  .tariffs-page .pricing-tabs { margin-bottom: 54px; }
}

@media (min-width: 521px) and (max-width: 820px) {
  .tariffs-page .pricing { padding: 80px 20px; }
  .tariffs-page .pricing > .section-inner { width: 100%; max-width: none; }
  .tariffs-page .pricing .center-heading h1 { font-size: 48px; line-height: 1; }
  .tariffs-page .tariffs-page__lead {
    max-width: 448px; margin-top: 24px; font-size: 16px; line-height: 1.2;
  }
  .tariffs-page .pricing-tabs { margin: 24px auto 59px; }
  .tariffs-page .pricing .carousel-viewport { width: 100%; margin: 0; }
  .tariffs-page .pricing .price-grid { height: 660px; margin: 0; gap: 16px; }
  .tariffs-page .pricing .price-card {
    flex-basis: 480px; width: 480px; height: 660px; min-height: 0;
  }
}

@media (max-width: 520px) {
  .tariffs-page .pricing { padding: 60px 16px 40px; }
  .tariffs-page .pricing > .section-inner {
    width: 100%; max-width: none; padding: 0;
  }
  .tariffs-page .pricing .center-heading h1 { font-size: 24px; line-height: 1; }
  .tariffs-page .tariffs-page__lead {
    width: 100%; max-width: 338px; margin-top: 24px;
    font-size: 14px; line-height: 1.2;
  }
  .tariffs-page .pricing-tabs {
    width: 194px; height: 57px; margin: 24px auto 32px;
  }
  .tariffs-page .pricing .carousel-viewport { width: 100%; margin: 0; }
  .tariffs-page .pricing .price-grid { height: 653px; margin: 0; gap: 4px; }
  .tariffs-page .pricing .price-card {
    flex-basis: 320px; width: 320px; height: 653px; min-height: 0;
  }
}
