/* VIAL-SERVICE · November refinement 4.
  The country remains an undistorted geographic outline. Its IMAGE CENTER
  is aligned with the central gear's center at every viewport.
  The site's footer uses dedicated content groups, not cosmetic column hacks. */

/* Decorative layers never intercept clicks on the training controls. */
body[data-design="shanyrak"] .country-outline,
body[data-design="shanyrak"] .industry-horizon { pointer-events:none; }

/* Desktop: center map at the same visual origin as the wheel.
   Width does not get scaled independently of height: object-fit preserves geometry.
   The outline can reach left under the text without a hard crop. */
@media(min-width:901px) {
 body[data-design="shanyrak"] .hero-art,
 body[data-design="shanyrak"] .national-system {
   overflow:visible!important;
 }
 body[data-design="shanyrak"] .country-outline {
   left:50%!important; top:44%!important;
   width:174%!important; height:136%!important;
   transform:translate(-50%,-50%)!important;
   object-fit:contain!important;
   -webkit-mask-image:none!important;
   mask-image:none!important;
   opacity:.82;
   filter:drop-shadow(0 0 11px rgba(59,212,220,.32)) brightness(1.07);
 }
 body[data-design="shanyrak"] .industry-horizon{
   bottom:-38px!important;
 }
}
@media(min-width:651px) and (max-width:900px) {
 body[data-design="shanyrak"] .country-outline {
   left:50%!important;top:42%!important;
   width:137%!important;height:119%!important;
   transform:translate(-50%,-50%)!important;
   object-fit:contain!important;
   -webkit-mask-image:none!important;
   mask-image:none!important;
 }
 body[data-design="shanyrak"] .industry-horizon{bottom:-32px!important}
}
@media(max-width:650px) {
 body[data-design="shanyrak"] .country-outline {
   left:50%!important;top:29%!important;
   width:144%!important;height:93%!important;
   transform:translate(-50%,-50%)!important;
   object-fit:contain!important;
   -webkit-mask-image:none!important;
   mask-image:none!important;
 }
 body[data-design="shanyrak"] .industry-horizon {
   bottom:-30px!important;opacity:.36;
 }
}

/* Four content groups across on desktop:
   Brand / Site sections in TWO lists / Learning platforms / Contact: phone | mail. */
.site-footer,
body[data-design="shanyrak"] .site-footer,
body[data-design="shanyrak"] .final-screen .site-footer {
 padding:14px 0 9px!important;
}
.site-footer .footer-grid,
body[data-design="shanyrak"] .footer-grid,
body[data-design="shanyrak"] .final-screen .footer-grid {
 display:grid!important;
 grid-template-columns:minmax(0,.94fr) minmax(0,1.1fr) minmax(0,.83fr) minmax(0,1.64fr)!important;
 align-items:start;
 column-gap:clamp(13px,2vw,28px)!important;
 row-gap:9px!important;
 padding-bottom:10px!important;
}
.site-footer .footer-grid > div { min-width:0; }
.site-footer .footer-title,
body[data-design="shanyrak"] .footer-title {
 font-size:.72rem;
 line-height:1.35;
 font-weight:820;
 letter-spacing:.032em;
 margin:0 0 9px!important;
 white-space:nowrap;
}
.site-footer .footer-links,
body[data-design="shanyrak"] .footer-links {
 display:grid;
 gap:4px 7px!important;
 margin:0;
 padding:0;
}
.site-footer .footer-links a,
body[data-design="shanyrak"] .footer-links a {
 display:block;
 font-size:clamp(.72rem,.76vw,.81rem)!important;
 line-height:1.32;
 overflow-wrap:normal;
 word-break:normal;
}
.site-footer .footer-site-columns {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:8px 14px;
}
.site-footer .footer-site-nav .footer-links,
.site-footer .footer-platforms .footer-links,
.site-footer .footer-contact-block .footer-links {
 grid-template-columns:minmax(0,1fr)!important;
}
.site-footer .footer-platforms .footer-links a{white-space:nowrap}
.site-footer .footer-mini-title {
 font-size:.65rem;
 line-height:1.2;
 font-weight:760;
 color:#a4c9ca;
 margin-bottom:7px;
 letter-spacing:.018em;
}
.site-footer .footer-contact-columns {
 display:grid;
 grid-template-columns:minmax(0,.9fr) minmax(0,1.28fr);
 gap:8px;
}
.site-footer .footer-phones .footer-links a,
.site-footer .footer-emails .footer-links a{
 font-size:clamp(.67rem,.75vw,.81rem)!important;
 white-space:nowrap;
}
.site-footer .footer-city {
 margin-top:8px;
 color:#9db8be;
 font-size:.7rem;
}
.site-footer .footer-brand .footer-about {
 margin:6px 0 0!important;
 line-height:1.35!important;
 font-size:.71rem;
 max-width:280px;
}
.site-footer .footer-bottom,
body[data-design="shanyrak"] .final-screen .footer-bottom {
 padding-top:8px!important;
 line-height:1.35;
 font-size:.7rem;
}
@media(max-width:1050px) and (min-width:901px) {
 .site-footer .footer-grid,
 body[data-design="shanyrak"] .footer-grid,
 body[data-design="shanyrak"] .final-screen .footer-grid {
   grid-template-columns:minmax(0,.82fr) minmax(0,.98fr) minmax(0,.73fr) minmax(0,1.6fr)!important;
   column-gap:14px!important;
 }
 .site-footer .footer-brand .footer-about{font-size:.66rem}
 .site-footer .footer-contact-columns{grid-template-columns:minmax(0,.9fr) minmax(0,1.38fr)}
 .site-footer .footer-emails .footer-links a{font-size:.69rem!important}
}
@media(max-width:900px) {
 .site-footer .footer-grid,
 body[data-design="shanyrak"] .footer-grid,
 body[data-design="shanyrak"] .final-screen .footer-grid {
   grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)!important;
   gap:15px 24px!important;
 }
 .site-footer .footer-site-nav .footer-site-columns{gap:7px 16px}
 .site-footer .footer-contact-columns{gap:10px}
 .site-footer .footer-phones .footer-links a,
 .site-footer .footer-emails .footer-links a{font-size:.75rem!important}
}
@media(max-width:650px) {
 .site-footer,
 body[data-design="shanyrak"] .site-footer,
 body[data-design="shanyrak"] .final-screen .site-footer{
   padding:13px 0 9px!important;
 }
 .site-footer .footer-grid,
 body[data-design="shanyrak"] .footer-grid,
 body[data-design="shanyrak"] .final-screen .footer-grid {
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:12px 10px!important;
   padding-bottom:10px!important;
 }
 .site-footer .footer-brand{grid-column:1/-1;display:flex;gap:13px;align-items:center}
 .site-footer .footer-brand .footer-about{margin:0!important;flex:1;font-size:.69rem}
 .site-footer .footer-site-nav{grid-column:1}
 .site-footer .footer-platforms{grid-column:2}
 .site-footer .footer-contact-block{grid-column:1/-1}
 .site-footer .footer-contact-columns{
   grid-template-columns:minmax(0,.83fr) minmax(0,1.25fr);
   gap:12px;
 }
 .site-footer .footer-contact-columns .footer-links {grid-template-columns:1fr!important}
 .site-footer .footer-site-columns{gap:7px!important}
 .site-footer .footer-site-nav .footer-links a,
 .site-footer .footer-platforms .footer-links a{
   font-size:.72rem!important;
 }
 .site-footer .footer-phones .footer-links a,
 .site-footer .footer-emails .footer-links a{
   font-size:.73rem!important;
   white-space:normal;
   overflow-wrap:anywhere;
 }
 .site-footer .footer-city{margin-top:5px}
 .site-footer .footer-title{font-size:.68rem;white-space:normal}
 .site-footer .footer-mini-title{margin-bottom:5px}
 .site-footer .footer-bottom{padding-top:8px!important;font-size:.65rem}
}
@media(max-width:355px){
 .site-footer .footer-brand{display:block}
 .site-footer .footer-brand .footer-about{margin-top:5px!important}
 .site-footer .footer-contact-columns{grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr);gap:8px}
 .site-footer .footer-emails .footer-links a{font-size:.69rem!important}
}

