/* VIAL-SERVICE · Third concept: shanyrak-inspired central mechanism.
   Architectural yurt roof crown, not an official state emblem.
   Full labels remain on one line in RU / KK / EN. */
body[data-design="shanyrak"] .mechanism-art{max-width:100%;width:100%}
body[data-design="shanyrak"] .national-system{isolation:isolate}
body[data-design="shanyrak"] .gear-cluster{width:min(51%,312px);top:44%}
body[data-design="shanyrak"] .system-hud{top:44%}
body[data-design="shanyrak"] .brand-gear-core{
  filter:drop-shadow(0 0 11px rgba(83,239,217,.31)) brightness(1.12);
}
body[data-design="shanyrak"] .gear-motion{
  /* Whole rim plus its short selector turns, shanyrak stays stationary. */
  transform-origin:50% 50%;
}
body[data-design="shanyrak"] .country-outline{
  width:137%;height:102%;left:-18.5%;top:-7%;
  object-fit:contain;opacity:.95;
  filter:drop-shadow(0 0 14px rgba(56,226,225,.42)) brightness(1.22);
}
/* The country stays inside the visual zone rather than crossing headline text. */
body[data-design="shanyrak"] .hero-art{overflow:hidden}
body[data-design="shanyrak"] .national-system{overflow:hidden}
body[data-design="shanyrak"] .system-plaque{
  width:clamp(164px,16vw,212px);max-width:none;
  min-height:64px;padding:10px 10px;gap:7px;
}
body[data-design="shanyrak"] .system-plaque .plaque-icon{width:21px;flex-basis:21px}
body[data-design="shanyrak"] .system-plaque .plaque-icon svg{width:21px;height:21px}
body[data-design="shanyrak"] .system-plaque .plaque-name{
  display:block;min-width:0;white-space:nowrap;
  text-wrap:nowrap;word-break:normal;overflow-wrap:normal;
  font-size:clamp(9px,.74vw,11.5px);font-weight:800;letter-spacing:-.035em;
  line-height:1.2;
}
body[data-design="shanyrak"] .system-plaque.plaque-2,
body[data-design="shanyrak"] .system-plaque.plaque-3{top:5%;bottom:auto}
body[data-design="shanyrak"] .system-plaque.plaque-1,
body[data-design="shanyrak"] .system-plaque.plaque-4{bottom:6%;top:auto}
body[data-design="shanyrak"] .system-plaque.plaque-2,
body[data-design="shanyrak"] .system-plaque.plaque-1{left:0;right:auto}
body[data-design="shanyrak"] .system-plaque.plaque-3,
body[data-design="shanyrak"] .system-plaque.plaque-4{right:0;left:auto}
body[data-design="shanyrak"] .system-plaque .plaque-name::first-letter{text-transform:none}
body[data-design="shanyrak"] .system-plaque:focus-visible{
  outline:2px solid #c2fff4;outline-offset:3px
}
/* Subtle circular ornament derives from yurt structure, not flags or coats of arms. */
body[data-design="shanyrak"] .gear-halo::before{
  content:"";position:absolute;inset:9%;border-radius:50%;
  border:1px dotted rgba(143,255,237,.25);
}
@media(max-width:1120px) and (min-width:901px){
  body[data-design="shanyrak"] .mechanism-art{height:475px}
  body[data-design="shanyrak"] .system-plaque{width:clamp(141px,14.2vw,165px);padding:9px 7px;gap:5px}
  body[data-design="shanyrak"] .system-plaque .plaque-icon{width:16px;flex-basis:16px}
  body[data-design="shanyrak"] .system-plaque .plaque-icon svg{width:16px;height:16px}
  body[data-design="shanyrak"] .system-plaque .plaque-name{font-size:clamp(8px,.8vw,9px)}
}
@media(max-width:900px) and (min-width:651px){
  body[data-design="shanyrak"] .gear-cluster{width:min(49%,290px);top:42%}
  body[data-design="shanyrak"] .system-hud{top:42%}
  body[data-design="shanyrak"] .system-plaque{width:205px;min-height:60px}
  body[data-design="shanyrak"] .system-plaque .plaque-name{font-size:10px}
  body[data-design="shanyrak"] .country-outline{width:132%;height:100%;left:-16%;top:-8%}
}
@media(max-width:650px){
  body[data-design="shanyrak"] .mechanism-art{
    height:532px;min-height:532px;overflow:hidden;
    border-radius:17px;
  }
  body[data-design="shanyrak"] .country-outline{
    width:144%;height:71%;left:-22%;top:-6%;opacity:.9;
  }
  body[data-design="shanyrak"] .gear-cluster{
    width:min(56%,202px);top:30%;
  }
  body[data-design="shanyrak"] .system-hud{width:67%;top:30%}
  body[data-design="shanyrak"] .system-plaque{
    position:absolute;left:12px!important;right:12px!important;
    width:calc(100% - 24px);max-width:none;min-height:43px;
    padding:8px 14px;gap:10px;border-radius:9px;transform:none;
  }
  body[data-design="shanyrak"] .system-plaque .plaque-icon{
    display:grid;width:20px;flex-basis:20px;
  }
  body[data-design="shanyrak"] .system-plaque .plaque-icon svg{width:20px;height:20px}
  body[data-design="shanyrak"] .system-plaque .plaque-name{
    font-size:clamp(11px,3.05vw,13px);letter-spacing:0;
  }
  body[data-design="shanyrak"] .system-plaque.plaque-1{top:auto!important;bottom:170px!important}
  body[data-design="shanyrak"] .system-plaque.plaque-2{top:auto!important;bottom:118px!important}
  body[data-design="shanyrak"] .system-plaque.plaque-3{top:auto!important;bottom:66px!important}
  body[data-design="shanyrak"] .system-plaque.plaque-4{top:auto!important;bottom:14px!important}
  body[data-design="shanyrak"] .industry-horizon{height:43%;opacity:.44}
  body[data-design="shanyrak"] .satellite-gear{width:32%;height:32%}
}
@media(max-width:355px){
  body[data-design="shanyrak"] .mechanism-art{height:526px;min-height:526px}
  body[data-design="shanyrak"] .system-plaque .plaque-name{font-size:10.8px}
}
@media(prefers-reduced-motion:reduce){
  body[data-design="shanyrak"] .gear-halo::before{animation:none}
}

