/* Сохраняем сцену 1920×1080, оригинальные свитки, книгу, облака и персонажа. */
body{background:#704b30}.background-content .background-clouds{pointer-events:none}.background-image{background-size:100% 100%!important}.background-logos{display:none}.title img{width:1000px;height:250px}.menu-button--main{min-height:90px;min-width:170px}.app-back-button .back-button{left:35px;right:auto;top:25px}.back-button-image{max-width:85px}.app-back-button{z-index:20}.kuban-navigation{position:absolute;left:155px;top:22px;right:80px;display:flex;align-items:center;justify-content:center;gap:20px;pointer-events:auto;font-family:'Tenor Sans',serif}.kuban-navigation button,.kuban-context-nav button,.kuban-tools button{color:#694026;background:#f1dca9e8;border:1px solid #ab8959;border-radius:5px;box-shadow:0 2px 8px #32221055;font:inherit;cursor:pointer}.kuban-navigation button{padding:11px 20px;font-size:22px}.kuban-navigation button:hover,.kuban-context-nav button:hover,.kuban-navigation button.active,.kuban-context-nav button.active{background:#71462b;color:#ffebbb}.kuban-navigation .kuban-ataman-link{border:2px solid #b5893d;color:#75432b;background:#f8d785;font-weight:bold}.kuban-context-nav{position:absolute;bottom:11px;left:260px;right:260px;display:flex;justify-content:center;gap:10px;pointer-events:auto;font-family:'Tenor Sans',serif}.kuban-context-nav button{padding:8px 14px;font-size:19px}.kuban-tools{position:absolute;bottom:15px;right:22px;display:flex;gap:9px;pointer-events:auto}.kuban-tools button{padding:8px;font-size:15px}.kuban-map-note{position:absolute;bottom:15px;left:25px;color:#f9e5bd;font:13px 'Tenor Sans';text-shadow:1px 1px 3px #2d241e;pointer-events:none;max-width:210px}.page-title{margin-top:5px}.route-plate-name{font-size:22px;padding:22px 10px 0;height:62px}.route-plate-actions{padding:10px 20px 0;font-size:16px}.route-plate:first-child{filter:drop-shadow(0 0 9px #b38a30)}.routes-text-plate{font-size:20px;line-height:1.3}.route-map-city-label__text{text-shadow:2px 2px 4px #122c22,0 0 7px #14291a;font-size:32px}.route-map-city-marker{min-width:60px;min-height:65px}.route-map-city-marker__image{width:65px!important;height:65px!important;background-size:contain!important;background-position:center!important}.route-map-city-marker:focus-visible{outline:5px solid #f7cd69;outline-offset:8px}.panel-item-image{max-width:100%;width:400px;height:90px;object-fit:contain}.panel-item-image:focus-visible,.history-chapters-item:focus-visible{outline:3px solid #92632a;outline-offset:5px}.panel-content h2,.landmark-content h2{font-size:34px}.panel-content h3,.landmark-content h3{font-size:28px}.panel-content p,.landmark-content p{line-height:1.5}.book.flip-book .page{overflow:auto;scrollbar-width:thin;scrollbar-color:#b48b53 transparent}.book.flip-book .book-page-content h3{font-size:25px;margin:16px 0 10px}.book-page-content p{margin:12px 0;line-height:1.5}.book-page-content a,.panel-content a,.landmark-content a{color:#764625;text-decoration:underline;text-underline-offset:3px}.kuban-video iframe{width:100%;height:300px;border:1px solid #b28b54;background:#4f3728}.kuban-video p{font-size:17px}.kuban-video small,.kuban-book-note{font-size:16px}.history-chapters-item{cursor:pointer;padding:7px 0}.history-chapters-item:hover{text-decoration:underline}.book-chapter-title__text{font-size:29px}.book.flip-book .flip-book-nav{bottom:55px}.book .people-name{font-size:42px}.panel-content img{max-height:430px;object-fit:contain}.landmark-image{object-fit:contain}.kuban-readable .app-shell{--scale:.65;min-width:1248px;min-height:702px;width:max(100vw,1248px);height:max(100vh,702px);overflow:visible}.kuban-readable{overflow:auto!important}.kuban-readable .app,.kuban-readable .app-back-button{transform:translate(-50%,-50%) scale(.65)}.kuban-readable .background-content{transform:translate(-50%,-50%) scale(.65)}@media(prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important}}button:focus-visible{outline:4px solid #e7b350;outline-offset:4px}
/* В центре верхней строки остаётся место оригинальному свитку-заголовку. */
.kuban-navigation{left:155px;right:35px;display:grid;grid-template-columns:155px 225px 1fr 170px 260px 190px;gap:12px;top:22px}.kuban-navigation button{padding:10px 12px;font-size:21px;white-space:nowrap}.kuban-navigation button:nth-child(1){grid-column:1}.kuban-navigation button:nth-child(2){grid-column:2}.kuban-navigation button:nth-child(3){grid-column:4}.kuban-navigation button:nth-child(4){grid-column:5}.kuban-navigation button:nth-child(5){grid-column:6}.main-page .title{top:100px}
/* Правки компоновки: подписи, фотографии и текст всегда имеют отдельное место. */
.app-back-button .back-button{display:none}.kuban-ataman-link{display:none}.kuban-navigation{left:80px;right:80px;grid-template-columns:200px 250px 1fr 200px 300px;gap:20px}.kuban-navigation button:nth-child(3){grid-column:4}.kuban-navigation button:nth-child(4){grid-column:5}
.timeline-page .panel-content{display:grid;grid-template-columns:minmax(0,1fr) 440px;align-items:start;gap:35px;text-align:left;width:100%}.timeline-page .panel-content .text-container{min-width:0;width:auto}.timeline-page .panel-content .image-container{min-width:0;width:440px;margin:0}.timeline-page .panel-content .image-container img{display:block;float:none;width:100%;max-width:100%;height:auto;max-height:430px;object-fit:contain;border:7px solid #e8d3a8;box-shadow:0 3px 12px #634b2b44}.timeline-page .panel-content p{font-size:25px;line-height:1.55;text-align:left;overflow-wrap:break-word;margin:18px 0}.timeline-page .panel-content h2{line-height:1.2;margin:0 0 22px}
.timeline-page .panel-item-image,.modern-ethnicity-page .panel-item-image{background:#f7e7c5 url('/assets/свиток пустой-B0uxo0Kc.png') center/100% 100% no-repeat;border:1px solid #b99a66;border-radius:5px;padding:7px 12px;box-shadow:0 2px 5px #69462633;flex:0 1 auto;width:100%;height:100px}.timeline-page .panel-item{padding-right:15px;gap:14px}.timeline-page .panel-item-image{width:calc(100% - 65px)}.modern-ethnicity-panel-list .modern-ethnicity-panel-item{align-items:center}.modern-ethnicity-panel-list .panel-item-image{align-self:center}
.modern-ethnicity-page .panel-content{display:flex;flex-direction:column;align-items:stretch;width:100%;text-align:left}.modern-ethnicity-page .panel-content>h2{margin:0 0 16px}.modern-ethnicity-page .panel-content p{font-size:25px;line-height:1.55;text-align:left;margin:12px 0}.modern-ethnicity-page .panel-content img{float:none;display:block;width:100%;max-width:100%;height:320px;object-fit:contain;margin:20px 0;padding:6px;background:#ead7ae;border:1px solid #b99a66}.kuban-culture-more{display:block;clear:both;margin-top:16px;padding-top:24px;border-top:1px solid #b99a66}.kuban-culture-more h3{font-size:29px;margin:0 0 12px}
.routes-plates{position:absolute;inset:0;display:block;pointer-events:none}.routes-plates>.route-plate{position:absolute;margin:0;grid-area:auto!important;pointer-events:auto;width:250px;height:230px}.routes-plates>.route-plate:nth-child(1){left:1025px;top:385px}.routes-plates>.route-plate:nth-child(2){left:1025px;top:120px}.routes-plates>.route-plate:nth-child(3){left:1305px;top:120px}.routes-plates>.route-plate:nth-child(4){left:1305px;top:385px}.routes-plates>.route-plate:nth-child(5){left:1305px;top:650px}.routes-text-plate{left:360px!important;bottom:65px!important;width:620px!important;height:210px!important;padding:28px 40px!important;font-size:21px;line-height:1.35}.route-plate-name{line-height:1.1}.route-map-person{display:none}
.kuban-route-legend{position:absolute;left:360px;top:595px;width:620px;display:flex;flex-wrap:wrap;gap:9px 15px;font:19px 'Tenor Sans';color:#694026;padding:14px;background:#f8eacdcf;border:1px solid #b89561;border-radius:5px;z-index:3}.kuban-route-legend span{display:flex;align-items:center;gap:8px}.kuban-route-legend i{width:32px;height:0;border-top:4px solid var(--route-color);display:block}.kuban-route-legend small{width:100%;font-size:17px;padding-top:4px}
.book.flip-book .book-page-content{display:flow-root;max-width:100%;overflow-wrap:break-word;text-align:left}.book.flip-book .book-page-content img{float:none!important;position:static!important;display:block;max-width:100%;width:auto;height:auto;max-height:300px;object-fit:contain;margin:12px auto!important}.kuban-book-figure{display:block;clear:both;margin:15px 0 22px;padding:8px;background:#e9d2a466;border:1px solid #a8854b80;break-inside:avoid}.kuban-book-figure img{width:100%!important;max-height:270px!important}.kuban-book-figure figcaption{font:16px/1.3 'Tenor Sans';text-align:center;margin:8px 0 3px}.book.flip-book .page{padding-right:10px;overflow:auto}.book.flip-book .book-page-content p{text-align:left;line-height:1.5}.kuban-food-photo{position:relative;overflow:hidden;width:100%;height:250px;margin:14px 0 20px;background:#e7d7b9;border:1px solid #a8854b}.book.flip-book .kuban-food-photo img{position:absolute!important;max-width:none!important;max-height:none!important;width:400%!important;height:400%!important;object-fit:fill;margin:0!important;left:calc(var(--food-col) * -100%);top:calc(var(--food-row) * -100%)}

.kuban-navigation{grid-template-columns:155px 225px 1fr 170px 260px 160px;gap:12px}.kuban-navigation button:nth-child(5){grid-column:6}

.kuban-food-photo{height:400px}
.kuban-route-legend{top:590px;font-size:18px;padding:10px;gap:8px 12px}.kuban-route-legend small{font-size:16px}.routes-text-plate{top:745px!important;bottom:auto!important;height:165px!important;padding:17px 30px!important;font-size:19px}

.kuban-route-legend{left:320px;width:700px}.routes-text-plate{left:320px!important;width:700px!important}.route-map-city-marker{position:relative}.kuban-city-number{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#704427;font:bold 30px Georgia;pointer-events:none;text-shadow:0 1px 2px #fff3cc}.route-map-city-marker__image{opacity:.9}

.kuban-portrait-source{font-size:16px}.book.flip-book .kuban-book-figure img[src*="/portraits/"]{height:330px!important;max-height:330px!important;width:100%!important;object-fit:contain}
/* Надя возвращается на карту: исходная анимация ходьбы и поворот. */
.route-map-person{display:block!important;pointer-events:none;z-index:8}.kuban-route-legend small{display:none}.route-plate-actions{justify-content:center}.kuban-settlement-article{position:absolute;left:240px;top:180px;width:810px;height:710px;overflow:auto;padding:35px 45px;background:#f5e3bded;border:2px solid #aa7e43;border-radius:12px;box-shadow:0 5px 22px #65432344;color:#694026;font:25px/1.55 Constantia,Georgia,serif}.kuban-settlement-article h1{font-size:38px;line-height:1.2;margin:12px 0 24px}.kuban-settlement-article p{margin:18px 0}.kuban-settlement-period{font-size:22px;letter-spacing:1px;color:#97662f}.kuban-settlement-article a{color:#755024;font-size:20px}.kuban-settlement-page .people-name-plate{font-size:26px}
.kuban-navigation{left:80px;right:auto;display:flex;top:22px}.kuban-tools{display:none!important}.kuban-book-intro{padding:70px 20px;font:28px/1.5 Constantia;color:#694026}.kuban-book-intro h1{font-size:42px;line-height:1.2}.kuban-book-people{padding:30px 20px;color:#694026}.kuban-book-people h2{font-size:36px}.kuban-book-people button{display:block;width:100%;background:#efd19a99;color:#694026;font:30px Constantia;border:1px solid #b48b54;border-radius:5px;padding:16px;margin:14px 0;cursor:pointer}.kuban-book-people button:hover{background:#d9b574}.kuban-main-book-link{position:absolute;right:80px;top:22px;z-index:20;padding:11px 20px;background:#f1dca9e8;color:#694026;border:1px solid #ab8959;border-radius:5px;font:21px Constantia;cursor:pointer}
#kuban-editor-tools{position:fixed;right:16px;bottom:12px;z-index:10000;display:flex;align-items:center;gap:8px;background:#eddbb8;padding:7px;border:1px solid #a58558;border-radius:5px;max-width:90vw;font:14px Arial;color:#63462f}#kuban-editor-tools button,#kuban-editor-dialog button{background:#805638;color:#fff0ca;border:1px solid #a18050;border-radius:4px;padding:8px 12px;font:14px Arial;cursor:pointer}#kuban-editor-tools [hidden]{display:none}#kuban-editor-dialog{width:min(600px,90vw);padding:30px;background:#f0dfbc;color:#62442d;border:2px solid #a38150;font:17px/1.5 Arial;z-index:10001}#kuban-editor-dialog::backdrop{background:#291d17a8}#kuban-editor-dialog label{display:block;margin:15px 0}#kuban-editor-dialog label[hidden]{display:none}#kuban-editor-dialog input,#kuban-editor-dialog textarea{width:100%;font:17px Arial;padding:10px;box-sizing:border-box}#editor-error{color:#a43124}.editor-target{outline:2px dashed #a84320!important;outline-offset:3px;cursor:crosshair!important}
.kuban-main-book-link{top:auto;right:auto;left:50%;bottom:35px;transform:translateX(-50%)}
/* Свободная область над стрелками; длинный текст прокручивается внутри страницы. */
.book.flip-book .page{height:700px!important;max-height:700px!important;padding-bottom:24px;box-sizing:border-box;overflow:auto!important}.book.flip-book .book-page-content{display:flow-root;padding-bottom:20px;overflow-wrap:anywhere}.book.flip-book .kuban-book-figure{display:block;position:static!important;clear:both;max-width:100%;box-sizing:border-box}.book.flip-book .kuban-book-figure figcaption{position:static!important;display:block;clear:both;white-space:normal}.panel-content img,.landmark-content img{float:none!important;position:static!important;max-width:100%;object-fit:contain}.panel-content p,.landmark-content p{overflow-wrap:anywhere}.kuban-settlement-article{overflow-wrap:anywhere}
.kuban-route-legend{display:none!important}
.book.flip-book .kuban-food-photo img[data-editor-replaced]{width:100%!important;height:100%!important;left:0!important;top:0!important;object-fit:contain!important}
/* Приветствие непосредственно под картой, без пустого места от удалённой легенды. */
.routes-text-plate{top:590px!important}.route-plate-actions{display:flex;justify-content:space-evenly;gap:12px;padding:10px 14px 0}.route-plate-action-button{font-size:16px}
/* Более широкий рассказ и отдельная строка переходов между точками. */
.kuban-settlement-article{left:170px;top:180px;width:1040px;height:660px;padding:30px 42px;font-size:26px;line-height:1.55}.kuban-settlement-article h1{font-size:40px}.kuban-point-navigation{position:absolute;left:170px;top:860px;width:1040px;display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;color:#70472b;font:22px Constantia,Georgia,serif}.kuban-point-navigation button{background:#f0dbadeb;color:#694026;border:1px solid #ab8959;border-radius:5px;box-shadow:0 2px 8px #32221033;padding:13px 20px;font:22px Constantia,Georgia,serif;cursor:pointer}.kuban-point-navigation button:last-child{justify-self:end}.kuban-point-navigation button:first-child{justify-self:start}.kuban-point-navigation button:hover{background:#805638;color:#fff0c7}.kuban-point-counter{font-size:20px}
#editor-controls{display:flex;gap:6px;flex-wrap:wrap}#editor-controls[hidden]{display:none}#kuban-editor-tools.editing{left:12px;right:12px;width:auto;max-width:none;flex-wrap:wrap}#kuban-editor-tools.editing #editor-status{flex-basis:100%}.editor-style-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}#kuban-editor-dialog{max-height:88vh;overflow:auto}#kuban-editor-dialog select{width:100%;padding:8px}#editor-element-list{max-height:50vh;overflow:auto}#editor-element-list button{display:block;width:100%;text-align:left;margin:8px 0}#editor-reset{margin-top:15px}#kuban-change-chat{width:min(700px,92vw);max-height:90vh;overflow:auto;background:#f1e0bd;color:#62442d;border:2px solid #a38150;padding:28px;font:16px/1.5 Arial}#kuban-change-chat::backdrop{background:#291d17a8}#kuban-change-chat textarea,#kuban-change-chat input{display:block;width:100%;box-sizing:border-box;padding:10px;font:16px Arial}#kuban-change-chat label{display:block;margin:15px 0}#kuban-change-chat button{padding:9px 16px;background:#805638;color:#fff0ca;border:1px solid #a18050;border-radius:4px;cursor:pointer}#change-messages{max-height:35vh;overflow:auto;border-top:1px solid #b89765;border-bottom:1px solid #b89765;padding:10px 0}#change-messages article{background:#fff4dc;padding:14px;margin:10px 0;border:1px solid #c7ab7d}#change-messages p{white-space:pre-wrap;overflow-wrap:anywhere}#change-messages img{display:block;max-width:100%;max-height:180px;object-fit:contain;margin:10px 0}#change-messages small{overflow-wrap:anywhere}@media(max-width:600px){.editor-style-grid{grid-template-columns:1fr}#kuban-editor-tools.editing button{font-size:12px;padding:7px}}
#kuban-editor-tools.editing{top:12px;bottom:auto;left:160px;right:12px}@media(max-width:700px){#kuban-editor-tools.editing{left:12px;top:60px}}
.editor-drag-mode #root [data-editor-key]{cursor:grab!important;touch-action:none;user-select:none}.editor-drag-mode #root [data-editor-key]:active{cursor:grabbing!important}.menu-button--main{white-space:normal!important}.menu-button--main span,.menu-button--main div{overflow-wrap:normal;white-space:normal;max-width:180px;margin-inline:auto;line-height:1.15}
.menu-buttons .menu-button--main{width:180px!important;min-width:0!important;white-space:pre-line!important;overflow-wrap:normal!important}
.editor-target{pointer-events:auto!important}.kuban-main-book-link{pointer-events:auto!important}
.kuban-main-menu{position:absolute;left:50%;top:730px;transform:translateX(-50%);display:flex;width:1041px;height:209px}.kuban-home-tile{position:relative;flex:0 0 347px;width:347px;height:209px;background:transparent center/100% 100% no-repeat;border:0;padding:0;color:#72462a;font:700 26px/1.2 'Tenor Sans',sans-serif;cursor:pointer;overflow:visible}.kuban-home-tile-label{position:absolute;left:140px;top:50%;transform:translateY(-50%);width:190px;text-align:center;white-space:pre-line}.kuban-home-tile:hover{filter:brightness(1.05)}

/* Viewport fit: no 1920px ceiling; background fills unused space without stretching artwork. */
html,body,#root{width:100%;min-height:100%;margin:0}
.app-shell{--scale:var(--viewport-scale,1);width:100%;height:100vh;height:100dvh}
.background-content{width:100vw;height:100vh;height:100dvh;inset:0;transform:none}
.background-image{background-size:cover!important;background-position:center!important}
@media(max-width:1000px){
 html,body{height:auto;overflow-x:hidden!important;overflow-y:auto!important}
 .app-shell{height:auto;min-height:100vh;min-height:100dvh;overflow:clip;--scale:1}
 .background-content{position:fixed;height:100dvh}
 .app{position:relative;inset:auto;transform:none;width:100%;height:auto;min-height:100dvh;overflow:visible;padding:82px 12px 110px}
 .app-content{height:auto;min-height:calc(100dvh - 192px)}
 .app-back-button{position:absolute;inset:0;width:100%;height:100%;transform:none}
 .kuban-navigation{position:absolute;top:max(12px,env(safe-area-inset-top));left:12px;right:auto;gap:0}
 .kuban-navigation button{font-size:17px;padding:10px 18px;min-height:44px}
 .kuban-context-nav{position:fixed;z-index:30;bottom:0;left:0;right:0;justify-content:flex-start;gap:6px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));overflow-x:auto;background:#eed8abeF;max-width:100vw}
 .kuban-context-nav button{flex:0 0 auto;min-height:44px;font-size:15px;padding:8px 12px;white-space:nowrap}
 .kuban-map-note{display:none}
 .main-page{height:auto;display:flex;flex-direction:column;align-items:center;gap:20px}
 .main-page .title{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:auto!important}
 .main-page .title img{width:100%;height:auto;max-height:160px;object-fit:contain}
 .kuban-main-menu{position:relative;inset:auto;transform:none;width:100%;height:auto;display:flex;flex-direction:column;align-items:center;gap:8px}
 .kuban-home-tile{flex:0 0 auto;width:min(347px,100%);height:auto;aspect-ratio:347/209}
 .kuban-home-tile-label{left:40%;width:55%;font-size:clamp(19px,6vw,26px)}
 .kuban-main-book-link{position:fixed!important;bottom:14px!important;left:12px!important;right:auto!important;top:auto!important;transform:none!important;width:auto!important;min-height:44px;font-size:17px!important}
 .routes-page{height:auto}
 .routes-page .page-title{position:relative!important;inset:auto!important;transform:none!important;display:flex;justify-content:center;margin:0 0 12px}
 .routes-page .page-title-scroll{width:100%!important;max-width:360px;height:145px!important}
 .routes-background{position:relative!important;inset:auto!important;margin:0!important;padding:14px!important;width:100%!important;height:auto!important;display:flex;flex-direction:column;gap:16px}
 .routes-background>.absolute{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:auto!important}
 .routes-background>.absolute:has(img[alt="Художественная карта Кубани"]){order:0}
 .routes-background>.absolute img[alt="Художественная карта Кубани"]{width:100%!important;height:auto!important}
 .routes-background>.absolute:has(.routes-plates){display:contents}
 .routes-background>.absolute:has(img:not([alt="Художественная карта Кубани"])){display:none}
 .routes-text-plate{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;padding:20px!important;font-size:17px!important;line-height:1.5!important;order:1}
 .routes-plates{order:2;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px;width:100%;height:auto}
 .routes-plates>.route-plate{grid-area:auto!important;margin:0;width:100%;height:190px}
 .route-plate-name{font-size:17px;padding:22px 6px 0;height:68px}
 .route-plate-actions{padding:8px 8px 0;flex-direction:column;align-items:center;gap:5px;font-size:15px}
 .route-plate-action-button{min-height:36px}
 .concrete-history-page{height:auto;display:block}
 .concrete-history-page>.div-image{display:none}
 .book{position:relative;inset:auto;pointer-events:auto}
 .book .book-container{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:auto!important;display:flex!important;flex-direction:column;gap:14px;background-image:none!important;padding:0!important}
 .book .page,.book.flip-book .page{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0;padding:24px 20px!important;background:#f1dbabf5;border:1px solid #a47c48;border-radius:12px;overflow:visible;font-size:18px!important;text-align:left!important}
 .book .book-page-content{padding:0!important;width:100%!important;height:auto!important}
 .book .people-name{font-size:30px;margin:12px 0}
 .book .history-chapters-list{padding:0;font-size:20px;line-height:1.5}
 .book .history-chapters-item{padding:10px 0}
 .book h1,.book h2,.book h3,.book .book-chapter-title__text{font-size:25px!important;overflow-wrap:anywhere}
 .book figure,.book img{max-width:100%!important;height:auto}
 .book .flip-book-nav{position:relative!important;inset:auto!important;display:inline-block;margin:15px 12px 0}
 .book .flip-book-nav-image{width:58px;max-height:58px}
 .kuban-book-people button{min-height:46px;font-size:19px}
 .kuban-settlement-page{height:auto!important;display:flex;flex-direction:column;gap:16px}
 .kuban-settlement-page>.absolute,.kuban-settlement-page>.div-image{position:relative!important;inset:auto!important;transform:none!important;max-width:100%;margin:auto}
 .kuban-settlement-page>.absolute:has(.page-title-scroll){display:none}
 .kuban-settlement-page>.absolute:has(img){display:none}
 .kuban-settlement-article{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;padding:24px 20px!important;font-size:18px!important;overflow:visible!important}
 .kuban-settlement-article h1{font-size:27px}
 .kuban-point-navigation{position:relative!important;inset:auto!important;width:100%!important;gap:8px;flex-wrap:wrap}
 .kuban-point-navigation button{font-size:15px;min-height:44px;flex:1}
 .timeline-page,.modern-ethnicity-page{height:auto!important}
 .panels-row{position:relative!important;inset:auto!important;padding:0;display:flex;flex-direction:column;gap:16px}
 .panel,.modern-ethnicity-page .panel{flex:auto!important;width:100%;height:auto!important;max-height:none!important;padding:24px 18px!important;overflow:visible;background:#f1dbabf5!important;border:1px solid #a47c48;border-radius:12px}
 .panel-list,.timeline-page .panel-list{height:auto!important;gap:14px;overflow:visible}
 .panel-item-image{max-width:100%;height:auto}
 .panel-content,.panel-content p,.modern-ethnicity-page p{font-size:18px!important;line-height:1.5!important}
 .panel-content img{float:none!important;max-width:100%!important;margin:12px auto!important;display:block}
 .panel-scroll-wrap,.panel-scroll-viewport{height:auto!important;max-height:none!important;overflow:visible!important}
 .timeline-page>.page-title,.modern-ethnicity-page>.page-title{display:none}
 /* Maps remain a proportional illustrated canvas, with readable navigation outside it. */
 .app:has(.route-map-city-marker):not(:has(.kuban-settlement-article)){width:1920px;height:1080px;min-height:0;padding:0;transform:scale(calc(100vw / 1920px));transform-origin:top left;margin-top:90px}
 .app-shell:has(.route-map-city-marker){min-height:100dvh}
 .app-shell:has(.route-map-city-marker) .app-back-button{height:100dvh}
 .editor-toolbar{max-width:calc(100vw - 16px);flex-wrap:wrap}
}
@media(max-width:1000px){
 .routes-background>.absolute:has([aria-label="Художественная карта Кубани"]){order:0}
 .routes-background [aria-label="Художественная карта Кубани"]{width:100%!important;height:auto!important;aspect-ratio:700/455;background-size:contain!important;background-repeat:no-repeat}
 .routes-background>.absolute:has([style*="girl-"]){display:none}
}
@media(max-width:1000px){
 .kuban-book-intro,.kuban-book-people{padding:0!important}
 .kuban-book-intro p,.kuban-book-people p{font-size:18px!important;line-height:1.6!important}
 .book .page:empty{display:none}
 .book .page1,.book .page2{align-items:stretch!important;justify-content:flex-start!important}
 .book .book-chapter-title{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:auto!important;margin:0 0 18px}
 .kuban-video iframe{height:220px}
}
@media(max-width:1000px){
 .kuban-settlement-page{position:relative!important;inset:auto!important;width:100%!important}
 .kuban-settlement-page .people-name-plate{font-size:23px!important;max-width:100%;min-height:70px;height:auto!important;padding:20px!important}
 .kuban-settlement-page .kuban-settlement-period{margin-top:0}
 .kuban-settlement-page>[class*="absolute"]:has([style*="girl-"]){display:none}
}
@media(max-width:1000px){
 .route-map-city-marker{min-width:150px;min-height:150px}
 .route-map-city-marker__image{width:150px!important;height:150px!important}
 .route-map-city-label__text{font-size:62px}
 .kuban-city-number{font-size:65px!important}
 .app:has(.route-map-city-marker):not(:has(.kuban-settlement-article)){transform:scale(var(--mobile-map-scale))}
}
/* Fill both nested layers, including displays larger than the original illustration. */
.background-layer>.background-image,.background-layer>.background-image>.div-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;transform:none!important}
.background-layer>.background-image>.div-image{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
#kuban-editor-tools[hidden]{display:none!important}
@media(pointer:fine){
 html,body,#root{cursor:url('/assets/kuban-cursor.svg') 3 2,auto}
 button,a,[role=button],.history-chapters-item,.panel-item-image,.editor-target{cursor:url('/assets/kuban-cursor-link.svg') 3 2,pointer!important}
 input,textarea,[contenteditable=true]{cursor:text!important}
 .editor-drag-mode #root [data-editor-key]{cursor:grab!important}
 .editor-drag-mode #root [data-editor-key]:active{cursor:grabbing!important}
}
/* The shared raster lives in a separate CSS layer; SVG contains only route vectors. */
.routes-background>.absolute:has([aria-label="Художественная карта Кубани"]){background-image:url('/assets/kuban-map.png');background-size:100% 100%;background-position:center;background-repeat:no-repeat}
/* Consistent typography, cursor and a clear active culture. */
.page-title-scroll__text,.route-map-title,.people-name-plate,.route-map-city-label__text,.route-plate-name,.kuban-current-people{font-family:Georgia,'Times New Roman',serif!important;font-weight:600}
.timeline-page .panel-item-image,.modern-ethnicity-page .panel-item-image{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;transition:filter .2s,transform .2s}
.panel-item--active .panel-item-image,.panel-item-image--active{filter:sepia(.25) saturate(1.6) drop-shadow(0 0 5px #9b581b) drop-shadow(0 0 2px #6c3615)!important;transform:scale(1.035)}
.panel-item--active{position:relative}
.panel-item--active:after{content:'✓';position:absolute;right:7px;top:50%;transform:translateY(-50%);border-radius:50%;background:#75472a;color:#fff2cf;width:28px;height:28px;display:grid;place-items:center;font:20px Georgia;pointer-events:none}
.background-clouds{display:none!important}
.app-shell:has(.route-map-city-marker){background:#d8c39c}
.app-shell:has(.route-map-city-marker) .background-layer>.background-image{inset:auto!important;left:50%!important;top:50%!important;width:1920px!important;height:1080px!important;transform:translate(-50%,-50%) scale(var(--viewport-scale))!important}
.book .page{min-width:0;overflow-x:hidden!important;overflow-wrap:anywhere;word-break:normal;color:#4d2c19!important}
.book.flip-book .page{width:560px!important;padding:16px 20px 24px!important;height:660px!important;max-height:660px!important;overflow-y:auto!important;overflow-x:hidden!important;background:#f7e6bd55;border-radius:8px;font:24px/1.5 Georgia,'Times New Roman',serif!important}
.book .book-page-content,.book .book-content{width:100%;min-width:0;max-width:100%;overflow-x:clip!important;text-align:left!important;white-space:normal!important}
.book .book-content p,.kuban-book-measure p{margin:12px 0;line-height:1.5}
.book .book-content a{overflow-wrap:anywhere;word-break:break-word}
.book .book-page-content h3,.kuban-book-measure h3{font:bold 27px/1.2 Georgia!important;margin:16px 0 12px}
.book .book-page-content img,.book .book-page-content iframe{max-width:100%}
.kuban-book-measure figure{margin:15px 0 22px;padding:8px;border:1px solid transparent}
.kuban-book-measure figcaption{font:16px/1.3 Georgia;text-align:center;margin:8px 0 3px}
.book-chapter-title__text{font-family:Georgia,serif!important;color:#4d2c19!important}
.book-container{isolation:isolate}
.kuban-current-people{position:absolute;top:140px;left:50%;transform:translateX(-50%);font-size:25px;padding:7px 30px;background:#f1d7a5;border:1px solid #ac7d42;border-radius:20px;z-index:3;white-space:nowrap;box-shadow:0 2px 5px #36200e44}
.book:not(.flip-book) .book-container:before{content:'';position:absolute;z-index:-1;pointer-events:none;left:1060px;top:240px;width:500px;height:650px;background:url('/assets/kuban-book-watermark.svg') center/contain no-repeat;opacity:.12}
.book.flip-book .flip-book-nav{bottom:70px;display:flex;align-items:center;gap:12px;color:#4d2c19;font:22px Georgia}
.book .flip-book-nav--restart{background:#f2d8a8eF;border:1px solid #a5783d;border-radius:10px;padding:4px 20px;box-shadow:0 2px 6px #3c261a33}
.book .flip-book-nav--restart .flip-book-nav-image{transform:scaleX(-1);width:70px}
@media(pointer:fine){
 *{cursor:url('/assets/kuban-cursor.svg') 3 2,auto!important}
 button,button *,a,a *,[role=button],[role=button] *,.panel-item,.panel-item *,[data-goto],[data-goto] *,.history-chapters-item{cursor:url('/assets/kuban-cursor-link.svg') 3 2,pointer!important}
 input,textarea,[contenteditable=true],[contenteditable=true] *{cursor:text!important}
 .editor-drag-mode #root [data-editor-key],.editor-drag-mode #root [data-editor-key] *{cursor:grab!important}
 .editor-drag-mode #root [data-editor-key]:active{cursor:grabbing!important}
}
@media(max-width:1000px){
 .book.flip-book .page{width:100%!important;height:auto!important;max-height:none!important;font-size:18px!important;padding:24px 20px!important}
 .kuban-current-people{position:relative;top:auto;left:auto;transform:none;width:max-content;max-width:100%;margin:12px auto;font-size:21px;white-space:normal;order:-1}
 .book:not(.flip-book) .book-container:before{left:0;top:50%;width:100%;height:400px}
 .book .flip-book-nav{position:relative!important;inset:auto!important;display:inline-flex!important;min-height:48px}
 .app-shell:has(.route-map-city-marker) .background-layer>.background-image{left:0!important;top:90px!important;transform:scale(var(--mobile-map-scale))!important;transform-origin:top left!important}
}
@media(max-width:1000px){.book .page,.book.flip-book .page{background:#f3dfb4fa!important;color:#4d2c19!important}}
/* Keep the illustrated scroll itself; remove only its rectangular backing. */
.timeline-page .panel-item-image,.modern-ethnicity-page .panel-item-image{background:transparent url('/assets/свиток пустой-B0uxo0Kc.png') center/100% 100% no-repeat!important;padding:7px 12px!important}
.app-shell:has(.route-map-city-marker){background:#d8c39c url('/assets/Фон пергамент-WcX1xc55.png') center/cover no-repeat}
.panel-item--active .panel-item-image,.panel-item-image--active{filter:brightness(.9) saturate(1.25) drop-shadow(0 3px 4px #70411999)!important}
.route-map-title .page-title-scroll{width:450px!important;height:190px!important;padding:20px 45px!important;display:flex;align-items:center;justify-content:center;background-size:100% 100%!important}
.route-map-title .page-title-scroll__text{width:340px!important;max-width:100%;font:600 30px/1.2 Georgia,serif!important;text-align:center}
.timeline-page .panel-item--active:after{display:none!important}
.book .page,.book.flip-book .page{background:transparent!important;border:0!important;border-radius:0!important}
.book .flip-book-nav--restart{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
@media(max-width:1000px){.book .book-container{background-color:#f3dfb4!important;border-radius:10px}.book .page,.book.flip-book .page{background:transparent!important}}
