/* 7.9.61 — lang menu, product scroll, sticky rail, tabs, reg stage, grace, phone board */

/* —— Language: never clipped, always clickable —— */
html body.bu-landing-page .bu-neon-head,
html body.bu-product-page .bu-neon-head,
html body.bu-author-page .bu-neon-head,
html body.bu-landing-page .bu-neon-head-inner,
html body.bu-product-page .bu-neon-head-inner,
html body .bu-neon-actions,
html body.bu-nalog-page .bu-header-nalog,
html body.bu-nalog-page .bu-board-header-inner {
  overflow: visible !important;
}
html body.bu-landing-page .bu-neon-head,
html body.bu-product-page .bu-neon-head {
  z-index: 120 !important;
}
html body .bu-lang-menu,
html body .bu-lang-menu:not([hidden]),
html body .bu-lang-pick.is-open .bu-lang-menu {
  z-index: 2147483000 !important;
  pointer-events: auto !important;
  min-width: 280px;
  max-width: min(92vw, 360px);
  max-height: min(70vh, 440px);
  overflow: auto;
  background: #fff !important;
  color: #0f172a;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.28);
}

html body.bu-landing-page .bu-neon-pills {
  position: relative;
}
html body.bu-landing-page .bu-neon-pill {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
html body.bu-landing-page .bu-neon-pill.is-on {
  transform: translateY(-1px);
}
html body.bu-landing-page .bu-neon-head.is-inner {
  backdrop-filter: saturate(1.1) blur(8px);
}

html body [data-dispo-demo] [data-dispo-log],
html body #bu-agent [data-agent-log] {
  display: none !important;
}
html body [data-dispo-demo] li.is-flash,
html body .bu-filter-flash {
  animation: buFilterFlash 0.55s ease;
}
@keyframes buFilterFlash {
  0% { box-shadow: 0 0 0 0 rgba(11, 110, 134, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(11, 110, 134, 0); }
  100% { box-shadow: none; }
}

/* —— Product / landing: document scroll; sidebar STICKY in grid —— */
html:has(body.bu-product-page),
html:has(body.bu-landing-page) {
  height: auto !important;
  max-height: none !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
}
html body.bu-product-page,
html body.bu-landing-page {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-x: clip !important;
}
html body.bu-product-page.bu-has-pre,
html body.bu-landing-page.bu-has-pre {
  overflow: visible !important;
}
html body.bu-product-page #bu-pre {
  display: none !important;
}

