/* GLOBAL_SITE_NAV_20261009_V1: shared mobile and desktop menu */
.rof-site-header.rof-global-nav-ready {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10010 !important;
  background: rgba(8, 9, 19, .97) !important;
  border-bottom: 1px solid rgba(57, 206, 241, .28) !important;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.rof-site-header.rof-global-nav-ready .rof-menu-button {
  display: grid !important;
  flex: 0 0 auto !important;
  place-items: center !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 1px solid rgba(41, 207, 229, .48) !important;
  border-radius: 11px !important;
  background: #14202d !important;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 10021;
}
.rof-site-header.rof-global-nav-ready .rof-menu-button i {
  background: #eaf6ff !important;
  display: block;
  width: 19px;
  height: 2px;
  margin: 2px auto;
}
.rof-site-header.rof-global-nav-ready .rof-menu-button:focus-visible,
.rof-standalone-menu .rof-menu-button:focus-visible {
  outline: 3px solid #75e6ff !important;
  outline-offset: 3px;
}
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open {
  display: flex !important;
  position: absolute !important;
  z-index: 10022 !important;
  top: calc(100% - 1px) !important;
  left: auto !important;
  right: 12px !important;
  width: min(360px, calc(100vw - 24px)) !important;
  max-height: min(78vh, 640px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  gap: 0 !important;
  flex-direction: column !important;
  padding: 8px !important;
  border: 1px solid rgba(56, 209, 235, .5) !important;
  border-radius: 0 0 16px 16px !important;
  background: #101621 !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.7) !important;
  align-items: stretch !important;
  margin: 0 !important;
}
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open a {
  display: block !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  color: #f7f9ff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .15px !important;
  text-decoration: none !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  text-align: left !important;
}
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open a:hover,
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open a[aria-current="page"] {
  background: rgba(29, 207, 239, .13) !important;
  color: #8ff3ff !important;
}
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open a:after { display: none !important; }
@media (min-width:1201px) {
  .rof-site-header.rof-global-nav-ready .rof-nav:not(.rof-open) a:nth-child(n+7) {
    display: none !important;
  }
  .rof-site-header.rof-global-nav-ready .rof-nav:not(.rof-open) {
    gap: 13px !important;
  }
}
@media (max-width:1200px) {
  .rof-site-header.rof-global-nav-ready .rof-nav:not(.rof-open) {
    display: none !important;
  }
  .rof-site-header.rof-global-nav-ready .rof-header-actions {
    margin-left: auto !important;
  }
}
@media (max-width:680px) {
  .rof-site-header.rof-global-nav-ready {
    height: 64px !important;
    padding: 0 12px !important;
  }
  .rof-site-header.rof-global-nav-ready .rof-header-actions {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    display: inline-flex !important;
    gap: 5px !important;
    align-items: center !important;
  }
  .rof-site-header.rof-global-nav-ready .rof-menu-button {
    width: 39px !important;
    min-width: 39px !important;
    height: 39px !important;
    margin-left: 4px !important;
  }
  .rof-site-header.rof-global-nav-ready .rof-header-actions a.rof-partners-back,
  .rof-site-header.rof-global-nav-ready .rof-header-actions a.rof-seo-back {
    display: none !important;
  }
  .rof-site-header.rof-global-nav-ready .rof-nav.rof-open {
    right: 8px !important;
    width: min(340px, calc(100vw - 16px)) !important;
    top: 64px !important;
    max-height: calc(100dvh - 80px) !important;
  }
}
.rof-global-header-host {
  position: relative;
  z-index: 10009;
  width: 100%;
  height: 0;
}
body.rof-injected-program-header .rof-program-page {
  padding-top: max(80px, env(safe-area-inset-top)) !important;
}

/* For standalone functional pages: one unobtrusive hamburger, no page reflow */
.rof-standalone-menu {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  z-index: 10040;
  font-family: system-ui, -apple-system, sans-serif;
}
.rof-standalone-menu > .rof-menu-button {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(65, 215, 234, .53);
  border-radius: 12px;
  background: rgba(8, 17, 31, .95);
  box-shadow: 0 5px 20px rgba(0,0,0,.45);
  cursor: pointer;
}
.rof-standalone-menu > .rof-menu-button i {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: white;
  border-radius: 3px;
}
.rof-standalone-menu .rof-nav { display: none !important; }
.rof-standalone-menu .rof-nav.rof-open {
  display: flex !important;
  position: absolute !important;
  top: 47px;
  right: 0;
  width: min(345px, calc(100vw - 20px));
  max-height: min(76vh, 650px);
  overflow-y: auto;
  padding: 8px;
  gap: 0;
  flex-direction: column;
  border: 1px solid rgba(65, 215, 234, .5);
  border-radius: 14px;
  background: #0d1624;
  box-shadow: 0 20px 45px rgba(0,0,0,.65);
}
.rof-standalone-menu .rof-nav.rof-open a {
  display: block;
  padding: 12px 14px;
  color: #f8f9ff;
  font-size: 14px;
  font-weight: 750;
  border-radius: 8px;
  text-decoration: none;
}
.rof-standalone-menu .rof-nav.rof-open a:hover,
.rof-standalone-menu .rof-nav.rof-open a[aria-current="page"] {
  color: #80efff;
  background: rgba(29,207,239,.15);
}

/* ROF_GLOBAL_MENU_CLOSE_X_V1: always-visible close at top of opened panel. */
.rof-global-menu-topbar { display: none; }
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open > .rof-global-menu-topbar,
.rof-standalone-menu .rof-nav.rof-open > .rof-global-menu-topbar {
  display: flex !important;
  flex: 0 0 auto;
  position: sticky;
  top: -8px;
  z-index: 3;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 5px 7px 9px 14px;
  margin: -8px -8px 7px;
  background: #101621;
  border-bottom: 1px solid rgba(65,215,234,.22);
}
.rof-global-menu-topbar strong {
  font-size: 14px;
  font-weight: 800;
  color: #f7fbff;
  letter-spacing: .8px;
}
.rof-global-nav-close {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(65,215,234,.55);
  border-radius: 10px;
  background: #1d3043;
  color: #fff;
  font: 700 25px/1 system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.rof-global-nav-close:hover { background: #2c435a; border-color: #7bedff; }
.rof-global-nav-close:focus-visible { outline: 3px solid #7bedff; outline-offset: 2px; }
.rof-standalone-menu .rof-nav.rof-open > .rof-global-menu-topbar { background: #0d1624; }


/* ROF_GLOBAL_MENU_VISIBLE_START_AND_FULL_HEIGHT_20261010
   Keep the first "Начало" row clear of the sticky close bar,
   increase usable menu height, and retain scrolling on small screens. */
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open,
.rof-standalone-menu .rof-nav.rof-open {
  max-height: calc(100dvh - 92px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 10px 12px 18px !important;
  scroll-padding-top: 64px;
}
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open {
  width: min(410px, calc(100vw - 24px)) !important;
}
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open > .rof-global-menu-topbar,
.rof-standalone-menu .rof-nav.rof-open > .rof-global-menu-topbar {
  top: 0 !important;
  min-height: 50px !important;
  margin: 0 0 10px !important;
  padding: 4px 6px !important;
}
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open > a,
.rof-standalone-menu .rof-nav.rof-open > a {
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  min-height: 43px !important;
  padding: 11px 16px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow: visible !important;
}
.rof-site-header.rof-global-nav-ready .rof-nav.rof-open > a:first-of-type,
.rof-standalone-menu .rof-nav.rof-open > a:first-of-type {
  margin-top: 4px !important;
}
@media (max-width: 680px) {
  .rof-site-header.rof-global-nav-ready .rof-nav.rof-open,
  .rof-standalone-menu .rof-nav.rof-open {
    max-height: calc(100dvh - 78px) !important;
  }
}

/* ROF_GLOBAL_GREETING_MODAL_V1 */
html.rof-greeting-modal-open,
body.rof-greeting-modal-open { overflow: hidden !important; }
.rof-global-greeting-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}
.rof-global-greeting-modal.open { display: flex; }
.rof-global-greeting-shell {
  width: min(1480px, 96vw);
  height: min(940px, 94vh);
  display: grid;
  grid-template-rows: 58px minmax(0,1fr);
  overflow: hidden;
  border: 1px solid rgba(40,220,255,.48);
  border-radius: 22px;
  background: #080b15;
  box-shadow: 0 30px 100px rgba(0,0,0,.68), 0 0 28px rgba(0,220,255,.16);
}
.rof-global-greeting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid rgba(79,213,255,.26);
  background: #0b1220;
  color: #fff;
}
.rof-global-greeting-head strong {
  font: 900 15px/1.2 system-ui, sans-serif;
  letter-spacing: .2px;
}
.rof-global-greeting-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #182237;
  color: #fff;
  font: 900 28px/1 system-ui, sans-serif;
  cursor: pointer;
}
.rof-global-greeting-close:hover { background: #263753; }
.rof-global-greeting-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #080b15;
}
body.rof-embedded-catalog .rof-standalone-menu,
body.rof-embedded-catalog .rof-global-header-host,
body.rof-embedded-catalog .rof-site-header { display: none !important; }
@media (max-width: 680px) {
  .rof-global-greeting-modal { padding: 0; align-items: stretch; }
  .rof-global-greeting-shell {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    grid-template-rows: 54px minmax(0,1fr);
  }
  .rof-global-greeting-head { padding: 0 8px 0 12px; }
  .rof-global-greeting-head strong { font-size: 13px; }
  .rof-global-greeting-close { width: 40px; height: 40px; flex-basis: 40px; }
}

/* NAV_20261011: only five top-level links, remaining links in the open "Още" menu. */
.rof-nav:not(.rof-open) > .rof-more-divider { display: none !important; }
.rof-nav.rof-open > .rof-more-divider {
  display: block; margin: 9px 8px 4px; padding: 9px 8px 5px;
  border-top: 1px solid rgba(255,255,255,.18); color: #9daebe;
  font-size: 11px; font-weight: 800; letter-spacing: .09em;
}

/* ROF_HIDE_LEGACY_DUPLICATE_MENU_20261014
   Only the old index.php flyout/menu toggle is hidden.
   The current rof-site-header + rof-nav hamburger stays available. */
body.rof-concept-page #sideMenu,
body.rof-concept-page #menuOverlay,
body.rof-concept-page #menuBtn,
body.rof-concept-page .side-menu-panel { display:none !important; }

/* ROF_REMOVE_FIVE_TOP_BAR_LINKS_20261018
   Hide the five redundant links in the horizontal header only.
   Preserve all original destinations in the accessible ☰ menu.
   This is intentionally scoped to the site header, not the drawer. */
.rof-site-header .rof-nav:not(.rof-open) {
  display: none !important;
}

/* ROF_BURGER_RIGHT_WITH_TEXT_20261018
   Horizontal nav is intentionally hidden; place MENU at the far right.
   Keep the three actual hamburger bars and preserve the dropdown handlers. */
@media (min-width:1051px) {
  .rof-site-header.rof-global-nav-ready .rof-header-actions {
    margin-left:auto!important;
  }
}
.rof-site-header.rof-global-nav-ready #rofConceptMenu {
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  gap:9px!important;
  width:auto!important;
  min-width:98px!important;
  height:40px!important;
  padding:0 12px!important;
  border-radius:11px!important;
}
.rof-site-header.rof-global-nav-ready #rofConceptMenu .rof-menu-bars {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 19px!important;
  width:19px!important;
  height:24px!important;
  gap:4px!important;
}
.rof-site-header.rof-global-nav-ready #rofConceptMenu .rof-menu-bars i {
  display:block!important;
  flex:none!important;
  width:19px!important;
  height:2px!important;
  padding:0!important;
  margin:0!important;
  border-radius:2px!important;
}
.rof-site-header.rof-global-nav-ready #rofConceptMenu .rof-menu-caption {
  display:inline-block!important;
  color:#eaf7ff!important;
  font:900 11px/1 system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
  letter-spacing:.7px!important;
  white-space:nowrap!important;
}
@media (max-width:1050px) {
  .rof-site-header.rof-global-nav-ready #rofConceptMenu {
    width:40px!important;
    min-width:40px!important;
    gap:0!important;
    padding:0!important;
  }
  .rof-site-header.rof-global-nav-ready #rofConceptMenu .rof-menu-caption {
    display:none!important;
  }
}
@media (max-width:680px) {
  .rof-site-header.rof-global-nav-ready #rofConceptMenu {
    width:39px!important;
    min-width:39px!important;
    height:39px!important;
  }
}

/* ROF_CENTER_FIXED_HEADER_PROMO_V2_20261018
   IMPORTANT: Anchor the ENTIRE glowing box from first paint, before the
   dynamic "rof-global-nav-ready" class exists. Disable transitions of the
   outer frame only; the inner green text marquee remains animated.
   The previous transform transition shifted the frame 250px on page load. */
@media (min-width:1051px){
  .rof-site-header > .rof-ai-header-promo {
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    translate:none!important;
    margin-left:0!important;
    margin-right:0!important;
    z-index:2!important;
    flex:none!important;
    transition:none!important;
    animation:none!important;
    will-change:auto!important;
  }
}
/* Header location, menu, promo text animation and Xat stay unchanged. */