/* Avoid transformed oversize map increasing horizontal scroll range.
   "clip" does not create a new scrolling container, unlike overflow:hidden. */
html:has(body[data-design="shanyrak"]),
body[data-design="shanyrak"] {
 overflow-x:clip;
}
@media(max-width:650px) {
 .site-footer .footer-grid,
 body[data-design="shanyrak"] .final-screen .footer-grid {
  row-gap:9px!important;
  padding-bottom:8px!important;
 }
 .site-footer .footer-brand .footer-about {line-height:1.25!important}
 .site-footer .footer-title {margin-bottom:6px!important}
 .site-footer .footer-bottom {padding-top:6px!important}
 .site-footer .footer-links {gap:3px 7px!important}
}

/* Keep ALL navigation headings on one line; short localized labels fit each column. */
.site-footer .footer-title{white-space:nowrap!important}
@media(max-width:650px){
 .site-footer .footer-title{
   font-size:clamp(.6rem,2.5vw,.69rem)!important;
   letter-spacing:.01em;
 }
}

/* Footer site links use ONE grid, not two independent unordered lists.
   Row 1: Home | Training; row 2: News | Vacancies; row 3: Contacts. */
body[data-design="shanyrak"] .footer-site-columns {
  display:block!important;
}
body[data-design="shanyrak"] .footer-site-nav .footer-site-columns > ul.footer-links {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-rows:minmax(0,auto);
  column-gap:clamp(8px,1.1vw,16px)!important;
  row-gap:4px!important;
  align-items:start;
}
body[data-design="shanyrak"] .footer-site-nav .footer-site-columns > ul.footer-links > li {
  margin:0!important;
  padding:0!important;
  align-self:start;
}

/* 16.11.2026: Kazakhstan map ONLY. Shift the map DOWN an additional 1px
   from the previous approved placement (+18.35px to +19.35px).
   All existing map scaling, dimensions, and other elements stay unchanged. */
body[data-design="shanyrak"] .country-outline {
  transform: translate(-50%, calc(-50% + 19.35px)) scaleX(0.84) scaleY(1.1772) !important;
}
@media (min-width:901px) and (max-width:1199px) {
  body[data-design="shanyrak"] .country-outline {
    transform: translate(-50%, calc(-50% + 19.35px)) scaleX(0.84) scaleY(1.2078) !important;
  }
}
@media (min-width:651px) and (max-width:900px) {
  body[data-design="shanyrak"] .country-outline {
    transform: translate(-50%, calc(-50% + 19.35px)) scaleX(0.84) scaleY(1.2634) !important;
  }
}
@media (max-width:650px) {
  body[data-design="shanyrak"] .country-outline {
    transform: translate(-50%, calc(-50% + 19.35px)) scaleX(0.84) scaleY(1.2527) !important;
  }
}

/* Four animation layers align to the existing 500x500 static gear artwork.
   Exact map geometry and mechanical selector are left untouched. */
body[data-design="shanyrak"] .brand-mechanism > svg.sector-motion-layer{
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 z-index:3;
 overflow:visible;
 pointer-events:none;
 user-select:none;
}
body[data-design="shanyrak"] .sector-motion-layer .sector-effect{
 opacity:0;
 transition:opacity .2s ease;
 pointer-events:none;
}
body[data-design="shanyrak"] .national-system[data-selected="radiation"][data-phase="hold"] .sector-effect-radiation,
body[data-design="shanyrak"] .national-system[data-selected="blasting"][data-phase="hold"] .sector-effect-blasting,
body[data-design="shanyrak"] .national-system[data-selected="industry"][data-phase="hold"] .sector-effect-industry,
body[data-design="shanyrak"] .national-system[data-selected="transport"][data-phase="hold"] .sector-effect-transport{
 opacity:1;
}
/* Stationary elliptical orbit lines are part of the background SVG.
   Animated electrons follow each ellipse with native SVG animateMotion,
   so the paths never rotate or deviate from their orbital lines. */
