/* Статичные страницы (/lessons/, /pochitat/, /zadaniya/, /znaniya/, /slovar/, /metody/, /tools/, /kalkulyatory/).
   Подключается после tropa-lesson.css и v6.css. Шапка и подвал — общие (v6/shell/, стили в v6.css), здесь их нет.
   Каркас страницы — в конце файла (FRAME). Размеры и цвета — токены v6.css. Правило #2.10, DESIGN.md. */
html:root {
  --hvoya-bg:#FBF8F1; --hvoya-panel:#FFFFFF; --hvoya-card:#FBF8F1; --hvoya-line:#E9E4D8;
  --hvoya-ink:#16161A; --hvoya-muted:#55565E; --hvoya-faint:#6E6F78;
  --hvoya-accent:#8A6410; --hvoya-accent-soft:#FFF1C9; --hvoya-accent-mid:#F2D27A; --accent-hover:#6E4F0C;
}
body { background:var(--ground) !important; color:var(--ink); font-family:'Golos Text','PT Sans',system-ui,sans-serif !important; }
#lesson-content h1, #lesson-content h2, #lesson-content h3, #lesson-content .lesson-view h3.tl-name {
  font-family:'Golos Text','PT Sans',system-ui,sans-serif !important; font-weight:700 !important; letter-spacing:-0.02em !important; color:var(--ink) !important; hyphens:none; text-wrap:balance; }
