/* DIBAMED V166 — authoritative shared public chrome + in-flow service search */
@property --d166-ring-angle { syntax:"<angle>"; inherits:false; initial-value:0deg; }
@keyframes d166-ring-orbit { to { --d166-ring-angle:360deg; } }
@keyframes d166-shine { 0%,58%{transform:translateX(-230%) skewX(-22deg)} 84%,100%{transform:translateX(620%) skewX(-22deg)} }

html body .d166-site-shell{
  position:sticky!important;top:0!important;z-index:1000!important;
  width:100%!important;margin:0!important;padding:10px 34px 9px!important;
  background:linear-gradient(180deg,rgba(246,255,254,.97),rgba(241,251,250,.92))!important;
  box-shadow:0 8px 24px rgba(6,45,58,.06)!important;
  backdrop-filter:blur(18px) saturate(1.06)!important;-webkit-backdrop-filter:blur(18px) saturate(1.06)!important;
}
html body .d166-site-header{
  position:relative!important;inset:auto!important;
  width:100%!important;max-width:none!important;min-height:94px!important;
  margin:0!important;padding:10px 18px!important;
  display:grid!important;grid-template-columns:minmax(270px,330px) minmax(510px,1fr) auto!important;
  align-items:center!important;gap:26px!important;
  border:1px solid rgba(6,92,104,.10)!important;border-radius:0 0 30px 30px!important;
  background:linear-gradient(102deg,rgba(255,255,255,.98),rgba(255,255,255,.96) 70%,rgba(255,247,247,.97))!important;
  box-shadow:0 15px 36px rgba(5,52,66,.10),inset 0 1px 0 rgba(255,255,255,.98)!important;
  overflow:visible!important;
}
html body .d166-brand{
  min-width:0!important;height:auto!important;margin:0!important;padding:0 22px 0 0!important;
  display:flex!important;align-items:center!important;gap:15px!important;
  border:0!important;border-inline-end:1px solid rgba(6,58,70,.12)!important;
  color:#061832!important;text-decoration:none!important;
}
html[dir="rtl"] body .d166-brand{padding:0 0 0 22px!important}
html body .d166-brand img{display:block!important;width:76px!important;height:66px!important;object-fit:contain!important;flex:0 0 auto!important}
html body .d166-brand strong,html body .d166-brand .brand-title{
  display:block!important;max-width:185px!important;margin:0!important;color:#061832!important;
  font:950 19px/.92 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  letter-spacing:-.045em!important;text-wrap:balance!important;
}
html body .d166-nav{
  min-width:0!important;margin:0!important;padding:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:25px!important;
  position:static!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;
}
html body .d166-nav a{
  position:relative!important;display:inline-flex!important;align-items:center!important;min-height:42px!important;
  padding:0!important;color:#071a34!important;background:transparent!important;border:0!important;border-radius:0!important;
  font:900 14px/1 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;white-space:nowrap!important;
  text-decoration:none!important;transition:color .2s ease,transform .2s ease!important;
}
html body .d166-nav a:hover{color:#078f87!important;transform:translateY(-1px)!important}
html body .d166-nav a::after{
  content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:2px!important;
  border-radius:999px!important;background:linear-gradient(90deg,#09a79d,#f0cc96,#e45a80)!important;
  transform:scaleX(0)!important;transform-origin:center!important;transition:transform .22s ease!important;
}
html body .d166-nav a:hover::after,html body .d166-nav a.is-active::after,html body .d166-nav a.active::after{transform:scaleX(1)!important}
html body .d166-nav a.is-active,html body .d166-nav a.active{color:#078f87!important}

html body .d166-actions{
  min-width:max-content!important;margin:0!important;padding:0!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:14px!important;flex-wrap:nowrap!important;
}
html body .d166-language{
  position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  width:78px!important;min-width:78px!important;height:48px!important;padding:0 10px!important;
  border:1px solid rgba(7,143,135,.22)!important;border-radius:17px!important;
  color:#08776f!important;background:linear-gradient(145deg,#f9ffff,#edf9f8)!important;
  box-shadow:0 8px 18px rgba(5,79,83,.07),inset 0 1px 0 #fff!important;
  font:900 13px/1 Inter,ui-sans-serif,system-ui!important;text-decoration:none!important;
}
html body .d166-language svg{width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important}
html body .d166-language .d166-language-orb{
  width:31px!important;height:31px!important;display:grid!important;place-items:center!important;border-radius:11px!important;
  color:#fff!important;background:linear-gradient(145deg,#17c9bf,#04736e)!important;border:1px solid rgba(240,204,150,.72)!important;
  box-shadow:0 7px 15px rgba(7,143,135,.22)!important;
}
html body .d166-action{
  --d166-a:#164b5d;--d166-b:#0d3949;--d166-ring-angle:0deg;
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
  height:48px!important;padding:0 18px!important;border:1.5px solid transparent!important;border-radius:18px!important;
  color:#fff!important;text-decoration:none!important;white-space:nowrap!important;
  background:linear-gradient(135deg,var(--d166-a),var(--d166-b)) padding-box,
    conic-gradient(from var(--d166-ring-angle),transparent 0deg 225deg,rgba(247,215,166,.16) 242deg,#f6d7a6 268deg,#fff1cf 286deg,#d9955a 309deg,transparent 336deg 360deg) border-box!important;
  box-shadow:0 13px 29px rgba(3,29,39,.16),inset 0 1px 0 rgba(255,255,255,.34)!important;
  font:900 14px/1 Inter,ui-sans-serif,system-ui!important;
  animation:d166-ring-orbit 3.9s linear infinite!important;
  transition:transform .26s ease,box-shadow .26s ease,filter .26s ease!important;
}
html body .d166-action::after{
  content:""!important;position:absolute!important;z-index:1!important;top:-70%!important;left:-38%!important;
  width:18%!important;height:240%!important;background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent)!important;
  transform:skewX(-22deg)!important;animation:d166-shine 4.8s ease-in-out infinite!important;pointer-events:none!important;
}
html body .d166-action>*{position:relative!important;z-index:2!important}
html body .d166-action svg{width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.75!important;stroke-linecap:round!important;stroke-linejoin:round!important;flex:0 0 auto!important}
html body .d166-wa{width:158px!important;min-width:158px!important;--d166-a:#20cf7a;--d166-b:#039956}
html body .d166-book{width:210px!important;min-width:210px!important;--d166-a:#f08aa4;--d166-b:#d5466e}
html body .d166-action:hover{transform:translateY(-3px) scale(1.018)!important;filter:saturate(1.06) brightness(1.02)!important;box-shadow:0 20px 42px rgba(3,29,39,.22),0 0 0 2px rgba(247,215,166,.45),0 0 23px rgba(247,215,166,.25),inset 0 1px 0 rgba(255,255,255,.5)!important}

html body .d166-menu-toggle{display:none!important}

/* Same shared footer component on every public page. */
html body .d166-footer{position:relative!important;isolation:isolate!important;margin-top:0!important}

/* Search results stay inside the glass search component and push the hero copy down. */
body.d158-services-body .d159-crystal-search{z-index:12!important;overflow:visible!important}
body.d158-services-body .d159-crystal-search .d158-suggestions{
  position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
  inset:auto!important;width:100%!important;margin:10px 0 0!important;
  max-height:min(370px,44vh)!important;z-index:2!important;
  animation:d166-search-in .24s ease both!important;
}
@keyframes d166-search-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}
body.d158-services-body .d159-crystal-search .d158-suggestions[hidden]{display:none!important}
body.d158-services-body .d158-hero-copy{position:relative!important;z-index:1!important}

@media(max-width:1360px){
  html body .d166-site-header{grid-template-columns:minmax(245px,295px) minmax(430px,1fr) auto!important;gap:18px!important}
  html body .d166-nav{gap:18px!important}
  html body .d166-nav a{font-size:13px!important}
  html body .d166-actions{gap:10px!important}
  html body .d166-language{width:70px!important;min-width:70px!important}
  html body .d166-wa{width:145px!important;min-width:145px!important}
  html body .d166-book{width:188px!important;min-width:188px!important}
}

@media(max-width:1180px){
  html body .d166-site-shell{padding:8px 18px!important}
  html body .d166-site-header{
    grid-template-columns:minmax(220px,1fr) auto auto!important;grid-template-areas:"brand actions toggle" "nav nav nav"!important;
    gap:10px 14px!important;min-height:86px!important;padding:10px 14px!important;border-radius:0 0 26px 26px!important;
  }
  html body .d166-brand{grid-area:brand!important}
  html body .d166-actions{grid-area:actions!important}
  html body .d166-menu-toggle{
    grid-area:toggle!important;display:grid!important;place-items:center!important;width:42px!important;height:42px!important;
    padding:0!important;border:1px solid rgba(7,143,135,.24)!important;border-radius:14px!important;
    color:#087d76!important;background:linear-gradient(145deg,#fff,#edf9f8)!important;box-shadow:0 8px 18px rgba(4,59,70,.09)!important;
  }
  html body .d166-menu-toggle svg{width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important}
  html body .d166-nav{
    grid-area:nav!important;display:none!important;position:relative!important;width:100%!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;padding:12px!important;margin-top:2px!important;
    border:1px solid rgba(255,255,255,.55)!important;border-radius:20px!important;
    background:linear-gradient(135deg,rgba(4,68,77,.97),rgba(7,137,129,.94))!important;
    box-shadow:0 20px 44px rgba(2,32,43,.18),inset 0 1px 0 rgba(255,255,255,.24)!important;
  }
  html body .d166-site-shell.is-menu-open .d166-nav{display:grid!important}
  html body .d166-nav a{min-height:40px!important;padding:0 12px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:12px!important;color:#fff!important;background:rgba(255,255,255,.08)!important;justify-content:space-between!important}
  html body .d166-nav a::after{display:none!important}
  html body .d166-wa{width:135px!important;min-width:135px!important}
  html body .d166-book{width:168px!important;min-width:168px!important}
  html body .d166-action{font-size:12.5px!important;height:46px!important}
  html body .d166-language{height:46px!important}
}

@media(max-width:760px){
  html body .d166-site-shell{padding:6px 10px 8px!important}
  html body .d166-site-header{
    grid-template-columns:minmax(0,1fr) 42px!important;grid-template-areas:"brand toggle" "actions actions" "nav nav"!important;
    gap:9px 10px!important;min-height:0!important;padding:10px!important;border-radius:0 0 22px 22px!important;
  }
  html body .d166-brand{padding:0!important;border:0!important;gap:8px!important}
  html body .d166-brand img{width:54px!important;height:46px!important}
  html body .d166-brand strong,html body .d166-brand .brand-title{max-width:120px!important;font-size:13px!important;line-height:.96!important}
  html body .d166-actions{width:100%!important;justify-content:center!important;gap:7px!important}
  html body .d166-language{width:54px!important;min-width:54px!important;height:38px!important;padding:0 6px!important;border-radius:13px!important;font-size:10px!important;gap:4px!important}
  html body .d166-language .d166-language-orb{width:25px!important;height:25px!important;border-radius:8px!important}
  html body .d166-language svg{width:13px!important;height:13px!important}
  html body .d166-action{height:38px!important;padding:0 9px!important;border-radius:13px!important;gap:6px!important;font-size:10px!important}
  html body .d166-action svg{width:14px!important;height:14px!important}
  html body .d166-wa{width:116px!important;min-width:116px!important}
  html body .d166-book{width:145px!important;min-width:145px!important}
  html body .d166-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:9px!important;border-radius:17px!important}
  html body .d166-nav a{min-height:38px!important;font-size:11px!important}
  body.d158-services-body .d159-crystal-search .d158-suggestions{max-height:min(430px,54vh)!important;margin-top:8px!important}
}

@media(max-width:390px){
  html body .d166-wa{width:108px!important;min-width:108px!important}
  html body .d166-book{width:132px!important;min-width:132px!important}
  html body .d166-action{font-size:9.2px!important;padding:0 7px!important}
}

@media(prefers-reduced-motion:reduce){
  html body .d166-action,html body .d166-action::after{animation:none!important}
}
