/* Same placement as Kubos: top right, inside the white header, always visible. */
.header{height:138px;padding-top:48px}
.header>.language-bar{position:absolute;inset:0 0 auto;height:44px;padding:0 48px;background:#fff;border:0;justify-content:flex-end}
.header>.language-bar .language-control{min-height:44px;gap:8px;flex-wrap:nowrap;white-space:nowrap}
.header>.language-bar label{font-size:13px;gap:6px;margin:0;line-height:1.2}
.header>.language-bar select{font-size:15px;width:155px;min-height:40px;height:40px;margin:0;padding:4px 8px;line-height:1.2}
.header>.language-bar .language-flag{flex:none}
.bto-position-strip{padding:25px 0;background:#edf4fc;border-block:1px solid #d1e1f3}
.bto-position-strip>.wrap{display:grid;grid-template-columns:1.1fr 1.3fr auto;gap:32px;align-items:center}
.bto-position-strip .eyebrow{font-size:12px;letter-spacing:.08em;margin-bottom:9px}
.bto-position-strip h2{font-size:30px;line-height:1.15;margin:0}
body .bto-position-strip .wrap p{font-size:18px;line-height:1.4;margin:0;color:#243e5b}
.bto-position-strip .btn{gap:12px;white-space:nowrap}
@media(max-width:1399px){.header{height:138px;padding:48px 30px 0}.header>.language-bar{padding-inline:30px}.header #nav{top:138px;max-height:calc(100dvh - 138px)}.bto-position-strip>.wrap{grid-template-columns:1fr 1.2fr}.bto-position-strip .btn{grid-column:2;justify-self:start}}
@media(max-width:820px){.bto-position-strip>.wrap{grid-template-columns:1fr;gap:16px}.bto-position-strip .btn{grid-column:auto}.bto-position-strip{padding-block:24px}.bto-position-strip h2{font-size:30px}}
@media(max-width:540px){.header{height:128px;padding:44px 21px 0}.header>.language-bar{height:44px;padding-inline:21px}.header>.language-bar select{height:44px;min-height:44px;width:150px}.header>.language-bar label span{display:none}.header #nav{top:128px;max-height:calc(100dvh - 128px)}.bto-position-strip>.wrap{gap:14px}.bto-position-strip .eyebrow{font-size:11px}.bto-position-strip h2{font-size:29px}.bto-position-strip .btn{white-space:normal}}
.bto-position-strip.bto-with-photo>.wrap{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:40px}
.bto-with-photo .bto-position-copy{min-width:0}
.bto-with-photo .bto-position-copy p{margin:14px 0 17px;max-width:57ch}
.bto-with-photo .btn{padding:11px 18px}
.bto-position-photo{display:block;min-width:0;overflow:hidden;border-radius:7px}
.bto-position-photo img{width:100%;height:250px;object-fit:cover;object-position:50% 44%}
@media(max-width:1050px){.bto-position-strip.bto-with-photo>.wrap{gap:26px}.bto-position-photo img{height:280px}}
@media(max-width:820px){.bto-position-strip.bto-with-photo>.wrap{grid-template-columns:1fr;gap:20px}.bto-position-photo img{height:auto;aspect-ratio:16/9;object-position:50% 42%}.bto-with-photo .bto-position-copy p{max-width:65ch}}
/* Kubos mobile pattern: logo/menu row, then two visible contact buttons. */
.mobile-header-actions{display:none}
.tech-reform .technology-platforms.erp-practice-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-block:22px}
.erp-practice-links>a{display:flex;align-items:center;justify-content:center;min-height:60px;border:1px solid #507ca5;border-radius:6px;background:#123959;padding:10px 8px}
.tech-reform .erp-practice-links b{font-size:clamp(20px,1.9vw,26px);color:#fff;letter-spacing:-.02em}
.erp-practice-links>a:hover{background:#1b4b76;border-color:#83bcff}
.bto-platforms>[id]{scroll-margin-top:24px}
.bto-platforms{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
@media(max-width:650px){.bto-platforms{grid-template-columns:1fr}}
/* Compact reference pattern: icon beside name and separators between cells. */
.areas-strip>.wrap{gap:0}
.areas-strip a{min-width:0;padding:8px 12px;gap:10px}
.areas-strip a>span{display:flex;flex:none}
.areas-strip b{min-width:0;line-height:1.3;white-space:normal;overflow-wrap:normal}
@media(max-width:1050px){.areas-strip>.wrap{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 0}.areas-strip a{flex-direction:row;text-align:left;padding:5px 10px}.areas-strip a:nth-child(3n){border-right:0}.areas-strip b{letter-spacing:0}}
@media(max-width:540px){
 .areas-strip{padding-block:16px}
 .areas-strip>.wrap{width:calc(100% - 20px);grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);gap:10px 0}
 .areas-strip a:nth-child(n){position:relative;border:0;min-height:44px;padding:4px 2px;gap:4px;flex-direction:row;justify-content:center}
 .areas-strip a:nth-child(n)::after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);height:28px;width:1px;background:#c3d1e4;pointer-events:none}
 .areas-strip a:nth-child(3n)::after{display:none}
 .areas-strip b{font-size:13px;letter-spacing:0;line-height:1.2;white-space:normal}
 .areas-strip svg{width:20px;height:20px}
}
@media(min-width:375px) and (max-width:400px){.areas-strip a:nth-child(n){padding-inline:2px;gap:4px}.areas-strip b{font-size:12px}.areas-strip svg{width:18px;height:18px}}
@media(max-width:374px){.areas-strip>.wrap{grid-template-columns:repeat(2,minmax(0,1fr))}.areas-strip a:nth-child(n)::after{display:block}.areas-strip a:nth-child(2n)::after{display:none}.areas-strip svg{width:22px;height:22px}}
@media(max-width:650px){
 .header{height:auto;min-height:186px;flex-wrap:wrap;padding:50px 21px 16px;gap:12px}
 .header .brand{order:1}.header .menu-toggle{order:2;margin-left:auto}
 .header>.mobile-header-actions{order:3;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .mobile-header-actions .btn.small,.mobile-header-actions .whatsapp-contact{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;height:auto;font-size:16px;gap:10px;padding:11px 12px;margin:0}
 .mobile-header-actions .whatsapp-contact svg{width:24px;height:24px;flex:none}
 .header #nav{top:100%;max-height:calc(100dvh - 186px)}
 .header #nav .nav-contact{display:none}
}

/* Mobile header aligned to the approved KUBOS reference. */
@media(max-width:650px){
 .header{display:grid;grid-template-columns:minmax(0,1fr) 88px 32px;align-items:center;gap:10px 12px;height:auto;min-height:0;padding:18px 16px 14px;background:#fff}
 .header .brand{grid-column:1;grid-row:1;order:initial;min-width:0}
 .header .brand img{display:block;width:clamp(140px,40vw,184px);max-width:100%;height:auto}
 .header>.language-bar{position:static;inset:auto;grid-column:2;grid-row:1;width:88px;height:44px;padding:0;display:block}
 .header>.language-bar .language-control{position:relative;display:flex;align-items:center;gap:8px;width:88px;min-height:44px;padding:0 10px;border:1px solid #dce2e8;border-radius:6px;background:#fff}
 .header>.language-bar label{display:none}
 .header>.language-bar .language-flag{width:22px;height:16px;object-fit:cover;border-radius:2px}
 .header>.language-bar .language-code{font-size:13px;font-weight:700;color:#183c58;line-height:1}
 .header>.language-bar .language-control:after{content:'⌄';font-size:15px;color:#647e8e;margin-left:auto}
 .header>.language-bar select{position:absolute;inset:0;width:100%;height:100%;min-height:44px;opacity:0;cursor:pointer}
 .header>.language-bar .language-control:focus-within{outline:2px solid #0867d9;outline-offset:3px}
 .header .menu-toggle{grid-column:3;grid-row:1;order:initial;position:relative;display:block;width:32px;height:44px;padding:0;margin:0;border:0;background:transparent;font-size:0;color:#071d36}
 .header .menu-toggle span{display:none}
 .header .menu-toggle:after{content:'';position:absolute;left:6px;top:15px;width:20px;height:2px;background:currentColor;box-shadow:0 6px 0 currentColor,0 12px 0 currentColor}
 .header>.mobile-header-actions{grid-column:1/-1;grid-row:2;order:initial;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:8px;margin-top:2px}
 .header .mobile-header-actions .btn.small,.header .mobile-header-actions .whatsapp-contact{min-width:0;min-height:48px;height:48px;border:0;border-radius:5px;padding:10px 8px;font-size:14px;font-weight:700;line-height:1.2;white-space:nowrap;gap:8px;color:#fff;opacity:1}
 .header .mobile-header-actions .btn.small{background:#0668dc}
 .header .mobile-header-actions .whatsapp-contact{background:#128a45}
 .header .mobile-header-actions .whatsapp-contact svg{width:26px;height:26px}
 .header #nav{top:100%;max-height:calc(100dvh - 134px)}
}
@media(min-width:651px){.language-code{display:none}}

/* Compact header: language shares the navigation row, as in KUBOS. */
@media(min-width:651px){
 .header{height:96px;min-height:0;padding:0 32px;gap:18px;flex-wrap:nowrap}
 .header>.brand{flex:none;order:0}
 .header>.language-bar{position:static;inset:auto;order:2;flex:none;width:96px;height:48px;padding:0;display:block}
 .header>.language-bar .language-control{position:relative;display:flex;align-items:center;width:96px;height:48px;min-height:48px;gap:8px;padding:0 12px;border:1px solid #dce2e8;border-radius:6px;background:#fff}
 .header>.language-bar label{display:none}
 .header>.language-bar .language-flag{width:24px;height:16px;object-fit:cover;border-radius:2px}
 .header>.language-bar .language-code{display:inline;font-size:14px;font-weight:700;color:#183c58;line-height:1}
 .header>.language-bar .language-control:after{content:'⌄';font-size:15px;color:#647e8e;margin-left:auto}
 .header>.language-bar select{position:absolute;inset:0;width:100%;height:100%;min-height:48px;margin:0;opacity:0;cursor:pointer}
 .header>.language-bar .language-control:focus-within{outline:2px solid #0867d9;outline-offset:3px}
}
@media(min-width:1400px){
 .header{justify-content:space-between}
 .header #nav{display:contents}
 .header #nav>a,.header #nav>.nav-sol{order:1;flex:none;white-space:nowrap;font-size:17px}
 .header #nav .sol-toggle{font-size:17px;white-space:nowrap}
 .header #nav>.nav-contact{order:3;flex:none;margin:0;padding:0;border:0;gap:10px;flex-wrap:nowrap}
 .header .nav-contact .btn.small{font-size:14px;white-space:nowrap}
}
@media(min-width:651px) and (max-width:1399px){
 .header{justify-content:flex-start}
 .header>.language-bar{margin-left:auto;order:1}
 .header>.menu-toggle{order:2;margin:0;flex:none}
 .header #nav{top:96px;max-height:calc(100dvh - 96px)}
}
