:root {
  /* Палитра с референса: яркий синий + лаванда + лайм */
  --primary: #4b3df5;        /* яркий сине-фиолетовый (цифры, акценты) */
  --primary-dark: #3225d6;
  --lime: #d2f23c;           /* лаймовый маркер/акцент */
  --lime-dark: #c2e620;
  --lavender: #e9e6fb;       /* лавандовые блоки */
  --lavender-2: #f3f1fd;
  --pink: #f0568c;           /* розовый микро-акцент */
  --ink: #16161f;
  --muted: #5d5f78;
  --bg: #f7f6ff;
  --white: #ffffff;
  --line: #e7e5f5;
  --radius: 18px;
  --shadow: 0 14px 44px rgba(75, 61, 245, 0.12);
  --shadow-sm: 0 6px 22px rgba(75, 61, 245, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.01em; }
h2 { font-size: 36px; font-weight: 800; margin-bottom: 26px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: -14px auto 30px; max-width: 660px; }

/* Маркер-подчёркивание (лайм) как на референсе */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; left: -0.16em; right: -0.16em; top: 0.1em; bottom: 0.04em; transform: rotate(-1.3deg);
  background: linear-gradient(180deg, #e7ff5e, var(--lime)); z-index: -1; border-radius: 0.6em 0.45em 0.55em 0.5em / 0.5em 0.55em 0.45em 0.55em;
}

.chip { display: inline-block; background: var(--lavender); color: var(--primary-dark); font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 100px; }
.chip--lime { background: var(--lime); color: #2a2a00; }

/* КНОПКИ — плавное увеличение при наведении */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 16px;
  border: none; border-radius: 14px; padding: 15px 26px; cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.7,.3,1.3), box-shadow .22s ease, background .2s ease;
  font-family: inherit; text-decoration: none;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px rgba(75,61,245,.4); }
.btn:active { transform: translateY(0) scale(.99); }
.btn--lg { padding: 18px 34px; font-size: 18px; border-radius: 16px; }
.btn--small { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--light { background: var(--lime); color: #2a2a00; }
.btn--light:hover { background: var(--lime-dark); box-shadow: 0 12px 28px rgba(210,242,60,.5); }

/* ДУДЛЫ (декор) */
.doodle { position: absolute; pointer-events: none; z-index: 1; fill: currentColor; }
.doodle--card { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.u-underline { fill: currentColor; }
.doodle--1 { width: 30px; height: 30px; color: var(--primary); top: 235px; left: 2%; animation: float 5s ease-in-out infinite; }
.doodle--2 { width: 36px; height: 36px; color: var(--lime-dark); top: 220px; right: 4%; animation: float 6s ease-in-out infinite; }
.doodle--3 { width: 22px; height: 22px; color: var(--pink); bottom: 60px; left: 48%; animation: float 4.5s ease-in-out infinite; }
.doodle--4 { width: 40px; height: 40px; color: var(--primary); top: 60px; right: 8%; opacity: .5; }
.doodle--5 { width: 28px; height: 28px; color: var(--lime); top: 40px; left: 12%; }
.doodle--6 { width: 34px; height: 34px; color: #fff; bottom: 50px; right: 12%; opacity: .5; }
.doodle--card { width: 70px; height: 56px; color: var(--primary); top: -34px; right: 20px; opacity: .55; }
.u-underline { width: 22px; height: 22px; color: var(--lime-dark); vertical-align: middle; margin-left: 4px; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(8deg); } }

/* REVEAL при скролле */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ШАПКА */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--primary); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--primary); }

