/* Пояснения v2 «Мне можно» (23.10.2026, ревью Codex + жалоба Тимофея «тяжело читать»).
   Один файл на все карточки: Nunito/Golos вместо Rubik 900, колонка 680, мягкая тёмная тема,
   ответ «что заказать / что сказать» — в первом экране. Собирает tools/explainers/build.py
   в web/public/x/<slug>/style.css — правьте здесь. */
.mmx2 {
  --font-head: "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --bg: #F8F7F3; --surface: #FFFFFF; --soft: #EDF1F7; --text: #20252C; --sub: #626A74;
  --line: #D8DDE2; --act: #304E8B; --act-btn: #304E8B; --on-act: #FFFFFF; --ok: #2F6B52;
  max-width: 680px; margin: 0 auto; padding: 8px 16px 48px;
  color: var(--text); font: 400 16px/25px var(--font-text);
}
html:has(.mmx2), body:has(.mmx2) { background: #F8F7F3; }
.mmx2 *, .mmx2 *::before, .mmx2 *::after { box-sizing: border-box; }
.mmx2 a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.mmx2 a:hover { text-decoration-color: currentColor; }

.mmx2 .top { display: flex; align-items: center; height: 48px; }
.mmx2 .logo { font: 800 17px/1 var(--font-head); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.mmx2 .logo img { width: auto; height: 26px; display: block; } /* логотип в кривых, гайд 1.0 */
.mmx2 .crumbs-row { font: 400 13px/18px var(--font-text); color: var(--sub); margin: 4px 0 16px; }
.mmx2 .crumbs-row a { color: var(--sub); }

.mmx2 .kchip { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--font-text); color: var(--sub);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; }
.mmx2 .glyph { width: 20px; height: 20px; flex: none; }
.mmx2 h1 { font: 800 28px/34px var(--font-head); margin: 12px 0 8px; letter-spacing: 0; }
.mmx2 .lead { margin: 0 0 8px; }
.mmx2 .meta { font: 400 13px/18px var(--font-text); color: var(--sub); margin: 0 0 28px; }
.mmx2 h2 { font: 600 20px/26px var(--font-head); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.mmx2 h2 svg { width: 20px; height: 20px; color: var(--sub); flex: none; }
.mmx2 h3 { font: 600 16px/24px var(--font-text); margin: 0 0 4px; }
.mmx2 section { margin: 0 0 32px; }
.mmx2 b, .mmx2 strong { font-weight: 600; }
.mmx2 p { margin: 0 0 12px; }

/* «При заказе» — до трёх шагов; знак вещества — только у того, где оно есть */
.mmx2 .order { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin: 0; }
.mmx2 .order li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mmx2 .order li:first-child { border-top: 0; }
.mmx2 .order small { display: block; color: var(--sub); font-size: 14px; line-height: 20px; }
/* номер шага — нейтральный: галочка в бренде запрещена (читается как «безопасно») */
.mmx2 .num { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--line);
  color: var(--sub); display: grid; place-items: center; font: 600 13px/1 var(--font-text); }
.mmx2 .order small:has(.glyph) { display: flex; gap: 6px; align-items: flex-start; }
.mmx2 .order small .glyph { width: 16px; height: 16px; margin-top: 2px; }

/* «Скажите официанту» */
.mmx2 .say { background: var(--soft); border-radius: 10px; padding: 16px; }
.mmx2 .say blockquote { margin: 0 0 12px; }
.mmx2 .copy { display: inline-flex; align-items: center; gap: 8px; background: var(--act-btn); color: var(--on-act); border: 0; border-radius: 8px;
  padding: 10px 16px; font: 600 15px/20px var(--font-text); cursor: pointer; }
.mmx2 .copy svg { width: 16px; height: 16px; }
.mmx2 .copy[data-done] { background: var(--ok); }
.mmx2 .hint { color: var(--sub); font-size: 14px; line-height: 20px; margin: 12px 0 0; }

/* места: источник и дата рядом с фактом; остальное — «Ещё N» (в HTML целиком) */
.mmx2 .group { font: 600 14px/20px var(--font-text); color: var(--sub); margin: 16px 0 8px; }
.mmx2 .group:first-of-type { margin-top: 0; }
.mmx2 .places { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin: 0; padding: 0; }
.mmx2 .places li { list-style: none; padding: 12px 16px; border-top: 1px solid var(--line); }
.mmx2 .places li:first-child { border-top: 0; }
.mmx2 .places .a { color: var(--sub); }
.mmx2 .places p { margin: 2px 0; }
.mmx2 .src { font-size: 13px; line-height: 18px; color: var(--sub); }
.mmx2 details.more { border: 0; }
.mmx2 details.more > summary { padding: 12px 16px; color: var(--act); font: 500 16px/24px var(--font-text); }
.mmx2 details.more > summary::after { content: none; }
.mmx2 details.more[open] > summary { display: none; }
.mmx2 details.more > ul { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.mmx2 .places-box { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.mmx2 .places-box .places { border: 0; border-radius: 0; }

/* «Почему так»: одна картинка, без принудительной прокрутки */
.mmx2 .scene { margin: 0 0 12px; }
.mmx2 .scene img { width: 100%; max-width: 480px; height: auto; border-radius: 10px; display: block; }
.mmx2 .scene figcaption { font-size: 13px; line-height: 18px; color: var(--sub); margin-top: 8px; }
.mmx2 .kfacts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0 0 12px; }
.mmx2 .kfacts div { border-top: 1px solid var(--line); padding-top: 8px; }
.mmx2 .kfacts b { display: block; font: 800 22px/28px var(--font-head); }
.mmx2 .kfacts span { color: var(--sub); font-size: 14px; line-height: 20px; }

/* справка — свёрнута */
.mmx2 details.fold { border-top: 1px solid var(--line); }
.mmx2 details.fold:last-of-type { border-bottom: 1px solid var(--line); }
.mmx2 summary { cursor: pointer; list-style: none; }
.mmx2 summary::-webkit-details-marker { display: none; }
.mmx2 details.fold > summary { padding: 14px 0; font: 600 17px/24px var(--font-text); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mmx2 details.fold > summary::after { content: "+"; color: var(--sub); font: 400 22px/1 var(--font-text); }
.mmx2 details.fold[open] > summary::after { content: "–"; }
.mmx2 details.fold > div { padding: 0 0 16px; }
.mmx2 .faq h3 { margin-top: 12px; }
.mmx2 .faq h3:first-child { margin-top: 0; }
.mmx2 .answers li { list-style: none; padding: 8px 0; }
.mmx2 .answers ul, .mmx2 .tips { margin: 0; padding: 0; }
.mmx2 .tips li { list-style: none; padding: 4px 0 4px 16px; position: relative; }
.mmx2 .tips li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--sub); }
.mmx2 .tag { display: inline-block; font: 600 12px/18px var(--font-text); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; margin-right: 8px; color: var(--sub); }

.mmx2 .related a { display: block; padding: 6px 0; }
.mmx2 .note { display: block; color: var(--sub); font-size: 14px; line-height: 21px; } /* глобальный .note — flex: <b> внутри разъезжался колонками */

@media (min-width: 900px) {
  .mmx2 { padding-top: 16px; }
  .mmx2 h1 { font-size: 32px; line-height: 38px; }
}
.mmx2 .order + .note, .mmx2 .places-box + .note { margin-top: 12px; }
