/* Шрифт Manrope подключается с этого же сайта: положите файл manrope.woff2 в папку assets/fonts.
   Пока файла нет, сайт использует системный шрифт устройства. */
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

/* Понемногу — стили. Тропическая палитра: зелень джунглей, манго, салатовый лайм и тёплый песок. */
:root {
  --bg: #f8f3ea;
  --side: #1f6448;
  --card: #fffdf8;
  --sage: #e2efe5;
  --sand: #f3ebe0;
  --green: #1f6448;
  --green-2: #17533a;
  --text: #24352d;
  --mute: #5f6b62;
  --line: #e8dfd0;
  --orange: #e0744c;
  --mango: #f4a93b;
  --lime: #b9e36e;
  --ok: #276e47;
  --ok-bg: #dff0e2;
  --bad: #a83b27;
  --bad-bg: #f9e3dc;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; color: var(--text); }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }
.boot { padding: 5rem 1.5rem; text-align: center; color: var(--mute); }
.mute { color: var(--mute); }
.small { font-size: 0.86rem; }
.lead { color: var(--mute); font-size: 1.15rem; margin-top: 0.9rem; max-width: 36em; }
.en { color: var(--green); font-weight: 700; background: linear-gradient(transparent 62%, #d7ebb6 62%); padding: 0 0.1em; }
.kicker { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.kicker .mute { font-weight: 600; margin-left: 0.6rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mango); display: inline-block; }
.pill { display: inline-block; padding: 0.5rem 1.1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 0.88rem; color: var(--green); white-space: nowrap; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 1.7rem; border: 1.5px solid var(--green);
  border-radius: 14px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn.mark { background: var(--mango); border-color: var(--mango); color: var(--text); }
.btn.mark:hover { background: #ffbb52; border-color: #ffbb52; }
.btn.ghost { background: var(--card); color: var(--green); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--green); background: var(--card); }
.btn.light { background: #fff; border-color: #fff; color: var(--green); }
.btn.danger { background: var(--card); border-color: #e8c3b9; color: var(--bad); }
.btn.sm { min-height: 38px; padding: 0 1rem; font-size: 0.86rem; border-radius: 11px; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.logo-mark { position: relative; width: 44px; height: 44px; border-radius: 13px; background: var(--green); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.7rem; line-height: 1; padding: 0 0.45rem 0.2rem 0; }
.logo-mark::after { content: ""; position: absolute; right: 7px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: #b9e36e; }
.logo-word { font-weight: 800; font-size: 1.75rem; letter-spacing: -0.05em; }
.logo-word i { color: var(--mango); font-style: normal; }

/* Каркас с боковым меню */
.app { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 2.4rem 1.6rem 1.6rem; background: var(--side); border-right: 1px solid var(--line); }
.side-tag { margin-top: 1rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.nav { display: grid; gap: 0.35rem; margin-top: 2.4rem; }
.nav a { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border-radius: 14px; text-decoration: none; color: var(--mute); font-weight: 600; }
.nav a:hover { color: var(--green); }
.nav a.on { background: var(--sage); color: var(--green); font-weight: 700; }
.nav .ico { display: grid; }
.nav svg { width: 22px; height: 22px; }
.nav .short { display: none; }
.nav .count { margin-left: auto; font-size: 0.82rem; color: var(--mute); }
.side-foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 0.8rem; }
.side-foot b { font-size: 1.1rem; margin-right: 0.4rem; }
.page { max-width: 1180px; width: 100%; padding: 2.4rem clamp(1.2rem, 4vw, 3.4rem) 5rem; }
.page > * + * { margin-top: 2rem; }
.page-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .app { display: block; }
  .side { position: static; height: auto; padding: 0.9rem 1.2rem; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .side-tag, .side-foot { display: none; }
  .logo-mark { width: 34px; height: 34px; font-size: 1.3rem; border-radius: 10px; }
  .logo-mark::after { right: 5px; top: 11px; width: 7px; height: 7px; }
  .logo-word { font-size: 1.35rem; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; margin: 0; display: flex; gap: 0; justify-content: space-between; overflow-x: auto;
    background: #faf5ec; border-top: 1px solid var(--line); padding: 0.3rem 0.3rem calc(0.3rem + env(safe-area-inset-bottom)); }
  .nav a { flex: 1; flex-direction: column; gap: 0.15rem; padding: 0.4rem 0.3rem; font-size: 0.66rem; border-radius: 10px; }
  .nav .full, .nav .count { display: none; }
  .nav .short { display: block; }
  .page { padding-bottom: 7rem; }
}

/* Блоки */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.stack > * + * { margin-top: 0.9rem; }
.stack > section { margin-top: 2.6rem; }
.num { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.num small { font-size: 1rem; color: var(--mute); font-weight: 600; letter-spacing: 0; }
.tag { display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 99px; background: #ece3d4; color: var(--mute); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.blue { background: var(--sage); color: var(--green); }

/* Мой день */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.home-main, .home-side { display: grid; gap: 1.2rem; }
.today { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1rem; align-items: center; background: var(--sage); border: 1px solid #d3e5d8; border-radius: 26px; padding: clamp(1.6rem, 3.4vw, 2.6rem); }
.today h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.today .btn { margin-top: 0.8rem; }
.mali-moment { min-width: 0; max-width: 530px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.mali-trigger { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; min-height: 54px; width: 100%; border: 0; border-radius: inherit; background: none; color: var(--green); text-align: left; }
.mali-trigger:hover { background: #e6f0e8; }
.mali-trigger:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.mali-disc { display: grid; place-items: center; width: 92px; height: 92px; flex: 0 0 auto; border-radius: 50%; background: #f2e3c8; overflow: hidden; }
.mali-wave { display: block; width: 94px; height: 94px; }
mali-actor { position: relative; display: block; }
mali-actor > img, mali-actor > canvas { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: contain; }
mali-actor > canvas { visibility: hidden; }
mali-actor.is-live > canvas { visibility: visible; }
mali-actor.is-live > img { visibility: hidden; }
.mali-study { flex: 0 0 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #f2e3c8; }
.mali-lead { display: grid; gap: .15rem; }
.mali-lead b { font-size: 1.13rem; }
.mali-action { font-size: .87rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.mali-bubble:empty { position: absolute; }
.mali-bubble:not(:empty) { display: grid; align-items: start; gap: 1rem; padding: .9rem 1rem 1rem; border-top: 1px dashed var(--line); }
.mali-scene, .mali-example { display: grid; gap: .45rem; }
.today > .mali-bubble:not(:empty) { grid-column: 1 / -1; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.mali-place { color: var(--green); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.mali-story { font-size: .93rem; }
.mali-english { font-size: 1.18rem; font-weight: 750; }
.mali-ipa { color: var(--mute); font-size: .96rem; overflow-wrap: anywhere; }
.mali-reading summary { width: fit-content; cursor: pointer; color: var(--green); font-size: .93rem; font-weight: 650; }
.mali-reading[open] summary { margin-bottom: .35rem; }
.mali-reading p + p { margin-top: .15rem; }
.mali-standalone { padding-top: 0; }
.mali-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 4vw, 3rem); padding: clamp(1.1rem, 3vw, 2rem); background: var(--sage); border: 1px solid #d3e5d8; border-radius: 26px; }
.mali-intro-copy { display: grid; gap: .55rem; }
.mali-intro-copy p { max-width: 42ch; color: var(--mute); }
.mali-intro .mali-moment { max-width: none; }
.mali-standalone .mali-trigger { padding: 1rem 1.4rem; }
.mali-standalone .mali-bubble:not(:empty) { padding-inline: 1.4rem; }
@media (max-width: 720px) {
  .mali-intro { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .mali-standalone .mali-trigger { gap: .65rem; padding-inline: .65rem; }
  .mali-standalone .mali-disc, .mali-standalone .mali-wave { width: 76px; height: 76px; }
}
@media (min-width: 621px) {
  .today .mali-trigger { flex-direction: column; text-align: center; }
  .today .mali-disc, .today .mali-wave { width: 120px; height: 120px; }
  .today > .mali-bubble:not(:empty) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    gap: 1.4rem;
  }
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.week { display: flex; justify-content: space-between; gap: 0.3rem; }
.week div { display: grid; justify-items: center; gap: 0.4rem; }
.week span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); font-size: 0.8rem; font-weight: 700; color: #a3aaa2; }
.week small { font-size: 0.74rem; color: var(--mute); }
.week span.hit { background: var(--green); border-color: var(--green); color: #fff; }
.week span.now { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 4px var(--sage); }
.week span.hit.now { color: #fff; }
.phrase { background: var(--sand); border-color: #ebe1d3; }
.phrase-en { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.topic { display: grid; gap: 0.3rem; text-decoration: none; color: var(--text); align-content: start; justify-items: start; }
.topic:hover { border-color: var(--green); }
.topic b { font-size: 1.08rem; }
@media (max-width: 1180px) { .home { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .today { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; } .stats .card { padding: 1rem; } .page-top .pill { display: none; } }

/* Все уроки */
.level-head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.level-id { font-weight: 800; background: var(--green); color: #fff; padding: 0.2rem 0.65rem; border-radius: 9px; font-size: 0.95rem; }
.lessons { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.lesson { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1rem; align-items: center; padding: 0.9rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--text); }
.lesson:hover { border-color: var(--green); }
.lesson .n { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: #efe6d7; font-weight: 700; color: var(--mute); }
.lesson.done .n { background: var(--ok-bg); color: var(--ok); }
.lesson.next { background: var(--sage); border-color: #c5dccb; }
.lesson.next .n { background: var(--green); color: #fff; }
.lesson.locked { background: transparent; color: var(--mute); }
.lesson b { display: block; font-weight: 700; }
.soon { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: 0.4rem; color: var(--mute); }
.soon li { padding: 0.75rem 1.2rem; border: 1px dashed #ddd2bf; border-radius: 16px; }

/* Формы */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; background: var(--sage); }
.auth .card { padding: 2.2rem; }
.auth .logo { margin-bottom: 1.5rem; }
label { display: block; font-size: 0.9rem; font-weight: 700; }
label > span:first-child { display: block; margin-bottom: 0.35rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], textarea {
  width: 100%; min-height: 54px; padding: 0 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 1.05rem; font-weight: 500; color: var(--text); }
textarea { padding: 0.9rem 1.1rem; min-height: 120px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px var(--sage); }
.err { background: var(--bad-bg); color: var(--bad); padding: 0.8rem 1.1rem; border-radius: 14px; font-weight: 600; }
.note { background: var(--ok-bg); color: var(--ok); padding: 0.8rem 1.1rem; border-radius: 14px; font-weight: 600; }

/* Занятие */
.session { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.s-top { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; max-width: 760px; width: 100%; margin: 0 auto; }
.s-close { width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); font-size: 1.4rem; line-height: 1; color: var(--mute); }
.bar { flex: 1; height: 12px; border-radius: 99px; background: #e9dfcf; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width 0.3s; }
.s-body { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 1.2rem 1.4rem 2rem; }
.s-body > * + * { margin-top: 1.3rem; }
.scene-image { display: block; width: 100%; height: clamp(132px, 26vw, 240px); object-fit: cover; border-radius: 18px; }
@media (max-width: 550px) {
  .scene-session .ex .listen { flex: 0 0 44px; min-height: 44px; padding: 0; justify-content: center; }
  .scene-session .ex .listen span { display: none; }
}
.task { color: var(--mute); font-weight: 600; }
.prompt { font-weight: 700; font-size: clamp(1.5rem, 3.8vw, 2.2rem); line-height: 1.15; letter-spacing: -0.03em; }
.s-foot { border-top: 1px solid var(--line); background: var(--card); padding: 1rem 1.4rem calc(1rem + env(safe-area-inset-bottom)); min-height: 88px; }
.s-foot.ok { background: var(--ok-bg); border-color: transparent; }
.s-foot.bad { background: var(--bad-bg); border-color: transparent; }
.s-foot-in { max-width: 760px; margin: 0 auto; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.verdict b { display: block; font-size: 1.15rem; }
.mali-reaction { font-size: .9rem; color: var(--text); }
.s-foot.ok .verdict { color: var(--ok); }
.s-foot.bad .verdict { color: var(--bad); }
.opts { display: grid; gap: 0.6rem; }
.opt { text-align: left; min-height: 62px; padding: 0.7rem 1.3rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); font-size: 1.1rem; font-weight: 600; }
.opt:hover:not(:disabled) { border-color: var(--green); }
.opt.right { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.opt.wrong { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.listen { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 46px; padding: 0 1.2rem; border-radius: 13px; border: 1px solid var(--line); background: var(--card); color: var(--green); font-weight: 700; }
.listen:hover { border-color: var(--green); }
.listen.big { width: 108px; height: 108px; border-radius: 50%; justify-content: center; padding: 0; background: var(--green); border-color: var(--green); color: #fff; }
.listen svg { width: 20px; height: 20px; }
.listen.big svg { width: 42px; height: 42px; }
.answer { min-height: 68px; padding: 0.6rem 0; border-bottom: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem; align-content: flex-start; }
.bank { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tile { min-height: 48px; padding: 0 1.1rem; border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: 13px; background: var(--card); font-size: 1.1rem; font-weight: 600; }
.tile:hover { border-color: var(--green); }
.answer .tile { background: var(--sage); border-color: #c5dccb; color: var(--green); }
.tile.used { visibility: hidden; }
.rule p + p, .rule p + .ex, .rule .ex + p { margin-top: 1rem; }
.ex { margin-top: 0.6rem; padding: 0.95rem 1.3rem; background: var(--sage); border-radius: 16px; }
.ex .en { font-size: 1.2rem; background: none; padding: 0; }
.ex span { display: block; color: var(--mute); margin-top: 0.1rem; }
.words { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.words li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: center; padding: 0.6rem 0.9rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.words button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sage); color: var(--green); display: grid; place-items: center; }
.words button svg { width: 20px; height: 20px; }
.words b { font-size: 1.1rem; }
.words i { color: var(--mute); font-style: normal; font-size: 0.88rem; }
.mic { width: 116px; height: 116px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; }
.mic svg { width: 46px; height: 46px; }
.mic.rec { background: var(--orange); animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px #e0744c26; } }
.center { text-align: center; display: grid; justify-items: center; gap: 1rem; }
.finish { text-align: center; padding-top: 1.5rem; }
.finish .num { font-size: 4rem; color: var(--green); }
.mali-hand-target { display: block; margin-inline: auto; width: min(100%, 215px); border: 0; border-radius: 16px; padding: 0; background: transparent; }
.mali-finish { display: block; width: 100%; height: 190px; }
.mali-finish-line { color: var(--green); font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .mali-finish > img { animation: mali-cheer 400ms ease-out both; }
  @keyframes mali-cheer {
    0% { opacity: 0; transform: translateY(10px) rotate(-5deg); }
    70% { transform: translateY(-4px) rotate(3deg); }
  }
}

/* Главная для гостей */
.hero-in { max-width: 1180px; margin: 0 auto; padding: 1.4rem 1.4rem clamp(2.5rem, 6vw, 4.5rem); }
.hero-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin-top: 1.2rem; }
.hero .row { margin-top: 1.8rem; }
.demo { background: var(--sage); border: 1px solid #d3e5d8; border-radius: 28px; padding: clamp(1.5rem, 3.4vw, 2.3rem); }
.demo > * + * { margin-top: 1.1rem; }
.demo .prompt { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.demo .answer { border-color: #c5dccb; }
.demo .answer .tile { background: var(--green); border-color: var(--green); color: #fff; }
.demo-res { font-weight: 700; min-height: 1.6em; }
.demo-res.ok { color: var(--ok); }
.demo-res.bad { color: var(--bad); }
.section { max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.6rem) 1.4rem; }
.section > * + * { margin-top: 1.5rem; }
.ladder { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.ladder li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.1rem; padding: 1.2rem 1.5rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.ladder .level-id { text-align: center; }
.pricebox { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--green); color: #eef6f0; border-radius: 30px; padding: clamp(1.8rem, 5vw, 3.4rem); }
.pricebox .kicker { color: #b9e36e; }
.price { font-size: clamp(3rem, 8vw, 5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.pricebox .checks li::before { color: #b9e36e; }
.foot { text-align: center; color: var(--mute); padding: 2rem 1.25rem 3rem; font-size: 0.88rem; }
@media (max-width: 860px) { .hero-grid, .pricebox { grid-template-columns: 1fr; } }

/* Управление */
.u { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.3rem; }
.u + .u { margin-top: 0.6rem; }
.u-head { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.u .row { margin-top: 0.8rem; gap: 0.4rem; }
.chip { min-height: 38px; padding: 0 0.9rem; border-radius: 11px; border: 1.5px solid var(--line); background: var(--card); font-size: 0.86rem; font-weight: 700; color: var(--mute); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Документы */
.legal { max-width: 780px; margin: 0 auto; padding: 2.4rem 1.4rem 5rem; font-weight: 400; }
.legal h1 { margin-top: 2.2rem; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal h2 { margin-top: 2.2rem; font-size: 1.25rem; }
.legal p { margin-top: 0.8rem; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border: 1px solid var(--line); background: var(--card); }
.legal th { background: var(--sage); }
.legal .todo { background: #ffe58a; padding: 0 0.25em; border-radius: 4px; }
.legal-nav { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.9rem; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; font-weight: 500; font-size: 0.92rem; }
.check input { width: 22px; height: 22px; margin: 0.1rem 0 0; accent-color: var(--green); }
.docs { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: center; margin-top: 0.8rem; }
.side-foot .docs { justify-content: flex-start; font-size: 0.78rem; }
@media (max-width: 700px) { .legal table, .legal tbody, .legal tr, .legal td { display: block; } .legal thead { display: none; } .legal td { border-top: 0; } .legal tr { margin-top: 0.8rem; border-top: 1px solid var(--line); } }

/* Словарь по темам */
.topic.locked { background: transparent; color: var(--mute); }
.meter { display: block; width: 100%; height: 6px; border-radius: 99px; background: #e9dfcf; overflow: hidden; margin-top: 0.5rem; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* Статус сохранения */
.sync { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; font-weight: 600; color: var(--mute); margin: 0; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.sync[data-s=saving] i, .sync[data-s=retry] i { background: #d9a531; animation: blink 1s infinite; }
.sync[data-s=offline] i, .sync[data-s=login] i { background: var(--bad); }
.sync[data-s=offline], .sync[data-s=login] { color: var(--bad); }
.sync[data-s=guest] i { background: #a3aaa2; }
@keyframes blink { 50% { opacity: 0.3; } }
.side .sync { margin-top: 1rem; }
.s-top .sync span { max-width: 13rem; }
@media (max-width: 900px) { .side { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; } .side .sync { margin: 0; text-align: right; } }
@media (max-width: 560px) { .s-top .sync span { display: none; } .s-top .sync[data-s=offline] span, .s-top .sync[data-s=retry] span { display: inline; max-width: 8rem; } }

/* Разбор ошибки */
.verdict { flex: 1 1 260px; min-width: 0; }
.verdict .right-answer { display: block; font-size: 1.12rem; font-weight: 700; }
.verdict .yours { display: block; margin-top: 0.3rem; font-size: 0.92rem; opacity: 0.85; }
.why { margin: 0.6rem 0 0; padding: 0.7rem 0.9rem 0.7rem 2rem; background: #ffffffb3; border-radius: 12px; color: var(--text); font-size: 0.95rem; }
.why li + li { margin-top: 0.3rem; }

/* Мой день */
.btn.big { min-height: 62px; padding: 0 2.4rem; font-size: 1.1rem; border-radius: 16px; }
.plan { margin: 0.4rem 0 0.4rem; padding-left: 1.3rem; color: var(--text); }
.plan li { margin: 0.25rem 0; }
.plain { margin: 0; padding-left: 1.2rem; }
.plain li + li { margin-top: 0.4rem; }
.summary h3 + ul { margin-top: 0.4rem; }

/* Новые задания */
.small-prompt { font-size: clamp(1.15rem, 2.6vw, 1.45rem); }
.dialog { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; display: grid; gap: 0.4rem; font-size: 1.1rem; }
.gap-line { line-height: 1.6; }
.gap-input { display: inline-block; width: 9.5rem; min-height: 46px; margin: 0 0.35rem; text-align: center; font-weight: 700; font-size: 1.1rem; border-bottom: 3px solid var(--green) !important; }
.center-row { justify-content: center; }
.order-answer { min-height: 60px; margin: 0; padding: 0.6rem 0 0.6rem 1.6rem; border-bottom: 2px solid var(--line); display: grid; gap: 0.4rem; }
.order-bank { display: grid; gap: 0.4rem; }
.order-item { text-align: left; width: 100%; min-height: 50px; padding: 0.6rem 1rem; border: 1.5px solid var(--line); border-radius: 13px; background: var(--card); font-size: 1.02rem; font-weight: 600; }
.order-item:hover:not(:disabled) { border-color: var(--green); }
.order-answer .order-item { background: var(--sage); border-color: #c5dccb; color: var(--green); }
.answer-box { display: flex; gap: 0.6rem; align-items: flex-start; }
.answer-box textarea { flex: 1; min-height: 90px; }
.mic.sm { width: 56px; height: 56px; flex: none; }
.mic.sm svg { width: 24px; height: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.chips .chip { min-height: 36px; }
details.model { background: var(--sand); border-radius: 14px; padding: 0.7rem 1rem; }
details.model summary, .state-new summary, .state-review summary, .state-strong summary { cursor: pointer; font-weight: 700; color: var(--green); }
details.model p { margin-top: 0.4rem; }

/* Состояния слов */
.state-new .num { color: #b07d1a; }
.state-review .num { color: var(--green-2); }
.state-strong .num { color: var(--ok); }
.wordlist { list-style: none; padding: 0; margin: 0.6rem 0 0; max-height: 260px; overflow: auto; font-size: 0.92rem; display: grid; gap: 0.2rem; }
.meter3 { display: flex; width: 100%; height: 7px; border-radius: 99px; background: #e9dfcf; overflow: hidden; margin-top: 0.5rem; }
.meter3 i { display: block; height: 100%; }
.meter3 .s-strong { background: var(--ok); }
.meter3 .s-review { background: #8fb39a; }
.meter3 .s-new { background: #e7c873; }
.skills { margin-top: 1.4rem; }
.skills > * + * { margin-top: 0.6rem; }

#android-connect[hidden] { display: none; }
.app-update { border-left: 4px solid var(--green, #1f6448); }

.premium-offer { background: #e2efe5; border-color: #cbd6c3; }
.inquiry-goal { white-space: pre-wrap; overflow-wrap: anywhere; }

.studio-frame{width:100%;height:76dvh;min-height:420px;border:0;border-radius:18px;background:#faf5ec}.s-body audio{width:min(100%,460px)}

/* Боковое меню (на телефоне — верхняя полоса) в цвете джунглей */
.side { color: #eef6f0; border-right-color: transparent; }
.side .logo, .tr-bar .logo { color: #fffdf8; }
.side .logo-mark, .tr-bar .logo-mark { background: #fffdf8; color: var(--green); }
.side .logo-mark::after, .tr-bar .logo-mark::after { background: var(--mango); }
.side-tag { color: #c6dccd; }
.side .nav a { color: #d8e6dc; }
.side .nav a:hover { color: #fff; }
.side .nav a.on { background: rgba(255, 255, 255, 0.14); color: #fff; }
.side .nav .count, .side-foot .mute { color: #c6dccd; }
.side .docs a { color: #d8e6dc; }
.side .sync { color: #d8e6dc; }
.side .sync i { background: var(--lime); }
.side .sync[data-s=offline], .side .sync[data-s=login] { color: #ffcfc2; }
.side .sync[data-s=offline] i, .side .sync[data-s=login] i { background: #ffcfc2; }
@media (max-width: 900px) {
  .side { border-bottom-color: transparent; }
  .side .nav a { color: var(--mute); }
  .side .nav a:hover { color: var(--green); }
  .side .nav a.on { background: var(--sage); color: var(--green); }
}

/* Главная для гостей: тропический блок, упражнение с Мали, цифры */
.tr-page { background: var(--sand); min-height: 100vh; }
.tr-top { background: var(--green); color: #fffdf8; padding-bottom: 350px; }
.tr-bar { max-width: 1240px; margin: 0 auto; padding: 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tr-login { color: #fffdf8; font-weight: 700; }
.tr-login:hover { color: var(--lime); }
.tr-hero { max-width: 980px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 3rem) 1.4rem 0; text-align: center; }
.tr-hero h1 { color: #fffdf8; font-size: clamp(2.5rem, 6.4vw, 4.8rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; }
.tr-word { color: var(--mango); white-space: nowrap; }
.tr-lead { margin: 1.4rem auto 0; max-width: 34em; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #d8e6dc; }
.tr-cta { margin-top: 2.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.btn.mango { background: var(--mango); border-color: var(--mango); color: var(--text); }
.btn.mango:hover { background: #ffbb52; border-color: #ffbb52; }
.btn.pill-big { min-height: 64px; padding: 0 3rem; border-radius: 999px; font-size: 1.2rem; font-weight: 800; }
.tr-note { color: #d8e6dc; font-size: 0.94rem; }
.tr-stores { margin-top: 1.3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.store { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 210px; min-height: 64px; padding: 0 1.75rem 0 1.4rem; border-radius: 18px;
  text-align: left; text-decoration: none; box-shadow: 0 8px 22px rgba(10, 40, 26, 0.28); }
.store svg { width: 28px; height: 28px; flex: none; }
.store > span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 0.8rem; font-weight: 700; }
.store b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.store.ios { background: #fffdf8; color: var(--green); }
.store.android { background: var(--lime); color: #1c3a2c; }
.store.android:hover { background: #c8ec85; }
.tr-try { max-width: 1080px; margin: -310px auto 0; padding: 0 1.4rem; }
.tr-card { display: flex; flex-wrap: wrap; background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(20, 50, 36, 0.22); }
.tr-scene { position: relative; flex: 1 1 460px; min-width: 0; min-height: 440px; background: #2a3a35; }
.tr-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.tr-bubble { position: absolute; left: 1.5rem; right: 1.5rem; top: 1.5rem; max-width: 330px; padding: 0.9rem 1.1rem; border-radius: 20px 20px 20px 6px;
  background: #fffdf8; box-shadow: 0 10px 24px rgba(10, 30, 20, 0.25); transition: background-color 0.2s; }
.tr-bubble[data-s=ok] { background: var(--ok-bg); }
.tr-bubble[data-s=bad] { background: var(--bad-bg); }
.tr-bubble-t { font-weight: 800; }
.tr-bubble-x { margin-top: 0.25rem; font-size: 0.94rem; line-height: 1.4; color: var(--mute); }
.tr-ex { flex: 1 1 440px; min-width: 0; padding: clamp(1.4rem, 3vw, 2.25rem); }
.tr-ex > * + * { margin-top: 1rem; }
.tr-ex-label { font-size: 0.9rem; font-weight: 700; color: var(--green); }
.tr-ex .prompt { font-size: clamp(1.4rem, 3vw, 1.75rem); }
.tr-ex .answer { border-color: #e2d8c8; }
.tr-ex .answer .tile { background: var(--green); border-color: var(--green); color: #fff; }
.tr-ex .bank .tile { background: var(--sand); }
.tr-done { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-radius: 16px; background: var(--ok-bg); font-weight: 700; }
.tr-done[hidden] { display: none; }
.tr-nums { max-width: 1240px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 1.4rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.tr-nums b { display: block; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; color: var(--green); }
.tr-nums span { font-weight: 600; }
.tr-path { display: flex; align-items: center; }
.tr-path i { flex: 1; height: 4px; background: #d6c9b4; }
.tr-path i.on { background: var(--green); }
.tr-path span { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border: 3px solid var(--green); border-radius: 50%; background: var(--card); color: var(--green); font-weight: 800; }
.tr-path span.on { background: var(--green); color: #fffdf8; }
.tr-plans { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; }
.tr-page .ladder li { background: var(--card); }
.tr-page .mali-intro { background: var(--sage); }
@media (max-width: 860px) { .tr-nums { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .tr-top { padding-bottom: 130px; }
  .tr-try { margin-top: -100px; padding: 0 0.9rem; }
  .tr-scene { flex-basis: 100%; min-height: 0; aspect-ratio: 16 / 11; }
  .tr-bubble { left: 0.9rem; right: 0.9rem; top: 0.9rem; padding: 0.75rem 0.9rem; }
  .tr-bubble-x { font-size: 0.88rem; }
  .tr-stores { width: 100%; flex-wrap: nowrap; gap: 0.75rem; }
  .store { min-width: 0; flex: 1 1 0; gap: 0.5rem; padding: 0 0.8rem; min-height: 58px; }
  .store svg { width: 24px; height: 24px; }
  .store b { font-size: 1.08rem; }
  .tr-page .btn { white-space: normal; text-align: center; }
  .tr-path span { width: 40px; height: 40px; font-size: 0.85rem; border-width: 2px; }
}
.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; }
/* Страница «Скачать для Android»: та же зелёная шапка, без карточки снизу */
.tr-top.tr-flat { padding-bottom: 0; }
.tr-flat h1 { color: #fffdf8; }
.tr-flat .kicker { color: var(--lime); }
.tr-flat .lead, .tr-flat .mute { color: #d8e6dc; }
.tr-flat .hero-bar .logo, .tr-flat .logo { color: #fffdf8; }
.tr-flat .logo-mark { background: #fffdf8; color: var(--green); }
.tr-flat .logo-mark::after { background: var(--mango); }

/* Keep profile actions inside their cards at narrow widths. */
.grid:has(input[name="name"]):has(input[name="current"]) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.grid:has(input[name="name"]):has(input[name="current"]) > .card {
  min-width: 0;
  overflow-wrap: anywhere;
}
.grid:has(input[name="name"]):has(input[name="current"]) .btn {
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}