body[data-design="shanyrak"] .blast-core-glow,
body[data-design="shanyrak"] .blast-outer-rays{
 transform-origin:325px 173px;
 opacity:0;
}
body[data-design="shanyrak"] .national-system[data-selected="blasting"][data-phase="hold"] .blast-core-glow{
 animation:sector-blast-soft-pulse 2.2s ease-in-out infinite;
}
body[data-design="shanyrak"] .national-system[data-selected="blasting"][data-phase="hold"] .blast-outer-rays{
 animation:sector-blast-ray-pulse 2.2s ease-in-out infinite;
}
@keyframes sector-blast-soft-pulse{
 0%,12%,78%,100%{opacity:0;transform:scale(.74)}
 24%{opacity:.68;transform:scale(1.04)}
 38%{opacity:.24;transform:scale(1.11)}
 55%{opacity:0;transform:scale(1.16)}
}
@keyframes sector-blast-ray-pulse{
 0%,10%,70%,100%{opacity:0;transform:scale(.82)}
 21%{opacity:.9;transform:scale(1.02)}
 35%{opacity:.45;transform:scale(1.11)}
 49%{opacity:0;transform:scale(1.16)}
}
body[data-design="shanyrak"] .factory-smoke{
 opacity:0;
 stroke:#b3fff3;
 stroke-width:5px;
 filter:drop-shadow(0 0 1.5px rgba(155,255,243,.75));
}
body[data-design="shanyrak"] .national-system[data-selected="industry"][data-phase="hold"] .smoke-left{
 animation:sector-smoke-rise 2.7s ease-out infinite;
}
body[data-design="shanyrak"] .national-system[data-selected="industry"][data-phase="hold"] .smoke-right{
 animation:sector-smoke-rise 2.7s ease-out -1.35s infinite;
}
@keyframes sector-smoke-rise{
 0%{opacity:.28;transform:translateY(3px)}
 28%{opacity:.96;transform:translateY(0px)}
 70%{opacity:.8;transform:translateY(-3px)}
 100%{opacity:.28;transform:translateY(-5px)}
}
body[data-design="shanyrak"] .truck-wheel-spin{
 opacity:0;
}
body[data-design="shanyrak"] .wheel-rear{transform-origin:304px 342px}
body[data-design="shanyrak"] .wheel-front{transform-origin:340px 342px}
body[data-design="shanyrak"] .national-system[data-selected="transport"][data-phase="hold"] .truck-wheel-spin{
 opacity:1;
 animation:sector-truck-wheel-turn .78s linear infinite;
}
@keyframes sector-truck-wheel-turn{
 from{transform:rotate(0deg)}
 to{transform:rotate(360deg)}
}
body[data-design="shanyrak"] .truck-beacon-light{
 opacity:0;
 filter:drop-shadow(0 0 2px rgba(255,162,54,.6));
}
body[data-design="shanyrak"] .national-system[data-selected="transport"][data-phase="hold"] .truck-beacon-light{
 animation:sector-orange-beacon 1.8s ease-in-out infinite;
}
@keyframes sector-orange-beacon{
 0%,100%{opacity:.12}
 28%{opacity:.95}
 55%{opacity:.3}
 78%{opacity:.85}
}
@media(prefers-reduced-motion:reduce){
 body[data-design="shanyrak"] .sector-motion-layer .sector-effect{
   opacity:0!important;
   animation:none!important;
   transition:none!important;
 }
 body[data-design="shanyrak"] .sector-motion-layer *{
   animation:none!important;
   transition:none!important;
 }
}


/* User-approved 16.11.2026: industrial horizon shares horizontal center
   with the shanyrak gear. Old left:-5% offset shifted landscape ~33px left
   at 1440px; reset x alone; keep its width, height, bottom, opacity. */
body[data-design="shanyrak"] .industry-horizon{
  left:0!important;
}


/* Selected quadrant: a thin, soft ring around the wedge instead of a filled
   overlay. Follows the four existing 90-degree clipping sectors exactly. */
body[data-design="shanyrak"] .sector-motion-layer .sector-border{
 opacity:0;
 stroke:#d8fffc;
 stroke-width:3.6;
 filter:
  drop-shadow(0 0 1.5px rgba(211,255,252,1))
  drop-shadow(0 0 4.5px rgba(74,255,235,.95))
  drop-shadow(0 0 10px rgba(21,235,229,.82))
  drop-shadow(0 0 16px rgba(17,209,221,.45));
 transition:opacity .32s ease;
 pointer-events:none;
}
body[data-design="shanyrak"] .national-system[data-phase="hold"][data-selected="radiation"] .sector-border-radiation,
body[data-design="shanyrak"] .national-system[data-phase="hold"][data-selected="blasting"] .sector-border-blasting,
body[data-design="shanyrak"] .national-system[data-phase="hold"][data-selected="industry"] .sector-border-industry,
body[data-design="shanyrak"] .national-system[data-phase="hold"][data-selected="transport"] .sector-border-transport{
 opacity:.98;
}
/* While the arrow rotates it is legible; once pointing to the chosen sector,
   it fades almost completely so moving electrons and truck wheels remain visible.
   The toothed rim in .brand-gear-ring is NOT affected. */
body[data-design="shanyrak"] .gear-selector{
 transition:opacity .32s ease;
}
body[data-design="shanyrak"] .national-system[data-phase="hold"] .gear-selector{
 opacity:.12;
 filter:none!important;
}
body[data-design="shanyrak"] .national-system[data-phase="turning"] .gear-selector{
 opacity:.92;
}
@media(prefers-reduced-motion:reduce){
 body[data-design="shanyrak"] .gear-selector,
 body[data-design="shanyrak"] .sector-motion-layer .sector-border{
  transition:none!important;
 }
}


/* 2026-11-17 — larger VIAL-SERVICE header wordmark (not footer),
   keeping menu links and language switch visible at every breakpoint. */
body[data-design="shanyrak"] .site-header .brand-word strong{
 font-size:clamp(1.40rem,1.35vw,1.64rem)!important;
 font-weight:900;
 letter-spacing:-.045em;
 line-height:1.01;
}
body[data-design="shanyrak"] .site-header .brand-word small{
 font-size:.74rem!important;
 letter-spacing:.14em!important;
 line-height:1.05;
 padding-top:3px;
}
@media(max-width:1199px){
 body[data-design="shanyrak"] .site-header .brand-word strong{font-size:1.32rem!important}
 body[data-design="shanyrak"] .site-header .brand-word small{font-size:.65rem!important}
}
@media(max-width:650px){
 body[data-design="shanyrak"] .site-header .brand-word strong{font-size:1.25rem!important}
 body[data-design="shanyrak"] .site-header .brand-word small{font-size:.62rem!important}
}

/* RU-anchored language-invariant layout: text flows INSIDE the same
   hero-copy slot, instead of moving CTAs or sector plaques by locale.
   The slot sizes match the approved RU variant at each design breakpoint. */
body[data-design="shanyrak"][data-page="home"] .hero-copy{
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 min-height:var(--vial-hero-copy-height,auto);
}
body[data-design="shanyrak"][data-page="home"] .hero-copy > .hero-points,
body[data-design="shanyrak"][data-page="home"] .hero-copy > .lead{
 width:100%;
}
body[data-design="shanyrak"][data-page="home"] .hero-copy > .hero-actions{
 margin-top:auto;
 flex:0 0 auto;
}
body[data-design="shanyrak"][data-page="home"] .hero-copy .eyebrow{
 font-size:.72rem;
 letter-spacing:.11em;
 white-space:nowrap;
 max-width:100%;
}
/* Same button widths, same line breaks, same x anchors for RU/KK/EN. */
@media(min-width:1200px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy{--vial-hero-copy-height:clamp(457.7px,calc(277.22px + 14.1vw),480.2px)}
 body[data-design="shanyrak"][data-page="home"] .hero-actions{
   display:grid;
   grid-template-columns:245.5px 170.2px;
   gap:12px;
 }
 body[data-design="shanyrak"][data-page="home"] .hero-actions .btn{
   width:100%;
   white-space:nowrap;
   justify-content:center;
 }
}
@media(min-width:901px) and (max-width:1199px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy{--vial-hero-copy-height:clamp(530.4px,calc(763px - 22.7vw),557.5px)}
 body[data-design="shanyrak"][data-page="home"] .hero-actions{
   display:grid;
   grid-template-columns:245.5px;
   gap:12px;
 }
 body[data-design="shanyrak"][data-page="home"] .hero-actions .btn{
   width:100%;
   white-space:nowrap;
   justify-content:center;
 }
}
@media(min-width:651px) and (max-width:900px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy{--vial-hero-copy-height:424.9px}
 body[data-design="shanyrak"][data-page="home"] .hero-actions{
   display:grid;
   grid-template-columns:245.5px 170.2px;
   gap:12px;
 }
 body[data-design="shanyrak"][data-page="home"] .hero-actions .btn{
   width:100%;
   white-space:nowrap;
   justify-content:center;
 }
}
@media(max-width:650px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy{--vial-hero-copy-height:518.6px}
 body[data-design="shanyrak"][data-page="home"] .hero-actions{
   display:grid;
   grid-template-columns:minmax(0,1fr);
   gap:12px;
   width:100%;
 }
 body[data-design="shanyrak"][data-page="home"] .hero-actions .btn{width:100%}
 body[data-design="shanyrak"][data-page="home"] .hero-copy .eyebrow{
   font-size:clamp(.58rem,2.6vw,.71rem);
   letter-spacing:.05em;
 }
}

