/* One style source for inner pages: EGE typography and navigation. */
body:is(#portal-page,#top).portal-unified{font-family:"Segoe UI",Arial,sans-serif!important;color:#07345f!important;background:radial-gradient(circle at 78% 9%,rgba(255,255,255,.6),transparent 26%),radial-gradient(circle at 8% 35%,rgba(255,255,255,.3),transparent 29%),linear-gradient(180deg,#b9e3f7 0%,#88cbed 34%,#56b3e2 67%,#258dcc 100%)!important;background-attachment:fixed!important}
body:is(#portal-page,#top).portal-unified>.topbar{position:sticky!important;top:0!important;z-index:5000!important;height:72px!important;min-height:72px!important;display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto!important;grid-template-rows:72px!important;align-items:center!important;gap:clamp(7px,.9vw,13px)!important;padding:0 clamp(14px,2.15vw,34px)!important;background:linear-gradient(180deg,rgba(241,251,255,.97),rgba(232,247,255,.88))!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.84)!important;box-shadow:0 10px 30px rgba(7,73,119,.09)!important;backdrop-filter:blur(18px)!important;overflow:visible!important}
body:is(#portal-page,#top) .topbar .brand{font:850 clamp(18px,1.4vw,24px) "Trebuchet MS",sans-serif!important;letter-spacing:-.045em!important;color:#07345f!important;display:flex!important;align-items:center!important;gap:11px!important}
body:is(#portal-page,#top) .topbar :is(.brand-mark,.mark){width:42px!important;height:42px!important;flex:0 0 42px!important}
body:is(#portal-page,#top) .unified-global-wrap,body:is(#portal-page,#top) .unified-dropdown{position:relative!important}
body:is(#portal-page,#top) .unified-local-wrap{min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important}
body:is(#portal-page,#top) .unified-page-nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:clamp(5px,.55vw,9px)!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important}
body:is(#portal-page,#top).portal-unified .unified-menu-label{font:700 clamp(14px,1vw,16px)/1.15 "Segoe UI",Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#145b84!important;white-space:nowrap!important;text-decoration:none!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-height:42px!important;height:42px!important;padding:0 clamp(9px,.8vw,14px)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
body:is(#portal-page,#top) .unified-menu-label>*{font:inherit!important;color:inherit!important}
body:is(#portal-page,#top).portal-unified :is(.unified-global-toggle,.unified-home){font-size:14px!important}
body:is(#portal-page,#top) .unified-menu-label:is(:hover,:focus-visible){color:#073f70!important;background:rgba(255,255,255,.34)!important;outline:2px solid rgba(121,189,229,.34)!important;outline-offset:2px!important}
body:is(#portal-page,#top) .unified-menu-label::after,body:is(#portal-page,#top) .unified-submenu button::after{content:none!important;display:none!important}
body:is(#portal-page,#top).portal-unified :is(.unified-submenu,.unified-site-panel){font-family:"Segoe UI",Arial,sans-serif!important;position:absolute!important;top:calc(100% + 10px)!important;left:auto!important;right:0!important;bottom:auto!important;width:min(380px,calc(100vw - 24px))!important;height:auto!important;max-height:min(66vh,520px)!important;padding:10px!important;margin:0!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#5a9fc8 #d4edfa;border:1px solid rgba(83,155,198,.25)!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(230,246,255,.98),rgba(202,231,249,.98))!important;box-shadow:0 22px 55px rgba(6,74,125,.18)!important;backdrop-filter:blur(18px)!important;transform:none!important;z-index:5200!important;text-align:left!important}
body:is(#portal-page,#top) .unified-site-panel{left:0!important;right:auto!important;width:min(620px,calc(100vw - 24px))!important}
body:is(#portal-page,#top) .unified-site-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px 10px!important}
body:is(#portal-page,#top).portal-unified :is(.unified-submenu,.unified-site-panel) :is(a,button){font:700 14px/1.35 "Segoe UI",Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#145b84!important;display:block!important;min-height:40px!important;height:auto!important;width:100%!important;padding:11px 12px!important;margin:0!important;white-space:normal!important;text-align:left!important;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;box-shadow:none!important;text-decoration:none!important;transform:none!important}
body:is(#portal-page,#top).portal-unified :is(.unified-submenu,.unified-site-panel) :is(b,strong){font:inherit!important;font-weight:700!important;color:inherit!important}
body:is(#portal-page,#top).portal-unified .unified-submenu small{display:block!important;font:400 13px/1.4 "Segoe UI",Arial,sans-serif!important;color:#376c8c!important;margin-top:3px!important}
body:is(#portal-page,#top).portal-unified :is(.unified-submenu,.unified-site-panel) :is(a,button):is(:hover,:focus-visible){background:rgba(255,255,255,.52)!important;color:#073f70!important;border-color:rgba(98,167,206,.20)!important}
body:is(#portal-page,#top).portal-unified .unified-submenu .unified-submenu{position:static!important;inset:auto!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;margin:5px 0 7px!important;padding:5px!important;box-shadow:none!important;transform:none!important;border-radius:12px!important;background:rgba(172,214,239,.30)!important;overflow:visible!important}
body:is(#portal-page,#top).portal-unified :is(.hero-tag,.orb-tag,.sphere-label,.sphere-tag){font-family:"Segoe UI",Arial,sans-serif!important;font-weight:600!important;color:#063f70!important;text-transform:none!important;letter-spacing:0!important;line-height:1.15!important;font-size:clamp(13px,1.15vw,17px)!important;background:rgba(255,255,255,.94)!important;border:1px solid rgba(255,255,255,.98)!important;box-shadow:0 14px 32px rgba(7,75,126,.2),inset 0 0 0 1px rgba(7,120,199,.08)!important}
body:is(#portal-page,#top) :is(.hero-tag,.orb-tag,.sphere-label,.sphere-tag) *{font-weight:600!important;color:inherit!important}
body:is(#portal-page,#top) .hero h1{font-family:"Trebuchet MS",sans-serif!important;font-weight:700!important;color:#073f70!important;text-transform:none!important}
body:is(#portal-page,#top) .hero h1 span{color:#0878c7!important;-webkit-text-stroke:0!important}
body:is(#portal-page,#top) .section h2{font:700 clamp(34px,4.3vw,58px)/1 "Trebuchet MS",sans-serif!important;letter-spacing:-.05em!important;color:#073f70!important}
body:is(#portal-page,#top) .section h3{font-family:"Trebuchet MS",sans-serif!important;color:#073f70!important}
@media(max-width:1100px){body:is(#portal-page,#top) .topbar .brand>span:last-child{display:none!important}body:is(#portal-page,#top) .unified-local-wrap{overflow-x:auto!important;justify-content:flex-start!important;scrollbar-width:none!important}body:is(#portal-page,#top) .unified-page-nav{width:max-content!important;justify-content:flex-start!important}body:is(#portal-page,#top) nav.unified-page-nav{overflow-x:auto!important;scrollbar-width:none!important}}
@media(max-width:720px){body:is(#portal-page,#top).portal-unified>.topbar{height:64px!important;min-height:64px!important;grid-template-rows:64px!important;grid-template-columns:42px auto minmax(0,1fr) auto!important;gap:5px!important;padding:0 8px!important}body:is(#portal-page,#top).portal-unified .unified-menu-label{font-size:13px!important;height:38px!important;min-height:38px!important;padding:0 9px!important}body:is(#portal-page,#top) .unified-home span{display:none!important}body:is(#portal-page,#top) .unified-site-links{grid-template-columns:1fr!important}body:is(#portal-page,#top).portal-unified :is(.hero-tag,.orb-tag,.sphere-label,.sphere-tag){font-size:12px!important}body:is(#portal-page,#top) .section h2{font-size:36px!important}}
@media(max-width:1100px){body:is(#portal-page,#top)>.topbar>nav.unified-page-nav{width:auto!important;max-width:100%!important;overflow-x:auto!important}}
/* EGE reference: every inner-page hero kicker carries the same quiet blue rule. */
body:is(#portal-page,#top).portal-unified .hero :is(.kicker,.eyebrow)::before{content:""!important;display:inline-block!important;width:43px!important;height:1px!important;margin-right:12px!important;vertical-align:middle!important;background:linear-gradient(90deg,#096fbd,transparent)!important;box-shadow:none!important}

/* Main headings match the Catalog materials reference, including case and span size. */
body:is(#portal-page,#top).portal-unified .hero h1{font-family:"Trebuchet MS",sans-serif!important;font-size:clamp(36px,3.72vw,57px)!important;font-weight:700!important;line-height:.95!important;letter-spacing:-.045em!important;color:#073f70!important;text-transform:none!important}
body:is(#portal-page,#top).portal-unified .hero h1 span{font-family:inherit!important;font-size:1em!important;font-weight:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;color:#0878c7!important;text-transform:none!important;-webkit-text-stroke:0!important}
body:is(#portal-page,#top).portal-unified :is(h2,h3,h4){text-transform:none!important}
@media(max-width:720px){body:is(#portal-page,#top).portal-unified .hero h1{font-size:clamp(32px,9vw,42px)!important}}

/* ЕГЭ reference shared by every inner page. */
body:is(#portal-page,#top).portal-unified .hero :is(.lead,.hero-copy>p){font-family:"Segoe UI",Arial,sans-serif!important;max-width:760px!important;margin:21px 0 0!important;font-size:clamp(16px,1.25vw,19px)!important;line-height:1.48!important;color:#154f79!important;font-weight:650!important}
body:is(#portal-page,#top).portal-unified :is(.head,.section-head)>p{font-family:"Segoe UI",Arial,sans-serif!important;font-size:14px!important;line-height:1.62!important;font-weight:620!important;color:#2d688d!important}
body:is(#portal-page,#top).portal-unified .section :is(.card p,.school-card p,.study-card p,.catalog-note,.project-item p){font-family:"Segoe UI",Arial,sans-serif!important;font-weight:590!important;color:#245f86!important}
body:is(#portal-page,#top).portal-unified :is(.catalog-metric span,.school-meta,.school-links a,.study-group-title span,.school-table td){font-weight:590!important}
body:is(#portal-page,#top).portal-unified>.bg{background:radial-gradient(circle at 78% 10%,rgba(255,255,255,.98),transparent 25%),radial-gradient(circle at 10% 38%,rgba(255,255,255,.62),transparent 28%),linear-gradient(rgba(7,83,145,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(7,83,145,.04) 1px,transparent 1px)!important;background-size:auto,auto,72px 72px,72px 72px!important;mask-image:linear-gradient(#000,rgba(0,0,0,.35))!important;z-index:-1!important}
body:is(#portal-page,#top).portal-unified .hero :is(.visual,.hero-visual){position:relative!important;min-height:500px!important;display:grid!important;place-items:center!important}
body:is(#portal-page,#top).portal-unified :is(.hero .sphere,.hero .hero-sphere){position:relative!important;width:min(33vw,505px)!important;aspect-ratio:1!important;height:auto!important;border-radius:50%!important;overflow:visible!important;background:radial-gradient(circle at 29% 23%,#fff,rgba(225,249,255,.98) 11%,rgba(139,220,253,.93) 30%,rgba(43,153,221,.94) 59%,rgba(4,66,126,.98))!important;box-shadow:inset -58px -30px 80px rgba(2,44,83,.38),inset 28px 12px 38px rgba(255,255,255,.55),0 0 0 1px rgba(255,255,255,.78),0 0 75px rgba(0,115,196,.27),-25px 35px 42px rgba(13,75,124,.24)!important;animation:portal-sphere-float 6s ease-in-out infinite!important}
body:is(#portal-page,#top).portal-unified :is(.hero .sphere,.hero .hero-sphere,.catalog-mini-sphere)::before{content:none!important;display:none!important}
body:is(#portal-page,#top).portal-unified :is(.hero .sphere,.hero .hero-sphere,.catalog-mini-sphere)::after{content:""!important;position:absolute!important;inset:12%!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.3)!important;background:none!important;box-shadow:none!important;pointer-events:none!important}
body:is(#portal-page,#top).portal-unified .hero .gridlines{display:none!important}
body:is(#portal-page,#top).portal-unified .hero :is(.orbit,.hero-orbit){position:absolute!important;inset:-10%!important;border:1px solid rgba(6,91,151,.24)!important;border-radius:50%!important;transform:rotate(-17deg) scaleY(.47)!important;animation:portal-sphere-orbit 14s linear infinite!important;pointer-events:none!important}
body:is(#portal-page,#top).portal-unified .hero :is(.hero-tag,.orb-tag,.sphere-label,.sphere-tag,.sphere-button){font:600 clamp(13px,1.15vw,17px)/1.15 "Segoe UI",Arial,sans-serif!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:43px!important;padding:11px 17px!important;color:#063f70!important;background:rgba(255,255,255,.94)!important;border:1px solid rgba(255,255,255,.98)!important;border-radius:999px!important;box-shadow:0 14px 32px rgba(7,75,126,.2),inset 0 0 0 1px rgba(7,120,199,.08)!important;cursor:pointer!important;pointer-events:auto!important;text-decoration:none!important;scale:1!important;transition:background .2s!important;max-width:min(190px,calc(100vw - 32px))!important;white-space:normal!important;text-align:center!important}
body:is(#portal-page,#top).portal-unified .hero :is(.hero-tag,.orb-tag,.sphere-label,.sphere-tag,.sphere-button):is(:hover,:focus,:active){outline:none!important;background:#fff!important;scale:1!important;box-shadow:0 14px 32px rgba(7,75,126,.2),inset 0 0 0 1px rgba(7,120,199,.08)!important}
body:is(#portal-page,#top).portal-unified .hero :is(.hero-tag,.orb-tag,.sphere-label,.sphere-tag,.sphere-button):focus-visible{outline:2px solid #075c91!important;outline-offset:4px!important}
.school-identity{display:flex;align-items:center;gap:16px;min-width:0}.school-identity h3{min-width:0}.school-logo{width:72px;height:64px;object-fit:contain;flex:0 0 72px;background:rgba(255,255,255,.72);padding:6px;border-radius:12px}.study-group-title .school-identity .school-logo{width:64px;height:60px;flex-basis:64px}.school-table .school-logo{width:48px;height:48px;flex-basis:48px}.catalog-wrap .head p{font-weight:620!important}.catalog-wrap .catalog-note{font-weight:590!important}
@keyframes portal-sphere-float{50%{transform:translateY(-12px) rotate(1.5deg)}}
@keyframes portal-sphere-orbit{to{transform:rotate(343deg) scaleY(.47)}}
@media(max-width:980px){body:is(#portal-page,#top).portal-unified .hero :is(.visual,.hero-visual){min-height:470px!important}body:is(#portal-page,#top).portal-unified :is(.hero .sphere,.hero .hero-sphere,.catalog-mini-sphere){width:min(72vw,450px)!important}}
@media(max-width:640px){body:is(#portal-page,#top).portal-unified .hero :is(.lead,.hero-copy>p){font-size:16px!important}body:is(#portal-page,#top).portal-unified .hero :is(.visual,.hero-visual){min-height:410px!important}body:is(#portal-page,#top).portal-unified :is(.hero .sphere,.hero .hero-sphere,.catalog-mini-sphere){width:min(78vw,350px)!important}body:is(#portal-page,#top).portal-unified .hero :is(.hero-tag,.orb-tag,.sphere-label,.sphere-tag,.sphere-button){font-size:12px!important;padding:10px 13px!important;min-height:38px!important}.school-identity{gap:12px}.school-logo{width:58px;height:54px;flex-basis:58px}}
@media(prefers-reduced-motion:reduce){body:is(#portal-page,#top).portal-unified .hero :is(.sphere,.hero-sphere,.orbit,.hero-orbit){animation:none!important}}

body:is(#portal-page,#top).portal-unified .catalog-mini-sphere{width:188px!important;aspect-ratio:1!important;height:auto!important}
body:is(#portal-page,#top).portal-unified .catalog-hero .lead{font:650 clamp(16px,1.25vw,19px)/1.48 "Segoe UI",Arial,sans-serif!important;color:#154f79!important}
body:is(#portal-page,#top).portal-unified .catalog-mini-sphere a{font-family:"Segoe UI",Arial,sans-serif!important;font-weight:600!important;outline:none}
body:is(#portal-page,#top).portal-unified .catalog-mini-sphere a:focus-visible{outline:2px solid #075c91;outline-offset:4px}
/* The sphere and its controls share one coordinate system at every zoom level. */
body:is(#portal-page,#top).portal-unified .hero .portal-sphere-frame{position:relative!important;width:min(33vw,505px)!important;aspect-ratio:1!important;height:auto!important;animation:portal-sphere-float 6s ease-in-out infinite!important;isolation:isolate}
body:is(#portal-page,#top).portal-unified .hero .portal-sphere-frame>:is(.sphere,.hero-sphere){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;transform:none!important;animation:none!important}
body:is(#portal-page,#top).portal-unified .hero .portal-sphere-frame>.portal-sphere-button{position:absolute!important;left:var(--button-x)!important;top:var(--button-y)!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:max-content!important;max-width:min(190px,calc(100vw - 32px))!important;min-width:0!important;height:auto!important;min-height:43px!important;margin:0!important;padding:11px 17px!important;white-space:normal!important;text-align:center!important;z-index:5!important;animation:none!important}
body:is(#portal-page,#top).portal-unified .hero .portal-sphere-frame>.portal-sphere-button:is(:hover,:focus,:active){transform:translate(-50%,-50%)!important}
@media(max-width:980px){body:is(#portal-page,#top).portal-unified .hero .portal-sphere-frame{width:min(62vw,450px)!important}}
@media(max-width:640px){body:is(#portal-page,#top).portal-unified .hero .portal-sphere-frame{width:min(62vw,350px)!important}body:is(#portal-page,#top).portal-unified .hero .portal-sphere-frame>.portal-sphere-button{font-size:12px!important;padding:10px 13px!important;min-height:38px!important;max-width:calc(100vw - min(62vw,350px) - 32px)!important;white-space:normal!important}}
@media(prefers-reduced-motion:reduce){body:is(#portal-page,#top).portal-unified .hero .portal-sphere-frame{animation:none!important}}

/* Sphere topics are noninteractive labels; page navigation stays in the header. */
body:is(#portal-page,#top).portal-unified .hero :is(.portal-sphere-button,.orb-tag,.hero-tag,.sphere-tag,.sphere-label,.sphere-button),body:is(#portal-page,#top).portal-unified .catalog-mini-sphere span{cursor:default!important;pointer-events:none!important;user-select:text}
body:is(#portal-page,#top).portal-unified .catalog-mini-sphere span{position:absolute;display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:999px;border:1px solid #fff;background:rgba(255,255,255,.95);box-shadow:0 12px 26px rgba(8,83,139,.12);font:600 12px/1.3 "Segoe UI",Arial,sans-serif;white-space:nowrap;color:#073f70}
