/* Uchebka premium visual system | isolated edition | 2026-11-05
   Loaded after existing layouts. Does not change page behavior or course data. */
@import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,500;0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=Manrope:wght@400;500;600;700;800&display=swap");
html{scroll-behavior:smooth}
body.uch-premium{
 --uch-ink:#111629; --uch-night:#0b1021; --uch-panel:#171e38; --uch-ice:#a9b9ff; --uch-accent:#8499f7;
 --uch-paper:#f6f7fc; --uch-white:#fff; --uch-line:rgba(142,161,227,.26);
 --lime:#a5b6ff; --green:#617be0; --accent:#8499f7; --brand:#8197f6; --primary:#8095f5;
 font-family:"Manrope",ui-sans-serif,Arial,sans-serif;
 -webkit-font-smoothing:antialiased;
}
body.uch-premium :is(h1,h2,h3,.section-title,.display-title){
 text-wrap:balance; 
}
body.uch-premium :is(h1,h2,.display-title){
 font-family:"Exo 2","Manrope",sans-serif;
 font-style:italic;
 font-weight:900;
 letter-spacing:-.055em;
 line-height:1.08;
}
body.uch-premium :is(.site-header,.top,.reader-header,.sim-header){
 background:#0b1021 !important; color:#f3f5ff !important;
 border-color:rgba(170,186,249,.23)!important;
 box-shadow:0 13px 38px rgba(15,21,41,.1);
}
body.uch-premium :is(.site-header,.top,.reader-header,.sim-header) :is(a,.nav-links a,.top-links a,.header-subtitle){
 color:#e2e8fa;
}
body.uch-premium :is(.site-header,.top,.reader-header,.sim-header) :is(a:hover,.nav-links a:hover,.top-links a:hover){
 color:#c4ceff;
}
body.uch-premium :is(.prelaunch,.announcement,.top-ribbon){
 background:#131a32!important;color:#c8d2f6!important;border-color:#334365!important;
}
body.uch-premium .announce-dot{background:#a6b8ff!important;box-shadow:0 0 0 5px rgba(128,153,246,.13)}
body.uch-premium :is(.site-header,.sim-header,.top,.reader-header) img,
body.uch-premium img.uchebka-official-wordmark,
body.uch-premium .logo img{filter:none!important}
body.uch-premium :is(.nav-cta,.header-action,.btn-main,.btn-primary,.button-primary,.go-book,.primary,.pay-tab[aria-selected="true"]){
 border-radius:18px!important;
 background:linear-gradient(130deg,#b7c4ff,#879dff)!important;
 border:1px solid rgba(144,158,241,.6)!important;
 color:#11182e!important;
 font-family:"Manrope",sans-serif;
 font-weight:800!important;
 box-shadow:inset 0 1px 1px rgba(255,255,255,.49),0 10px 30px rgba(80,97,178,.14);
}
body.uch-premium :is(.btn-ghost,.btn-secondary,.button-secondary){
 border-radius:17px!important;border-color:#93a0d8!important;
}
body.uch-premium :is(.nav-cta,.header-action,.btn-main,.btn-primary,.button-primary,.go-book,.primary,.btn-ghost,.btn-secondary,.button-secondary,.pay-tab){
 transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease;
}
body.uch-premium :is(.nav-cta,.header-action,.btn-main,.btn-primary,.button-primary,.go-book,.primary,.btn-ghost,.btn-secondary,.button-secondary):hover{
 transform:translateY(-2px);
 box-shadow:0 14px 32px rgba(71,88,167,.2);
}
body.uch-premium :is(.eyebrow,.kicker,.tag,.section-kicker,.ins-label,.payment-type,.step-label,.login-kicker){
 color:#8295ec!important;font-family:"Manrope",sans-serif;letter-spacing:.16em;font-weight:800;
}
body.uch-premium :is(a,button,input,select,textarea,summary):focus-visible{
 outline:3px solid #9fabff!important;outline-offset:3px;
}
body.uch-premium :is(input,select,textarea){accent-color:#8499f7;}
body.uch-premium :is(.card,.lesson-card,.faculty-card,.exercise-card,.question-card,.ticket-card,.step-card,.topic-card,.payment-card,.pay-pane,.booking-history,.recover,.login-box,.feature-card){
 border-radius:21px;
 border-color:rgba(119,142,212,.29)!important;
}
body.uch-premium :is(.card,.lesson-card,.faculty-card,.exercise-card,.topic-card,.step-card,.feature-card){
 box-shadow:0 10px 35px rgba(28,40,78,.07);
}
body.uch-premium :is(.section,.faculty-section,.lessons-section) h2{letter-spacing:-.045em}
body.uch-premium :is(.prelaunch,.announcement){font-size:11px!important;font-weight:750;letter-spacing:.045em}
body.uch-premium :is(.legal-page,.reader-width) a{color:#536acb}
body.uch-premium .legal-page{line-height:1.85}
body.uch-premium :is(.legal-page,.reader-width) h1{color:#151d3b}
body.uch-premium .legal-page h2{color:#233869}
body.uch-premium :is(.reader-header,.reader-header a){color:#eef2ff!important}
body.uch-premium .reader-header .wordmark{font-family:"Exo 2",sans-serif;font-weight:900;font-size:26px;font-style:italic}
body.uch-premium :is(.reader-header .header-subtitle,.reader-header .wordmark){color:#f1f4ff!important}
body.uch-premium :is(.search-panel,.chapters){border-color:#dbe2f3!important}
body.uch-premium .reader-width :is(input,select){border-color:#a8b6dc!important}
body.uch-premium :is(.faq summary,.chapters summary,details summary){cursor:pointer}
body.uch-premium :is(.tag-dot,.status-orb,.eyebrow-line,.online-dot){background:#94a7ff!important;box-shadow:0 0 0 4px rgba(118,142,250,.12)!important}
body.uch-premium .sim-header{backdrop-filter:blur(15px)}
body.uch-premium .sim-header .current{color:#cbd5ff!important}
body.uch-premium :is(.footer,.reader-footer){border-color:rgba(145,158,211,.22);}

/* Editorial/learning pages: same dark photographic opening as main design. */
body.uch-premium.uch-public :is(.study-hero,.instructor-hero,.tickets-intro,.page-header,.page > .intro){
 background-image:linear-gradient(90deg,rgba(8,13,30,.96) 0%,rgba(12,18,42,.9) 60%,rgba(9,15,34,.49) 100%),url("/uchebka/visual-20261105/hero-v7.webp")!important;
 background-color:#10182e!important;
 background-size:cover!important;
 background-position:center!important;
 color:#f2f5ff!important;
 border-radius:30px!important;
 border:1px solid rgba(168,186,255,.22)!important;
 padding:clamp(25px,4.5vw,68px)!important;
 margin-top:25px;
 margin-bottom:38px;
 box-shadow:0 21px 55px rgba(15,20,55,.16)!important;
}
body.uch-premium.uch-public :is(.study-hero,.instructor-hero,.tickets-intro,.page-header,.page > .intro) :is(h1,h2,h3,p,span,strong,em){
 color:inherit;
}
body.uch-premium.uch-public :is(.study-hero,.instructor-hero,.tickets-intro,.page-header,.page > .intro) h1{
 color:#fff!important;font-size:clamp(39px,5.3vw,75px)!important;text-shadow:0 4px 15px rgba(0,0,0,.14)
}
body.uch-premium.uch-public :is(.study-hero,.instructor-hero,.tickets-intro,.page-header,.page > .intro) h1 span{
 color:#b9c5ff!important;
}
body.uch-premium.uch-public :is(.study-hero,.instructor-hero,.tickets-intro,.page-header,.page > .intro) .hero-lead,
body.uch-premium.uch-public :is(.study-hero,.instructor-hero,.tickets-intro,.page-header,.page > .intro) .lead{
 color:#d5def7!important;line-height:1.72;max-width:800px;
}
body.uch-premium.uch-public .page-header{background-image:linear-gradient(100deg,#eaf0ff,#f9faff)!important;color:#111a32!important}
body.uch-premium.uch-public .page-header :is(h1,p){color:#141c38!important}
body.uch-premium.uch-public .page-header h1{color:#151e42!important}
/* Most content on educational pages remains high-contrast, bright, readable. */
body.uch-premium.uch-public.uch-light{
 background:#f5f7fc;color:#15213e;
}
body.uch-premium.uch-public.uch-light :is(.section h2,.section-head h2){color:#182343}
body.uch-premium.uch-public.uch-light :is(.faculty-card,.lesson-card,.exercise-card,.card,.topic-card){background:#fff;border-color:#dfe5f4!important}
body.uch-premium.uch-public.uch-light :is(.faculty-card,.lesson-card,.exercise-card,.card,.topic-card) :is(h3,p){color:#1d2742}
/* Hero for AI departments: premium navy backdrop but preserve demonstration inner card. */
body.uch-premium.page-ai .hero{
 background:linear-gradient(112deg,#0e162d 0%,#101d3e 68%,#172750 100%)!important;
 border-radius:32px!important;padding:clamp(25px,4.2vw,56px)!important;color:#fff!important;
 margin-top:22px; box-shadow:0 20px 60px rgba(25,36,74,.13);
}
body.uch-premium.page-ai .hero-copy :is(h1,p,.hero-lead){color:#f0f4ff!important}
body.uch-premium.page-ai .hero-copy h1 span{color:#aebeff!important}
body.uch-premium.page-ai .hero-card,body.uch-premium.page-ai .director-visual{
 border-color:#50659d!important;
}
body.uch-premium.page-ai .hero .btn-secondary{color:#eff3ff!important;border-color:#7786b9!important}
body.uch-premium.page-ai :is(.hero,.hero-card) .eyebrow{color:#becaff!important}
/* Dark production flows and mini-apps keep dark surface; switch emerald to indigo/graphite. */
body.uch-premium.uch-dark{
 background:radial-gradient(ellipse at 85% 0%,#172c4d 0%,#0b1020 58%,#090c17 100%)!important;
 color:#edf2ff!important;
}
body.uch-premium.uch-dark :is(.intro,.pdd-intro){
 background:linear-gradient(110deg,rgba(13,20,43,.94),rgba(21,31,65,.65)),url("/uchebka/visual-20261105/minsk-panorama.webp") center/cover!important;
 border:1px solid rgba(137,159,234,.22)!important;
 border-radius:27px!important;
 padding:clamp(22px,3.2vw,46px)!important;
 margin-top:19px!important;margin-bottom:29px;
}
body.uch-premium.uch-dark :is(.intro,.pdd-intro) :is(h1,p){color:#f2f5ff}
body.uch-premium.uch-dark :is(.intro,.pdd-intro) h1{font-size:clamp(36px,5vw,64px)}
body.uch-premium.uch-dark :is(.intro,.pdd-intro) h1 em{color:#adbbff;font-style:italic}
body.uch-premium.uch-dark :is(.booking,.pay-pane,.norms-pane,.booking-history,.recover,.payment-card,.step-head,.info-card){
 border-color:#374971!important;
}
body.uch-premium.uch-dark :is(.booking,.pay-pane,.norms-pane,.booking-history,.recover,.payment-card){
 background:#151e35!important;color:#eef2ff;
}
body.uch-premium.uch-dark :is(.booking,.pay-pane,.norms-pane,.booking-history,.recover,.payment-card) h2{
 color:#f3f5ff;
}
body.uch-premium.uch-dark :is(.booking,.pay-pane,.norms-pane,.booking-history,.recover,.payment-card) :is(p,small,dt){
 color:#b6c2dd;
}
body.uch-premium.uch-dark :is(.pay-tab,.pay-tab[aria-selected="false"],.booking details,.recover details){
 border-color:#475885!important;color:#d6dfff;background:#171f37;
}
body.uch-premium.uch-dark :is(.pay-tab[aria-selected="true"],.booking details[open],.recover details[open]){
 background:#27335c!important;color:#eef3ff!important;
}
body.uch-premium.uch-dark :is(input,textarea,select){
 background:#111931;color:#edf2ff;border-color:#46557d;
}
body.uch-premium.uch-dark :is(.step,.number-badge,.price-line strong){color:#b6c2ff}
body.uch-premium.uch-dark :is(.primary,.go-book,.btn-primary){color:#141a32!important}
/* Sim: keep game canvas, sprites and control surfaces intact. */
body.uch-premium.page-simulator{
 background:#f4f6fc;
}
body.uch-premium.page-simulator :is(.intro,.intro-copy){color:#f2f5ff}
body.uch-premium.page-simulator .intro h1{color:#f8faff!important}
body.uch-premium.page-simulator .intro h1 span{color:#b7c5ff!important}
body.uch-premium.page-simulator .hero-visual{filter:hue-rotate(112deg) saturate(.85);border-color:#536ea2}
body.uch-premium.page-simulator .game-canvas{filter:none!important}
/* Standalone/legal/reference pages should remain print-friendly. */
body.uch-premium.uch-document{
 background:#f6f7fb!important;color:#1c2840!important;line-height:1.75;
}
body.uch-premium.uch-document h1{font-size:clamp(33px,5.3vw,62px)}
body.uch-premium.uch-document :is(h2,h3){color:#253568}
body.uch-premium.uch-document :is(a,.wordmark){color:#5369c2}
body.uch-premium.uch-document :is(.top,.reader-header,.site-header) a{color:#f1f4ff!important}
body.uch-premium.uch-document :is(.legal-page,.reader-width,main){max-width:min(1100px,calc(100% - 32px))}
body.uch-premium.uch-document .legal-page{padding-top:45px;padding-bottom:70px}
body.uch-premium.uch-document :is(.legal-note,.search-panel){border-left:4px solid #95a5f8;border-radius:15px}
body.uch-premium.uch-document :is(input,select,textarea){
 border:1px solid #b5c1e7;border-radius:14px;
}
body.uch-premium.uch-document .site-header .nav-cta{color:#141a2f!important}
body.uch-premium.uch-document :is(.legal-page,.reader-width) a:hover{color:#283d9d}
body.uch-premium.uch-document .reader-header :is(a,.wordmark){color:#fff!important}
/* standalone design utility / preview pages */
body.uch-premium.uch-neutral{
 font-family:"Manrope",Arial,sans-serif;
}
body.uch-premium.uch-neutral h1{font-size:clamp(30px,4.8vw,62px)}
body.uch-premium.uch-neutral :is(.top,.site-header){background:#11182f!important}
/* high DPI button style and arrow: functional semantics preserved */
body.uch-premium :is(a.btn,a.btn-main,a.btn-primary,a.nav-cta,a.header-action,a.primary,button.primary){
 text-decoration:none;
}
body.uch-premium :is(.feature-card,.faculty-card,.lesson-card,.service-card,.exercise-card){
 transition:transform .2s ease,box-shadow .2s ease;
}
body.uch-premium :is(.feature-card,.faculty-card,.lesson-card,.service-card,.exercise-card):hover{
 transform:translateY(-2px);
 box-shadow:0 16px 44px rgba(34,46,98,.12);
}
@media(max-width:750px){
 body.uch-premium.uch-public :is(.study-hero,.instructor-hero,.tickets-intro,.page-header,.page > .intro){border-radius:22px!important;padding:25px 18px!important;margin-top:12px}
 body.uch-premium.page-ai .hero{border-radius:22px!important;padding:27px 17px!important}
 body.uch-premium.uch-public :is(.study-hero,.instructor-hero,.tickets-intro) h1{font-size:clamp(33px,8.5vw,51px)!important}
 body.uch-premium.uch-dark :is(.intro,.pdd-intro){padding:21px 18px!important;border-radius:18px!important}
 body.uch-premium .site-header .brand img{max-width:156px;height:auto}
}
@media(prefers-reduced-motion:reduce){
 body.uch-premium *{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}
}
/* Contrast-critical fixes after visual review */
body.uch-premium .site-header .nav-links a,body.uch-premium .site-header .navigation a,
body.uch-premium .site-header .nav a:not(.nav-cta):not(.header-action):not(.brand){color:#e6ecff!important}
body.uch-premium .site-header .nav-links a:hover{color:#c5ceff!important}
body.uch-premium .site-header :is(.nav-cta,.header-action){color:#121a30!important}
body.uch-premium.page-ai .hero-copy strong{color:#f1f4ff!important}
body.uch-premium.page-ai .hero .btn-secondary{color:#172142!important;background:#fdfdff!important;border-color:#bec6e2!important}
body.uch-premium.page-ai .showcase :is(.dash-main-title strong,.dash-item strong,.dash-main-title small,.dash-item small){color:#17213b!important;opacity:1!important}
body.uch-premium.page-ai .showcase .dash-main-title small,body.uch-premium.page-ai .showcase .dash-item small{color:#68748f!important}
body.uch-premium.page-ai .showcase :is(.dash-main-title,.dash-item){background:#fcfdff;border-color:#dce2f5}
body.uch-premium.uch-public :is(.study-hero,.instructor-hero,.tickets-intro,.page > .intro) :is(.kicker,.eyebrow,.tag){color:#c2cbff!important}
body.uch-premium.page-ai .hero .eyebrow{color:#bfceff!important}
body.uch-premium .site-header :is(.brand,.brand img){filter:none!important}
/* Reader and SEO editorial contrast correction */
body.uch-premium.uch-document .hero > p.lead,
body.uch-premium.uch-document .hero > .lead,
body.uch-premium.uch-document .section > p,
body.uch-premium.uch-document .content > p,
body.uch-premium.uch-document .related > p,
body.uch-premium.uch-document .content > .lead,
body.uch-premium.uch-document .section > .lead{color:#5a657c!important;opacity:1!important}
body.uch-premium.uch-document header nav a,
body.uch-premium.uch-document header .nav a,
body.uch-premium.uch-document header a:not(.primary):not(.btn){color:#e2e8ff!important}
body.uch-premium.uch-document .hero .eyebrow,
body.uch-premium.uch-document .hero .kicker{color:#6f85d7!important}
body.uch-premium.page-ai .site-header a.header-action,
body.uch-premium.page-ai .site-header a.header-action span{color:#161d35!important}
/* 3D application's outer shell only — preserve game canvas, events and controls. */
body.uch-premium.uch-3d{background:#0b1021;color:#eef3ff;font-family:Arial,sans-serif;--lime:#aabaff;--accent:#8ca0ff}
body.uch-premium.uch-3d .site-shell .topbar{background:#0c132a!important;border-bottom:1px solid #303e68;color:#f5f7ff}
body.uch-premium.uch-3d .topbar :is(.primary-nav a,.header-progress,.fallback-link){color:#e5eafe!important}
body.uch-premium.uch-3d .topbar .primary-nav a.current{color:#b9c6ff!important}
body.uch-premium.uch-3d .site-shell .hero{background:linear-gradient(90deg,rgba(7,13,31,.95),rgba(10,18,42,.65)),url('/uchebka/visual-20261105/hero-v7.webp') center/cover!important;border-radius:25px;border:1px solid #455685;padding:clamp(22px,4vw,60px)!important;margin-top:24px}
body.uch-premium.uch-3d .site-shell .hero :is(h1,p,.eyebrow){color:#f1f5ff!important}
body.uch-premium.uch-3d .site-shell .hero h1{font-family:Arial,sans-serif;font-style:italic;font-weight:900!important;letter-spacing:-.065em}
body.uch-premium.uch-3d .site-shell .hero h1 span{color:#afc0ff!important}
body.uch-premium.uch-3d .site-shell .hero-visual{opacity:.76}
body.uch-premium.uch-3d .site-shell .filterbar{background:#17203a!important;border:1px solid #4a5c8a}
body.uch-premium.uch-3d .site-shell .filterbar button.active{background:#8398f8!important;color:#10182b!important}
body.uch-premium.uch-document .reader-header .wordmark img{display:block;width:145px;height:auto;object-fit:contain}
/* Mobile polish: preserve readable navigation and exercise captions. */
body.uch-premium.page-simulator .sim-header .back-link{color:#1a2344!important;background:#f6f7ff!important}
body.uch-premium.page-simulator .intro .hero-note{color:#c7d1ea!important;opacity:1!important}
body.uch-premium.page-simulator .intro .hero-note span{color:#aebcfa!important}
body.uch-premium.uch-document :is(.hero > p,.section > p,.content > p){line-height:1.75}
@media(max-width:600px){
 body.uch-premium.page-ai .hero h1{font-size:clamp(36px,9vw,44px)!important;line-height:1.11!important}
 body.uch-premium.page-ai .hero-copy{min-width:0}
 body.uch-premium.uch-public :is(.study-hero,.instructor-hero,.tickets-intro) .hero-actions{gap:10px}
}
