/* =========================================================
   RTS 2.1.0-beta6 — Technopark-inspired mega catalogue
   Original implementation for RTS: behavior/architecture only.
   Loaded last to isolate it from legacy mega-menu layers.
   ========================================================= */

.rts-mega-backdrop[hidden],.rts-techmega[hidden]{display:none!important}
body.rts-mega-open{overflow:hidden!important}
.rts-mega-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:82!important;
  background:rgba(10,24,45,.20)!important;
  backdrop-filter:blur(4px)!important;
  -webkit-backdrop-filter:blur(4px)!important;
}
.rts-v2-header .rts-techmega{
  position:absolute!important;
  top:100%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  z-index:240!important;
  width:100vw!important;
  max-width:none!important;
  height:auto!important;
  max-height:min(720px,calc(100vh - 130px))!important;
  margin:0!important;
  padding:14px 0 24px!important;
  overflow:visible!important;
  transform:translateX(-50%)!important;
  border:0!important;
  border-radius:0!important;
  background:rgba(246,249,252,.98)!important;
  box-shadow:0 28px 60px rgba(19,43,75,.15)!important;
  animation:rts-techmega-in .18s ease-out both;
}
.rts-v2-header .rts-techmega::before{display:none!important}
.rts-techmega__frame{padding:0!important}
.rts-techmega__desktop{display:block}
.rts-techmega__mobile{display:none}
.rts-techmega__topline{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  padding:12px 0 16px;
  border-bottom:1px solid rgba(34,60,91,.09);
}
.rts-techmega__topline>div{display:flex;align-items:baseline;gap:16px;min-width:0}
.rts-techmega__topline strong{font:780 28px/1 Onest,Manrope,Arial,sans-serif;letter-spacing:-.035em;color:#101f34}
.rts-techmega__topline span{font:400 12px/1.35 Onest,Manrope,Arial,sans-serif;color:#7b899b}
.rts-techmega__all{display:flex;align-items:center;gap:7px;color:#0868f7!important;text-decoration:none!important;font:650 12px/1.2 Onest,Manrope,Arial,sans-serif!important;white-space:nowrap}
.rts-techmega__all .rts-icon{width:15px;height:15px}
.rts-techmega__layout{
  display:grid;
  grid-template-columns:255px minmax(0,1fr);
  min-height:460px;
  max-height:min(610px,calc(100vh - 230px));
  overflow:hidden;
  margin-top:14px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 34px rgba(24,54,91,.055);
}
.rts-techmega__rail{
  min-width:0;
  overflow:auto;
  padding:12px;
  background:#f2f5f8;
  border-right:1px solid rgba(33,63,98,.08);
  scrollbar-width:thin;
}
.rts-techmega__rail-link{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 16px;
  align-items:center;
  gap:10px;
  min-height:49px;
  padding:11px 13px!important;
  border-radius:12px;
  color:#2f435a!important;
  text-decoration:none!important;
  font:560 13px/1.3 Onest,Manrope,Arial,sans-serif!important;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.rts-techmega__rail-link+.rts-techmega__rail-link{margin-top:2px}
.rts-techmega__rail-link .rts-icon{width:15px;height:15px;opacity:.58;transition:transform .16s ease}
.rts-techmega__rail-link:hover,.rts-techmega__rail-link:focus-visible{background:#e7eef7!important;color:#0868f7!important;outline:0}
.rts-techmega__rail-link.is-active{background:#fff!important;color:#0868f7!important;font-weight:680!important;box-shadow:0 5px 18px rgba(31,68,112,.08)}
.rts-techmega__rail-link.is-active .rts-icon{transform:translateX(2px);opacity:1}
.rts-techmega__panels{min-width:0;overflow:auto;background:#fff;scrollbar-width:thin}
.rts-techmega__panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) 264px;
  gap:34px;
  min-height:100%;
  padding:28px 28px 30px 32px;
}
.rts-techmega__panel[hidden]{display:none!important}
.rts-techmega__panel-main{min-width:0}
.rts-techmega__panel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  padding-bottom:17px;
  border-bottom:1px solid #e9eef4;
}
.rts-techmega__eyebrow{display:block;margin-bottom:5px;color:#0868f7;font:650 10px/1.2 Onest,Manrope,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.rts-techmega__panel-head h2{margin:0!important;color:#10243c!important;font:760 24px/1.12 Onest,Manrope,Arial,sans-serif!important;letter-spacing:-.028em}
.rts-techmega__panel-head>a{display:flex;align-items:center;gap:6px;color:#6b7e92!important;text-decoration:none!important;font:500 11px/1.25 Onest,Manrope,Arial,sans-serif!important;white-space:nowrap}
.rts-techmega__panel-head>a:hover{color:#0868f7!important}
.rts-techmega__panel-head .rts-icon{width:14px;height:14px}
.rts-techmega__group-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:25px 30px;
  padding-top:23px;
}
.rts-techmega__group{min-width:0}
.rts-techmega__group-title{display:inline-block;margin-bottom:10px;color:#142a44!important;text-decoration:none!important;font:690 14px/1.3 Onest,Manrope,Arial,sans-serif!important}
.rts-techmega__group-title:hover{color:#0868f7!important}
.rts-techmega__group-links{display:grid;gap:7px}
.rts-techmega__group-links>a{display:block;color:#687b8f!important;text-decoration:none!important;font:420 12px/1.35 Onest,Manrope,Arial,sans-serif!important;transition:color .14s ease}
.rts-techmega__group-links>a:hover{color:#0868f7!important}
.rts-techmega__group-links>a.rts-techmega__more{display:inline-flex;align-items:center;gap:5px;margin-top:2px;color:#0868f7!important;font-weight:600!important}
.rts-techmega__more .rts-icon{width:12px;height:12px}
.rts-techmega__empty-link{display:flex;align-items:center;gap:8px;width:max-content;color:#0868f7!important;text-decoration:none!important;font:650 13px/1.3 Onest,Manrope,Arial,sans-serif!important}
.rts-techmega__empty-link .rts-icon{width:15px;height:15px}
.rts-techmega__aside{display:flex;flex-direction:column;gap:12px;align-self:stretch}
.rts-techmega__promo{
  min-height:260px;
  padding:24px;
  border-radius:18px;
  background:
    radial-gradient(circle at 100% 100%,rgba(8,104,247,.13),transparent 44%),
    linear-gradient(145deg,#f5f8fd,#edf4fc);
  overflow:hidden;
}
.rts-techmega__promo-kicker{display:block;margin-bottom:18px;color:#0868f7;font:650 10px/1.25 Onest,Manrope,Arial,sans-serif;letter-spacing:.07em;text-transform:uppercase}
.rts-techmega__promo h3{margin:0 0 10px!important;color:#112742!important;font:760 22px/1.08 Onest,Manrope,Arial,sans-serif!important;letter-spacing:-.03em}
.rts-techmega__promo p{margin:0 0 22px!important;color:#667a8f!important;font:420 12px/1.55 Onest,Manrope,Arial,sans-serif!important}
.rts-techmega__promo>a{display:inline-flex;align-items:center;gap:7px;padding:11px 14px;border-radius:11px;background:#0868f7;color:#fff!important;text-decoration:none!important;font:650 12px/1.2 Onest,Manrope,Arial,sans-serif!important;box-shadow:0 8px 20px rgba(8,104,247,.17)}
.rts-techmega__promo>a:hover{background:#075edc}
.rts-techmega__promo>a .rts-icon{width:14px;height:14px}
.rts-techmega__quick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rts-techmega__quick>a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:47px;padding:11px 12px;border-radius:12px;background:#f5f7fa;color:#41566d!important;text-decoration:none!important;font:560 11px/1.25 Onest,Manrope,Arial,sans-serif!important}
.rts-techmega__quick>a:hover{background:#edf3fa;color:#0868f7!important}
.rts-techmega__quick .rts-icon{width:13px;height:13px}

@keyframes rts-techmega-in{from{opacity:0;transform:translate(-50%,-7px)}to{opacity:1;transform:translate(-50%,0)}}

/* Tablet and mobile: app-like full-height catalogue drawer. */
@media(max-width:980px){
  .rts-mega-backdrop{z-index:980!important;background:rgba(8,21,40,.30)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
  .rts-v2-header .rts-techmega{
    position:fixed!important;
    inset:0 0 0 auto!important;
    top:0!important;
    left:auto!important;
    right:0!important;
    bottom:0!important;
    z-index:1000!important;
    width:min(92vw,590px)!important;
    height:100dvh!important;
    max-height:none!important;
    padding:0!important;
    overflow:hidden!important;
    transform:none!important;
    border-radius:24px 0 0 24px!important;
    background:#f5f8fc!important;
    box-shadow:-28px 0 70px rgba(12,35,66,.20)!important;
    animation:rts-techmega-drawer-in .22s cubic-bezier(.2,.75,.25,1) both!important;
  }
  .rts-techmega__frame{width:100%!important;max-width:none!important;height:100%!important;padding:0!important}
  .rts-techmega__desktop{display:none!important}
  .rts-techmega__mobile{display:flex!important;flex-direction:column;height:100%;overflow:hidden}
  .rts-techmega__mobile-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:76px;
    padding:14px 18px;
    border-bottom:1px solid rgba(30,61,96,.08);
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
  }
  .rts-techmega__mobile-head>div{display:flex;align-items:baseline;gap:8px}
  .rts-techmega__mobile-head span{color:#0868f7;font:800 13px/1 Onest,Manrope,Arial,sans-serif;letter-spacing:-.02em}
  .rts-techmega__mobile-head strong{color:#14263e;font:760 22px/1 Onest,Manrope,Arial,sans-serif;letter-spacing:-.03em}
  .rts-techmega__mobile-head button{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;padding:0!important;border:0!important;border-radius:14px!important;background:#f2f5f9!important;color:#29425e!important;box-shadow:none!important;cursor:pointer}
  .rts-techmega__mobile-head button:hover{background:#eaf0f7!important;color:#0868f7!important}
  .rts-techmega__mobile-head .rts-icon{width:20px;height:20px}
  .rts-techmega__mobile-search{
    display:grid;
    grid-template-columns:20px minmax(0,1fr);
    align-items:center;
    gap:10px;
    min-height:50px;
    margin:14px 16px 10px;
    padding:0 15px;
    border-radius:15px;
    background:#fff;
    box-shadow:inset 0 0 0 1px rgba(35,65,100,.07);
  }
  .rts-techmega__mobile-search .rts-icon{width:18px;height:18px;color:#61748a}
  .rts-techmega__mobile-search input{width:100%;height:48px;padding:0!important;border:0!important;background:transparent!important;outline:0!important;color:#172a42!important;font:450 14px/1 Onest,Manrope,Arial,sans-serif!important}
  .rts-techmega__mobile-root,.rts-techmega__mobile-panel{flex:1;overflow:auto;padding:4px 16px 28px;overscroll-behavior:contain;scrollbar-width:thin}
  .rts-techmega__mobile-shop{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:54px;
    margin-bottom:8px;
    padding:14px 16px!important;
    border-radius:15px;
    background:#0868f7;
    color:#fff!important;
    text-decoration:none!important;
    font:650 14px/1.25 Onest,Manrope,Arial,sans-serif!important;
  }
  .rts-techmega__mobile-shop .rts-icon{width:16px;height:16px}
  .rts-techmega__mobile-category{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 18px;
    align-items:center;
    gap:12px;
    width:100%!important;
    min-height:57px!important;
    margin:0 0 7px!important;
    padding:14px 16px!important;
    border:0!important;
    border-radius:15px!important;
    background:#fff!important;
    color:#20354f!important;
    text-align:left!important;
    font:600 14px/1.3 Onest,Manrope,Arial,sans-serif!important;
    box-shadow:0 6px 22px rgba(28,61,102,.045)!important;
    cursor:pointer;
  }
  .rts-techmega__mobile-category:hover{color:#0868f7!important}
  .rts-techmega__mobile-category .rts-icon{width:16px;height:16px;color:#8090a1}
  .rts-techmega__mobile-services{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
  .rts-techmega__mobile-services a{display:grid;place-items:center;min-height:54px;padding:10px;border-radius:14px;background:#edf3fa;color:#4b6178!important;text-align:center;text-decoration:none!important;font:520 11px/1.25 Onest,Manrope,Arial,sans-serif!important}
  .rts-techmega__mobile-panel[hidden]{display:none!important}
  .rts-techmega__mobile-panel h2{margin:10px 0 12px!important;color:#142941!important;font:760 25px/1.08 Onest,Manrope,Arial,sans-serif!important;letter-spacing:-.035em}
  .rts-techmega__mobile-back{display:inline-flex!important;align-items:center;gap:7px;margin:2px 0 4px!important;padding:7px 0!important;border:0!important;background:transparent!important;color:#6b7f94!important;font:520 12px/1.2 Onest,Manrope,Arial,sans-serif!important;cursor:pointer}
  .rts-techmega__mobile-back .rts-icon{width:14px;height:14px;transform:rotate(180deg)}
  .rts-techmega__mobile-all{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:50px;margin-bottom:16px;padding:13px 15px!important;border-radius:14px;background:#e8f2ff;color:#0868f7!important;text-decoration:none!important;font:650 13px/1.25 Onest,Manrope,Arial,sans-serif!important}
  .rts-techmega__mobile-all .rts-icon{width:15px;height:15px}
  .rts-techmega__mobile-groups{display:grid;gap:10px}
  .rts-techmega__mobile-group{display:grid;padding:15px 16px;border-radius:16px;background:#fff;box-shadow:0 6px 22px rgba(28,61,102,.04)}
  .rts-techmega__mobile-group-title{padding:2px 0 9px!important;color:#17304d!important;text-decoration:none!important;font:650 14px/1.3 Onest,Manrope,Arial,sans-serif!important}
  .rts-techmega__mobile-group>a:not(.rts-techmega__mobile-group-title){padding:7px 0!important;border-top:1px solid rgba(34,61,94,.06);color:#677a8e!important;text-decoration:none!important;font:420 12px/1.35 Onest,Manrope,Arial,sans-serif!important}
  .rts-techmega__mobile-group>a:hover{color:#0868f7!important}
}
@media(max-width:640px){
  .rts-v2-header .rts-techmega{width:100vw!important;border-radius:0!important}
  .rts-techmega__mobile-services{grid-template-columns:1fr}
  .rts-techmega__mobile-services a{min-height:45px}
}
@media(min-width:981px) and (max-width:1220px){
  .rts-techmega__layout{grid-template-columns:225px minmax(0,1fr)}
  .rts-techmega__panel{grid-template-columns:minmax(0,1fr) 220px;gap:24px;padding:24px}
  .rts-techmega__group-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px}
  .rts-techmega__promo{padding:20px}
}
@keyframes rts-techmega-drawer-in{from{opacity:.72;transform:translateX(28px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.rts-v2-header .rts-techmega{animation:none!important}.rts-techmega__rail-link,.rts-techmega__rail-link .rts-icon{transition:none!important}}


/* =========================================================
   beta4 — mega catalogue layering, viewport fit and rail UX
   ========================================================= */
@media(min-width:981px){
  body.rts-mega-open .rts-v2-header{
    z-index:1200!important;
    isolation:isolate;
  }
  body.rts-mega-open .rts-mega-backdrop{
    z-index:1190!important;
  }
  .rts-v2-header .rts-techmega{
    top:var(--rts-techmega-top,100%)!important;
    z-index:1210!important;
    padding:0 0 18px!important;
    max-height:calc(100vh - var(--rts-techmega-viewport-top,120px) - 8px)!important;
    border-top:2px solid #0868F7!important;
    background:rgba(246,249,252,.985)!important;
    box-shadow:0 30px 70px rgba(19,43,75,.17)!important;
    overflow:hidden!important;
  }
  .rts-techmega__frame{
    height:100%!important;
  }
  .rts-techmega__topline{
    padding-top:15px!important;
  }
  .rts-techmega__layout{
    height:var(--rts-techmega-layout-h,610px)!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  .rts-techmega__rail{
    height:100%!important;
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    scrollbar-width:thin;
    scrollbar-color:#B7C5D5 transparent;
    padding-bottom:18px!important;
  }
  .rts-techmega__rail::-webkit-scrollbar{width:8px}
  .rts-techmega__rail::-webkit-scrollbar-track{background:transparent}
  .rts-techmega__rail::-webkit-scrollbar-thumb{
    border:2px solid #F2F5F8;
    border-radius:999px;
    background:#B7C5D5;
  }
  .rts-techmega__rail::-webkit-scrollbar-thumb:hover{background:#91A5BA}
  .rts-techmega__panels{
    height:100%!important;
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .rts-techmega__panel{
    min-height:100%!important;
  }
  /* WooCommerce gallery/quick-view controls must never pierce the catalogue overlay. */
  body.rts-mega-open .woocommerce-product-gallery__trigger,
  body.rts-mega-open .woocommerce-product-gallery .zoomImg,
  body.rts-mega-open .yith-wcqv-button,
  body.rts-mega-open .quick-view,
  body.rts-mega-open [class*="quick-view"],
  body.rts-mega-open [class*="quickview"]{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}

/* =========================================================
   beta5 — click-only catalogue + smart category packing
   ========================================================= */
.rts-v2-catalog-toggle .rts-v2-catalog-close{display:none;align-items:center;justify-content:center}
.rts-v2-catalog-toggle .rts-v2-catalog-close .rts-icon{width:18px;height:18px}
.rts-v2-catalog-toggle[aria-expanded="true"] .rts-v2-catalog-grid{display:none!important}
.rts-v2-catalog-toggle[aria-expanded="true"] .rts-v2-catalog-close{display:inline-flex}
.rts-v2-catalog-toggle[aria-expanded="true"] .rts-v2-chevron{display:none!important}
.rts-v2-catalog-toggle[aria-expanded="true"]{box-shadow:0 9px 24px rgba(8,104,247,.22)!important}

.rts-techmega__topline>div{display:block!important}
.rts-techmega__panel-head>div{min-width:0}
.rts-techmega__promo{padding-top:26px!important}

.rts-techmega__large-groups{display:grid;gap:18px;padding-top:22px}
.rts-techmega__large-groups+.rts-techmega__group-columns,
.rts-techmega__large-groups+.rts-techmega__direct-grid{margin-top:22px}
.rts-techmega__group--large{padding:18px 20px;border-radius:15px;background:#f7f9fc}
.rts-techmega__group--large .rts-techmega__group-title{margin-bottom:13px}
.rts-techmega__group--large .rts-techmega__group-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 18px}

.rts-techmega__group-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 30px;padding-top:23px;align-items:start}
.rts-techmega__group-column{display:grid;align-content:start;gap:26px;min-width:0}
.rts-techmega__group{min-width:0}
.rts-techmega__group-links{align-content:start}

.rts-techmega__direct-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;padding-top:23px}
.rts-techmega__group-columns+.rts-techmega__direct-grid{margin-top:18px;padding-top:18px;border-top:1px solid #eef2f6}
.rts-techmega__direct-grid>a{display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-height:42px;padding:9px 11px!important;border-radius:10px;background:#f7f9fb;color:#31475f!important;text-decoration:none!important;font:560 12px/1.3 Onest,Manrope,Arial,sans-serif!important}
.rts-techmega__direct-grid>a:hover{background:#eef4fb;color:#0868f7!important}
.rts-techmega__direct-grid .rts-icon{width:12px;height:12px;flex:0 0 auto}

/* The catalogue is deliberately click-only; hovering the blue control never opens/closes it. */
.rts-v2-catalog-toggle{cursor:pointer}

@media(min-width:981px) and (max-width:1220px){
  .rts-techmega__group--large .rts-techmega__group-links{grid-template-columns:repeat(3,minmax(0,1fr))}
  .rts-techmega__group-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
  .rts-techmega__group-column:nth-child(3){grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .rts-techmega__direct-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}



/* =========================================================
   beta6 — final desktop mega polish
   - no blur/dimming on desktop
   - animated Catalogue -> Close control
   - viewport-height menu
   - one visual hierarchy for all same-level category groups
   ========================================================= */
@media(min-width:981px){
  /* Technopark-like open state: the site remains visible and crisp.
     The invisible backdrop is retained only as a click target. */
  body.rts-mega-open.rts-mega-blur-enabled::before{display:none!important;content:none!important}
  body.rts-mega-open .rts-mega-backdrop{
    background:transparent!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    filter:none!important;
  }
  body.rts-mega-open .rts-v2-header,
  body.rts-mega-open .rts-v2-header.is-compact{
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  .rts-v2-header .rts-techmega{
    top:var(--rts-techmega-top,100%)!important;
    height:var(--rts-techmega-menu-h,calc(100dvh - var(--rts-techmega-viewport-top,120px)))!important;
    min-height:430px!important;
    max-height:none!important;
    padding:0!important;
    border-top:2px solid #0868F7!important;
    background:#f5f8fb!important;
    box-shadow:0 20px 48px rgba(18,42,72,.10)!important;
    overflow:hidden!important;
  }
  .rts-techmega__frame{height:100%!important;display:block!important}
  .rts-techmega__desktop{height:100%!important;display:flex!important;flex-direction:column;min-height:0}
  .rts-techmega__topline{
    flex:0 0 auto;
    padding:15px 0 14px!important;
    background:#f5f8fb;
  }
  .rts-techmega__layout{
    flex:1 1 auto;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin-top:0!important;
    border-radius:18px 18px 0 0!important;
    box-shadow:0 7px 28px rgba(24,54,91,.045)!important;
  }
  .rts-techmega__rail,
  .rts-techmega__panels{height:100%!important;min-height:0!important}
  .rts-techmega__panel{min-height:100%!important;padding-bottom:34px!important}

  /* One hierarchy for every second-level category. Size changes only the
     amount of space, not its visual language. */
  .rts-techmega__smart-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-flow:dense;
    gap:14px;
    padding-top:22px;
    align-items:start;
  }
  .rts-techmega__group-card{
    min-width:0;
    padding:16px 17px 17px;
    border-radius:14px;
    background:#f6f8fb;
    box-shadow:inset 0 0 0 1px rgba(31,62,98,.035);
    transition:background .16s ease,box-shadow .16s ease,transform .16s ease;
  }
  .rts-techmega__group-card:hover{
    background:#f2f6fb;
    box-shadow:inset 0 0 0 1px rgba(8,104,247,.08);
  }
  .rts-techmega__group-card--xl{grid-column:1/-1}
  .rts-techmega__group-card--wide{grid-column:span 2}
  .rts-techmega__group-card--standard,
  .rts-techmega__group-card--leaf{grid-column:span 1}
  .rts-techmega__group-card .rts-techmega__group-title{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin:0 0 10px!important;
    color:#142a44!important;
    font:680 13px/1.3 Onest,Manrope,Arial,sans-serif!important;
  }
  .rts-techmega__group-card--leaf{padding-block:13px}
  .rts-techmega__group-card--leaf .rts-techmega__group-title{margin:0!important}
  .rts-techmega__group-card--leaf .rts-techmega__group-title .rts-icon{width:12px;height:12px;color:#8292a4;flex:0 0 auto}
  .rts-techmega__group-card .rts-techmega__group-links{display:grid;gap:7px}
  .rts-techmega__group-card--xl .rts-techmega__group-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 18px}
  .rts-techmega__group-card--wide .rts-techmega__group-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
  .rts-techmega__group-card .rts-techmega__group-links>a{
    min-width:0;
    color:#687b8f!important;
    text-decoration:none!important;
    font:420 12px/1.35 Onest,Manrope,Arial,sans-serif!important;
  }
  .rts-techmega__group-card .rts-techmega__group-links>a:hover{color:#0868f7!important}

  /* Disable obsolete beta5 packing containers if cached markup is briefly
     mixed during deployment; current PHP emits only smart-grid. */
  .rts-techmega__large-groups,
  .rts-techmega__group-columns,
  .rts-techmega__direct-grid{display:none}

  /* Smooth icon morph without moving the button label. */
  .rts-v2-catalog-toggle{position:relative;overflow:hidden}
  .rts-v2-catalog-toggle .rts-v2-catalog-grid{
    width:18px;height:18px;flex:0 0 18px;
    opacity:1;transform:rotate(0) scale(1);
    transition:opacity .16s ease,transform .22s cubic-bezier(.2,.8,.2,1);
  }
  .rts-v2-catalog-toggle .rts-v2-catalog-close{
    display:flex!important;
    position:absolute;left:22px;top:50%;
    width:18px;height:18px;
    align-items:center;justify-content:center;
    opacity:0;transform:translateY(-50%) rotate(-90deg) scale(.68);
    transition:opacity .16s ease,transform .22s cubic-bezier(.2,.8,.2,1);
    pointer-events:none;
  }
  .rts-v2-catalog-toggle[aria-expanded="true"] .rts-v2-catalog-grid{
    display:grid!important;opacity:0;transform:rotate(90deg) scale(.60);
  }
  .rts-v2-catalog-toggle[aria-expanded="true"] .rts-v2-catalog-close{
    opacity:1;transform:translateY(-50%) rotate(0) scale(1);
  }
  .rts-v2-catalog-toggle[aria-expanded="true"] .rts-v2-chevron{
    display:inline-block!important;opacity:0;transform:translateY(-2px) rotate(180deg);pointer-events:none;
  }
}

@media(min-width:981px) and (max-width:1220px){
  .rts-techmega__smart-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .rts-techmega__group-card--xl{grid-column:1/-1}
  .rts-techmega__group-card--wide{grid-column:1/-1}
  .rts-techmega__group-card--xl .rts-techmega__group-links{grid-template-columns:repeat(3,minmax(0,1fr))}
  .rts-techmega__group-card--wide .rts-techmega__group-links{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rts-v2-catalog-toggle .rts-v2-catalog-close{left:18px}
}

@media(prefers-reduced-motion:reduce){
  .rts-v2-catalog-toggle .rts-v2-catalog-grid,
  .rts-v2-catalog-toggle .rts-v2-catalog-close{transition:none!important}
}

/* =========================================================
   beta7 — final mega-menu visual polish
   - stable viewport width while scroll is locked
   - redundant empty-state CTA removed in markup
   - stronger hierarchy through subtle neutral surfaces
   ========================================================= */
html{scrollbar-gutter:stable}

@media(min-width:981px){
  /* The menu is a new UI surface, but remains intentionally quiet. */
  .rts-v2-header .rts-techmega{
    background:#eef3f8!important;
  }
  .rts-techmega__topline{
    background:#eef3f8!important;
  }
  .rts-techmega__layout{
    background:#f4f7fa!important;
    box-shadow:0 7px 28px rgba(24,54,91,.045)!important;
  }
  .rts-techmega__rail{
    background:#eaf0f6!important;
  }
  .rts-techmega__panels{
    background:#f4f7fa!important;
  }
  .rts-techmega__panel-head>a{
    color:#0868f7!important;
    font-weight:620!important;
  }
  .rts-techmega__panel-head>a:hover{
    color:#075edc!important;
  }
  .rts-techmega__group-card{
    background:#e9eff5!important;
    box-shadow:inset 0 0 0 1px rgba(31,62,98,.045)!important;
  }
  .rts-techmega__group-card:hover{
    background:#e4ecf4!important;
    box-shadow:inset 0 0 0 1px rgba(8,104,247,.10)!important;
  }
  .rts-techmega__quick>a{
    background:#e9eff5!important;
  }
  .rts-techmega__quick>a:hover{
    background:#e2ebf4!important;
  }
}



/* =========================================================
   beta8 — final Technopark-like light mega surface
   - remove duplicate desktop Catalogue heading
   - clean split surfaces instead of bordered white card
   - active Catalogue button remains an obvious close control
   ========================================================= */
@media(min-width:981px){
  /* The open button must still look clickable: this is the close control. */
  .rts-v2-catalog-toggle,
  .rts-v2-catalog-toggle[aria-expanded="true"]{
    cursor:pointer!important;
  }
  .rts-v2-catalog-toggle[aria-expanded="true"]{
    background:#0868F7!important;
    box-shadow:0 8px 22px rgba(8,104,247,.20)!important;
  }
  .rts-v2-catalog-toggle[aria-expanded="true"]:hover,
  .rts-v2-catalog-toggle[aria-expanded="true"]:focus-visible{
    background:#0758d1!important;
    box-shadow:0 10px 26px rgba(8,104,247,.26)!important;
  }
  .rts-v2-catalog-toggle[aria-expanded="true"]:active{
    background:#064fbd!important;
    transform:translateY(1px);
  }

  /* No extra title strip: the blue Catalogue button is the title. */
  .rts-techmega__topline{display:none!important}

  /* A calm two-surface light interpretation of Technopark's dark mega-menu. */
  .rts-v2-header .rts-techmega{
    background:#f6f8fb!important;
    box-shadow:0 22px 46px rgba(20,45,76,.09)!important;
  }
  .rts-techmega__frame,
  .rts-techmega__desktop{
    background:#f6f8fb!important;
  }
  .rts-techmega__layout{
    margin-top:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .rts-techmega__rail{
    background:#edf2f6!important;
    border-right:0!important;
    box-shadow:none!important;
  }
  .rts-techmega__panels{
    background:#f7f9fb!important;
    border:0!important;
    box-shadow:none!important;
  }
  .rts-techmega__panel{
    background:#f7f9fb!important;
  }
  .rts-techmega__panel-head{
    border-bottom:0!important;
    padding-bottom:11px!important;
  }

  /* Keep the content hierarchy visible without card-on-card noise. */
  .rts-techmega__group-card{
    background:#eef3f7!important;
    box-shadow:none!important;
  }
  .rts-techmega__group-card:hover{
    background:#e8eff6!important;
    box-shadow:none!important;
  }
  .rts-techmega__quick>a{
    background:#eef3f7!important;
    box-shadow:none!important;
  }
  .rts-techmega__quick>a:hover{
    background:#e7eef6!important;
  }

  /* Selected rail item floats lightly above the rail, like Technopark's active row. */
  .rts-techmega__rail-link.is-active{
    background:#fff!important;
    box-shadow:0 4px 14px rgba(29,59,94,.07)!important;
  }
}


/* =========================================================
   beta9 — deeper light-grey mega surface
   - whole area below the blue line reads as a distinct opened layer
   - left rail is one step darker than the main panel
   ========================================================= */
@media(min-width:981px){
  .rts-v2-header .rts-techmega{
    background:#e9eff5!important;
  }
  .rts-techmega__frame,
  .rts-techmega__desktop{
    background:#e9eff5!important;
  }
  .rts-techmega__layout{
    background:transparent!important;
  }
  .rts-techmega__rail{
    background:#e0e8f0!important;
  }
  .rts-techmega__panels,
  .rts-techmega__panel{
    background:#eef3f7!important;
  }
  .rts-techmega__group-card{
    background:#e4ebf1!important;
  }
  .rts-techmega__group-card:hover{
    background:#dde6ef!important;
  }
  .rts-techmega__promo{
    background:linear-gradient(145deg,#e9eff5,#dfe8f2)!important;
  }
  .rts-techmega__quick>a{
    background:#e4ebf1!important;
  }
  .rts-techmega__quick>a:hover{
    background:#dde6ef!important;
  }
}


/* =========================================================
   beta10 — rail stability + subtle full-width grey gradient
   - active/hover rail items keep identical typography metrics
   - left rail is fully grey and the content surface gains a very soft
     left-to-right tonal gradient, inspired by Technopark's depth
   ========================================================= */
@media(min-width:981px){
  /* Prevent the active state from becoming wider and wrapping labels that
     fit on one line in the resting state. Selection is communicated by
     colour/surface rather than a font-weight jump. */
  .rts-techmega__rail-link,
  .rts-techmega__rail-link:hover,
  .rts-techmega__rail-link:focus-visible,
  .rts-techmega__rail-link.is-active{
    font-weight:560!important;
  }

  /* One continuous opened-menu surface below the blue rule. */
  .rts-v2-header .rts-techmega,
  .rts-techmega__frame,
  .rts-techmega__desktop{
    background:linear-gradient(90deg,#e5ecf2 0%,#e7edf3 34%,#e3eaf1 100%)!important;
  }

  /* Rail is intentionally one step denser than the content area. */
  .rts-techmega__rail{
    background:#dce5ed!important;
  }

  /* The right side remains calm, but is no longer a flat white/near-white
     plane. The gradient is deliberately only a few RGB steps. */
  .rts-techmega__panels,
  .rts-techmega__panel{
    background:linear-gradient(90deg,#edf2f6 0%,#eaf0f5 52%,#e7edf3 100%)!important;
  }

  .rts-techmega__group-card{
    background:#e1e9f0!important;
  }
  .rts-techmega__group-card:hover{
    background:#dbe5ed!important;
  }
  .rts-techmega__quick>a{
    background:#e1e9f0!important;
  }
  .rts-techmega__quick>a:hover{
    background:#dbe5ed!important;
  }
}


/* =========================================================
   beta11 — corrected menu surface mapping from annotated review
   - whole menu uses one calm grey base
   - only the left rail carries a subtle left-to-right gradient
   - category cards keep their darker grey tone
   ========================================================= */
@media(min-width:981px){
  /* Areas 1, 3 and 4: one unified grey canvas. */
  .rts-v2-header .rts-techmega,
  .rts-techmega__frame,
  .rts-techmega__desktop,
  .rts-techmega__layout,
  .rts-techmega__panels,
  .rts-techmega__panel{
    background:#e5ecf2!important;
  }

  /* Left catalogue rail only: start from the same base grey and softly
     transition to the slightly denser rail tone at the split. */
  .rts-techmega__rail{
    background:linear-gradient(90deg,#e5ecf2 0%,#e2eaf1 48%,#dce5ed 100%)!important;
  }

  /* Category cards remain one step darker than the base surface. */
  .rts-techmega__group-card,
  .rts-techmega__quick>a{
    background:#e1e9f0!important;
  }
  .rts-techmega__group-card:hover,
  .rts-techmega__quick>a:hover{
    background:#dbe5ed!important;
  }
}


/* =========================================================
   beta12 — slightly deeper category tiles
   - category/quick-action tiles are 1–2 neutral-grey steps darker
   - base mega-menu canvas and rail gradient remain unchanged
   ========================================================= */
@media(min-width:981px){
  .rts-techmega__group-card,
  .rts-techmega__quick>a{
    background:#dbe4ec!important;
  }
  .rts-techmega__group-card:hover,
  .rts-techmega__quick>a:hover{
    background:#d4dfe8!important;
  }
}


/* =========================================================
   beta13 — restore active Catalogue button hit-area
   Root cause: the transparent desktop backdrop sat above normal header
   controls in the header stacking context, so it intercepted pointer hover.
   Keep the main search/catalogue control above that click-catcher.
   ========================================================= */
@media(min-width:981px){
  body.rts-mega-open .rts-v2-mainbar{
    position:relative;
    z-index:1225!important;
  }
  body.rts-mega-open .rts-v2-search-combo{
    position:relative;
    z-index:1226!important;
  }
  body.rts-mega-open .rts-v2-catalog-toggle[aria-expanded="true"]{
    position:relative;
    z-index:1227!important;
    pointer-events:auto!important;
    cursor:pointer!important;
    background:#0868F7!important;
    transition:background .16s ease,box-shadow .16s ease!important;
  }
  body.rts-mega-open .rts-v2-catalog-toggle[aria-expanded="true"]:hover,
  body.rts-mega-open .rts-v2-catalog-toggle[aria-expanded="true"]:focus-visible{
    background:#0758d1!important;
    box-shadow:0 10px 26px rgba(8,104,247,.28)!important;
    cursor:pointer!important;
  }
  body.rts-mega-open .rts-v2-catalog-toggle[aria-expanded="true"]:active{
    background:#064fbd!important;
    box-shadow:0 6px 18px rgba(8,104,247,.24)!important;
  }
}


/* =========================================================
   beta14 — preserve mega-menu during navigation
   ========================================================= */
.rts-techmega[aria-busy="true"] a.is-navigating{color:#0868F7!important}
.rts-techmega[aria-busy="true"] a.is-navigating .rts-icon{transform:translateX(2px)}

/* =========================================================
   beta15 — four-level catalogue hierarchy
   L1 rail -> L2 section heading -> L3 grey card -> L4 links.
   Dense branches are promoted by recursive descendant count.
   ========================================================= */
@media(min-width:981px){
  .rts-techmega__sections{
    display:grid;
    gap:22px;
    padding-top:17px;
  }
  .rts-techmega__section{
    min-width:0;
  }
  .rts-techmega__section-head{
    display:flex;
    align-items:center;
    min-height:24px;
    margin:0 0 9px;
    padding:0 2px;
  }
  .rts-techmega__section-title{
    display:inline-flex!important;
    align-items:center;
    gap:7px;
    max-width:100%;
    color:#142a44!important;
    text-decoration:none!important;
    font:700 13px/1.3 Onest,Manrope,Arial,sans-serif!important;
    letter-spacing:-.012em;
    transition:color .15s ease;
  }
  .rts-techmega__section-title:hover,
  .rts-techmega__section-title:focus-visible{
    color:#0868f7!important;
    outline:0;
  }
  .rts-techmega__section-title .rts-icon{
    width:12px;
    height:12px;
    flex:0 0 auto;
  }
  .rts-techmega__section-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-flow:dense;
    gap:12px;
    align-items:start;
  }
  .rts-techmega__section--leaf .rts-techmega__section-head{
    margin-bottom:0;
  }
  .rts-techmega__section--leaf .rts-techmega__section-title{
    min-height:38px;
    padding:8px 12px;
    border-radius:11px;
    background:#dbe4ec;
  }
  .rts-techmega__section--leaf .rts-techmega__section-title:hover{
    background:#d4dfe8;
  }

  /* Level 3 remains the same darker-grey card language approved in beta12. */
  .rts-techmega__section-grid .rts-techmega__group-card{
    background:#dbe4ec!important;
  }
  .rts-techmega__section-grid .rts-techmega__group-card:hover{
    background:#d4dfe8!important;
  }

  /* Dense families such as CELLFLEX can show their fourth level compactly
     without sacrificing the visual hierarchy of the section heading. */
  .rts-techmega__section-grid .rts-techmega__group-card--xl .rts-techmega__group-links{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .rts-techmega__section-grid .rts-techmega__group-card--wide .rts-techmega__group-links{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(min-width:981px) and (max-width:1220px){
  .rts-techmega__section-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .rts-techmega__section-grid .rts-techmega__group-card--wide,
  .rts-techmega__section-grid .rts-techmega__group-card--xl{
    grid-column:1/-1;
  }
  .rts-techmega__section-grid .rts-techmega__group-card--xl .rts-techmega__group-links{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:980px){
  .rts-techmega__mobile-sections{
    display:grid;
    gap:22px;
    padding:2px 0 30px;
  }
  .rts-techmega__mobile-section{
    min-width:0;
  }
  .rts-techmega__mobile-section-title{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:0 2px 9px;
    color:#17304d!important;
    text-decoration:none!important;
    font:700 13px/1.3 Onest,Manrope,Arial,sans-serif!important;
    letter-spacing:-.012em;
  }
  .rts-techmega__mobile-section-title:hover{
    color:#0868f7!important;
  }
  .rts-techmega__mobile-section-title .rts-icon{
    width:13px;
    height:13px;
    flex:0 0 auto;
  }
  .rts-techmega__mobile-section-cards{
    display:grid;
    gap:9px;
  }
  .rts-techmega__mobile-section--leaf .rts-techmega__mobile-section-title{
    min-height:48px;
    margin-bottom:0;
    padding:12px 14px;
    border-radius:14px;
    background:#fff;
    box-shadow:0 6px 22px rgba(28,61,102,.04);
  }
  .rts-techmega__mobile-group{
    padding:14px 15px!important;
  }
  .rts-techmega__mobile-group-title{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  .rts-techmega__mobile-group-title .rts-icon{
    width:12px;
    height:12px;
    flex:0 0 auto;
    color:#8090a1;
  }
  .rts-techmega__mobile-group.is-leaf .rts-techmega__mobile-group-title{
    margin:0!important;
    padding:2px 0!important;
  }
  .rts-techmega__mobile-depth4{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 16px;
  }
  .rts-techmega__mobile-depth4>a{
    min-width:0;
    padding:8px 0!important;
    border-top:1px solid rgba(34,61,94,.06);
    color:#677a8e!important;
    text-decoration:none!important;
    font:420 12px/1.35 Onest,Manrope,Arial,sans-serif!important;
  }
  .rts-techmega__mobile-depth4>a:hover{
    color:#0868f7!important;
  }
}

@media(max-width:640px){
  .rts-techmega__mobile-depth4{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   beta16 — normalize three-level and four-level branches
   - terminal L3 categories share one untitled grey card and use L4 link styling
   - L3 categories with L4 descendants remain titled cards and stay promoted first
   - titled cards clearly turn blue when their heading link is hovered/focused
   ========================================================= */
@media(min-width:981px){
  .rts-techmega__section-grid .rts-techmega__group-card--flat{
    padding-top:15px;
    padding-bottom:15px;
  }
  .rts-techmega__section-grid .rts-techmega__group-card--flat .rts-techmega__group-links{
    align-content:start;
  }
  .rts-techmega__section-grid .rts-techmega__group-card--flat.rts-techmega__group-card--xl .rts-techmega__group-links{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px 18px;
  }
  .rts-techmega__section-grid .rts-techmega__group-card--flat.rts-techmega__group-card--wide .rts-techmega__group-links{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 18px;
  }
  .rts-techmega__group-card .rts-techmega__group-title:hover,
  .rts-techmega__group-card .rts-techmega__group-title:focus-visible{
    color:#0868f7!important;
    outline:0;
  }
}

@media(min-width:981px) and (max-width:1220px){
  .rts-techmega__section-grid .rts-techmega__group-card--flat.rts-techmega__group-card--xl .rts-techmega__group-links{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:980px){
  .rts-techmega__mobile-group--flat{
    padding-top:10px!important;
    padding-bottom:10px!important;
  }
  .rts-techmega__mobile-group-title:hover,
  .rts-techmega__mobile-group-title:focus-visible{
    color:#0868f7!important;
    outline:0;
  }
}


/* =========================================================
   beta17 — preserve L3 hierarchy in mixed-depth sections
   - if any L3 sibling has L4 children, terminal L3 siblings stay L3 cards
   - only pure terminal-L3 sections collapse into the untitled compact card
   ========================================================= */
@media(min-width:981px){
  .rts-techmega__section-grid.has-mixed-depth .rts-techmega__group-card--leaf-l3{
    grid-column:span 1;
    padding:13px 15px!important;
  }
  .rts-techmega__section-grid.has-mixed-depth .rts-techmega__group-card--leaf-l3 .rts-techmega__group-title{
    margin:0!important;
    min-height:18px;
  }
  .rts-techmega__section-grid.has-mixed-depth .rts-techmega__group-card--leaf-l3 .rts-techmega__group-title .rts-icon{
    width:12px;
    height:12px;
    flex:0 0 auto;
    color:#8292a4;
  }
  .rts-techmega__section-grid.has-mixed-depth .rts-techmega__group-card--leaf-l3:hover .rts-techmega__group-title .rts-icon,
  .rts-techmega__section-grid.has-mixed-depth .rts-techmega__group-card--leaf-l3 .rts-techmega__group-title:hover .rts-icon{
    color:#0868f7;
  }
}

@media(max-width:980px){
  .rts-techmega__mobile-section-cards.has-mixed-depth .rts-techmega__mobile-group--leaf-l3{
    padding:12px 14px!important;
  }
  .rts-techmega__mobile-section-cards.has-mixed-depth .rts-techmega__mobile-group--leaf-l3 .rts-techmega__mobile-group-title{
    margin:0!important;
    padding:2px 0!important;
  }
  .rts-techmega__mobile-section-cards.has-mixed-depth .rts-techmega__mobile-group--leaf-l3 .rts-icon{
    width:12px;
    height:12px;
    flex:0 0 auto;
    color:#8090a1;
  }
  .rts-techmega__mobile-section-cards.has-mixed-depth .rts-techmega__mobile-group--leaf-l3 .rts-techmega__mobile-group-title:hover .rts-icon{
    color:#0868f7;
  }
}
