/* Master Manager — внутренние страницы: документы, «О нас», «Контакты», «Обновления и планы» (mmp-*),
   оплата и кабинет (обёртка для плагина mm-shop), уроки, 404 и запасной шаблон.
   Шапка, подвал, цвета и шрифт — из style.css лендинга. Колонка текста документов — около 70 знаков.
   Создано скриптом wordpress/sobrat-temu.py. */

/* короткая страница (404): подвал прижат к низу экрана */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body > .doc { flex: 1 0 auto; }
.doc { padding: calc(var(--head) + clamp(40px, 7vw, 88px)) 0 clamp(72px, 10vw, 128px); }
.admin-bar .doc { padding-top: calc(var(--head) + var(--adminbar, 0px) + clamp(40px, 7vw, 88px)); }
.doc__col { max-width: 70ch; margin-inline: auto; }
.doc--wide .doc__col { max-width: 1040px; }
.doc__title { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.035em; line-height: 1.06; margin-bottom: clamp(24px, 4vw, 40px); text-wrap: balance; }

.doc__body { font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
.doc__body > * + * { margin-top: 1em; }
.doc__body h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -.022em; margin-top: 2em; }
.doc__body h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.016em; margin-top: 1.6em; }
.doc__body h4 { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; margin-top: 1.4em; }
.doc__body h2 + *, .doc__body h3 + *, .doc__body h4 + * { margin-top: .6em; }
.doc__body ul, .doc__body ol { padding-left: 1.4em; margin-bottom: 0; }
.doc__body li + li { margin-top: .4em; }
.doc__body li > ul, .doc__body li > ol { margin-top: .4em; }
.doc__body a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(227, 30, 36, .5); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.doc__body a:hover { color: var(--red); text-decoration-color: currentColor; }
.doc__body strong, .doc__body b { font-weight: 600; }
.doc__body small { font-size: 14px; color: var(--text2); }
.doc__body blockquote { margin: 1.4em 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--red); color: var(--text2); }
.doc__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.doc__body img { height: auto; border-radius: 12px; }
.doc__body figure { margin: 1.4em 0 0; }
.doc__body code { font: 15px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--bg2); padding: 2px 6px; border-radius: 6px; }
.doc__body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.45;
  /* таблица шире экрана: у края, за которым есть ещё колонки, — мягкая тень (уходит, когда долистали) */
  background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left / 32px 100% no-repeat local,
              linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right / 32px 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0)) left / 12px 100% no-repeat scroll,
              radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0)) right / 12px 100% no-repeat scroll; }
.doc__body th, .doc__body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc__body th { font-weight: 600; background: var(--bg2); }
.doc__body .doc-lead { font-size: 19px; line-height: 1.5; color: var(--text2); }
.doc__body .doc-ver { margin-top: 2.4em; font-size: 14px; color: var(--text2); }
.doc__body .doc-ver + .doc-ver { margin-top: .2em; }
/* реквизиты продавца ещё не заполнены — честная строка сверху документа (плагин «Реквизиты продавца») */
.mmr-ne-zapolneno { padding: 14px 18px; border-radius: 14px; background: #fff6e0; color: #5c4300; font-size: 15px; line-height: 1.45; }
.mmr-ne-zapolneno + * { margin-top: 1.4em !important; }
/* пункты и абзацы, скрытые условием плагина «Реквизиты продавца» ([mm_rekv_esli]), не оставляют пустых строк */
.doc__body li:empty, .doc__body p:empty, .mmp-page li:empty, .mmp-page p:empty { display: none; }

.doc__list { display: grid; gap: 28px; }
.doc__item h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.022em; line-height: 1.15; }
.doc__item h2 a { text-decoration: none; }
.doc__item h2 a:hover { color: var(--red); }
.doc__item p { margin-top: 8px; color: var(--text2); }