/* Reserve the same bottom-info band as RU when translated point labels
   occupy fewer rows. This keeps the CTAs at the exact RU coordinates. */
@media(min-width:901px) and (max-width:1199px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy>.hero-points{
   min-height:79.47px;
   box-sizing:border-box;
 }
}
@media(max-width:420px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy>.hero-points{
   min-height:63.22px;
   box-sizing:border-box;
 }
}
/* Large desktop font continues to grow beyond 1440px: keep the RU headline
   baseline height in KZ/EN even on a wide monitor. */
@media(min-width:1441px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy{
   --vial-hero-copy-height:clamp(480.2px,calc(422.6px + 4vw),487px);
 }
}


/* Uniform navigation cells across RU / KK / EN.
   Unlike intrinsic flex widths, translations cannot shift the menu. */
@media(min-width:1200px){
 body[data-design="shanyrak"] .site-header .nav-main{
   display:grid;
   grid-template-columns:73px 74px 95px 96px 74px 84px 69px;
   gap:10px;
   align-items:center;
   justify-items:start;
   margin-inline:auto;
 }
}
@media(min-width:901px) and (max-width:1199px){
 body[data-design="shanyrak"] .site-header .nav-main{
   display:grid;
   grid-template-columns:65px 65px 84px 85px 65px 75px 62px;
   gap:5px;
   align-items:center;
   justify-items:start;
   margin-inline:auto;
 }
}
@media(min-width:901px){
 body[data-design="shanyrak"] .site-header .nav-main a{
   width:100%;
   text-align:left;
 }
}

/* Stable RU-sized heading rows; text length must not move lead or controls. */
body[data-design="shanyrak"][data-page="home"] .hero h1>.hero-title-first,
body[data-design="shanyrak"][data-page="home"] .hero h1>em{
 display:block;
 box-sizing:border-box;
 min-height:2lh;
}
@media(min-width:651px) and (max-width:900px){
 body[data-design="shanyrak"][data-page="home"] .hero h1>em{min-height:1lh}
}

/* The translated supporting footer text may wrap into fewer lines than RU;
   reserve the corresponding RU height so nav/contact groups do not rise. */
@media(min-width:1051px){
 body[data-design="shanyrak"] .site-footer .footer-brand .footer-about{
   min-height:48.6px;
 }
}
@media(min-width:951px) and (max-width:1050px){
 body[data-design="shanyrak"] .site-footer .footer-brand .footer-about{
   min-height:48.6px;
 }
}
@media(min-width:901px) and (max-width:950px){
 body[data-design="shanyrak"] .site-footer .footer-brand .footer-about{
   min-height:80.95px;
 }
}
@media(max-width:650px){
 body[data-design="shanyrak"] .site-footer .footer-brand .footer-about{
   min-height:45px;
 }
}


/* Language-invariant content coordinates: fixed anchors for 3 hero facts
   (same columns and same rows as the approved RU layout). */
body[data-design="shanyrak"][data-page="home"] .hero-copy h1{
 width:100%;
}
body[data-design="shanyrak"][data-page="home"] .hero-points{
 display:grid;
 column-gap:0;
 align-items:center;
 justify-items:stretch;
}
body[data-design="shanyrak"][data-page="home"] .hero-points>span{
 min-width:0;
}
@media(min-width:1200px), (min-width:651px) and (max-width:900px){
 body[data-design="shanyrak"][data-page="home"] .hero-points{
  grid-template-columns:134.7px 191.4px minmax(0,1fr);
  row-gap:0;
 }
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead{
  min-height:81.375px;
 }
}
@media(min-width:901px) and (max-width:1199px){
 body[data-design="shanyrak"][data-page="home"] .hero-points{
  grid-template-columns:134.7px minmax(0,1fr);
  row-gap:18px;
 }
 body[data-design="shanyrak"][data-page="home"] .hero-points>span:nth-child(3){
  grid-column:1/-1;
 }
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead{
  min-height:81.375px;
 }
}
@media(min-width:901px) and (max-width:960px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead{
  min-height:108.5px;
 }
}
@media(max-width:650px){
 body[data-design="shanyrak"][data-page="home"] .hero-points{
  grid-template-columns:116.7px minmax(0,1fr);
  column-gap:0;
  row-gap:10px;
 }
 body[data-design="shanyrak"][data-page="home"] .hero-points>span:nth-child(3){
  grid-column:1/-1;
 }
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead{
  min-height:99.25px;
 }
}
@media(max-width:350px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead{
  min-height:124.06px;
 }
}

/* Final shared rectangle: translated eyebrow text starts at the same x/y
   and occupies an identical layout slot in RU, KK and EN. */
body[data-design="shanyrak"][data-page="home"] .hero-copy .eyebrow{
 width:100%!important;
}

/* Mid-width desktop uses slightly larger navigation font than <=1120px.
   Allocate seven equally anchored but wider text cells for 1121–1199px. */
@media(min-width:1121px) and (max-width:1199px){
 body[data-design="shanyrak"] .site-header .nav-main{
   grid-template-columns:73px 74px 95px 96px 74px 84px 69px;
   gap:10px;
 }
}

/* Prevent the longest RU course label from clipping at 1121–1150px
   without moving any plaque or changing its geometric size. */
@media(min-width:1121px) and (max-width:1199px){
 body[data-design="shanyrak"] .system-plaque .plaque-name{
   letter-spacing:-.06em!important;
 }
}


/* Apply the very same header grid used on Home to every internal page.
   Internal pages use a different body data-design, so home-only selectors
   intentionally did not cover their navigation before this override. */