/* HERO */
.hero { background: linear-gradient(165deg, var(--lavender) 0%, var(--bg) 55%); padding: 66px 0 76px; position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }
.badge { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 8px 18px; font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.badge--stars { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.badge__stars { color: #ffb800; letter-spacing: 1px; font-size: 15px; }
.hero h1 { font-size: 46px; font-weight: 900; margin-bottom: 18px; }
.hero__lead { font-size: 19px; color: var(--muted); margin-bottom: 24px; }
.hero__list { list-style: none; margin-bottom: 30px; display: grid; gap: 11px; }
.hero__list li { position: relative; padding-left: 30px; font-weight: 600; }
.hero__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.hero__card { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); position: relative; transition: transform .25s ease; }
.hero__card:hover { transform: translateY(-4px); }
.hero__card-free { display: inline-block; background: var(--lime); color: #2a2a00; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 100px; margin-bottom: 14px; }
.hero__card h3 { font-size: 23px; margin-bottom: 22px; }
.hero__card-steps { list-style: none; display: grid; gap: 16px; margin-bottom: 24px; }
.hero__card-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.hero__card-steps span { flex: none; width: 32px; height: 32px; background: var(--lavender); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.hero__card-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ПОЛОСА ЦИФР */
.stats { background: var(--primary); padding: 30px 0; }
.stats__inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; color: #fff; }
.stat b { display: block; font-size: 36px; font-weight: 900; line-height: 1; }
.stat span { font-size: 14px; opacity: .85; }

/* БОЛЬ */
.pain { padding: 76px 0; }
.pain__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 28px; }
.pain__item { background: var(--lavender-2); border-radius: var(--radius); padding: 22px 24px; font-size: 17px; font-weight: 600; transition: transform .2s ease; }
.pain__item:hover { transform: translateY(-3px) scale(1.01); }
.pain__close { text-align: center; font-size: 19px; max-width: 760px; margin: 0 auto; }

/* КАК ПРОХОДЯТ ЗАНЯТИЯ */
.lessons { padding: 76px 0; background: var(--bg); }
.lessons__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 44px; }
.lessons__item { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .22s ease; }
.lessons__item:hover { transform: translateY(-5px) scale(1.02); }
.lessons__item span { font-size: 30px; display: block; margin-bottom: 12px; }
.lessons__item h3 { font-size: 18px; margin-bottom: 8px; }
.lessons__item p { color: var(--muted); font-size: 15px; }

.steps { background: var(--lavender); border-radius: 24px; padding: 36px; }
.steps__title { text-align: center; font-size: 24px; margin-bottom: 28px; }
.steps__row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.steps__step { background: #fff; border-radius: 14px; padding: 22px; text-align: center; }
.steps__step p { font-weight: 600; font-size: 15px; }
.how__num { width: 44px; height: 44px; background: var(--primary); color: #fff; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; margin: 0 auto 14px; }
.how__cta { text-align: center; margin-top: 36px; }

/* ПОЧЕМУ МЫ */
.why { padding: 76px 0; }
.why__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.why__item { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .22s; background: #fff; }
.why__item:hover { border-color: var(--primary); transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-sm); }
.why__item span { font-size: 32px; display: block; margin-bottom: 12px; }
.why__item h3 { font-size: 18px; margin-bottom: 6px; }
.why__item p { color: var(--muted); font-size: 15px; }

/* ОТЗЫВЫ И ДОСТИЖЕНИЯ */
.cases { padding: 76px 0; background: linear-gradient(180deg, var(--lavender-2), #fff); position: relative; }
.cases .chip--lime { display: block; width: fit-content; margin: 0 auto 14px; }
.cases__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.case:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow); }
.case__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.case__ava { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--lavender), #d9d4fb); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--primary); font-weight: 700; overflow: hidden; }
.case__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__title { font-size: 21px; font-weight: 800; margin-bottom: 18px; }
.case__score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: var(--lavender); border-radius: 16px; padding: 18px 16px; margin-bottom: 18px; }
.case__score > div { text-align: center; }
.case__score small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.case__score b { display: block; font-size: 40px; font-weight: 900; line-height: 1; }
.case__score b.accent { color: var(--primary); }
.case__arrow { width: 44px; height: 24px; color: var(--primary); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.case__did { list-style: none; display: grid; gap: 9px; margin-bottom: 18px; }
.case__did li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; }
.case__did li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.case__result { background: var(--lime); color: #2a2a00; font-weight: 700; border-radius: 12px; padding: 12px 16px; font-size: 15px; }

.cases__sub { text-align: center; font-size: 24px; margin: 50px 0 26px; }
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.review { background: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-sm); position: relative; transition: transform .2s ease; }
.review:hover { transform: translateY(-4px); }
.review__name { color: var(--pink); font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.review p { font-size: 15px; }
.review__time { display: block; text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ПРЕПОДАВАТЕЛИ */
.teachers { padding: 76px 0; }
.teachers__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.teacher { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .22s ease, box-shadow .22s ease; }
.teacher:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-sm); }
.teacher__photo { height: 170px; background: linear-gradient(135deg, var(--lavender), #d9d4fb); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.teacher h3 { font-size: 19px; }
.teacher__role { color: var(--primary); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.teacher p { color: var(--muted); font-size: 15px; }

/* ЦЕНА */
.price { padding: 76px 0; background: var(--bg); }
.price__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 26px; }
.price__card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .22s ease, box-shadow .22s ease; }
.price__card:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-sm); }
.price__card--accent { border-color: var(--primary); box-shadow: var(--shadow); }
.price__tag { position: absolute; top: -13px; left: 28px; background: var(--lime); color: #2a2a00; font-size: 13px; font-weight: 800; padding: 5px 14px; border-radius: 100px; }
.price__card h3 { font-size: 20px; margin-bottom: 10px; }
.price__value { font-size: 28px; font-weight: 900; color: var(--primary); margin-bottom: 18px; }
.price__value span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.price__card ul { list-style: none; display: grid; gap: 10px; }
.price__card li { padding-left: 26px; position: relative; color: var(--muted); }
.price__card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.price__anchor { text-align: center; font-size: 17px; max-width: 720px; margin: 0 auto; color: var(--muted); }
.price__card.js-price { cursor: pointer; }
.price__details { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 15px; }
.price__card.is-open .price__details { display: block; }
.price__more { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 700; font-size: 14px; transition: color .15s; }
.price__card.is-open .price__more { color: var(--primary-dark); }

/* ПЛАВАЮЩАЯ КНОПКА «НАПИСАТЬ» */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: #fff; text-decoration: none; padding: 12px 20px 12px 14px; border-radius: 100px; box-shadow: 0 10px 30px rgba(75,61,245,.45); font-weight: 700; font-size: 15px; max-width: 280px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.fab:hover { transform: translateY(-2px) scale(1.04); background: var(--primary-dark); box-shadow: 0 14px 34px rgba(75,61,245,.55); }
.fab__ico { font-size: 22px; line-height: 1; }
.fab__txt { line-height: 1.2; }
@media (max-width: 600px) {
  .fab { padding: 0; width: 58px; height: 58px; justify-content: center; right: 16px; bottom: 16px; }
  .fab__txt { display: none; }
  .fab__ico { font-size: 26px; }
}

/* FAQ */
.faq { padding: 76px 0; }
.faq__list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--lavender-2); border-radius: 14px; padding: 0 24px; transition: background .2s; }
.faq__item[open] { background: #fff; box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 19px 0; list-style: none; position: relative; padding-right: 34px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 15px; font-size: 26px; color: var(--primary); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding-bottom: 19px; color: var(--muted); }

/* ФИНАЛ */
.final { padding: 84px 0; background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; position: relative; }
.final__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.final h2 { color: #fff; }
.final p { font-size: 18px; opacity: .92; margin-bottom: 28px; }
.final__note { font-size: 14px; opacity: .8; margin-top: 14px; }

/* ФУТЕР */
.footer { padding: 38px 0; background: #11122a; color: #aab; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer .logo { color: #fff; }
.footer .logo span { color: var(--lime); }
.footer__contacts { display: flex; gap: 22px; }
.footer__contacts a { color: #cdd; text-decoration: none; }
.footer__contacts a:hover { color: #fff; }
.footer__legal { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.footer__legal a { color: #99a; text-decoration: none; }

/* КВИЗ */
.quiz { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.quiz.is-open { display: flex; }
.quiz__overlay { position: absolute; inset: 0; background: rgba(20,18,55,.6); backdrop-filter: blur(3px); }
.quiz__modal { position: relative; background: #fff; border-radius: 22px; width: 100%; max-width: 520px; padding: 34px; box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto; animation: pop .3s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.quiz__close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.quiz__progress { height: 6px; background: var(--line); border-radius: 100px; margin-bottom: 26px; overflow: hidden; }
.quiz__progress-bar { height: 100%; width: 0; background: var(--lime); border-radius: 100px; transition: width .3s ease; }
.quiz__step h3 { font-size: 23px; margin-bottom: 6px; }
.quiz__step .quiz__hint { color: var(--muted); margin-bottom: 20px; }
.quiz__options { display: grid; gap: 10px; }
.quiz__opt { text-align: left; background: var(--lavender-2); border: 2px solid transparent; border-radius: 12px; padding: 16px 18px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s, transform .15s; }
.quiz__opt:hover { border-color: var(--primary); background: var(--lavender); transform: translateX(3px); }
.quiz__field { display: grid; gap: 12px; margin-bottom: 8px; }
.quiz__field input { font-family: inherit; font-size: 16px; padding: 15px 16px; border: 2px solid var(--line); border-radius: 12px; outline: none; transition: border-color .15s; }
.quiz__field input:focus { border-color: var(--primary); }
.quiz__consent { font-size: 12px; color: var(--muted); margin: 12px 0 18px; }
.quiz__consent a { color: var(--primary); }
.quiz__back { background: none; border: none; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 14px; margin-top: 16px; }
.quiz__final-title { text-align: center; }
.quiz__success { text-align: center; padding: 20px 0; }
.quiz__success .quiz__check { width: 64px; height: 64px; background: var(--lime); color: #2a2a00; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 18px; }

.nav a.is-active { color: var(--primary); }

/* ВЫБОР НАПРАВЛЕНИЯ */
.dirs { padding: 76px 0; }
.dirs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dir { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .2s; }
.dir:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow); border-color: var(--primary); }
.dir__chip { display: inline-block; background: var(--lavender); color: var(--primary-dark); font-weight: 800; font-size: 16px; padding: 9px 20px; border-radius: 100px; margin-bottom: 16px; }
.dir__chip.chip--lime { background: var(--lime); color: #2a2a00; }
.dir h3 { font-size: 26px; margin-bottom: 10px; }
.dir p { color: var(--muted); margin-bottom: 18px; }
.dir__link { color: var(--primary); font-weight: 700; }

/* РЕГАЛИИ ПРЕПОДАВАТЕЛЕЙ */
.regalia__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.regalia { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: transform .22s ease, box-shadow .22s ease; }
.regalia:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-sm); }
.regalia span { font-size: 34px; display: block; margin-bottom: 12px; }
.regalia h3 { font-size: 18px; margin-bottom: 8px; }
.regalia p { color: var(--muted); font-size: 14px; }

/* ЭТАПЫ (TIMELINE) */
.timeline { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.tl { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .22s ease; }
.tl:hover { transform: translateY(-4px); }
.tl__num { width: 44px; height: 44px; background: var(--lime); color: #2a2a00; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.tl h3 { font-size: 18px; margin-bottom: 6px; }
.tl p { color: var(--muted); font-size: 14px; }

/* БУРГЕР */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* СТРАНИЦА ПОЛИТИКИ */
.legal { padding: 50px 0 70px; max-width: 820px; }
.legal h1 { font-size: 32px; margin-bottom: 18px; }
.legal h2 { font-size: 20px; text-align: left; margin: 28px 0 8px; }
.legal p { color: var(--muted); margin-bottom: 8px; }
.legal__note { background: var(--lavender-2); border-radius: 12px; padding: 16px 18px; color: var(--ink); }
.legal__back { margin-top: 30px; }

/* АДАПТИВ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .lessons__grid, .why__grid, .teachers__grid, .price__grid, .cases__grid, .reviews, .regalia__grid, .timeline { grid-template-columns: 1fr 1fr; }
  .steps__row, .stats__inner, .dirs__grid { grid-template-columns: 1fr 1fr; }
  .burger { display: flex; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 4px; padding: 14px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; font-size: 17px; }
  h2 { font-size: 30px; }
  .hero h1 { font-size: 34px; }
  .doodle--card { display: none; }
}
@media (max-width: 600px) {
  .pain__grid, .lessons__grid, .why__grid, .teachers__grid, .price__grid, .cases__grid, .reviews, .steps__row, .regalia__grid, .timeline, .dirs__grid, .stats__inner { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__contacts { flex-wrap: wrap; justify-content: center; }
  .quiz__modal { padding: 26px 20px; }
  .header .btn--small { display: none; }
  .hero h1 { font-size: 29px; }
  .doodle { display: none; }
}

/* === КАРТОЧКИ-КЕЙСЫ (изображения) === */
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 16px; }
.case-card { padding: 0; border: none; background: none; cursor: zoom-in; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; font-family: inherit; }
.case-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow); }
.case-card img { display: block; width: 100%; height: auto; }
.case-card__ph { display: none; }
.case-card.is-empty { cursor: default; }
.case-card.is-empty img { display: none; }
.case-card.is-empty .case-card__ph { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 380px; padding: 24px; border: 2px dashed var(--line); border-radius: 20px; color: var(--muted); font-weight: 600; font-size: 14px; background: var(--lavender-2); line-height: 1.6; }

/* === ДОСКА (изображение) === */
.board-sec { padding: 70px 0; }
.board-sec .container { display: grid; gap: 14px; justify-items: center; }
.board { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); max-width: 920px; width: 100%; }
.board img { display: block; width: 100%; height: auto; }
.board.is-empty { display: flex; align-items: center; justify-content: center; min-height: 280px; border: 2px dashed var(--line); background: var(--lavender-2); color: var(--muted); font-weight: 600; box-shadow: none; }
.board.is-empty img { display: none; }
.board.is-empty::after { content: "Сохраните файл img/board.png"; }

/* === ЛАЙТБОКС === */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15,18,45,.86); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 14px; }
.lightbox__close { position: absolute; top: 16px; right: 22px; background: none; border: none; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }

/* === ТЕМА: ПОВЫШЕНИЕ УСПЕВАЕМОСТИ (тёплая, дружелюбная) === */
body.theme-pu {
  --primary: #16b88a; --primary-dark: #0f9c74;
  --lavender: #e2f6ef; --lavender-2: #f0fbf7; --line: #d9efe7;
  --lime: #ffd24a; --lime-dark: #f5c026;
  --shadow: 0 14px 44px rgba(22,184,138,.14); --shadow-sm: 0 6px 22px rgba(22,184,138,.09);
}
body.theme-pu .hero { background: linear-gradient(165deg, #def5ec 0%, #f3fbf8 55%); }

/* === ТЕМА: ЕГЭ/ОГЭ (насыщенный экзаменационный) === */
body.theme-ege .hero { background: linear-gradient(160deg, #e4e3fb 0%, #eef0ff 60%); }
body.theme-ege .stats { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }

@media (max-width: 900px) { .case-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .case-cards { grid-template-columns: 1fr; } }

/* ВЕРХНЯЯ ЛЕТНЯЯ ПЛАШКА (единый элемент сайта) */
.promo-bar { background: linear-gradient(90deg, #ffe14d 0%, #d2f23c 50%, #9ae8c6 100%); color: #1a2000; text-align: center; font-weight: 700; font-size: 14.5px; padding: 11px 16px; letter-spacing: .2px; }
.promo-bar b { color: var(--primary); }

/* ЛЕНТА-РИББОН над заголовком */
.ribbon { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: #2a2a00; font-weight: 800; font-size: 14px; padding: 7px 16px; border-radius: 100px; margin-bottom: 18px; }

/* ЧЕРЕДУЮЩИЕСЯ СТРОКИ-ФИЧИ (структура раздела «Успеваемость») */
.frows { display: grid; gap: 24px; }
.frow { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.frow:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.frow:nth-child(even) .frow__media { order: -1; }
.frow__num { display: inline-block; background: var(--lavender); color: var(--primary); font-weight: 800; font-size: 14px; padding: 5px 14px; border-radius: 100px; margin-bottom: 12px; }
.frow__text h3 { font-size: 24px; margin-bottom: 8px; }
.frow__text p { color: var(--muted); font-size: 17px; }
.frow__media { background: linear-gradient(135deg, var(--lavender), #dfe3ff); border-radius: 16px; min-height: 170px; display: flex; align-items: center; justify-content: center; font-size: 70px; }
@media (max-width: 760px) { .frow { grid-template-columns: 1fr; gap: 18px; padding: 24px; } .frow:nth-child(even) .frow__media { order: 0; } .frow__media { min-height: 130px; font-size: 54px; } }

/* СПЕЦПРЕДЛОЖЕНИЕ (летний набор) */
.offer { padding: 12px 0 76px; }
.offer__inner { background: linear-gradient(150deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 24px; padding: 48px 40px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.offer__badge { display: inline-block; background: var(--lime); color: #2a2a00; font-weight: 800; font-size: 14px; padding: 7px 16px; border-radius: 100px; margin-bottom: 16px; }
.offer__inner h2 { color: #fff; margin-bottom: 12px; }
.offer__inner p { font-size: 18px; opacity: .95; max-width: 680px; margin: 0 auto 24px; }
.offer__note { font-size: 14px; opacity: .8; margin-top: 14px; }

/* ОСНОВАТЕЛЬ */
.founder { padding: 96px 0; background: var(--bg); }
.founder__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; }
.founder__photo { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); min-height: 460px; background: linear-gradient(135deg, var(--lavender), #dfe3ff); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder__ph { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-weight: 600; line-height: 1.6; }
.founder__photo.is-empty img { display: none; }
.founder__photo.is-empty .founder__ph { display: flex; }
.founder__text h2 { text-align: left; font-size: 32px; margin: 14px 0; }
.founder__text p { color: var(--muted); font-size: 18px; margin-bottom: 16px; }
.founder__sign { font-weight: 700; color: var(--ink); }
.founder__text .btn { margin-top: 8px; }
@media (max-width: 760px) { .founder__inner { grid-template-columns: 1fr; } .offer__inner { padding: 36px 22px; } }

/* СПЕЦПРЕДЛОЖЕНИЕ — украшения */
.offer__sun { position: absolute; top: -34px; right: -8px; font-size: 130px; opacity: .16; transform: rotate(-10deg); pointer-events: none; }
.offer__perks { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 4px 0 24px; }
.offer__perk { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 100px; }

/* СПЕЦПРЕДЛОЖЕНИЕ — двухколоночный дизайн */
.offer__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; text-align: left; }
.offer__left h2 { color: #fff; text-align: left; margin-bottom: 12px; }
.offer__left p { margin: 0 0 22px; max-width: none; }
.offer__badge { margin-bottom: 14px; }
.offer__gifts { display: grid; gap: 14px; }
.offer__gift { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 16px 18px; }
.offer__gift .ico { font-size: 30px; line-height: 1; }
.offer__gift b { display: block; color: #fff; font-size: 17px; }
.offer__gift small { color: rgba(255,255,255,.82); font-size: 13px; }
@media (max-width: 760px) { .offer__inner { grid-template-columns: 1fr; gap: 26px; } }

/* ЗАГОЛОВОК ПОЛОСЫ ЦИФР */
.stats__title { text-align: center; color: #fff; font-size: 24px; margin-bottom: 22px; }

/* ИНТРО ОТДЕЛЬНЫХ СТРАНИЦ */
.page-intro { padding: 56px 0 34px; background: linear-gradient(165deg, var(--lavender) 0%, var(--bg) 70%); }
.page-intro h1 { font-size: 42px; font-weight: 900; margin: 14px 0; }
.page-intro p { font-size: 19px; color: var(--muted); max-width: 720px; }
@media (max-width: 600px) { .page-intro h1 { font-size: 30px; } }

/* БЛОК-ПОЯСНЕНИЕ ПРО КУРС (страница цен) */
.price__note { max-width: 820px; margin: 32px auto 0; background: var(--lavender-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.price__note h3 { font-size: 20px; margin-bottom: 10px; }
.price__note p { color: var(--muted); margin-bottom: 8px; }
.price__note p:last-child { margin-bottom: 0; }