.doc--center { text-align: center; }
.doc--center .lead { margin-top: 18px; }
.doc__actions { margin-top: 32px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 40px; font-weight: 600; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links .current { color: var(--red); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- оплата и кабинет (плагин mm-shop): фон как у кабинета, ширину задаёт плагин ---------- */
.mm-page--app { background: var(--bg2); }
.mm-page--app .foot { background: #ebebef; }
.mm-page--app .foot__small { color: #5e5e63; } /* на #ebebef: 5,3:1 (было 4,3:1) */
.doc--app { padding-top: calc(var(--head) + clamp(20px, 4vw, 48px)); }
.doc--app .wrap { width: 100%; }
.doc--app .mms { margin-top: 0; }

/* ---------- страницы mmp-*: «О нас», «Контакты», «Обновления и планы» ---------- */
.doc--mmp { padding-top: calc(var(--head) + clamp(48px, 8vw, 104px)); }
.mmp-page { max-width: 980px; margin-inline: auto; font-size: 17px; line-height: 1.55; }
.mmp-page p { margin: 0; }
.mmp-page p + p { margin-top: 14px; }
.mmp-page a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(227, 30, 36, .5); text-underline-offset: .18em; }
.mmp-page a:hover { color: var(--red); }
.mmp-intro { margin-bottom: clamp(48px, 7vw, 88px); }
.mmp-eyebrow { font-size: clamp(15px, 1.25vw, 19px); font-weight: 600; color: var(--red); margin-bottom: 14px !important; }
.mmp-title { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -.045em; line-height: 1.02; }
.mmp-lead { margin-top: 22px !important; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: var(--text2); max-width: 32em; }
.mmp-section { padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.mmp-section > p { max-width: 42em; }
.mmp-h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1.06; margin-bottom: 20px; }
.mmp-section__lead { color: var(--text2); font-size: clamp(17px, 1.4vw, 19px); max-width: 40em; margin-bottom: 28px !important; }
.mmp-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 44em; }
.mmp-list > li { position: relative; padding-left: 28px; }
.mmp-list > li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 12px; height: 6px; border: solid var(--red); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.mmp-list--numbered { counter-reset: mmp; }
.mmp-list--numbered > li { counter-increment: mmp; padding-left: 40px; }
.mmp-list--numbered > li::before { content: counter(mmp); left: 0; top: 0; width: 28px; height: 28px; border: 0; transform: none; border-radius: 50%; background: var(--text); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.mmp-list + p { margin-top: 18px; }
.mmp-note { margin-top: 22px !important; padding: 16px 18px; border-radius: 16px; background: #fff6e0; color: #5c4300; font-size: 16px; max-width: 44em; }
.mmp-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; border-radius: 980px; font-weight: 600; text-decoration: none !important; }
.mmp-btn--primary { background: var(--red); color: #fff !important; }
.mmp-btn--primary:hover { background: var(--red2); }
.mmp-more { font-weight: 600; text-decoration: none !important; color: var(--text) !important; white-space: nowrap; }
.mmp-more::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-1px) rotate(45deg); transition: transform .2s; }
.mmp-more:hover::after { transform: translate(3px, -1px) rotate(45deg); }
.mmp-cta { margin-top: clamp(24px, 4vw, 40px); padding: clamp(32px, 5vw, 56px); border-radius: clamp(26px, 3vw, 36px); background: var(--bg2); text-align: center; }
.mmp-cta .mmp-h2 { margin-bottom: 12px; }
.mmp-cta > p { margin-inline: auto; color: var(--text2); }
.mmp-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 26px !important; }
.mmp-cta--idea { padding: 24px 28px; }
.mmp-idea { color: var(--text) !important; font-size: 19px; }

/* О нас */
.mmp-principles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mmp-principle { padding: clamp(22px, 2.6vw, 32px); border-radius: 24px; background: var(--bg2); }
.mmp-principle__title { font-size: 22px; letter-spacing: -.025em; margin-bottom: 10px; }
.mmp-principle p { font-size: 16px; color: var(--text2); }

/* Контакты */
.mmp-contacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mmp-contact { padding: 22px 24px; border-radius: 22px; background: var(--bg2); }
.mmp-contact__label { font-size: 14px; font-weight: 600; color: var(--text2); }
.mmp-contact__value { margin-top: 6px !important; font-size: 20px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.mmp-contact__value a { text-decoration: none; }
.mmp-contact__note { margin-top: 8px !important; font-size: 15px; color: var(--text2); }
.mmp-hours { margin-top: 20px !important; }

/* Обновления и планы */
.mmp-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mmp-jump a { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 980px; background: var(--bg2); font-weight: 600; font-size: 15px; text-decoration: none !important; }
.mmp-jump a:hover { background: #e8e8ed; color: var(--text) !important; }
.mmp-changelog { display: block; }
.mmp-release { padding: 26px 0; border-top: 1px solid var(--line); }
.mmp-release:first-of-type { border-top: 0; }
.mmp-release__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px; }
.mmp-release__version { font-size: 24px; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mmp-release__date { color: var(--text2); font-size: 15px; }
.mmp-release__title { grid-column: 1 / -1; font-size: 19px; font-weight: 600; color: var(--text); margin-top: 4px !important; }
.mmp-release__note { margin: 10px 0 0 !important; color: var(--text2); font-size: 15px; } /* версии платформ в выпуске */
.mmp-release__list { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: #424245; max-width: 46em; }
.mmp-release--latest { margin: 8px 0 0; padding: clamp(22px, 3vw, 34px); border: 0; border-radius: 26px; background: var(--bg2); }
.mmp-release--latest + .mmp-release { border-top: 0; }
.mmp-release--early { opacity: .82; }
.mmp-badge { display: inline-block; padding: 4px 10px; border-radius: 980px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.mmp-legend { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--text2); }
.mmp-legend li { display: flex; align-items: center; gap: 8px; }
.mmp-status { display: inline-flex; align-items: center; width: fit-content; padding: 4px 11px; border-radius: 980px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.mmp-status--soon { background: var(--red); color: #fff; }
.mmp-status--plan { background: var(--text); color: #fff; }
.mmp-status--research { background: #e8e8ed; color: var(--text); }
.mmp-status--dev { background: #1a7f37; color: #fff; }
.mmp-roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mmp-roadmap__item { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 32px); border-radius: 24px; background: var(--bg2); }
.mmp-roadmap__item .mmp-status { order: -1; }
.mmp-roadmap__title { font-size: 22px; letter-spacing: -.025em; line-height: 1.15; }
.mmp-roadmap__text { color: #424245; font-size: 16px; }
.mmp-roadmap__item--featured { grid-column: 1 / -1; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(0, 0, 0, .25); }
.mmp-roadmap__steps { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 10px; font-size: 16px; color: #424245; max-width: 50em; }
.mmp-roadmap__note { font-size: 15px; color: var(--text2); }
.mmp-disclaimer { margin-top: 24px; padding: 20px 22px; border-radius: 18px; background: var(--bg2); color: #424245; }

@media (max-width: 899px) {
  .mmp-principles, .mmp-contacts { grid-template-columns: 1fr; }
  .mmp-roadmap { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .mmp-release__head { grid-template-columns: 1fr; }
  .mmp-release__date { order: -1; }
}
