/* Compact language selector: icon only, accessible full-name menu. */
body > header.service-header .service-lang-control .lang-trigger{
 width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;
 padding:0!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;
 gap:0!important;flex:none!important;border-radius:11px!important;
}
body > header.service-header .service-lang-control .lang-trigger .lang-current,
body > header.service-header .service-lang-control .lang-trigger .bi-chevron-down{display:none!important}
body > header.service-header .service-lang-control .lang-trigger .bi-translate{font-size:19px!important}
body > header.service-header .service-header-actions{flex-shrink:0!important}
@media(max-width:760px){
 body > header.service-header .menu .service-lang-control .lang-trigger{width:42px!important;justify-content:center!important}
}
/* Reduce top-menu footprint without hiding destinations. */
@media(min-width:761px){
 body > header.service-header{gap:10px!important;padding-left:clamp(14px,2vw,32px)!important;padding-right:clamp(14px,2vw,32px)!important}
 body > header.service-header .menu{gap:0!important;min-width:0!important}
 body > header.service-header .menu>a{margin:0!important}
 body > header.service-header .menu .m-span{padding:9px 8px!important;font-size:clamp(11px,.84vw,13px)!important;white-space:nowrap!important}
 body > header.service-header .logo{font-size:18px!important}
}
@media(min-width:761px) and (max-width:1250px){
 body > header.service-header .menu .m-span{padding:8px 5px!important;font-size:11px!important}
 body > header.service-header .logo{font-size:15px!important}
}
/* Homepage tool directory — two curated groups instead of a flat button row. */
body > main.service-home .service-tools.service-tools-grouped{
 display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)!important;
 gap:16px!important;align-items:stretch!important;width:100%!important;max-width:1140px!important;
 margin:6px auto 24px!important;overflow:visible!important;padding:0!important;
}
body > main.service-home .service-tools-grouped .tool-group{
 position:relative;min-width:0;padding:15px 16px 17px;border:1px solid var(--svc-border);
 border-radius:18px;background:var(--svc-surface);box-shadow:0 6px 30px rgba(8,12,34,.06);
 -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
body > main.service-home .service-tools-grouped .tool-group-security{
 border-color:rgba(132,114,242,.3);
 background:linear-gradient(130deg,rgba(116,98,240,.075),transparent 70%),var(--svc-surface);
}
body > main.service-home .service-tools-grouped .tool-group-heading{
 display:flex;align-items:center;gap:9px;padding:0 3px 12px;
 font-size:11px;font-weight:800;letter-spacing:.095em;text-transform:uppercase;color:var(--svc-text2);
}
body > main.service-home .service-tools-grouped .tool-group-heading i{font-size:15px;color:var(--svc-accent)}
body > main.service-home .service-tools-grouped .tool-group-links{
 display:flex;flex-wrap:wrap;gap:7px;align-content:flex-start;
}
body > main.service-home .service-tools-grouped .tool-group-links a{
 display:inline-flex!important;align-items:center;justify-content:center;gap:7px;flex:1 0 auto;
 min-height:43px;box-sizing:border-box;padding:10px 12px!important;
 border-radius:11px!important;border:1px solid var(--svc-border)!important;
 background:var(--svc-surface2)!important;color:var(--svc-text2)!important;
 font-size:13px!important;font-weight:700!important;white-space:nowrap;text-decoration:none;
 animation:vycatGroupAppear .5s both;transition:transform .2s ease,border-color .2s ease,background .2s ease!important;
}
body > main.service-home .service-tools-grouped .tool-group-links a i{
 color:var(--svc-accent);font-size:16px;animation:none!important;
}
body > main.service-home .service-tools-grouped .tool-group-links a[aria-current="page"]{
 border-color:var(--svc-accent)!important;color:var(--svc-accent)!important;
 background:rgba(115,105,238,.10)!important;box-shadow:inset 0 0 0 1px rgba(115,105,238,.12)!important;
}
body > main.service-home .service-tools-grouped .tool-group-links a:hover,
body > main.service-home .service-tools-grouped .tool-group-links a:focus-visible{
 transform:translateY(-2px)!important;border-color:var(--svc-accent)!important;
 background:rgba(115,105,238,.08)!important;box-shadow:0 7px 18px rgba(76,66,170,.10)!important;
}
@keyframes vycatGroupAppear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){
 body > main.service-home .service-tools.service-tools-grouped{grid-template-columns:1fr!important}
}
@media(max-width:640px){
 body > main.service-home .service-tools-grouped .tool-group{padding:13px!important}
 body > main.service-home .service-tools-grouped .tool-group-links a{flex:1 1 calc(50% - 7px)!important}
}
@media(prefers-reduced-motion:reduce){
 body > main.service-home .service-tools-grouped .tool-group-links a{animation:none!important;transition:none!important}
}

/* Allow the expanded tool menu to scroll horizontally instead of clipping controls. */
@media(min-width:761px){
 body > header.service-header .menu{overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;flex:1 1 auto!important;white-space:nowrap!important}
 body > header.service-header .menu::-webkit-scrollbar{display:none}
 body > header.service-header .menu>a{flex:0 0 auto!important}
 body > header.service-header .service-header-actions{flex:0 0 auto!important}
}

/* Four compact tools on top, two full-width tools on the second row in each panel. */
body > main.service-home .service-tools-grouped .tool-group-links{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:7px!important;
}
body > main.service-home .service-tools-grouped .tool-group-links a{
 min-width:0!important;flex:none!important;padding:10px 6px!important;
}
body > main.service-home .service-tools-grouped .tool-group-links a:nth-child(5),
body > main.service-home .service-tools-grouped .tool-group-links a:nth-child(6){
 grid-column:span 2!important;
}
@media(max-width:540px){
 body > main.service-home .service-tools-grouped .tool-group-links{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body > main.service-home .service-tools-grouped .tool-group-links a:nth-child(5),
 body > main.service-home .service-tools-grouped .tool-group-links a:nth-child(6){grid-column:span 1!important}
}

/* Equal-sized homepage panels: matching columns, rows and button geometry. */
body > main.service-home .service-tools.service-tools-grouped{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 max-width:1140px!important;
 align-items:stretch!important;
}
body > main.service-home .service-tools-grouped .tool-group{
 display:flex!important;flex-direction:column!important;
 min-width:0!important;height:100%!important;box-sizing:border-box!important;
}
body > main.service-home .service-tools-grouped .tool-group-links{
 flex:1 1 auto!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 grid-template-rows:repeat(2,minmax(46px,auto))!important;
 align-content:stretch!important;
}
body > main.service-home .service-tools-grouped .tool-group-links a{
 width:100%!important;min-width:0!important;min-height:46px!important;
 padding:10px 4px!important;gap:5px!important;
 font-size:clamp(10px,.85vw,13px)!important;overflow:hidden!important;
}
body > main.service-home .service-tools-grouped .tool-group-links a i{
 flex:0 0 auto!important;font-size:14px!important;
}
@media(max-width:900px){
 body > main.service-home .service-tools.service-tools-grouped{grid-template-columns:1fr!important}
 body > main.service-home .service-tools-grouped .tool-group-links a{font-size:13px!important}
}
@media(max-width:540px){
 body > main.service-home .service-tools-grouped .tool-group-links{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:auto!important;
 }
 body > main.service-home .service-tools-grouped .tool-group-links a:nth-child(5),
 body > main.service-home .service-tools-grouped .tool-group-links a:nth-child(6){grid-column:span 1!important}
}
