:root {
  --rgrlk-header-height: 94px;
}

html {
  scroll-padding-top: calc(var(--rgrlk-header-height) + 18px);
}

.rgrlk-legacy-header {
  display: none !important;
}

.rgrlk-official-header,
.rgrlk-official-header * {
  box-sizing: border-box;
}

.rgrlk-official-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--rgrlk-header-height);
  border-bottom: 1px solid rgba(104, 211, 255, .18);
  background:
    linear-gradient(112deg, rgba(2, 8, 18, .97), rgba(5, 22, 40, .96) 54%, rgba(7, 16, 36, .97));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  color: #f5fbff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rgrlk-official-header__bar {
  width: min(1220px, calc(100% - 28px));
  min-height: var(--rgrlk-header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 174px;
  align-items: center;
  gap: 18px;
}

.rgrlk-official-brand {
  width: 76px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: #02050a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.rgrlk-official-brand img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.rgrlk-official-header--product .rgrlk-official-brand {
  width: 86px;
}

.rgrlk-official-header--product .rgrlk-official-brand img {
  width: 76px;
  height: 54px;
}

.rgrlk-official-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 15px);
}

.rgrlk-official-nav a {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 12px;
  color: #d5e6f6;
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.rgrlk-official-nav a:hover,
.rgrlk-official-nav a:focus-visible {
  color: #fff;
  background: rgba(54, 205, 255, .09);
  transform: translateY(-1px);
}

.rgrlk-official-icon,
.rgrlk-official-action__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #03121f;
  background: linear-gradient(145deg, #fff 0%, #77ecff 43%, #2879ff 100%);
  box-shadow: 0 7px 16px rgba(39, 132, 255, .26), inset 0 1px 0 rgba(255, 255, 255, .75);
}

.rgrlk-official-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.rgrlk-official-icon svg,
.rgrlk-official-action__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rgrlk-official-actions {
  display: grid;
  gap: 6px;
  width: 174px;
}

.rgrlk-official-action {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(75, 210, 255, .32);
  border-radius: 999px;
  background: rgba(4, 18, 34, .9);
  color: #f7fcff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .025em;
  line-height: 1.05;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 9px 22px rgba(0, 0, 0, .18);
}

.rgrlk-official-action:last-child {
  border-color: rgba(102, 255, 204, .3);
  background: linear-gradient(135deg, rgba(42, 207, 136, .1), rgba(4, 18, 34, .9));
}

.rgrlk-official-action__icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.rgrlk-official-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(78, 211, 255, .34);
  border-radius: 15px;
  background: rgba(4, 18, 34, .92);
  color: #8cefff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 9px 22px rgba(0, 0, 0, .2);
}

.rgrlk-official-menu-toggle span,
.rgrlk-official-menu-toggle::before,
.rgrlk-official-menu-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(88, 224, 255, .35);
  transition: transform .18s ease, opacity .18s ease;
}

.rgrlk-official-menu-toggle span {
  margin: 5px 0;
}

.rgrlk-official-menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.rgrlk-official-menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.rgrlk-official-menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.rgrlk-official-mobile-panel {
  display: none;
}

/* Bot assets supplied by RGrlk Group */
.chat-toggle img,
.chat-btn img,
.chat-launcher img,
.chat-head img,
.chatbot-header img,
#chatbotToggle img,
.chat-launch img {
  object-fit: contain !important;
  object-position: center !important;
}

.robot-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.rgrlk-labia-catalog-page .product-card,
.rgrlk-labia-catalog-page .b2b-card {
  overflow: hidden;
}

.rgrlk-labia-catalog-page .product-link--top {
  width: fit-content;
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(70, 218, 255, .32);
  border-radius: 999px;
  background: rgba(42, 167, 255, .08);
  color: #bcefff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.rgrlk-labia-catalog-page .product-visual,
.rgrlk-labia-catalog-page .sector-visual {
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(1, 8, 18, .82);
}

.rgrlk-labia-catalog-page .product-visual img,
.rgrlk-labia-catalog-page .sector-visual img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
}

.rgrlk-labia-catalog-page .b2b-grid {
  align-items: stretch;
}

.rgrlk-labia-catalog-page .b2b-card {
  display: flex;
  flex-direction: column;
}

.rgrlk-labia-catalog-page .b2b-card p {
  flex: 1 1 auto;
}