@media (min-width: 1100px) {
  html body.bu-landing-page .landing-shell,
  html body.bu-product-page .landing-shell,
  html body.bu-author-page .landing-shell {
    display: grid !important;
    grid-template-columns: 232px minmax(0, 1fr) !important;
    gap: 0 !important;
    align-items: start !important;
    height: auto !important;
    overflow: visible !important;
  }
  html body.bu-landing-page aside.bu-neon-side.landing-sidebar.bu-board-sidebar,
  html body.bu-product-page aside.bu-neon-side.landing-sidebar.bu-board-sidebar,
  html body.bu-landing-page aside.landing-sidebar,
  html body.bu-product-page aside.landing-sidebar {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    width: 232px !important;
    max-width: 232px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 40 !important;
    display: flex !important;
    align-self: start !important;
  }
  html body.bu-landing-page .landing-shell-main,
  html body.bu-product-page .landing-shell-main {
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
}

html body.bu-product-page main.bu-pro,
html body.bu-product-page main.bu-blog {
  height: auto !important;
  overflow: visible !important;
  min-height: 60vh;
}

/* —— Board tabs: two lines, bell always, no spill —— */
html body .bu-stab {
  display: inline-flex;
  overflow: hidden;
  max-width: 176px;
  min-width: 112px;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
html body .bu-stab.is-on {
  box-shadow: 0 8px 18px rgba(11, 110, 134, 0.16);
}
html body .bu-stab.bu-tab-pop {
  animation: buTabPop 0.28s ease;
}
@keyframes buTabPop {
  from { transform: translateY(4px) scale(0.98); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
html body .bu-stab-bell {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #94a3b8;
}
html body .bu-stab.watch .bu-stab-bell {
  color: #eab308;
  filter: drop-shadow(0 0 4px rgba(234, 179, 8, 0.55));
}
html body .bu-tab-route {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.15;
  text-align: left;
}
html body .bu-tab-l1,
html body .bu-tab-route b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  max-width: 100%;
}
html body .bu-tab-l2 {
  display: block;
  font-size: 10px;
  font-weight: 650;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html body .bu-stab.watch .bu-tab-l2 { color: #a16207; }

/* —— Registration stage: rail + form + live invoice —— */
html body.bu-auth-chrome .bu-reg-stage-wrap,
html body.bu-auth-chrome main.bu-join-wrap.bu-join-reg {
  max-width: 1280px !important;
  width: min(1280px, calc(100% - 24px)) !important;
  margin: 16px auto 40px !important;
}
html body.bu-auth-chrome .bu-reg-stage {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
html body.bu-auth-chrome .bu-reg-rail,
html body.bu-auth-chrome .bu-reg-doc {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
html body.bu-auth-chrome .bu-reg-rail button,
html body.bu-auth-chrome .bu-reg-rail a.bu-reg-jump {
  display: flex;
  width: 100%;
  text-align: left;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
html body.bu-auth-chrome .bu-reg-jump.is-on {
  border-color: #0b6e86;
  background: #e8f4f7;
}
html body.bu-auth-chrome .bu-reg-jump.is-ok {
  border-color: #16a34a;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18);
}
html body.bu-auth-chrome .bu-reg-jump.is-bad {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.16);
}
html body.bu-auth-chrome .bu-reg-doc {
  font-size: 12px;
  color: #0f172a;
}
html body.bu-auth-chrome .bu-reg-doc h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
html body.bu-nalog-page .bu-inv-paper,
html body.bu-auth-chrome .bu-inv-paper {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  background: #fffdf8;
}
html body.bu-nalog-page .bu-inv-paper dl,
html body.bu-auth-chrome .bu-inv-paper dl {
  display: grid;
  gap: 4px;
  margin: 0;
}
html body.bu-nalog-page .bu-inv-paper dt,
html body.bu-auth-chrome .bu-inv-paper dt {
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
html body.bu-nalog-page .bu-inv-paper dd,
html body.bu-auth-chrome .bu-inv-paper dd {
  margin: 0 0 8px;
  font-weight: 750;
}
html body.bu-auth-chrome .bu-join-card {
  width: 100% !important;
  max-width: none !important;
}
@media (max-width: 1100px) {
  html body.bu-auth-chrome .bu-reg-stage {
    grid-template-columns: 1fr;
  }
  html body.bu-auth-chrome .bu-reg-rail,
  html body.bu-auth-chrome .bu-reg-doc {
    position: static;
  }
}

/* —— Grace: always visible + quick link —— */
html body .bu-lemon-grace a.bu-grace-nalog {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #0b6e86;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}
html body.bu-nalog-page .bu-grace-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

/* —— Phone board: app-like stack —— */
@media (max-width: 899px) {
  html body.bu-board-page .bu-term-grid,
  html body.bu-board-page .bu-board-body {
    display: flex !important;
    flex-direction: column !important;
  }
  html body.bu-board-page .bu-map,
  html body.bu-board-page #bu-map {
    min-height: 38vh !important;
    height: 38vh !important;
    order: 0;
  }
  html body.bu-board-page .bu-list,
  html body.bu-board-page .bu-feed {
    order: 1;
    min-height: 0;
  }
  html body.bu-board-page .bu-board-header {
    position: sticky;
    top: 0;
    z-index: 80;
  }
}