/* A short, usable footer for a business-card homepage: same links, half the empty height.
   Navigation and contacts remain keyboard-accessible and text is never clipped. */
body[data-design="shanyrak"] .final-screen{
  min-height:0!important;
  height:auto!important;
  display:block!important;
  scroll-snap-align:none!important;
  background:#071e2b;
}
body[data-design="shanyrak"] .site-footer,
body[data-design="shanyrak"] .final-screen .site-footer{
  padding:16px 0 10px!important;
}
body[data-design="shanyrak"] .footer-grid,
body[data-design="shanyrak"] .final-screen .footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(0,1.25fr) minmax(0,.98fr);
  align-items:start;
  column-gap:clamp(16px,2.9vw,42px);
  row-gap:10px;
  padding-bottom:11px!important;
  border-bottom:1px solid rgba(255,255,255,.13);
}
body[data-design="shanyrak"] .site-footer .brand-gear{
  width:39px;height:39px;flex-basis:39px;
}
body[data-design="shanyrak"] .site-footer .brand-word strong{
  font-size:1.02rem;
}
body[data-design="shanyrak"] .site-footer .brand-word small{
  font-size:.57rem;
}
body[data-design="shanyrak"] .footer-about,
body[data-design="shanyrak"] .final-screen .footer-about{
  font-size:.75rem;line-height:1.4;
  max-width:295px;margin:8px 0 0!important;
}
body[data-design="shanyrak"] .footer-title,
body[data-design="shanyrak"] .final-screen .footer-title{
  margin:0 0 6px!important;
  font-size:.68rem;letter-spacing:.08em;
}
body[data-design="shanyrak"] .footer-links,
body[data-design="shanyrak"] .final-screen .footer-links{
  display:grid;gap:3px 12px!important;
}
body[data-design="shanyrak"] .footer-grid>div:nth-child(2) .footer-links{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body[data-design="shanyrak"] .footer-links a{
  display:inline-block;font-size:.77rem;
  line-height:1.32;
}
body[data-design="shanyrak"] .footer-links li{
  line-height:1.32;
  min-width:0;
}
body[data-design="shanyrak"] .footer-bottom,
body[data-design="shanyrak"] .final-screen .footer-bottom{
  padding-top:8px!important;
  gap:5px 18px;font-size:.7rem;line-height:1.4;
}
@media(max-width:900px){
  body[data-design="shanyrak"] .footer-grid,
  body[data-design="shanyrak"] .final-screen .footer-grid{
    grid-template-columns:minmax(0,.85fr) minmax(0,1.1fr) minmax(0,.95fr);
    gap:14px;
  }
  body[data-design="shanyrak"] .footer-grid>div:nth-child(2) .footer-links{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-design="shanyrak"] .footer-links a{font-size:.74rem}
}
@media(max-width:650px){
  body[data-design="shanyrak"] .site-footer,
  body[data-design="shanyrak"] .final-screen .site-footer{
    padding:16px 0 12px!important;
  }
  body[data-design="shanyrak"] .footer-grid,
  body[data-design="shanyrak"] .final-screen .footer-grid{
    grid-template-columns:1fr;
    row-gap:14px;column-gap:0;
    padding-bottom:12px!important;
  }
  body[data-design="shanyrak"] .footer-grid>div:first-child{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;gap:14px;
  }
  body[data-design="shanyrak"] .footer-about{
    margin:0!important;max-width:none;
    font-size:.72rem;line-height:1.38;
  }
  body[data-design="shanyrak"] .footer-grid>div:nth-child(2) .footer-links,
  body[data-design="shanyrak"] .footer-grid>div:nth-child(3) .footer-links{
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:12px;row-gap:4px;
  }
  body[data-design="shanyrak"] .footer-links a{
    font-size:.75rem;line-height:1.45;
    overflow-wrap:anywhere;
  }
  body[data-design="shanyrak"] .footer-bottom{
    padding-top:9px!important;font-size:.68rem;
  }
}
@media(max-width:355px){
  body[data-design="shanyrak"] .footer-grid>div:first-child{
    grid-template-columns:1fr;gap:5px;
  }
  body[data-design="shanyrak"] .footer-about{margin:2px 0 0!important}
}

/* Keep full names at 1024px without splitting, clipping or crowding the gear.
   Remove the small pictograms ONLY at intermediate desktop widths. */
@media(min-width:901px) and (max-width:1120px){
  body[data-design="shanyrak"] .system-plaque .plaque-icon{
    display:none;
  }
  body[data-design="shanyrak"] .system-plaque .plaque-name{
    font-size:clamp(8.5px,.9vw,10px);
  }
}

/* Long but COMPLETE training names: readable desktop single-line pills.
   Pill rows are separated vertically from the centered gear's top/bottom. */
@media(min-width:1121px){
 body[data-design="shanyrak"] .system-plaque{
   width:clamp(226px,19vw,264px);max-width:none;
   min-height:53px;padding:8px 13px;gap:8px;
 }
 body[data-design="shanyrak"] .system-plaque .plaque-name{
   font-size:clamp(11.5px,.86vw,12.6px);letter-spacing:-.018em;
 }
 body[data-design="shanyrak"] .system-plaque.plaque-2,
 body[data-design="shanyrak"] .system-plaque.plaque-3{
   top:1.5%;bottom:auto;
 }
 body[data-design="shanyrak"] .system-plaque.plaque-1,
 body[data-design="shanyrak"] .system-plaque.plaque-4{
   bottom:1.5%;top:auto;
 }
}
@media(min-width:901px) and (max-width:1120px){
 body[data-design="shanyrak"] .system-plaque{
   width:clamp(174px,19vw,215px);max-width:none;
   min-height:51px;padding:8px 10px;
 }
 body[data-design="shanyrak"] .system-plaque .plaque-name{
   font-size:clamp(9.7px,.98vw,11px);letter-spacing:-.025em;
 }
 body[data-design="shanyrak"] .system-plaque.plaque-2,
 body[data-design="shanyrak"] .system-plaque.plaque-3{
   top:1%;bottom:auto;
 }
 body[data-design="shanyrak"] .system-plaque.plaque-1,
 body[data-design="shanyrak"] .system-plaque.plaque-4{
   bottom:1%;top:auto;
 }
}

/* Geometry review v2: the four cross DIVIDERS become the shanyrak beams.
   The Kazakhstan land outline can now flow behind the heading as in the earlier
   preferred concept. SVG is uniformly scaled, never distorted. */
@media(min-width:901px){
  body[data-design="shanyrak"] .hero-art,
  body[data-design="shanyrak"] .national-system{
    overflow:visible!important;
    clip-path:none!important;
  }
  body[data-design="shanyrak"] .country-outline{
    position:absolute;
    z-index:0;
    display:block;
    width:190%;
    height:136%;
    max-width:none;
    left:-53%;
    top:-12%;
    object-fit:contain;
    object-position:center center;
    opacity:.9;
    filter:drop-shadow(0 0 12px rgba(64,222,224,.46)) brightness(1.13);
  }
  body[data-design="shanyrak"] .hero-copy{
    position:relative;
    z-index:5; /* text stays legible, map can pass behind it */
  }
  body[data-design="shanyrak"] .system-plaque.plaque-1,
  body[data-design="shanyrak"] .system-plaque.plaque-4{
    bottom:12%!important;
    top:auto!important;
  }
  body[data-design="shanyrak"] .system-caption{
    display:flex!important;
    bottom:2%!important;
    font-size:.66rem;
    letter-spacing:.17em;
    color:#90e8e2;
    opacity:.85;
  }
  body[data-design="shanyrak"] .gear-cluster{
    width:min(54%,340px);
  }
}
@media(min-width:651px) and (max-width:900px){
  body[data-design="shanyrak"] .hero-art,
  body[data-design="shanyrak"] .national-system{
    overflow:visible!important;
  }
  body[data-design="shanyrak"] .country-outline{
    width:154%;
    height:119%;
    left:-27%;
    top:-9%;
    max-width:none;
    object-fit:contain;
    opacity:.9;
  }
  body[data-design="shanyrak"] .system-plaque.plaque-1,
  body[data-design="shanyrak"] .system-plaque.plaque-4{
    bottom:8%!important;top:auto!important;
  }
  body[data-design="shanyrak"] .system-caption{
    display:flex!important;bottom:0!important;
    color:#96ece1;font-size:.54rem;opacity:.8;
  }
}
@media(max-width:650px){
  /* Mobile has a separate stacked layout: the full outlined map remains visible
     behind the gear while buttons are still easy to tap with one hand. */
  body[data-design="shanyrak"] .mechanism-art{
    height:568px!important;
    min-height:568px!important;
    overflow:hidden;
  }
  body[data-design="shanyrak"] .national-system{
    overflow:hidden;
  }
  body[data-design="shanyrak"] .country-outline{
    width:157%;
    height:93%;
    left:-28.5%;
    top:-11%;
    object-fit:contain;
    opacity:.82;
  }
  body[data-design="shanyrak"] .gear-cluster{
    width:min(56%,202px);
    top:29%;
  }
  body[data-design="shanyrak"] .system-hud{top:29%}
  body[data-design="shanyrak"] .system-plaque.plaque-1{
    bottom:206px!important;
  }
  body[data-design="shanyrak"] .system-plaque.plaque-2{
    bottom:154px!important;
  }
  body[data-design="shanyrak"] .system-plaque.plaque-3{
    bottom:102px!important;
  }
  body[data-design="shanyrak"] .system-plaque.plaque-4{
    bottom:50px!important;
  }
  body[data-design="shanyrak"] .system-caption{
    display:flex!important;
    justify-content:center;
    align-items:center;
    position:absolute;
    left:50%;
    bottom:9px!important;
    width:max-content;
    max-width:96%;
    text-align:center;
    opacity:.88;
    color:#9feadd;
    font-size:clamp(6.5px,1.85vw,8px);
    letter-spacing:.095em;
    gap:6px;
    white-space:nowrap;
  }
  body[data-design="shanyrak"] .system-caption i{
    width:3px;height:3px;flex:0 0 3px
  }
}

/* APPROVED REVISIONS, geometry v3.
   Map: ~16% narrower at original natural proportions, vertical box
   remains 136% and its north/south placement is unchanged.
   Bottom two badges: symmetric left/right and closer to the wheel.
   English decorative network caption: removed from the DOM completely. */
@media(min-width:901px){
 body[data-design="shanyrak"] .country-outline{
   width:160%!important;left:-34%!important;
   height:136%!important;top:-12%!important;
   object-fit:contain!important;max-width:none!important;
   transform:none!important;
   filter:drop-shadow(0 0 11px rgba(52,209,220,.33)) brightness(1.09);
 }
 body[data-design="shanyrak"] .system-plaque.plaque-1,
 body[data-design="shanyrak"] .system-plaque.plaque-4{
   bottom:16%!important;top:auto!important;
 }
}
@media(min-width:651px) and (max-width:900px){
 body[data-design="shanyrak"] .country-outline{
   width:137%!important;left:-18.5%!important;
   height:119%!important;top:-9%!important;
   object-fit:contain!important;transform:none!important;
 }
 body[data-design="shanyrak"] .system-plaque.plaque-1,
 body[data-design="shanyrak"] .system-plaque.plaque-4{
   bottom:13%!important;top:auto!important;
 }
}
@media(max-width:650px){
 body[data-design="shanyrak"] .country-outline{
   width:144%!important;left:-22%!important;
   height:93%!important;top:-11%!important;
   object-fit:contain!important;transform:none!important;
 }
}
/* Defensive fallback: never show the unwanted decorative English footer inside the hero. */
body[data-design="shanyrak"] .system-caption{display:none!important}

/* Final proportion check: map keeps its original geographic shape and nearly
   the previous vertical span. Trim excessive horizontal visual presence with
   a gentle edge mask rather than compressing longitude coordinates. */
@media(min-width:901px){
  body[data-design="shanyrak"] .country-outline{
    width:175%!important;
    left:-43.5%!important;
    height:136%!important;
    top:-12%!important;
    object-fit:contain!important;
    transform:none!important;
    -webkit-mask-image:linear-gradient(to right,transparent 0%,black 10%,black 90%,transparent 100%);
    mask-image:linear-gradient(to right,transparent 0%,black 10%,black 90%,transparent 100%);
  }
}

/* Desktop/tablet direction plaques: selected state may not move a badge 2px
   off the exact computed symmetry lines. Highlight/colour/glow stay intact. */
@media(min-width:651px){
  body[data-design="shanyrak"] .system-plaque.is-selected{
    transform:none!important;
  }
}

/* Precise plaque symmetry must not be disrupted by a 2px hover-selection
   transform transition. Keep the colour and glow transitions intact. */
@media(min-width:651px){
  body[data-design="shanyrak"] .system-plaque{
    transition-property:background-color,border-color,box-shadow,opacity!important;
  }
}