@media(min-width:1200px){
 body:not([data-page="home"]) .site-header .nav-main{
   display:grid;
   grid-template-columns:73px 74px 95px 96px 74px 84px 69px;
   gap:10px;align-items:center;justify-items:start;margin-inline:auto;
 }
}
@media(min-width:901px) and (max-width:1120px){
 body:not([data-page="home"]) .site-header .nav-main{
   display:grid;
   grid-template-columns:65px 65px 84px 85px 65px 75px 62px;
   gap:5px;align-items:center;justify-items:start;margin-inline:auto;
 }
}
@media(min-width:1121px) and (max-width:1199px){
 body:not([data-page="home"]) .site-header .nav-main{
   display:grid;
   grid-template-columns:73px 74px 95px 96px 74px 84px 69px;
   gap:10px;align-items:center;justify-items:start;margin-inline:auto;
 }
}
@media(min-width:901px){
 body:not([data-page="home"]) .site-header .nav-main a{
   width:100%;text-align:left;
 }
}
@media(min-width:951px){
 body:not([data-page="home"]) .site-footer .footer-brand .footer-about{
   min-height:48.6px;
 }
}
@media(min-width:901px) and (max-width:950px){
 body:not([data-page="home"]) .site-footer .footer-brand .footer-about{
   min-height:80.95px;
 }
}
@media(max-width:650px){
 body:not([data-page="home"]) .site-footer .footer-brand .footer-about{
   min-height:45px;
 }
}


/* Enlarged VIAL-SERVICE name next to the header emblem.
   Applies to every RU, KK and EN page (including the inner sections).
   This controls only the wordmark, not the emblem or header coordinates. */
.site-header .brand{gap:8px}
body[data-design="shanyrak"] .site-header .brand-word strong,
.site-header .brand-word strong{
 font-size:31px!important;
 line-height:1!important;
 font-weight:900!important;
 letter-spacing:-.055em!important;
}
body[data-design="shanyrak"] .site-header .brand-word small,
.site-header .brand-word small{
 font-size:15px!important;
 line-height:1.06!important;
 font-weight:850!important;
 letter-spacing:.09em!important;
 padding-top:2px!important;
}
@media (min-width:961px) and (max-width:1199px){
 body[data-design="shanyrak"] .site-header .brand-word strong,
.site-header .brand-word strong{font-size:28px!important}
 body[data-design="shanyrak"] .site-header .brand-word small,
.site-header .brand-word small{font-size:14px!important}
}
@media (min-width:901px) and (max-width:960px){
 body[data-design="shanyrak"] .site-header .brand-word strong,
.site-header .brand-word strong{font-size:25px!important}
 body[data-design="shanyrak"] .site-header .brand-word small,
.site-header .brand-word small{font-size:12.5px!important}
}
@media (max-width:900px){
 body[data-design="shanyrak"] .site-header .brand-word strong,
.site-header .brand-word strong{font-size:28px!important}
 body[data-design="shanyrak"] .site-header .brand-word small,
.site-header .brand-word small{font-size:14px!important}
}
@media (max-width:355px){
 body[data-design="shanyrak"] .site-header .brand-word strong,
.site-header .brand-word strong{font-size:26px!important}
 body[data-design="shanyrak"] .site-header .brand-word small,
.site-header .brand-word small{font-size:13px!important}
}


/* UNIFIED MAIN MENU — seven evenly spaced visual centres, fixed in RU/KK/EN.
   Unlike the earlier uneven columns, every item owns the SAME width and centre.
   Home and all four inner routes share the identical 7-column geometry. */
@media(min-width:1200px){
 body[data-design="shanyrak"] .site-header .nav-main{
   display:grid!important;
   width:625px!important;
   grid-template-columns:repeat(7,minmax(0,1fr))!important;
   gap:0!important;
   justify-items:stretch!important;
   align-items:center!important;
   margin-inline:auto!important;
 }
}
@media(min-width:901px) and (max-width:1199px){
 body[data-design="shanyrak"] .site-header .nav-main{
   display:grid!important;
   width:531px!important;
   grid-template-columns:repeat(7,minmax(0,1fr))!important;
   gap:0!important;
   justify-items:stretch!important;
   align-items:center!important;
   margin-inline:auto!important;
 }
}
@media(min-width:901px){
 body[data-design="shanyrak"] .site-header .nav-main a{
   min-width:0!important;
   max-width:none!important;
   width:100%!important;
   height:100%!important;
   display:flex!important;
   align-items:center!important;
   justify-content:center!important;
   text-align:center!important;
   white-space:nowrap!important;
   letter-spacing:-.025em!important;
   font-size:clamp(10px,.83vw,11.7px)!important;
 }
}


/* Approved old-site shortcut in the HEADER, above the language selector and
   phone icon. Absolutely positioned inside existing header-actions so the
   approved header/menu/main/footer geometry remains unchanged. */
body[data-design="shanyrak"] .site-header .header-actions {
  position:relative;
}
body[data-design="shanyrak"] .site-header .header-actions > .vial-legacy-site-link {
  display:block;
  position:absolute;
  z-index:2;
  top:-19px;
  right:0;
  max-width:none;
  padding:0;
  margin:0;
  color:#326b75;
  font-size:10px;
  font-weight:650;
  line-height:1.25;
  text-align:right;
  text-decoration:none;
  border-bottom:1px solid rgba(43,119,128,.27);
  white-space:nowrap;
}
body[data-design="shanyrak"] .site-header .header-actions > .vial-legacy-site-link:hover {
  color:#116f75;
  border-bottom-color:currentColor;
}
body[data-design="shanyrak"] .site-header .header-actions > .vial-legacy-site-link:focus-visible {
  outline:2px solid #198b91;
  outline-offset:3px;
}
@media(max-width:900px){
 body[data-design="shanyrak"] .site-header .header-actions > .vial-legacy-site-link{
  top:-14px;
  font-size:9px;
 }
}
@media(max-width:355px){
 body[data-design="shanyrak"] .site-header .header-actions > .vial-legacy-site-link{
  top:-12px;
  font-size:8.5px;
 }
}


/* 2026-11-18: EIGHT navigation items fit one aligned row.
   Closer spacing and slightly larger type, identical RU/KK/EN geometry.
   Overrides former fixed SEVEN-column rules without changing header height. */
@media(min-width:1200px){
 body[data-design="shanyrak"] .site-header .nav-main {
   width:720px!important;
   max-width:720px!important;
   grid-template-columns:repeat(8,minmax(0,1fr))!important;
   gap:0!important;
 }
 body[data-design="shanyrak"] .site-header .nav-main a {
   font-size:12px!important;
   letter-spacing:-.012em!important;
 }
}
@media(min-width:1121px) and (max-width:1199px){
 body[data-design="shanyrak"] .site-header .nav-main {
   width:620px!important;
   max-width:620px!important;
   grid-template-columns:repeat(8,minmax(0,1fr))!important;
   gap:0!important;
 }
 body[data-design="shanyrak"] .site-header .nav-main a {
   font-size:11.25px!important;
   letter-spacing:-.02em!important;
 }
}
@media(min-width:901px) and (max-width:1120px){
 body[data-design="shanyrak"] .site-header .nav-main {
   width:min(570px,calc(100vw - 385px))!important;
   max-width:min(570px,calc(100vw - 385px))!important;
   grid-template-columns:repeat(8,minmax(0,1fr))!important;
   gap:0!important;
 }
 body[data-design="shanyrak"] .site-header .nav-main a {
   font-size:clamp(9px,1vw,11px)!important;
   letter-spacing:-.04em!important;
 }
}


