/* Полный курс. Интерфейс и основной текст — Тиште. */
/* All lesson steps stay visible on phones and tablets. */
@media(max-width:900px){
  .journey-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0;overflow:visible}
  .journey-step{width:100%;min-width:0;min-height:62px;margin:0;padding:12px;white-space:normal;text-align:left;font-size:14px;line-height:1.25;border-radius:16px;gap:9px}
  .journey-step b{flex:0 0 28px;width:28px;height:28px;font-size:12px}
  .journey-step span{min-width:0;overflow-wrap:break-word}
  .journey-step.current{transform:none}
}
@media(max-width:620px){
  .journey-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .journey-step{min-height:64px;padding:10px;font-size:14px;gap:8px}
}
.narration-player{margin:22px 0;padding:20px 24px;border:1px solid #dac9fa;border-radius:20px;background:linear-gradient(120deg,#f0e7ff,#e9f8ff);color:#513481}.narration-heading{display:flex;align-items:center;gap:14px;margin-bottom:14px}.narration-heading>span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#784ada;color:white;font-size:29px}.narration-heading strong{display:block;font-size:19px}.narration-heading small{display:block;margin-top:5px;font-size:12px;color:#79628f}.narration-player audio{display:block;width:100%;max-width:760px}.narration-speed{display:flex;align-items:center;gap:10px;font-size:13px;margin:12px 0 0}.narration-speed select{padding:7px 12px;border:1px solid #d4c5e8;border-radius:10px;background:#fff}.narration-error{font-size:14px;margin-top:12px;color:#9b3434}
@media(min-width:901px){
  :root{--desktop-gutter:clamp(24px,2.5vw,64px)}
  main,footer,.topbar{width:calc(100% - 2 * var(--desktop-gutter));max-width:none;margin-left:auto;margin-right:auto}
  .topbar{padding-left:0;padding-right:0}
  main .lesson-shell,main .appendix-shell{max-width:none}
  .lesson-layout{grid-template-columns:248px minmax(0,1fr)}
  .book-text{max-width:76ch}
  .course-chapter .cards{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
}
.stage-direction{font-size:18px;line-height:1.6;color:#89778c;margin:15px 0;padding:13px 17px;background:#f6f0fa;border-radius:12px}.task-context{font-size:13px;margin-bottom:15px;color:#7d50a9;text-align:left}
[hidden]{display:none!important}select{font:inherit;font-family:'Tishte Sans',sans-serif;color:var(--ink)}
.restart-link{display:block;margin-top:18px;color:#fff2ae;font-size:13px}.course-progress{display:flex;align-items:center;gap:25px;margin:28px 0;padding:22px 26px;border-radius:21px;background:#fff;box-shadow:0 5px 0 #ece5fa;color:#6c4d95;font-size:14px}.course-progress>div{height:12px;background:#eee8fa;border-radius:20px;flex:1;overflow:hidden}.course-progress i{display:block;height:100%;background:linear-gradient(90deg,#aa70f3,#7243de);border-radius:20px}.course-progress a{color:#6536c8;font-weight:700}.course-search{display:flex;align-items:center;gap:18px;padding:17px 22px;border-radius:20px;background:#fff;border:1px solid #e4dcf2}.course-search label{font-weight:700}.course-search input{flex:1;min-width:0;border:0;padding:12px;border-radius:12px;background:#f5f0ff;font-size:17px;color:#483563}.course-search #search-count{font-size:13px;color:#806e9b}.chapter-jumps{display:flex;gap:10px;overflow:auto;padding:20px 2px 10px;scrollbar-width:thin}.chapter-jumps a{display:flex;align-items:center;gap:8px;white-space:nowrap;padding:11px 15px;border-radius:14px;background:#fff;border:1px solid #e4d9f3;font-size:12px;color:#66527e}.chapter-jumps b{color:#a16ecb}.course-chapter{scroll-margin-top:20px;margin-top:43px}.chapter-heading{display:flex;align-items:center;gap:18px;margin-bottom:22px}.chapter-heading>span{width:60px;height:60px;display:grid;place-items:center;background:#eadcff;color:#8244c7;font-size:37px;border-radius:19px;transform:rotate(-6deg);box-shadow:0 4px 0 #d6c3ed}.chapter-heading small{font-size:10px;letter-spacing:1.3px;color:#8a6ea0}.chapter-heading h2{font-size:29px;letter-spacing:-.7px;margin:7px 0;color:#443059}.course-chapter .cards{align-items:stretch}.lesson-card{display:flex;flex-direction:column}.card-body{display:flex;flex-direction:column;flex:1}.card-body h3{min-height:0}.card-bottom{margin-top:auto;padding-top:20px}.card-art{height:165px;position:relative;flex-shrink:0}.theme-token{position:absolute;right:18px;bottom:15px;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#fffc;color:#6540a3;font-size:29px;box-shadow:0 4px 0 #0001;transform:rotate(7deg)}
[data-theme=country]{--accent:#496ada;--tint:#eaf0ff}[data-theme=family]{--accent:#d9477a;--tint:#ffedf2}[data-theme=school]{--accent:#dc9320;--tint:#fff5d9}[data-theme=stories]{--accent:#8847d8;--tint:#f3e8ff}[data-theme=music]{--accent:#e45a63;--tint:#ffe9e8}[data-theme=festivals]{--accent:#b6579d;--tint:#ffedf9}
[data-theme=family] .chapter-heading>span{background:#ffdce8;color:#d74d80;box-shadow:0 4px 0 #f4c1d3}[data-theme=school] .chapter-heading>span{background:#ffe799;color:#b98113;box-shadow:0 4px 0 #edcf74}[data-theme=nature] .chapter-heading>span{background:#baf2d9;color:#168361;box-shadow:0 4px 0 #93d7bc}[data-theme=music] .chapter-heading>span{background:#ffcabe;color:#d85239;box-shadow:0 4px 0 #efb09f}
.lesson-card[data-theme=family] .world-art{object-position:20% 65%}.lesson-card[data-theme=school] .world-art{object-position:50% 90%}.lesson-card[data-theme=stories] .world-art{object-position:70% 60%}.card-kicker{color:var(--accent,#9b6b30)}.card-bottom a{background:var(--tint,#fff0d9);color:var(--accent,#b75321)}.library-banner{display:flex;align-items:center;gap:25px;background:linear-gradient(120deg,#6540c7,#9970e4);color:#fff;border-radius:25px;padding:30px;margin-top:45px;box-shadow:0 7px 0 #4b2b9b}.library-banner>span{font-size:65px;color:#ffdc61}.library-banner h2{font-size:28px;margin:0 0 9px}.library-banner p{font-size:14px;color:#e6daf9;margin:0}.library-banner b{margin-left:auto;white-space:nowrap;color:#ffe799}.library-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:35px}.library-book{display:flex;flex-direction:column;align-items:flex-start;padding:29px;border-radius:23px;background:#ede2ff;border:1px solid #dfc9f8;box-shadow:0 6px 0 #d7bfea;color:#61348f;min-height:240px}.library-book:nth-child(2){background:#dbf6eb;border-color:#bce7d5;color:#26745c;box-shadow:0 6px 0 #b8dece}.library-book:nth-child(3){background:#fff1c9;border-color:#ebdcad;color:#8b641d;box-shadow:0 6px 0 #e9d294}.library-book:nth-child(4){background:#ffe7e2;border-color:#f7cdc6;color:#a65b4d;box-shadow:0 6px 0 #edc0b8}.library-book>span{font-size:45px;line-height:1.1;margin-bottom:22px}.library-book small{font-size:10px;letter-spacing:1px}.library-book h2{font-size:26px;margin:14px 0 22px}.library-book b{margin-top:auto}.appendix-shell{max-width:900px;margin:auto}.appendix-links{padding:20px 23px;background:#eee5ff;border:1px solid #ddcef4;border-radius:17px;margin:25px 0;display:grid;gap:12px;font-size:15px}.appendix-links a{color:#7545b6;text-decoration:underline;text-underline-offset:3px}.source-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.source-buttons .quiet{padding:9px 12px;border:1px solid #e2d7ee;border-radius:12px;font-size:12px;color:#755491;background:#faf7ff}.source-buttons .button{font-size:13px}.book-verse{white-space:pre-line;line-height:1.65;margin:24px 0;font-family:'Tishte Serif',serif}.book-caption{font-family:'Tishte Sans',sans-serif;font-size:15px!important;line-height:1.6;text-align:right;color:#887891}.poem-divider{text-align:center;color:#b58be4;font-size:18px;letter-spacing:12px;padding:15px}.reading-instruction{background:#f4edff;border-left:4px solid #b789ed;padding:17px 20px;border-radius:0 15px 15px 0;margin:24px 0;font-size:21px}.book-text .dictionary small{font-family:'Tishte Sans',sans-serif;font-size:10px;letter-spacing:1px}.book-text .dictionary p{font-size:19px;line-height:1.7;margin:8px 0}.book-text .source-figure{font-family:'Tishte Sans',sans-serif}.book-text .source-figure img{max-height:650px;object-fit:contain}.reading-meter{height:5px;background:#eee5f9;border-radius:15px;margin-bottom:30px}.reading-meter>span{height:100%;background:#bf9ae7;display:block;border-radius:15px}.reading-controls{display:flex;align-items:center;gap:14px;background:#f7f2fd;padding:15px 18px;border-radius:15px;margin-top:25px;font-size:13px;color:#795f93}.reading-controls select{padding:8px;border:1px solid #ddcfeb;background:white;border-radius:9px;min-width:0;flex:1}.reading-controls>span{white-space:nowrap}.book-question>small{font-size:10px;color:#9572ab;letter-spacing:1px}.book-question .source-buttons{margin:8px 0 15px}.project-checks{display:grid;gap:15px;margin:30px 0}.project-checks label{display:flex;gap:15px;align-items:center;background:#f4edff;padding:20px;border-radius:17px;cursor:pointer;font-size:19px}.project-checks input{accent-color:#8752db;width:25px;height:25px;flex-shrink:0}
.source-dialog{max-width:980px;width:calc(100% - 30px);max-height:94vh;padding:22px;border:0;border-radius:22px;color:#48345e;background:#faf7ff;box-shadow:0 20px 100px #24124877}.source-dialog::backdrop{background:#271b4966;backdrop-filter:blur(5px)}.source-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;position:sticky;top:-22px;background:#faf7ff;padding:12px 0;z-index:1}.source-dialog-bar .button{min-height:42px;font-size:13px;padding:10px 17px}.source-image-scroll{overflow:auto;max-height:68vh;border:1px solid #e7dfee;background:#fff;margin:15px 0;border-radius:12px}.source-image-scroll img{display:block;width:100%;height:auto;max-width:none}.source-image-scroll.zoomed img{width:1250px}.source-navigation{display:flex;align-items:center;gap:15px;font-size:13px}.source-navigation button{padding:9px 16px;background:#eee5ff;color:#6a40a7;border:0;border-radius:10px;min-height:38px}.source-navigation button:disabled{opacity:.35}.source-dialog>a{font-size:13px;color:#784eb2}
@media(max-width:900px){.course-progress{flex-wrap:wrap;gap:14px}.course-progress>div{min-width:150px}.chapter-heading h2{font-size:25px}.card-art{height:145px}.library-banner{flex-wrap:wrap}.library-banner b{margin-left:0}.reading-controls{flex-wrap:wrap}.card-body h3{font-size:21px}}
@media(max-width:620px){.topbar nav{font-size:11px;gap:1px;flex-wrap:wrap}.topbar nav a{padding:8px}.hero .hero-stickers{font-size:11px}.course-progress{padding:20px;font-size:12px}.course-progress>div{min-width:100%;order:3}.course-search{flex-wrap:wrap;gap:10px;padding:16px}.course-search label{font-size:13px}.course-search input{flex-basis:100%;order:3;font-size:16px}.course-search #search-count{margin-left:auto}.chapter-heading{gap:14px}.chapter-heading>span{width:49px;height:49px;font-size:31px;flex-shrink:0}.chapter-heading h2{font-size:24px;line-height:1.2}.chapter-heading small{font-size:9px}.card-art{height:210px}.card-body h3{font-size:25px}.course-chapter{margin-top:35px}.library-grid{grid-template-columns:1fr}.library-banner{padding:23px;gap:13px}.library-banner h2{font-size:25px}.library-banner>span{font-size:42px}.library-banner b{margin-top:12px}.book-verse{font-size:20px;overflow-wrap:anywhere}.reading-instruction{font-size:19px;padding:15px}.source-dialog{padding:13px}.source-dialog-bar{top:-13px}.source-dialog-bar strong{font-size:14px}.source-dialog-bar .button{font-size:11px;padding:9px 12px}.source-navigation{gap:9px}.source-navigation button{padding:8px 12px}.book-question h2{overflow-wrap:anywhere}.reader-top{flex-wrap:wrap}.reader-top>span:last-child{margin-left:auto}}
.narration-controls{display:flex;align-items:center;gap:16px}.narration-play{min-width:150px}.narration-seek{flex:1;min-width:60px;accent-color:#784ada;cursor:pointer}.narration-time{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}@media(max-width:620px){.narration-player{padding:18px}.narration-controls{flex-wrap:wrap;gap:13px}.narration-play{min-width:130px;font-size:14px}.narration-time{width:100%;text-align:right}}
