/* Chess MISIS — единый слой читаемости и компактных пропорций. */
#cm-campus,#cm-calendar,#cm-account,#cm-education,#cm-admin,#cm-learning,#cm-tournament-public,#cm-stories,#cm-cooperation{font-family:Arial,Helvetica,sans-serif}
#cm-campus h1,#cm-campus h2,#cm-campus h3,#cm-calendar h1,#cm-calendar h2,#cm-calendar h3,#cm-account h1,#cm-account h2,#cm-account h3,#cm-education h1,#cm-education h2,#cm-education h3,#cm-admin h1,#cm-admin h2,#cm-admin h3,#cm-learning h1,#cm-learning h2,#cm-learning h3,#cm-tournament-public h1,#cm-tournament-public h2,#cm-tournament-public h3,#cm-stories h1,#cm-stories h2,#cm-stories h3,#cm-cooperation h1,#cm-cooperation h2,#cm-cooperation h3{overflow-wrap:anywhere;text-wrap:balance}
#cm-campus .cc-section-head{align-items:flex-start}
#cm-campus .cc-section h2{line-height:1.08!important;letter-spacing:-.045em!important}
#cm-campus .cc-section-head>p{padding-top:13px;line-height:1.5}
#cm-campus .cc-story h3{line-height:1.1!important;letter-spacing:-.04em!important}
#cm-calendar .cc-section-head h2,#cm-account .cm-section-head h2,#cm-education .ce-section-head h2,#cm-admin .ca-section-head h2,#cm-tournament-public .ct-section-head h2,#cm-stories .cs-section-head h2,#cm-cooperation .co-section-head h2{line-height:1.1!important;letter-spacing:-.04em!important}
#cm-account .cm-education-card h3,#cm-education .ce-course h3,#cm-tournament-public .ct-card h3,#cm-calendar .cc-event-card h3{line-height:1.16!important}
#cm-calendar p,#cm-account p,#cm-education p,#cm-admin p,#cm-learning p,#cm-tournament-public p,#cm-stories p,#cm-cooperation p{line-height:1.5}
#cm-campus .cc-collage{gap:12px}
#cm-campus .cc-collage-card{min-height:150px;padding:21px}
#cm-campus .cc-collage-card.cc-photo{min-height:312px}
#cm-campus .cc-collage-card b{margin-top:14px}
#cm-campus .cc-stories{align-items:start}
#cm-campus .cc-story{min-height:0;padding:26px}
#cm-campus .cc-route{min-height:210px}
#cm-campus .cc-role-panel{min-height:0}
#cm-tournament-public .tp-hero{background:linear-gradient(135deg,#0d236f,#1746d1 62%,#1268e8)!important;color:#fff!important;box-shadow:0 14px 32px rgba(13,35,111,.14)!important}
#cm-tournament-public .tp-hero h1{color:#fff!important}
#cm-tournament-public .tp-hero p,#cm-tournament-public .tp-picker label,#cm-tournament-public .tp-live{color:rgba(255,255,255,.82)!important}
#cm-tournament-public .tp-picker{border-color:rgba(255,255,255,.26)!important;background:rgba(255,255,255,.1)!important}
#cm-cooperation .co-hero .co-btn:not(.co-btn-primary){background:#fff!important;color:#101722!important}
/* Единый спокойный фон вместо шахматной сетки. */
#cm-campus,#cm-calendar,#cm-account,#cm-education,#cm-admin,#cm-learning,#cm-tournament-public,#cm-stories,#cm-cooperation{background:#f4f7fb!important}
@media(max-width:900px){#cm-learning .cm-routes{grid-template-columns:1fr!important}}
@media(max-width:700px){#cm-campus .cc-section{padding:48px 0}#cm-campus .cc-section-head{gap:14px}#cm-campus .cc-section h2{font-size:clamp(31px,10vw,46px);line-height:1.1!important;letter-spacing:-.04em!important}#cm-calendar h1,#cm-account h1,#cm-education h1,#cm-admin h1,#cm-learning h1,#cm-tournament-public h1,#cm-stories h1,#cm-cooperation h1{line-height:1.05!important;letter-spacing:-.045em!important}#cm-calendar h2,#cm-account h2,#cm-education h2,#cm-admin h2,#cm-learning h2,#cm-tournament-public h2,#cm-stories h2,#cm-cooperation h2{line-height:1.12!important;letter-spacing:-.035em!important}#cm-calendar [class*="btn"],#cm-account [class*="btn"],#cm-education [class*="btn"],#cm-admin [class*="btn"],#cm-learning [class*="btn"],#cm-tournament-public [class*="btn"],#cm-stories [class*="btn"],#cm-cooperation [class*="btn"]{white-space:normal}}
@media(max-width:600px){#cm-campus .cc-collage{gap:8px}#cm-campus .cc-collage-card{min-height:132px;padding:14px}#cm-campus .cc-collage-card.cc-photo{min-height:272px}#cm-campus .cc-story,#cm-campus .cc-route{min-height:0}#cm-cooperation .co-nav .co-btn:not(:last-child){display:none!important}#cm-learning .cm-section-top{display:block!important;margin-bottom:18px}#cm-learning .cm-section-top p{margin-top:12px;font-size:16px}#cm-learning .cm-plan{padding:22px;border-radius:24px}}
/* Отступ между общей шапкой и первым блоком страницы. */
.cm-unified-header+*{margin-top:18px!important}@media(max-width:720px){.cm-unified-header+*{margin-top:14px!important}}
/* Учебный центр: общая ширина шапки и подвала. */
@media(min-width:721px){#cm-learning .cm-unified-header{width:calc(100vw - 60px)!important;margin-left:calc(50% - 50vw + 30px)!important;margin-right:0!important}#cm-learning .cm-unified-footer{width:calc(100vw - 20px)!important;margin-left:calc(50% - 50vw + 10px)!important;margin-right:0!important}}
@media(max-width:720px){#cm-learning .cm-unified-header,#cm-learning .cm-unified-footer{width:calc(100vw - 20px)!important;margin-left:calc(50% - 50vw + 10px)!important;margin-right:0!important}}
/* Общий контейнер, подвал и меню для всех страниц. */
.cm-unified-header,.cm-unified-footer{box-sizing:border-box!important;width:calc(100% - 64px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
.cm-unified-footer{background:#101722!important;color:#cbd6e6!important;border-radius:22px!important;overflow:hidden!important}
.cm-unified-footer p,.cm-unified-footer div,.cm-unified-footer span{color:#cbd6e6!important}.cm-unified-footer h1,.cm-unified-footer h2,.cm-unified-footer h3,.cm-unified-footer h4,.cm-unified-footer strong,.cm-unified-footer b{color:#fff!important}.cm-unified-footer a{color:#5ca5ff!important}
@media(min-width:721px){.cm-unified-header{position:sticky!important;top:16px!important;z-index:200!important;transition:transform .22s ease,box-shadow .22s ease!important}.cm-unified-footer{margin-top:48px!important;margin-bottom:34px!important}}
@media(max-width:720px){.cm-unified-header,.cm-unified-footer{width:calc(100% - 24px)!important}.cm-unified-header{position:relative!important;top:auto!important}.cm-unified-footer{margin-bottom:20px!important;border-radius:18px!important}}
/* Убираем декоративную шахматную сетку: остаётся спокойный фон. */
body:has(#cm-campus) .t-records,body:has(#cm-calendar) .t-records,body:has(#cm-account) .t-records,body:has(#cm-education) .t-records,body:has(#cm-admin) .t-records,body:has(#cm-learning) .t-records,body:has(#cm-tournament-public) .t-records,body:has(#cm-stories) .t-records,body:has(#cm-cooperation) .t-records,body:has(#cm404-main) .t-records{background:#f4f7fb!important;background-image:none!important}
body:has(#cm-campus) .t-records::before,body:has(#cm-calendar) .t-records::before,body:has(#cm-account) .t-records::before,body:has(#cm-education) .t-records::before,body:has(#cm-admin) .t-records::before,body:has(#cm-learning) .t-records::before,body:has(#cm-tournament-public) .t-records::before,body:has(#cm-stories) .t-records::before,body:has(#cm-cooperation) .t-records::before,body:has(#cm404-main) .t-records::before{background-image:none!important}