/* 2026-11-18 — invariant Shanyrak plaque coordinates after the Services lead
   sentence was added. Reserve the actual RU lead text line count in every
   language. plaque-align.js follows the lower hero CTA centre, so allowing
   different lead heights was the ROOT CAUSE of the moving four plaques.
   These min-heights match the RU reference at each responsive breakpoint. */
@media(min-width:1200px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead {
  min-height:135.625px!important;
 }
}
@media(min-width:961px) and (max-width:1199px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead{
  min-height:162.75px!important;
 }
}
@media(min-width:901px) and (max-width:960px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead{
  min-height:189.875px!important;
 }
}
@media(min-width:651px) and (max-width:900px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead{
  min-height:135.625px!important;
 }
}
@media(min-width:351px) and (max-width:650px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead{
  min-height:173.69px!important;
 }
}
@media(max-width:350px){
 body[data-design="shanyrak"][data-page="home"] .hero-copy .lead{
  min-height:250px!important;
 }
}


/* 2026-11-18 owner-approved: use exactly the more luminous internal-page
   atmosphere on Home, keeping Shanyrak SVG, plaques, and their glow untouched. */
body[data-design="shanyrak"][data-page="home"] .hero {
 background:
  radial-gradient(ellipse 80% 88% at 86% 23%,rgba(82,190,191,.35),transparent 70%),
  linear-gradient(124deg,#174355 0%,#24586b 55%,#286778 100%)!important;
}

/* More legible navigation labels, SAME overall 8-column width and placement.
   Reduce glyph spacing slightly instead of enlarging header or wrapping. */
@media(min-width:1200px) {
 body[data-design="shanyrak"] .site-header .nav-main a {
  font-size:13.5px!important;
  letter-spacing:-.026em!important;
 }
}
@media(min-width:1121px) and (max-width:1199px) {
 body[data-design="shanyrak"] .site-header .nav-main a {
  font-size:12.5px!important;
  letter-spacing:-.034em!important;
 }
}
@media(min-width:901px) and (max-width:1120px) {
 body[data-design="shanyrak"] .site-header .nav-main a {
  font-size:clamp(10.2px,1.13vw,12px)!important;
  letter-spacing:-.045em!important;
 }
}


/* 18.11.2026 — harmonise four training plaques and centre mechanism with
   the user's newly approved luminous Home background. COLOUR ONLY:
   do not change width, height, transforms, clip paths, selection/animation. */
body[data-design="shanyrak"][data-page="home"] .system-plaque {
  background:linear-gradient(118deg,rgba(36,109,125,.95),rgba(21,82,100,.95));
  border-color:rgba(125,242,236,.60);
  box-shadow:0 8px 23px rgba(2,29,42,.14),
             inset 0 0 17px rgba(119,239,232,.075);
  color:#f2fffd;
}
body[data-design="shanyrak"][data-page="home"] .system-plaque::before {
  border-top-color:rgba(169,255,250,.37);
}
body[data-design="shanyrak"][data-page="home"] .system-plaque .plaque-name {
  color:#f5fffd;
}
body[data-design="shanyrak"][data-page="home"] .system-plaque:hover,
body[data-design="shanyrak"][data-page="home"] .system-plaque:focus-visible {
  background:linear-gradient(118deg,rgba(42,125,137,.97),rgba(24,95,111,.97));
  border-color:#c0fff5;
}
body[data-design="shanyrak"][data-page="home"] .system-plaque.is-selected {
  background:linear-gradient(120deg,rgba(43,148,154,.98),rgba(23,104,123,.98));
  border-color:#c1fff7;
  box-shadow:0 0 0 1px rgba(166,255,248,.23),
             0 0 25px rgba(45,230,216,.34),
             inset 0 0 23px rgba(121,250,229,.13);
}
body[data-design="shanyrak"][data-page="home"] .system-plaque.is-selected .plaque-name {
  color:#ffffff;
}
body[data-design="shanyrak"][data-page="home"] .brand-mechanism {
  filter:drop-shadow(0 7px 16px rgba(0,20,32,.26));
}
body[data-design="shanyrak"][data-page="home"] .brand-gear-core {
  filter:brightness(1.12) saturate(1.06) drop-shadow(0 0 12px rgba(102,244,232,.26));
}
body[data-design="shanyrak"][data-page="home"] .gear-motion>.brand-gear-ring {
  filter:brightness(1.18) saturate(1.1) drop-shadow(0 0 6px rgba(100,237,230,.44));
}
body[data-design="shanyrak"][data-page="home"] .satellite-gear {
  opacity:.68;
  filter:grayscale(.3) brightness(1.19) drop-shadow(0 0 9px rgba(130,240,229,.33));
}


/* Approved 18.11.2026: brighten the transparent circular centres of both
   satellite gears, retaining the same SVG rim and all positions/rotation. */
body[data-design="shanyrak"][data-page="home"] .satellite-gear {
 background-image:
  url('/assets/img/gear-redrawn-rim.svg'),
  radial-gradient(circle at 50% 46%,
    rgba(101,202,206,.37) 0%,
    rgba(60,152,168,.22) 57%,
    rgba(29,109,135,.06) 78%,
    transparent 90%);
 background-position:center,center;
 background-size:contain,100% 100%;
 background-repeat:no-repeat,no-repeat;
}


/* VIAL compact translated headline visual flow — no layout displacement.
   The empty reserved RU-sized headline line becomes breathing room between
   the lead paragraph and the stationary CTAs; unlike min-height:0, visual
   transforms do NOT recalculate the gear selector or four button positions.
   Only the two translated homepages are affected. */
html:lang(kk) body[data-design="shanyrak"][data-page="home"] .hero-copy h1 > em,
html:lang(en) body[data-design="shanyrak"][data-page="home"] .hero-copy h1 > em{
 transform:translateY(var(--vial-hero-em-lift,0px))!important;
 transition:none!important;
}
html:lang(kk) body[data-design="shanyrak"][data-page="home"] .hero-copy > .lead,
html:lang(en) body[data-design="shanyrak"][data-page="home"] .hero-copy > .lead{
 transform:translateY(var(--vial-hero-lead-lift,0px))!important;
 transition:none!important;
}


/* 19 Nov 2026 — exact, uniform spacing between the visible eight
   navigation labels (not the former equal-width cells) in RU/KK/EN.
   Seven rhombi, each at the true midpoint between adjacent text.
   No DOM change; each link retains its entire clickable text.
   Narrow-screen navigation remains unchanged; header geometry preserved. */
@media(min-width:901px){
body[data-design="shanyrak"] .site-header .nav-main{
 display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important;
 justify-content:center!important; align-items:center!important;
 gap:var(--vial-nav-gap,21px)!important;
 column-gap:var(--vial-nav-gap,21px)!important;row-gap:0!important;
 transition:none!important;
 grid-template-columns:none!important; justify-items:normal!important;
}
body[data-design="shanyrak"] .site-header .nav-main a{
 position:relative!important;
 width:auto!important;min-width:0!important;max-width:none!important;
 flex:0 0 auto!important; height:100%!important;
 padding:0!important; margin:0!important;
 justify-content:center!important; white-space:nowrap!important;
}
body[data-design="shanyrak"] .site-header .nav-main a:not(:last-child)::after{
 content:""!important; position:absolute!important;
 left:calc(100% + var(--vial-nav-gap,21px)/2 - 2.5px)!important;
 top:50%!important; transform:translateY(-50%) rotate(45deg)!important;
 width:5px!important;height:5px!important;
 box-sizing:border-box!important; border:1px solid #a4dcda!important;
 background:#5ca9a9!important; border-radius:.8px!important;
 pointer-events:none!important; opacity:.8!important;
}
}
@media(min-width:1200px){body[data-design="shanyrak"] .site-header .nav-main{--vial-nav-gap:21px!important;}}
@media(min-width:1121px) and (max-width:1199px){body[data-design="shanyrak"] .site-header .nav-main{--vial-nav-gap:16px!important;}}
@media(min-width:901px) and (max-width:1120px){body[data-design="shanyrak"] .site-header .nav-main{--vial-nav-gap:14px!important;}}

/* MOBILE-ONLY 2026-11-19: keep the approved desktop shanyrak proportions.
   The country's visible width / centre-wheel diameter now matches desktop;
   satellites keep desktop diameter/offset ratios. The industrial ground
   actually appears above the clipped base, rather than below it. */
@media(max-width:650px){
 body[data-design="shanyrak"][data-page="home"] .country-outline {
  width:180%!important;
  /* keep the exact desktop centring construction and all approved colours */
  left:50%!important;
 }
 body[data-design="shanyrak"][data-page="home"] .satellite-gear {
  width:39%!important;
  height:39%!important;
 }
 body[data-design="shanyrak"][data-page="home"] .industry-horizon{
  bottom:245px!important;
  height:34%!important;
  opacity:.76!important;
  object-position:center bottom!important;
 }
}

/* 19 NOV 2026: fixed-size readable course badges for narrow desktop windows.
   Intentional exception to prior desktop freeze: only this user-requested font
   and natural wrapping change below 1200px, leaving all desktop geometries. */
@media(min-width:901px) and (max-width:1199px){
 body[data-design="shanyrak"][data-page="home"] .system-plaque .plaque-name{
   font-size:12.5px!important;
   line-height:1.30!important;
   letter-spacing:-.018em!important;
   white-space:normal!important;
   text-wrap:wrap!important;
   word-break:normal!important;
   overflow-wrap:normal!important;
 }
}
/* Phone-only: restore the same SVG wire-flow and glowing endpoints that
   already run on desktop. Compress its vertical canvas towards the actual
   gear so the four connections don't disappear behind the bottom buttons. */
@media(max-width:650px){
 body[data-design="shanyrak"][data-page="home"] .system-wires{
   display:block!important;
   width:100%!important;
   height:400px!important;
   top:0!important;
   bottom:auto!important;
   left:0!important;
   right:0!important;
   z-index:1!important;
   opacity:.95!important;
   pointer-events:none!important;
 }
 body[data-design="shanyrak"][data-page="home"] .system-wires path{
   stroke-opacity:.66!important;
 }
 body[data-design="shanyrak"][data-page="home"] .system-wires circle{
   opacity:1;
 }
 /* Increase readability without changing the sizes or positions of gears,
    the map, or the four row centres. */
 body[data-design="shanyrak"][data-page="home"] .system-plaque .plaque-name{
   font-size:clamp(12.5px,3.5vw,14.4px)!important;
   line-height:1.24!important;
   letter-spacing:-.014em!important;
   white-space:normal!important;
   text-wrap:balance!important;
 }
 /* Trim ONLY the empty bottom band: preserve each button's absolute y
    coordinate by subtracting the same 28px from its bottom offset. */
 body[data-design="shanyrak"][data-page="home"] .mechanism-art{
   height:540px!important;
   min-height:540px!important;
 }
 body[data-design="shanyrak"][data-page="home"] .gear-cluster,
 body[data-design="shanyrak"][data-page="home"] .system-hud{
   top:calc(29% + 8.12px)!important;
 }
 body[data-design="shanyrak"][data-page="home"] .country-outline{
   top:calc(29% + 8.12px)!important;
   height:calc(93% + 26px)!important;
 }
 body[data-design="shanyrak"][data-page="home"] .industry-horizon{
   bottom:217px!important;
   height:calc(34% + 10px)!important;
 }
 body[data-design="shanyrak"][data-page="home"] .system-plaque.plaque-1{
   bottom:178px!important;
 }
 body[data-design="shanyrak"][data-page="home"] .system-plaque.plaque-2{
   bottom:126px!important;
 }
 body[data-design="shanyrak"][data-page="home"] .system-plaque.plaque-3{
   bottom:74px!important;
 }
 body[data-design="shanyrak"][data-page="home"] .system-plaque.plaque-4{
   bottom:22px!important;
 }
 /* Longer old-version link: two compact lines on tiny phones. */
 body[data-design="shanyrak"] .site-header .vial-legacy-site-link{
   max-width:156px!important;
   white-space:normal!important;
   line-height:1.18!important;
 }
}
/* Reduced-motion preference keeps all existing animation overrides active. */

/* 19 Nov 2026 - legible single-line directional badges, no change to
   plaque widths/heights/coordinates (desktop and Android). Narrower label
   typeface and modest tracking avoid shrinking text to 9px as the window closes. */
@media(min-width:901px) and (max-width:1199px){
 body[data-design="shanyrak"][data-page="home"] .system-plaque .plaque-icon{
   display:none!important;
 }
 body[data-design="shanyrak"][data-page="home"] .system-plaque{
   gap:0!important;
   padding-inline:6px!important;
 }
}
@media(min-width:901px){
 body[data-design="shanyrak"][data-page="home"] .system-plaque .plaque-name{
   font-family:"Arial Narrow","Roboto Condensed","Liberation Sans Narrow",Arial,sans-serif!important;
   font-size:13.5px!important;
   font-weight:800!important;
   line-height:1.15!important;
   letter-spacing:-.035em!important;
   white-space:nowrap!important;
   text-wrap:nowrap!important;
   overflow-wrap:normal!important;
   word-break:normal!important;
 }
}
@media(max-width:650px){
 body[data-design="shanyrak"][data-page="home"] .system-plaque .plaque-name{
   font-size:clamp(13.5px,3.95vw,15.5px)!important;
   font-weight:800!important;
   white-space:nowrap!important;
   text-wrap:nowrap!important;
   overflow-wrap:normal!important;
   word-break:normal!important;
   letter-spacing:-.045em!important;
 }
}
/* Traveling lights keep the old pulsing beacons as endpoints; the new circles
   follow every animated dotted signal path without blocking input. */
body[data-design="shanyrak"][data-page="home"] .system-wires .wire-runner{
 animation:none!important;
 transform:none;
 filter:drop-shadow(0 0 3px #f0ffed)
        drop-shadow(0 0 7px rgba(85,255,235,.95));
 opacity:.98;
 pointer-events:none;
}
@media(prefers-reduced-motion:reduce){
 body[data-design="shanyrak"][data-page="home"] .system-wires .wire-runner{
   display:none!important;
 }
}

/* Coordinated Shanyrak light traces. Original SVG paths remain in the source,
   but one responsive overlay now draws accurate routes and four fireflies.
   All effects are decorative and never capture pointer/touch events. */
body[data-design="shanyrak"][data-page="home"] .vial-fireflies-enabled>.system-wires{
 opacity:0!important;
}
body[data-design="shanyrak"][data-page="home"] .vial-signal-overlay{
 position:absolute;
 inset:0;
 z-index:8;
 display:block;
 width:100%;
 height:100%;
 overflow:visible;
 pointer-events:none!important;
}
body[data-design="shanyrak"][data-page="home"] .vial-signal-lines .vial-signal-route{
 fill:none;
 stroke:#75ecdf;
 stroke-width:1.6;
 stroke-opacity:.20;
 stroke-dasharray:8 8;
 animation:wire-flow 15s linear infinite;
 filter:drop-shadow(0 0 2px rgba(75,222,212,.38));
 pointer-events:none;
}
body[data-design="shanyrak"][data-page="home"] .vial-signal-lines .vial-signal-route.is-active{
 stroke:#adfff0;
 stroke-width:2.3;
 stroke-opacity:.84;
 filter:drop-shadow(0 0 4px rgba(91,255,220,.85));
}
body[data-design="shanyrak"][data-page="home"] .vial-signal-overlay .vial-signal-outline{
 fill:none;
 stroke:#bffff0;
 stroke-width:2.3;
 stroke-dasharray:7 6;
 stroke-opacity:0;
 pointer-events:none;
 filter:drop-shadow(0 0 5px rgba(82,249,222,.87));
}
body[data-design="shanyrak"][data-page="home"] .vial-signal-overlay .vial-signal-outline.is-active{
 stroke-opacity:.55;
}
body[data-design="shanyrak"][data-page="home"] .vial-signal-overlay .vial-firefly{
 filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px #69fbd4);
 opacity:1;
 pointer-events:none;
}
body[data-design="shanyrak"][data-page="home"] .national-system.vial-fireflies-enabled .system-plaque.is-selected:not(.is-signal-lit){
 border-color:rgba(88,219,222,.44)!important;
 box-shadow:0 10px 24px rgba(2,17,30,.15),inset 0 0 16px rgba(61,220,206,.038)!important;
}
body[data-design="shanyrak"][data-page="home"] .national-system.vial-fireflies-enabled .system-plaque.is-signal-lit{
 border-color:#c6fff2!important;
 box-shadow:0 0 0 1px rgba(145,255,238,.48),0 0 26px rgba(91,254,221,.88),inset 0 0 21px rgba(72,244,225,.20)!important;
}
@media(max-width:650px){
 body[data-design="shanyrak"][data-page="home"] .vial-signal-overlay{
   overflow:hidden;
 }
}
@media(prefers-reduced-motion:reduce){
 body[data-design="shanyrak"][data-page="home"] .vial-signal-overlay{
   display:none!important;
 }
 body[data-design="shanyrak"][data-page="home"] .vial-fireflies-enabled>.system-wires{
   opacity:1!important;
 }
}

/* Tablet and narrow browser widths: no 10px labels in four direction cards. */
@media(min-width:651px) and (max-width:900px){
 body[data-design="shanyrak"][data-page="home"] .system-plaque .plaque-name{
   font-family:"Arial Narrow","Roboto Condensed","Liberation Sans Narrow",Arial,sans-serif!important;
   font-size:13.5px!important;
   font-weight:800!important;
   line-height:1.15!important;
   letter-spacing:-.045em!important;
   white-space:nowrap!important;
   text-wrap:nowrap!important;
   overflow-wrap:normal!important;
   word-break:normal!important;
 }
}

/* Visible turquoise-white core of each travelling signal light. */
body[data-design="shanyrak"][data-page="home"] .vial-signal-overlay .vial-firefly{
 fill:#e5fff5!important;
 stroke:#7bffe3!important;
 stroke-width:1.2!important;
 filter:drop-shadow(0 0 3px #fff9e7)
        drop-shadow(0 0 8px #52ffdf)
        drop-shadow(0 0 14px rgba(56,255,220,.85))!important;
}


/* V6: one straight dashed connection; hide the perimeter guide line.
   The firefly still follows this invisible path around the rounded border. */
body[data-design="shanyrak"][data-page="home"]
.vial-signal-overlay .vial-signal-outline,
body[data-design="shanyrak"][data-page="home"]
.vial-signal-overlay .vial-signal-outline.is-active {
  stroke:none!important;
  stroke-opacity:0!important;
  opacity:0!important;
  filter:none!important;
}

/* V7 preview: paths behind plaques, light above plaque outlines. */
body[data-design="shanyrak"][data-page="home"] .vial-signal-lines{
 position:absolute;
 inset:0;
 z-index:2;
 display:block;
 width:100%;
 height:100%;
 overflow:hidden;
 pointer-events:none!important;
}


/* Shanyrak REAL RAIL endpoints and original plaque marker alignment.
   Routing runs over the actual shanyrak rays, underneath the four cards.
   On a phone only, show one luminous entry point centred at each card top. */
body[data-design="shanyrak"][data-page="home"] .vial-signal-lines{
 z-index:4!important;
}
@media(max-width:650px){
 body[data-design="shanyrak"][data-page="home"] .system-plaque .plaque-point{
   display:block!important;
   position:absolute!important;
   left:50%!important;
   right:auto!important;
   top:-5px!important;
   bottom:auto!important;
   transform:translateX(-50%)!important;
   z-index:7!important;
   animation:none!important;
   width:7px!important;
   height:7px!important;
 }
}