@media (max-width: 980px) {
  :root {
    --rgrlk-header-height: 82px;
  }

  .rgrlk-official-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .rgrlk-official-header__bar {
    position: relative;
    width: min(100% - 18px, 1220px);
    grid-template-columns: 62px minmax(46px, 1fr) minmax(112px, 136px);
    gap: 8px;
  }

  .rgrlk-official-brand,
  .rgrlk-official-header--product .rgrlk-official-brand {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .rgrlk-official-brand img,
  .rgrlk-official-header--product .rgrlk-official-brand img {
    width: 52px;
    height: 48px;
  }

  .rgrlk-official-nav {
    display: none;
  }

  .rgrlk-official-menu-toggle {
    display: grid;
    justify-self: center;
  }

  .rgrlk-official-actions {
    width: 100%;
    gap: 5px;
  }

  .rgrlk-official-action {
    min-height: 31px;
    padding: 0 7px;
    gap: 6px;
    font-size: 8.5px;
    letter-spacing: .01em;
  }

  .rgrlk-official-action__icon {
    width: 20px;
    height: 20px;
    border-radius: 7px;
  }

  .rgrlk-official-action__icon svg {
    width: 13px;
    height: 13px;
  }

  .rgrlk-official-mobile-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 4;
    width: min(330px, calc(100vw - 22px));
    padding: 10px;
    transform: translateX(-50%);
    border: 1px solid rgba(91, 215, 255, .28);
    border-radius: 19px;
    background: #061527;
    box-shadow: 0 24px 58px rgba(0, 0, 0, .52);
  }

  .rgrlk-official-mobile-panel.is-open {
    display: grid;
    gap: 5px;
  }

  .rgrlk-official-mobile-panel a {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border-radius: 12px;
    color: #eefaff;
    font-size: 12px;
    font-weight: 820;
    text-decoration: none;
  }

  .rgrlk-official-mobile-panel a:hover,
  .rgrlk-official-mobile-panel a:focus-visible {
    background: rgba(54, 205, 255, .09);
  }

  body::before,
  body::after {
    animation: none !important;
    filter: none !important;
  }

  .aurora,
  .orb,
  .particles,
  .particle-field,
  .background-glow {
    animation: none !important;
    filter: none !important;
  }
}

@media (max-width: 420px) {
  .rgrlk-official-header__bar {
    grid-template-columns: 56px minmax(42px, 1fr) minmax(104px, 124px);
    gap: 6px;
  }

  .rgrlk-official-brand,
  .rgrlk-official-header--product .rgrlk-official-brand {
    width: 54px;
    height: 54px;
  }

  .rgrlk-official-brand img,
  .rgrlk-official-header--product .rgrlk-official-brand img {
    width: 48px;
    height: 45px;
  }

  .rgrlk-official-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .rgrlk-official-action {
    font-size: 7.8px;
  }
}

/* Home only: the original transparent-logo navigator becomes an icon-only menu. */
@media (max-width: 680px) {
  .rgrlk-corner-shell.home-header {
    grid-template-columns: 54px minmax(46px, 1fr) minmax(108px, 122px);
  }

  .home-header .rgrlk-mobile-nav summary {
    width: 44px;
    min-height: 44px;
    margin-inline: auto;
    padding: 0;
    gap: 0;
    text-transform: none;
  }

  .home-header .rgrlk-mobile-nav summary::before {
    content: none;
  }

  .home-header .rgrlk-mobile-nav-lines,
  .home-header .rgrlk-mobile-nav-lines::before,
  .home-header .rgrlk-mobile-nav-lines::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #8cefff;
    box-shadow: 0 0 10px rgba(88, 224, 255, .35);
    transition: transform .18s ease, opacity .18s ease;
  }

  .home-header .rgrlk-mobile-nav-lines {
    position: relative;
  }

  .home-header .rgrlk-mobile-nav-lines::before,
  .home-header .rgrlk-mobile-nav-lines::after {
    position: absolute;
    left: 0;
  }

  .home-header .rgrlk-mobile-nav-lines::before {
    top: -7px;
  }

  .home-header .rgrlk-mobile-nav-lines::after {
    top: 7px;
  }

  .home-header .rgrlk-mobile-nav[open] .rgrlk-mobile-nav-lines {
    background: transparent;
    box-shadow: none;
  }

  .home-header .rgrlk-mobile-nav[open] .rgrlk-mobile-nav-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .home-header .rgrlk-mobile-nav[open] .rgrlk-mobile-nav-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }
}
