/* V5 extends the accepted V4 composition: MAX services + a visible AI hub.
   National origin is a product attribute, never an endorsement or affiliation. */
.gm5-platform-line{grid-column:1 / -1;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:11px 20px;font-size:11px;line-height:1.5;letter-spacing:.1px;color:#71839D}
.gm5-russian-project{display:inline-flex;align-items:center;gap:9px;padding:6px 11px;background:#FFFFFFD9;border:1px solid #E1E7F1;border-radius:8px;color:#536C90;box-shadow:0 1px 3px #304B7603}
.gm5-russian-project>img{width:22px;height:15px;object-fit:cover;border:1px solid #DCE2EB;border-radius:2px;box-shadow:0 1px 2px #14243D10}
.gm5-access-badge{display:inline-flex;align-items:center;gap:6px;color:#557391}
.gm5-access-badge>.icon{width:13px;height:13px;color:#297B69}
.gm5-max-entry{border-left:1px solid #DDE5F0;padding-left:20px}
.v2-public .gm-home .gm-hero-copy>p>strong{font-weight:500;color:#3C5579}
.gm-home .gm-phone{display:none}
.gm5-hub-preview{position:absolute;right:8px;top:73px;width:232px;padding:17px 16px 13px;background:#FFFFFFF5;border:1px solid #FFF;border-radius:22px;box-shadow:0 1px 2px #354B7610,0 12px 28px #354B7610,0 30px 55px #354B7612,inset 0 0 0 1px #DFE6F3;z-index:2;backdrop-filter:blur(18px)}
.gm5-hub-heading{display:flex;align-items:center;gap:6px;border-bottom:1px solid #E9EDF6;padding-bottom:13px;margin-bottom:4px}
.gm5-hub-symbol{width:47px;height:47px;flex:0 0 47px}
.gm5-hub-symbol>img{width:100%;height:100%;object-fit:contain}
.gm5-hub-heading>div>span{display:block;font-size:8px;line-height:1.6;color:#8A9BB7;letter-spacing:.55px;max-width:17ch}
.v2-public .gm-home .gm5-hub-heading h2{font-size:20px;font-weight:500;line-height:1.3;letter-spacing:-.5px;margin-top:3px;color:#284264}
.v2-public .gm-home .gm5-hub-heading h2>em{color:#6655DE;font-family:inherit;font-style:normal;font-weight:450}
.gm5-hub-links{display:flex;flex-direction:column}
.gm5-hub-tool{display:flex;align-items:center;gap:8px;min-width:0;min-height:63px;border-bottom:1px solid #EDF1F7;transition:background .2s;border-radius:0}
.gm5-hub-tool:last-child{border-bottom:0}
.gm5-hub-tool>img{width:44px;height:44px;object-fit:contain;flex:0 0 44px}
.gm5-hub-tool>span{min-width:0;flex:1}
.gm5-hub-tool strong{display:block;font-size:12px;line-height:1.5;font-weight:500;color:#3D5577}
.gm5-hub-tool small{display:block;font-size:9px;line-height:1.6;color:#8799B6;margin-top:2px}
.gm5-hub-tool>.icon{width:12px;height:12px;color:#9AAED0}
.gm5-hub-tool:hover{background:#F3F5FD}
.gm5-hub-tool:hover strong{color:#5144D9}
.gm5-hub-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #E8EDF6;padding-top:12px;margin-top:5px;font-size:10px;line-height:1.5;color:#94A3BB}
.gm5-hub-foot>span:first-child{display:flex;align-items:center;gap:5px;color:#598371}
.gm5-hub-foot .icon{height:12px;width:12px}
.gm5-mobile-ai{display:none}
.gm-home .gm-services{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.gm-home .gm-service{display:flex;flex-direction:column;align-items:flex-start;padding:7px 18px 12px 0;gap:9px}
.gm-home .gm-service>img{width:88px;height:88px}
.gm-home .gm-service:not(:last-child):after{top:24px;bottom:13px;right:-12px}
.gm-home .gm-service-body>strong{font-size:21px;line-height:1.35}
.gm-home .gm-service-body>span{font-size:13px;line-height:1.8}
.gm-home .gm-service-ai-studio .gm-service-body>strong{color:#5144D9}
.gm-home .gm-service-ai-studio{border-radius:17px}
.gm5-ai-directions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 27px}
.gm5-ai-direction{display:flex;flex-direction:column;align-items:flex-start;gap:10px;position:relative;min-width:0;padding:15px 17px 19px;border:1px solid #FFFFFF16;border-radius:13px;background:linear-gradient(145deg,#FFFFFF0B,#FFFFFF04);box-shadow:inset 0 1px 0 #FFFFFF09;transition:background .2s,border-color .2s}
.gm5-ai-direction>img{width:70px;height:70px;object-fit:contain;flex-shrink:0;margin-left:-5px}
.gm5-ai-direction>span{display:block}
.gm5-ai-direction strong{display:block;font-size:15px;font-weight:450;line-height:1.5;color:#EBF0FE}
.gm5-ai-direction small{display:block;font-size:11px;line-height:1.7;color:#9CAFD0;margin-top:5px}
.gm5-ai-direction>.icon{position:absolute;top:19px;right:15px;height:13px;width:13px;color:#6F83AE}
.gm5-ai-direction:hover{background:#FFFFFF11;border-color:#FFFFFF36}
.gm5-ai-direction:hover>.icon{color:#B7C7EA}
.gm5-origin-note{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:11px;line-height:1.8;color:#7D8FA9;padding:22px 0 0}
.gm5-origin-note>span:first-child{display:inline-flex;align-items:center;gap:8px}
.gm5-origin-note img{width:21px;height:14px;object-fit:cover;border:1px solid #D8E1EF;border-radius:2px}
@media(max-width:1199px){
  .gm5-hub-preview{width:216px;right:0;padding:15px 13px 13px}
  .gm5-hub-tool>img{width:41px;height:41px;flex-basis:41px}
  .gm5-hub-tool{gap:6px;min-height:62px}
  .gm5-hub-tool small{font-size:9px}
  .gm-home .gm-service-body>strong{font-size:19px}
  .gm-home .gm-service>img{width:80px;height:80px}
  .gm5-ai-direction{padding:13px 13px 17px}
  .gm5-ai-direction>img{height:63px;width:63px}
  .gm5-ai-direction strong{font-size:14px}
  .gm5-ai-direction small{font-size:10px}
}
@media(max-width:1023px){
  .gm5-hub-preview{display:none}
  .gm5-mobile-ai{display:block;margin:30px 0 0;padding-top:22px;border-top:1px solid #E2E8F2}
  .gm5-mobile-ai>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}
  .gm5-mobile-ai>div:first-child>strong{font-size:14px;font-weight:500;line-height:1.5;color:#5044BC}
  .gm5-all-tools{display:inline-flex;align-items:center;gap:7px;font-size:11px;line-height:1.5;min-height:32px;color:#7D8EA7!important}
  .gm5-all-tools>.icon{width:13px;height:13px}
  .gm5-mobile-ai-rail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  .gm5-mobile-ai-tool{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;background:#FFFFFF96;border:1px solid #E3E8F4;border-radius:12px;padding:9px 7px 12px;text-align:center;transition:border-color .2s}
  .gm5-mobile-ai-tool>img{width:58px;height:58px;object-fit:contain}
  .gm5-mobile-ai-tool>span>strong{font-size:12px;font-weight:450;line-height:1.5;display:block;color:#506482}
  .gm5-mobile-ai-tool small,.gm5-mobile-ai-tool>.icon{display:none}
  .gm5-mobile-ai-tool:hover{border-color:#BFCBEA}
  .gm-home .gm-services{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px}
  .gm-home .gm-service{display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:14px;padding:16px 10px 20px 0;border-bottom:1px solid #E1E8F3}
  .gm-home .gm-service:nth-last-child(-n+2){border-bottom:0}
  .gm-home .gm-service:not(:last-child):after{display:none}
  .gm-home .gm-service>img{width:78px;height:78px}
  .gm-home .gm-service-body>strong{font-size:20px}
  .gm5-ai-directions{gap:9px}
  .gm5-ai-direction{padding:12px 10px 15px}
  .gm5-ai-direction>img{height:58px;width:58px}
  .gm5-ai-direction strong{font-size:13px}
  .gm5-ai-direction small{font-size:10px}
}
@media(max-width:767px){
  .gm5-platform-line{gap:10px 14px;font-size:10px}
  .gm5-max-entry{padding-left:14px}
  .gm5-mobile-ai-rail{display:flex;overflow-x:auto;gap:10px;padding:0 1px 8px;scrollbar-width:thin;overscroll-behavior-x:contain}
  .gm5-mobile-ai-tool{flex:1 0 100px}
  .gm-home .gm-service{grid-template-columns:65px minmax(0,1fr);gap:10px}
  .gm-home .gm-service>img{width:65px;height:65px}
  .gm-home .gm-service-body>strong{font-size:18px}
  .gm-home .gm-service-body>span{font-size:12px}
  .gm5-ai-directions{display:flex;overflow-x:auto;gap:11px;padding:4px 3px 12px;scrollbar-width:thin;overscroll-behavior-x:contain;margin-left:-3px;margin-right:-3px;margin-bottom:20px}
  .gm5-ai-direction{flex:1 0 156px;padding:14px}
  .gm5-ai-direction>img{width:64px;height:64px}
  .gm5-ai-direction strong{font-size:15px}
  .gm5-ai-direction small{font-size:11px}
}
@media(max-width:599px){
  .gm5-platform-line{justify-content:flex-start;gap:10px 13px}
  .gm5-russian-project{padding:6px 9px;gap:7px}
  .gm5-max-entry{display:none}
  .gm5-mobile-ai{margin-top:24px;padding-top:18px}
  .gm5-mobile-ai-tool{flex:1 0 91px;padding:8px 7px 11px}
  .gm5-mobile-ai-tool>img{width:54px;height:54px}
  .gm5-mobile-ai-tool>span>strong{font-size:12px}
  .gm-home .gm-services{display:flex;flex-direction:column;gap:0}
  .gm-home .gm-service{display:grid;grid-template-columns:85px minmax(0,1fr);gap:15px;padding:22px 0;border-bottom:1px solid #DEE5F0!important;border-radius:0}
  .gm-home .gm-service:last-child{border-bottom:0!important}
  .gm-home .gm-service>img{height:85px;width:85px}
  .gm-home .gm-service-body>strong{font-size:22px}
  .gm-home .gm-service-body>span{font-size:13px}
  .gm5-origin-note{font-size:11px;gap:10px;align-items:flex-start}
}
@media(max-width:359px){
  .gm5-platform-line{font-size:10px;gap:9px}
  .gm5-russian-project{padding-left:7px;padding-right:7px;gap:6px}
  .gm5-access-badge{gap:4px}
  .gm5-access-badge>.icon{height:11px;width:11px}
  .gm-home .gm-service{grid-template-columns:73px minmax(0,1fr);gap:12px}
  .gm-home .gm-service>img{height:73px;width:73px}
  .gm-home .gm-service-body>strong{font-size:20px}
  .gm-home .gm-service-body>span{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.gm5-hub-tool,.gm5-mobile-ai-tool,.gm5-ai-direction{transition:none}}

/* V5.1: one reading axis for the hero, then the product scene.
   Tablet already uses this flow; retain the established mobile alignment. */
@media(min-width:1024px){
  .gm-hero-copy{grid-template-columns:1fr;column-gap:0}
  .v2-public .gm-home .gm-hero-copy>p{grid-column:1 / -1;text-align:center;justify-self:center;margin:0 auto}
  .gm-hero-copy .gm-actions{grid-column:1 / -1;justify-content:center;flex-wrap:wrap;margin-top:24px}
}