#lesson-content h1 { font-size:clamp(32px,4vw,48px) !important; line-height:1.05 !important; margin:0 0 20px !important; }
#lesson-content h1.st-term-title { font-size:clamp(26px,4vw,48px) !important; }
#lesson-content h2 { font-size:28px !important; line-height:1.15 !important; margin:44px 0 14px !important; border:0 !important; padding:0 !important; }
#lesson-content h3 { font-size:20px !important; margin:28px 0 10px !important; }
#lesson-content .lesson-view > p, #lesson-content .lesson-view > ul li, #lesson-content .lesson-view > ol li { font-size:18px; line-height:1.65; color:var(--text-body, #2A2B30); }
#lesson-content .lesson-view a:not(.pp-open a) { color:var(--accent); text-underline-offset:3px; }
#lesson-content .lesson-view a:not(.pp-open a):hover { background:var(--accent-tint); border-radius:4px; text-decoration-thickness:2px; }
#lesson-content .callout { background:var(--accent-tint) !important; border-color:transparent !important; color:var(--ink) !important; border-radius:12px !important; }
#lesson-content pre { background:var(--ground) !important; border:0 !important; border-radius:10px !important; }
.pp-open { border-top:1px solid var(--line) !important; }
.pp-open a { background:var(--accent) !important; border-radius:999px !important; padding:14px 24px !important; }
.pp-open a:hover { background:#6E4F0C !important; }
.tl-chip { border:0 !important; background:var(--ground) !important; padding:10px 16px !important; min-height:40px; }
.tl-chip[aria-pressed="true"] { background:var(--ink) !important; color:var(--on-ink) !important; }
.tl-row { border-top-color:var(--line) !important; }
.tl-mark { color:var(--accent) !important; }
/* Knowledge paths: the three columns describe real steps, not decoration. */
.st-eyebrow { font:600 12px/1.5 'JetBrains Mono',monospace; letter-spacing:.06em; text-transform:uppercase; color:#6B6356; }
.st-knowledge-trail { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; margin:28px 0; background:#EFE3C2; border:1px solid #EFE3C2; border-radius:10px; overflow:hidden; }
.st-knowledge-trail > a, .st-knowledge-trail > span { display:flex; flex-direction:column; gap:9px; padding:18px 16px; background:var(--ground); min-width:0; text-decoration:none; }
.st-knowledge-trail [aria-current] { background:var(--accent); color:var(--on-ink); }
.st-knowledge-trail small { font-size:12px; line-height:1.4; }
.st-knowledge-trail b { font-size:15px; line-height:1.45; overflow-wrap:anywhere; }
#lesson-content .st-knowledge-trail a:hover { background:var(--accent-tint); border-radius:0; }
.st-knowledge-trail a:focus-visible, .st-knowledge-brief a:focus-visible { outline:3px solid #5A76B0; outline-offset:-4px; }
.st-knowledge-brief, .st-knowledge-example { padding:24px; margin:28px 0; border-radius:12px; background:var(--accent-tint); }
.st-knowledge-example { background:var(--ground); border-left:4px solid #8A6410; }
.st-knowledge-brief p, .st-knowledge-example p, .st-knowledge-sample > p { font-size:18px; line-height:1.65; }
.st-knowledge-brief a { display:block; margin-top:14px; font-weight:600; }
.st-knowledge-sample { padding:12px 0 24px; border-bottom:1px solid var(--line); }
@media (max-width:540px) {
  .st-knowledge-trail { grid-template-columns:1fr; }
  .st-knowledge-trail > a, .st-knowledge-trail > span { padding:15px 18px; gap:4px; }
  .st-knowledge-brief, .st-knowledge-example { padding:20px; }
}

/* старая раскладка «Тропы» (колонка меню слева) на статических страницах не нужна */
body { display:block !important; grid-template-columns:none !important; }

.st-primary { display:inline-block; padding:14px 22px; background:var(--accent); color:var(--on-ink) !important; border-radius:10px; text-decoration:none; font-size:16px; font-weight:600; }
.st-copy { position:relative; margin:20px 0; }
.st-copy button { display:block; margin:0 0 8px auto; padding:10px 16px; border:1px solid #D8DCE5; border-radius:8px; background:var(--surface); color:var(--accent); font:600 14px 'Golos Text',system-ui,sans-serif; cursor:pointer; }
#lesson-content .st-prompt { white-space:pre-wrap; overflow-wrap:anywhere; padding:20px; line-height:1.6; font-size:14px; }
.st-lesson-task { display:flex; flex-direction:column; gap:10px; margin-bottom:28px; padding:20px; border-radius:12px; background:var(--accent-tint); font-size:16px; line-height:1.5; }
.st-related { margin-top:36px; }
.st-neighbors { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:36px; }
.st-neighbors a { display:flex; flex-direction:column; gap:8px; padding:18px; background:var(--ground); border-radius:10px; text-decoration:none; line-height:1.4; }
.st-neighbors small, .st-lesson-list small { color:var(--text-2); font-size:14px; }
.st-catalog-links { display:flex; flex-wrap:wrap; gap:10px; font-size:15px; line-height:1.6; }
.st-lesson-list li { margin:12px 0; }
.st-unit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
#lesson-content .st-unit-card { display:flex; flex-direction:column; gap:12px; padding:22px; border:1px solid var(--line); border-radius:12px; color:var(--ink); text-decoration:none; }
#lesson-content .st-unit-card:hover { background:var(--ground); border-radius:12px; }
#lesson-content .st-unit-card h3 { margin:0 !important; }
.st-unit-card > span { font-size:13px; color:var(--text-2); }
.st-unit-card p { margin:0; font-size:16px; line-height:1.5; color:var(--text-2); }
.st-unit-card b { margin-top:auto; padding-top:8px; font-size:14px; color:var(--accent); }
.st-table-scroll { overflow-x:auto; margin:24px 0; }
.st-summary { width:100%; border-collapse:collapse; text-align:left; font-size:15px; line-height:1.5; }
.st-summary caption { text-align:left; margin-bottom:12px; color:var(--text-2); }
.st-summary th, .st-summary td { padding:14px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.st-summary th { font-weight:600; }
.st-summary small { display:block; color:var(--text-2); }
@media (max-width:720px) {
  .st-unit-grid, .st-neighbors { grid-template-columns:1fr; }
  .st-summary { min-width:560px; }
}

/* плашка «Если вы в России» под заголовком урока (LESSON_NOTICES в index.html) */
.lesson-notice { margin: 16px 0 20px; padding: 14px 16px; border-radius: 12px; background: var(--accent-tint); border: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1.5; }
.lesson-notice b { display: block; margin-bottom: 4px; }
.lesson-notice p { margin: 6px 0 0; }




/* ===== FRAME: каркас статичной страницы — как у страниц приложения (метод, задание) =====
   крошки → вступление на фоне (eyebrow, h1 40px, лид 21px) → содержимое в белом блоке. */
body.v6.v6-static { display:block !important; padding-top:80px !important; background:var(--ground) !important; }
body.v6-static #lesson-content { position:static !important; max-width:var(--container) !important; margin:0 auto !important; padding:40px var(--gutter) 96px !important; box-sizing:border-box; background:transparent !important; }
body.v6-static #lesson-content .lesson-view { max-width:none !important; margin:0 !important; padding:0 !important; background:transparent !important; border-radius:0 !important; }
body.v6-static .st-crumb { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; margin:0 0 40px; font-size:17px; color:var(--text-2); }
body.v6-static .st-crumb a { color:var(--text-2) !important; text-decoration:underline; text-underline-offset:4px; }
body.v6-static .st-crumb a:hover { color:var(--accent) !important; background:none !important; }
body.v6-static .st-hero { max-width:860px; margin:0 0 48px; }
body.v6-static .st-hero .st-eyebrow { display:block; margin:0 0 16px; }
body.v6-static #lesson-content .st-hero h1 { font-family:var(--font-display) !important; font-size:40px !important; font-weight:700 !important; line-height:1.1 !important; letter-spacing:-0.02em !important; margin:0 0 20px !important; text-wrap:balance; }
body.v6-static .st-hero :is(p.lead, p.setup-lead) { font-size:var(--fs-lead) !important; line-height:1.5 !important; color:var(--text-2) !important; margin:0 0 16px !important; max-width:720px; text-wrap:pretty; }
body.v6-static .st-hero .st-dates, body.v6-static .st-hero .setup-byline { font-size:var(--fs-meta) !important; color:var(--text-3) !important; margin:0 0 16px !important; }
body.v6-static .st-card { background:var(--surface); border-radius:var(--r-xl); padding:56px 64px; box-sizing:border-box; }
body.v6-static .st-hero .st-eyebrow { font:600 12px/1.5 var(--font-mono) !important; letter-spacing:.06em; text-transform:uppercase; color:#6B6356; }
body.v6-static .st-card > p, body.v6-static .st-card > ul > li, body.v6-static .st-card > ol > li, body.v6-static .st-read-body :is(p, li) { font-size:var(--fs-body); line-height:1.65; }
body.v6-static #lesson-content .st-card h2 { font-size:28px !important; line-height:1.15 !important; margin:48px 0 16px !important; }
body.v6-static #lesson-content .st-card h3 { font-size:20px !important; line-height:1.25 !important; }
/* Вкладки тем «Почитать» (/pochitat/ и /pochitat/<тема>/): вид как у вкладок Справочника (.v6-ktab), но это ссылки */
body.v6-static #lesson-content .st-topics { margin:0 0 32px; }
body.v6-static #lesson-content .st-topics a.v6-ktab { text-decoration:none; white-space:nowrap; color:var(--text-2); }
body.v6-static #lesson-content .st-topics a.v6-ktab[aria-current="page"] { color:var(--ink); border-bottom-color:var(--accent); }
body.v6-static #lesson-content .st-topics a.v6-ktab:hover { color:var(--ink); }
@media (max-width: 720px) { /* на телефоне все темы видны сразу: плашки с переносом вместо полосы вкладок */
  body.v6-static #lesson-content .st-topics { border-bottom:0; gap:8px; margin-bottom:24px; }
  body.v6-static #lesson-content .st-topics a.v6-ktab { min-height:44px; padding:0 16px; margin:0; border:0; border-radius:var(--r-pill); background:var(--ground); font-size:16px; }
  body.v6-static #lesson-content .st-topics a.v6-ktab[aria-current="page"] { background:var(--ink); color:var(--surface); }
  body.v6-static #lesson-content .st-topics a.v6-ktab[aria-current="page"] .v6-meta { color:inherit; }
}
body.v6-static #lesson-content a.st-primary, body.v6-static #lesson-content .pp-open a { text-decoration:none !important; color:#fff !important; }
body.v6-static .st-card :is(p, li, blockquote, h2, h3) { max-width:760px; }
body.v6-static .st-card .setup-guide { font-size:var(--fs-body); }
@media (max-width:720px) {
  body.v6.v6-static { padding-top:80px !important; }
  body.v6-static #lesson-content { padding:24px var(--gutter) 64px !important; }
  body.v6-static .st-crumb { margin-bottom:24px; font-size:15px; }
  body.v6-static #lesson-content .st-hero h1 { font-size:30px !important; }
  body.v6-static .st-hero :is(p.lead, p.setup-lead) { font-size:18px !important; }
  body.v6-static .st-card { padding:28px 20px; border-radius:var(--r-lg); }
  body.v6-static #lesson-content .st-card h2 { font-size:24px !important; margin-top:36px !important; }
}
/* первый элемент белого блока — без верхнего отступа (стоит последним, чтобы перекрыть h2 выше и на телефоне) */
body.v6-static #lesson-content .st-card > :first-child, body.v6-static #lesson-content .st-card > :first-child > :first-child { margin-top:0 !important; }

/* Система 29.11 (DESIGN.md §6) на статичных страницах: скругления 10 / 12 / 18 */
.st-card { border-radius:18px !important; }
.st-copy button, .sandbox button { border-radius:10px !important; }
.sandbox { border-radius:12px !important; }
/* /seller/: кнопки первого экрана (30.11) */
#lesson-content .st-seller-cta { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0 8px; }
#lesson-content .st-seller-cta a { text-decoration:none; }
#lesson-content .st-seller-cta a.v6b.is-accent, #lesson-content .st-seller-cta a.v6b.is-accent:hover { color:#fff; }
