:root {
  --bg: #FFFFFF;
  --bg-soft: #FAF8FF;
  --primary: #4B2A8C;        /* кнопки, акцентний текст, популярна картка */
  --primary-hover: #3C2172;
  --lavender: #EDE7FB;
  --lavender-2: #DED3F7;     /* плями на фоні */
  --yellow: #FFD95A;         /* лише фоном під темним текстом */
  --ink: #1F1A2E;
  --text-2: #5B5470;
  --line: #E6E0F2;
  --on-dark: #DCD3F2;        /* вторинний текст на темно-фіолетовому */
  --r-sm: 16px;
  --r: 22px;
  --r-lg: 28px;
  --shadow: 0 12px 32px -12px rgba(75, 42, 140, .22);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Nunito", "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* плавний перехід між сторінками (зміна мови): сторінка перетікає, перемикач UA/EN «їде» на нове місце */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
  .lang button[aria-pressed="true"] { view-transition-name: lang-pill; }
  ::view-transition-group(lang-pill) { animation-duration: .35s; animation-timing-function: var(--ease-out); }
}
[id] { scroll-margin-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
svg { flex-shrink: 0; }

.container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.container--narrow { max-width: 860px; }
.section { padding-block: 96px; }
.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; max-width: 680px; }
.h1 { font-family: var(--font-display); font-weight: 900; font-size: 60px; line-height: 1.06; letter-spacing: -1px; }
.h2 { font-family: var(--font-display); font-weight: 900; font-size: 42px; line-height: 1.12; letter-spacing: -.5px; margin-bottom: 40px; }
.h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 56px 0 24px; }
.section__head .h2, .about .h2, .trial .h2 { margin-bottom: 0; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 560px; }
.muted { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 14px; }
.marker { padding-inline: .08em; background: linear-gradient(transparent 56%, var(--yellow) 56%, var(--yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* плями на фоні */
.blob { position: absolute; z-index: 0; pointer-events: none; background: var(--lavender); border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%; }
.hero, .lavender, .trial { position: relative; overflow: hidden; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 22px;
  border-radius: var(--r-sm); font: 700 15px var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--soft { background: var(--lavender); color: var(--primary); }
.btn--soft:hover { background: var(--lavender-2); color: var(--primary-hover); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--lavender); color: var(--primary-hover); }
.btn__badge { flex-shrink: 0; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* chips, badges */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; background: var(--lavender); color: var(--primary); font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; }
.badge { background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.badge--soft { background: var(--lavender); color: var(--primary); }

/* header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo__mark { display: flex; color: var(--primary); }
.logo__img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.logo__name { font-family: var(--font-display); font-weight: 900; font-size: 21px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo--light { color: #fff; }
.logo--light .logo__mark { color: var(--lavender); }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--primary); }
.nav .nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; border-radius: 999px; padding: 8px 12px; min-height: 36px; font: 700 13px var(--font); color: var(--text-2); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.burger { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); cursor: pointer; }

/* hero */
.hero { background: var(--bg-soft); }
.blob--hero-a { width: 520px; height: 520px; left: -260px; top: -200px; opacity: .7; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 80px 96px; }
.hero__text { flex: 1 1 520px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--primary); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.hero__tagline { font-size: 20px; line-height: 1.55; color: var(--text-2); max-width: 560px; }
.hero .h1 .marker { color: var(--ink); }
.hero__tagline .marker { color: var(--ink); }

/* hero: картка-«урок» у вигляді чату замість фото */
.hero-chat { flex: 0 1 420px; width: 100%; max-width: 420px; position: relative; margin-inline: auto; padding: 28px 12px; }
.blob--chat { inset: -10px -30px; background: var(--lavender-2); opacity: .55; }
.hero-chat__card { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.hero-chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hero-chat__head b { display: block; font-size: 15px; }
.hero-chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center;
  font: 900 18px var(--font-display); }
.hero-chat__status { font-size: 12px; color: #2E9E5B; font-weight: 600; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.msg--in { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.msg--out s { opacity: .65; }
.msg--typing { align-self: flex-start; display: flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: typing 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .msg--typing i { animation: none; opacity: .5; } }
.hero-chat__sticker { position: absolute; z-index: 2; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.hero-chat__sticker--a { top: 4px; right: -4px; transform: rotate(4deg); }
.hero-chat__sticker--b { bottom: 6px; left: -6px; transform: rotate(-4deg); background: #fff; color: var(--primary); border: 1px solid var(--line); }

/* сторінки помилок: композиція з облачків, позиції у % від макету 460×440, тож масштабується під будь-яку ширину */
.hero__art { flex: 0 1 460px; width: 100%; max-width: 460px; aspect-ratio: 460 / 440; position: relative; margin-inline: auto; container-type: inline-size; }
.hero__art .blob { background: var(--lavender-2); }
.blob--art-a { width: 78%; height: 74%; left: 12%; top: 10%; }
.blob--art-b { width: 34%; height: 32%; right: 0; bottom: 2%; background: var(--lavender) !important; border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
.bubble { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 2.4cqw; border-radius: 6cqw; padding: 5cqw 5.6cqw; }
.bubble::after { content: ""; position: absolute; width: 6cqw; height: 6cqw; background: inherit; bottom: -2.2cqw; transform: rotate(45deg); border-radius: 1cqw; }
.bubble__text { font-family: var(--font-display); font-weight: 800; font-size: 5.4cqw; line-height: 1.15; white-space: nowrap; }
.bubble__note { font-size: 3.4cqw; opacity: .85; }
.bubble__line { display: block; height: 2.2cqw; width: 36cqw; border-radius: 99px; background: var(--lavender); }
.bubble__line--short { width: 22cqw; }
.bubble--white { left: 2%; top: 12%; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.bubble--white::after { left: 12cqw; }
.bubble--primary { right: 2%; top: 44%; background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.bubble--primary::after { right: 12cqw; }
.bubble--primary .bubble__line { background: rgba(255,255,255,.28); width: 30cqw; }
.bubble--yellow { left: 14%; bottom: 10%; flex-direction: row; gap: 2cqw; padding: 4.4cqw 5cqw; background: var(--yellow); }
.bubble--yellow::after { left: 6cqw; }
.bubble--yellow i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--ink); opacity: .75; }
.bubble--small { right: 8%; top: 4%; padding: 3.6cqw 4.4cqw; background: #fff; box-shadow: var(--shadow); }
.bubble--small::after { display: none; }
.bubble--small .bubble__line { width: 18cqw; }
.bubble--small .bubble__line--short { width: 11cqw; }

/* grid & cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.card__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; }
.card .chips { margin-top: auto; padding-top: 4px; }

/* як проходять уроки */
.lavender { background: var(--lavender); }
.lavender .h3 { margin-top: 48px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fact { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #fff; border-radius: var(--r-lg); }
.fact__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--lavender); color: var(--primary); }
.fact__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; }
.approach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.approach__item { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; border-radius: var(--r); font-weight: 600; font-size: 17px; }
.approach__check { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; }

/* про мене */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 64px; align-items: start; }
.about--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__sub { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-top: 12px; }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card__icon { flex-shrink: 0; width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--lavender); color: var(--primary); }
/* компактні картки напрямів у «Про мене» — як картки напрямів школи, але менші */
.card--sm { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px 14px; padding: 20px; border-radius: var(--r); }
.card--sm > :not(.card__icon):not(.card__title) { grid-column: 1 / -1; }
.card--sm .card__icon { width: 40px; height: 40px; border-radius: 12px; }
.card--sm .card__title { margin: 0; font-size: 18px; }
.card--sm .chips { padding-top: 0; align-self: end; }
.card--sm .muted { font-size: 14px; line-height: 1.5; }
.card--sm .chip { font-size: 12px; padding: 4px 10px; }
.creds { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 24px; padding: 36px;
  background: var(--lavender); border-radius: var(--r-lg); }
.creds::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; background: var(--lavender-2);
  border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%; }
.creds__head { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.creds__name { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1.2; }
.creds__role { color: var(--primary); font-weight: 600; }
.creds__list { position: relative; z-index: 1; display: flex; flex-direction: column; }
.creds__item { display: flex; flex-direction: column; gap: 2px; padding-block: 16px; border-top: 1px solid var(--lavender-2); }
.creds__item:last-child { padding-bottom: 0; }
.creds__value { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1.15; color: var(--primary); }
.creds__label { color: var(--text-2); font-size: 15px; }

/* ціни */
.prices { align-items: stretch; }
.price { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.price__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.price__value { font-family: var(--font-display); font-weight: 900; font-size: 42px; line-height: 1.1; }
.price__unit { font-family: var(--font); font-weight: 500; font-size: 16px; color: var(--text-2); }
.price__desc { color: var(--text-2); font-size: 15px; }
.price__trial { align-self: flex-start; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: 14px; font-size: 15px; }
.price__btn { margin-top: auto; }
.price--popular { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow); }
.price--popular .price__unit, .price--popular .price__desc { color: var(--on-dark); }
.price--plain .price__value { font-size: 32px; }

/* відгуки */
.soft-bg { background: var(--bg-soft); }
.review { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
.review__quote { font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: .6; color: var(--primary); height: 24px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 0 24px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-size: 24px; color: var(--primary); transition: transform .2s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; }

/* форми */
.form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; padding: 32px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); min-width: 0; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px;
  font: 500 16px var(--font); color: var(--ink); background: var(--bg-soft); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form [aria-invalid="true"] { border-color: #B91C1C; }
.field-error { color: #B91C1C; font-size: 13px; font-weight: 600; }
.alert { padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 15px; }
.alert--success { background: #DCFCE7; color: #14532D; }
.alert--error { background: #FEE2E2; color: #7F1D1D; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* контакти й запис на пробний */
.trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 56px; background: var(--lavender); border-radius: 36px; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts .btn { min-width: 0; overflow-wrap: anywhere; }
.trial__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.trial__deal { font-weight: 700; font-size: 18px; }
.trial__deal .marker { font-family: var(--font-display); font-weight: 900; font-size: 26px; }

/* footer */
.footer { background: var(--ink); color: #CFC9DD; font-size: 15px; }
.footer a { color: #CFC9DD; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 56px 32px; }
.footer__brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer__nav, .footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.footer__contacts b { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 32px; border-top: 1px solid #353046; color: #A9A3B8; font-size: 13px; }

/* сторінки помилок */
.error__code { font-family: var(--font-display); font-weight: 900; font-size: 18cqw; line-height: 1; color: var(--primary); }
.error-page .bubble--primary { top: 52%; }

/* адаптив */
@media (max-width: 1024px) {
  .h1 { font-size: 50px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .trial { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .creds { max-width: 520px; }
  .about { gap: 40px; }
  .trial { padding: 40px; }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .header__row { position: relative; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 4px 20px 20px; font-size: 17px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav .nav__cta { display: flex; margin-top: 8px; color: #fff; }
}
@media (max-width: 720px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 64px; }
  .hero__row { padding-block: 32px 64px; gap: 40px; }
  .hero__tagline { font-size: 18px; }
  .hero-chat { padding: 24px 8px; }
  .msg { font-size: 14px; }
  .h1 { font-size: 40px; letter-spacing: -.3px; }
  .h2 { font-size: 30px; margin-bottom: 28px; }
  .h3 { font-size: 22px; margin-top: 40px; }
  .lead { font-size: 17px; }
  .section__head { margin-bottom: 28px; }
  .btn-row .btn { flex: 1 1 100%; }
  .grid--3, .approach, .form__row, .topics { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 22px; }
  .logo__name { font-size: 16px; }
  .logo { gap: 8px; }
  .header__actions { gap: 8px; }
  .lang button { padding: 8px 10px; }
  .trial { padding: 24px 16px; border-radius: var(--r-lg); }
  .form { padding: 20px; }
  .price { padding: 24px; }
  .price__value { font-size: 36px; }
  .approach__item { font-size: 16px; padding: 16px 18px; }
  .creds { padding: 28px 24px; }
  .creds__value { font-size: 26px; }
}
@media (max-width: 380px) {
  .logo__name { display: none; }
}

/* ---- правки після UI-рев'ю ---- */
html { scroll-padding-top: 84px; }  /* якорі не ховаються під sticky-шапкою */
.logo__img { border-radius: 11px; }

/* «Про мене»: інтро й теми — окремі елементи сітки, картка досвіду липне праворуч */
.about { grid-template-areas: "intro creds" "topics creds"; row-gap: 32px; }
.about__text { grid-area: intro; }
.about__topics { grid-area: topics; display: flex; flex-direction: column; gap: 20px; }
.about__topics .about__sub { margin-top: 0; }
.about .creds { grid-area: creds; position: sticky; top: 96px; }
.about--solo { grid-template-areas: "intro" "topics"; }

/* плаваюча кнопка запису на мобілці */
.sticky-cta { display: none; }

@media (max-width: 1024px) {
  .about { grid-template-areas: "intro" "creds" "topics"; }
  .about .creds { position: relative; top: auto; }
}
@media (max-width: 720px) {
  .hero .btn--lg, .sticky-cta { padding-inline: 18px; font-size: 16px; white-space: nowrap; }

  /* у блоці запису форма йде одразу після заголовка й знижки, кнопки контактів — під нею */
  .trial__text { display: contents; }
  .trial { row-gap: 20px; }
  .trial > .form { order: 1; }
  .trial .contacts { order: 2; }

  .sticky-cta { display: flex; position: fixed; z-index: 30; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
    box-shadow: 0 12px 28px -8px rgba(75, 42, 140, .55); transition: transform .25s, opacity .25s, visibility .25s; }
  .sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; }  /* visibility — щоб не ловила Tab */
  .footer__bottom { padding-bottom: 96px; }  /* щоб кнопка не перекривала копірайт */
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
/* на найвужчих екранах довгий текст кнопки з бейджем переноситься, а не обрізається */
@media (max-width: 380px) {
  .hero .btn--lg, .sticky-cta { white-space: normal; text-align: center; padding-inline: 14px; }
}

/* ---- «живий» шар: рисовані елементи, стікери, анімації (етап 1: hero + ціни) ---- */
:root { --font-hand: "Shantell Sans", "Comic Sans MS", cursive; --ease-out: cubic-bezier(.22, 1, .36, 1); }

.doodle { display: block; flex-shrink: 0; pointer-events: none; }
.doodle__draw { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* кнопки й ховери */
.btn { transition: background-color .15s, color .15s, border-color .15s, transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(75, 42, 140, .6); }
.btn:active { transform: translateY(0); }
.btn:hover .btn__badge { animation: badge-pop .45s var(--ease-out); }
@keyframes badge-pop { 40% { transform: scale(1.18) rotate(-6deg); } }

/* hero */
.hero__text { position: relative; }
.hero__sparkle { position: absolute; width: 34px; top: 52px; left: -46px; color: var(--yellow); animation: float 6s ease-in-out infinite; }
.hero__cta { position: relative; align-items: center; }
.hero__note { position: relative; font: 600 20px/1 var(--font-hand); color: var(--primary); transform: rotate(-4deg); margin-left: 120px; align-self: flex-start; margin-top: -30px; }
.hero__note .doodle { position: absolute; width: 110px; left: -118px; top: 8px; color: var(--primary); }
.hero__squiggle { position: absolute; z-index: 2; width: 84px; left: -36px; top: 46%; color: var(--yellow); transform: rotate(-12deg); }
.hero__dots { position: absolute; z-index: 0; width: 46px; right: -22px; bottom: 60px; color: var(--lavender-2); }
.hero .h1 .marker { background-size: 100% 100%; background-repeat: no-repeat; animation: marker-draw .8s .35s var(--ease-out) both; }
@keyframes marker-draw { from { background-size: 0% 100%; } }
@keyframes float { 50% { transform: translateY(-6px) rotate(8deg); } }

.hero__note .doodle__draw { animation: draw .9s .9s var(--ease-out) both; }
.hero__note .doodle__draw--tip { animation-delay: 1.6s; animation-duration: .35s; }
.hero__note { animation: fade-in .5s .9s both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade-in { from { opacity: 0; } }

/* чат: повідомлення приходять по черзі, «go» закреслюється */
.hero-chat__card .msg { animation: msg-in .45s var(--ease-out) both; }
.hero-chat__card .msg:nth-child(2) { animation-delay: .5s; }
.hero-chat__card .msg:nth-child(3) { animation-delay: 1.3s; }
.hero-chat__card .msg:nth-child(4) { animation-delay: 2.3s; }
.hero-chat__card .msg:nth-child(5) { animation-delay: 3.3s; }
.hero-chat__card .msg:nth-child(6) { animation-delay: 3.9s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.msg--out s { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 100% 2px;
  animation: strike .4s 2.9s var(--ease-out) both; }
@keyframes strike { from { background-size: 0 2px; } }
.hero-chat__sticker { transition: transform .3s var(--ease-out); }
.hero-chat__sticker--a:hover { animation: wobble .5s; }
.hero-chat__sticker--b:hover { animation: wobble-b .5s; }
@keyframes wobble { 25% { transform: rotate(-4deg) scale(1.06); } 60% { transform: rotate(9deg) scale(1.06); } }
@keyframes wobble-b { 25% { transform: rotate(4deg) scale(1.06); } 60% { transform: rotate(-9deg) scale(1.06); } }

/* заголовок секції з дудлом */
.h2--doodle { display: inline-flex; align-items: flex-start; gap: 6px; }
.h2__sparkle { width: 26px; color: var(--primary); margin-top: -6px; transform: rotate(12deg); }
.is-visible .marker, .is-visible.marker { background-size: 100% 100%; background-repeat: no-repeat; animation: marker-draw .7s .25s var(--ease-out) both; }

/* ціни */
.price { position: relative; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s; }
.price:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(75, 42, 140, .45); border-color: var(--lavender-2); }
.price--popular:hover { transform: translateY(-6px) scale(1.02); }
.price__sticker { position: absolute; top: -14px; right: 22px; transform: rotate(6deg); box-shadow: 0 8px 18px -8px rgba(31, 26, 46, .45);
  font-size: 14px; padding: 7px 14px; transition: transform .3s var(--ease-out); }
.price--popular:hover .price__sticker { transform: rotate(-3deg) scale(1.08); }
.price--popular .price__head { padding-right: 0; }
.price__note { position: absolute; left: 0; top: -52px; display: flex; align-items: flex-end; gap: 4px;
  font: 600 16px/1 var(--font-hand); color: var(--primary); transform: rotate(-3deg); white-space: nowrap; }
.price__note .doodle { width: 46px; order: 2; transform: translateY(20px) rotate(10deg); color: var(--primary); }
.price__old { color: var(--text-2); font-weight: 500; margin-right: 2px; text-decoration-thickness: 2px; }
.prices { padding-top: 24px; }

/* поява при скролі (клас .reveal ставить JS лише елементам поза екраном) */
/* transform скидається лише поки елемент прихований, тож після появи ховер карток (.price:hover) працює */
.reveal:not(.is-visible) { opacity: 0; transform: translateY(26px); }
.reveal.is-visible { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: calc(min(var(--d, 0), 5) * 90ms); }
/* після появи повертаємо ховер-переходи карток: затримка лише для появи (opacity), ховер без затримки */
.price.reveal.is-visible { transition: opacity .6s var(--ease-out) calc(min(var(--d, 0), 5) * 90ms), transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }

@media (max-width: 1024px) {
  .hero__sparkle { left: auto; right: 4px; top: -10px; }
}
@media (max-width: 720px) {
  .hero__note, .price__note { display: none; }
  .hero__squiggle { width: 64px; left: -8px; }
  .price:hover, .price--popular:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal:not(.is-visible) { opacity: 1; transform: none; }
}

/* ---- лише для школи: блоки, яких немає на сайті викладачки ---- */
:root { --primary-deep: #2D1959; }  /* блок «Стань викладачем» */
.join .h2 { margin-bottom: 0; }
.join { position: relative; overflow: hidden; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #F5CC3F; color: var(--ink); }
.badge--yellow { align-self: flex-start; }

/* «Про школу» одразу після hero: текст ліворуч, картка засновниці праворуч */
.about--plain { grid-template-areas: "intro creds"; align-items: center; }
.about--plain.about--solo { grid-template-areas: "intro"; }
.about--plain .creds { position: relative; top: auto; }
.creds__photo { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

/* напрями: «незабаром» */
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding: 18px 22px; border: 1.5px dashed var(--lavender-2); border-radius: var(--r); }
.soon__label { background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.chip--soon { background: var(--bg-soft); color: var(--text-2); font-size: 14px; }

/* викладачі */
.teacher__photo { flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.teacher__photo--empty { display: grid; place-items: center; background: var(--lavender); color: var(--primary); }

/* пробний урок */
.blob--trial { width: 360px; height: 360px; left: -140px; bottom: -160px; background: var(--lavender-2); }

/* стань викладачем */
.join { background: var(--primary-deep); color: #fff; }
.blob--join { width: 520px; height: 520px; right: -200px; top: -220px; background: var(--primary); opacity: .55; }
.join__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.join__text { display: flex; flex-direction: column; gap: 22px; }
.join .lead { color: var(--on-dark); }
.join__list { display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.join__list li { display: flex; align-items: center; gap: 12px; }
.join__list svg { color: var(--yellow); }
.form--dark { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
.form--dark label { color: #fff; }
.form--dark input, .form--dark textarea { background: #fff; border-color: transparent; }
.form--dark .field-error { color: #FCA5A5; }
.form--dark [aria-invalid="true"] { border-color: #FCA5A5; }

@media (max-width: 1024px) {
  .join__row { grid-template-columns: minmax(0, 1fr); }
  .about--plain { grid-template-areas: "intro" "creds"; }
}
