/* 7.9.67 — public header, edition chip, apps page, 404, nalog contrast, motion */

/* —— Header: never clipped, one active pill, light-on-dark —— */
html body.bu-landing-page .bu-neon-head,
html body.bu-product-page .bu-neon-head,
html body [data-landing-header].bu-neon-head {
  height: auto !important;
  min-height: 64px !important;
  max-height: none !important;
  overflow: visible !important;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.92), rgba(12, 28, 44, 0.78)) !important;
  border-bottom: 1px solid rgba(122, 240, 255, 0.16) !important;
  box-shadow: 0 12px 40px rgba(5, 10, 24, 0.28) !important;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
html body.bu-landing-page .bu-neon-head::after,
html body.bu-product-page .bu-neon-head::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2aa3b5, #10b981 42%, #c45c26);
  pointer-events: none;
}
html body.bu-landing-page .landing-shell-main,
html body.bu-product-page .landing-shell-main {
  padding-top: 72px !important;
}
html body .bu-neon-head-inner {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 64px !important;
  height: auto !important;
  overflow: visible !important;
  padding: 8px 16px !important;
  flex-wrap: nowrap;
}
html body .bu-neon-logo {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  max-width: 132px;
  background: #fff;
  border-radius: 12px;
  padding: 4px 8px;
  box-shadow: 0 8px 18px rgba(5, 10, 24, 0.18);
}
html body .bu-neon-logo img,
html body .bu-neon-logo-img {
  max-height: 36px;
  width: auto;
  filter: none !important;
}
html body .bu-neon-pills {
  display: flex !important;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible !important;
  gap: 4px;
}
html body .bu-neon-pill,
html body .bu-neon-more summary {
  color: #e8f4f2 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  white-space: nowrap;
}
html body .bu-neon-pill.is-on,
html body .bu-neon-more.has-on summary {
  background: linear-gradient(90deg, #0b6e86, #0f766e) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 22px rgba(11, 110, 134, 0.35);
}
html body .bu-neon-more-menu {
  background: #0b1220 !important;
  color: #e8f4f2;
  z-index: 80;
}
html body .bu-neon-more-menu a { color: #e8f4f2 !important; }
html body .bu-neon-more-menu a.is-on,
html body .bu-neon-more-menu a:hover {
  background: rgba(42, 163, 181, 0.22);
  color: #fff !important;
}
html body .bu-neon-actions {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}
html body .bu-neon-login,
html body .bu-neon-cta {
  color: #fff !important;
  white-space: nowrap;
}
html body .bu-neon-login {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}
html body .bu-neon-cta {
  background: linear-gradient(90deg, #c45c26, #ea580c) !important;
  border: none !important;
}

/* Apps in header: compact, never two wrapping lines */
html body .bu-neon-head .bu-apps-nav {
  display: flex;
  gap: 4px;
}
html body .bu-neon-head .bu-apps-nav a {
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
html body .bu-neon-head .bu-apps-nav a span { display: none !important; }
html body .bu-neon-head .bu-apps-nav strong {
  font-size: 11px;
  color: inherit !important;
}
html body .bu-neon-head .bu-apps-nav a.is-dispo { box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35); }
html body .bu-neon-head .bu-apps-nav a.is-driver { box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.4); }

@media (max-width: 1180px) {
  html body .bu-neon-head .bu-apps-nav strong { display: none; }
  html body .bu-neon-head .bu-apps-nav a { padding: 0 8px !important; }
}
@media (max-width: 980px) {
  html body .bu-neon-pills { display: none !important; }
  html body .bu-neon-logo { max-width: 120px; }
}

/* —— Edition chip: high-contrast, compact, readable dropdown —— */
html body .bu-edition-switch.is-compact {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  position: relative;
  z-index: 60;
}
html body .bu-edition-switch.is-compact > summary {
  min-height: 34px !important;
  padding: 0 10px 0 6px !important;
  gap: 6px !important;
  background: #f4fbfa !important;
  color: #123a48 !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 8px 20px rgba(5, 10, 24, 0.18);
}
html body .bu-edition-switch.is-compact .bu-ed-copy strong {
  color: #123a48 !important;
  font-size: 12px;
  letter-spacing: 0.04em;
}
html body .bu-edition-switch.is-compact .bu-ed-flag {
  background: #0b6e86 !important;
  color: #fff !important;
  width: 26px;
  height: 22px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
}
html body .bu-ed-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #123a48;
  opacity: 0.55;
}
html body .bu-edition-switch.is-rail > summary {
  background: #fff !important;
  color: #123a48 !important;
  border: 1px solid #d5e4ea !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
html body .bu-edition-switch.is-rail .bu-ed-copy strong,
html body .bu-edition-switch.is-rail .bu-ed-copy span {
  color: #123a48 !important;
  opacity: 1 !important;
}
html body .bu-edition-switch.is-rail .bu-ed-copy span { color: #4b6b75 !important; }
html body .bu-edition-menu {
  background: #fff !important;
  color: #123a48 !important;
  border: 1px solid #d5e4ea !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22) !important;
}
html body .bu-edition-menu a,
html body .bu-edition-menu .bu-ed-copy strong,
html body .bu-edition-menu .bu-ed-copy span {
  color: #123a48 !important;
}
html body .bu-ed-menu-k {
  margin: 0 8px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b7a84 !important;
}
html body .bu-edition-menu a.is-on,
html body .bu-edition-menu a:hover {
  background: #e7f6f4 !important;
}
html body .bu-edition-markets a,
html body .bu-edition-markets button {
  background: #f4f8fa !important;
  color: #123a48 !important;
  border: 1px solid #d5e4ea !important;
}
html body .bu-edition-markets a.is-on,
html body .bu-edition-markets button.is-on {
  background: #0b6e86 !important;
  color: #fff !important;
  border-color: #0b6e86 !important;
}

/* —— Nalog: never black-on-dark, never white-on-white —— */
html body.bu-nalog-page .bu-nalog-tabs,
html body.bu-nalog-page .bu-nalog-tabs-mobile {
  background: #eef4f8 !important;
  border: 1px solid #d5e4ea !important;
  color: #123a48 !important;
}
html body.bu-nalog-page .bu-nalog-tab {
  background: #fff !important;
  color: #1e3a44 !important;
  border: 1px solid #d5e4ea !important;
}
html body.bu-nalog-page .bu-nalog-tab.is-on {
  background: #0b6e86 !important;
  color: #fff !important;
  border-color: #0b6e86 !important;
}
html body.bu-nalog-page .bu-nalog-tab-pub {
  background: linear-gradient(90deg, #c45c26, #ea580c) !important;
  color: #fff !important;
  border: none !important;
}
html body.bu-nalog-page .bu-cc-hero,
html body.bu-nalog-page .bu-cc-hero p,
html body.bu-nalog-page .bu-cc-hero .bu-kicker,
html body.bu-nalog-page .bu-cc-hero .bu-sub,
html body.bu-nalog-page .bu-cc-hero .bu-cc-lead,
html body.bu-nalog-page .bu-cc-hero h1,
html body.bu-nalog-page .bu-cc-hero h2 {
  color: #f8fafc !important;
}
html body.bu-nalog-page .bu-account-panel,
html body.bu-nalog-page .bu-account-head h2,
html body.bu-nalog-page .bu-form-settings,
html body.bu-nalog-page .bu-dash-main {
  color: #123a48 !important;
}
html body.bu-nalog-page .bu-kicker { color: #0b6e86 !important; }
html body.bu-nalog-page .bu-cc-hero .bu-kicker,
html body.bu-nalog-page .bu-cc-hero .bu-cc-kicker { color: rgba(255, 255, 255, 0.78) !important; }
html body.bu-nalog-page .bu-settings-nav-a {
  background: #fff !important;
  color: #123a48 !important;
  border-color: #d5e4ea !important;
}
html body.bu-nalog-page .bu-settings-nav-a strong { color: #123a48 !important; }
html body.bu-nalog-page .bu-settings-nav-a span { color: #5b7a84 !important; }
html body.bu-nalog-page .bu-settings-nav-a.is-on {
  background: #0b6e86 !important;
  border-color: #0b6e86 !important;
}
html body.bu-nalog-page .bu-settings-nav-a.is-on strong,
html body.bu-nalog-page .bu-settings-nav-a.is-on span { color: #fff !important; }

/* —— Apps page —— */
html body.bu-product-page main.bu-appdl-v67,
html body.bu-landing-page main.bu-appdl-v67 {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 80px !important;
  color: #123a48 !important;
  background: transparent !important;
}
html body .bu-appdl-v67 .bu-appdl-hero {
  text-align: left;
  padding: 28px 28px 8px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(42, 163, 181, 0.22), transparent 46%),
    radial-gradient(ellipse at 90% 20%, rgba(196, 92, 38, 0.16), transparent 42%),
    #f4fbfa;
  border: 1px solid #d5e4ea;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}
html body .bu-appdl-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0b6e86 !important;
}
html body .bu-appdl-v67 h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  color: #0f2f38 !important;
}
html body .bu-appdl-lead,
html body .bu-appdl-web {
  color: #3d5c66 !important;
  max-width: 52ch;
  line-height: 1.55;
}
html body .bu-appdl-shot {
  margin: 22px 0 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}
html body .bu-appdl-shot img { display: block; width: 100%; height: auto; }
html body .bu-appdl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
html body .bu-appdl-steps li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d5e4ea;
  color: #123a48;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
html body .bu-appdl-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0b6e86;
  color: #fff;
  font-size: 13px;
}
html body .bu-appdl-v67 .bu-appdl-pane {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: #f8fafc !important;
  border: none;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}
html body .bu-appdl-pane-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.55);
}
html body .bu-appdl-v67 .bu-appdl-pane > *:not(.bu-appdl-pane-bg) { position: relative; z-index: 1; }
html body .bu-appdl-v67 .bu-appdl-pane .bu-kicker { color: rgba(255, 255, 255, 0.78) !important; }
html body .bu-appdl-v67 .bu-appdl-pane h2,
html body .bu-appdl-v67 .bu-appdl-pane p,
html body .bu-appdl-v67 .bu-appdl-pane li { color: #f8fafc !important; }
html body .bu-appdl-more {
  display: inline-block;
  margin-top: 10px;
  color: #7af0ff !important;
  font-weight: 800;
  text-decoration: none;
}
html body .bu-appdl-webmap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
html body .bu-appdl-webmap a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d5e4ea;
  color: #123a48 !important;
  font-weight: 750;
  text-decoration: none;
}
@media (max-width: 800px) {
  html body .bu-appdl-steps { grid-template-columns: 1fr; }
}

/* —— 404 —— */
html body .bu-e404 {
  min-height: 62dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px 80px;
}
html body .bu-e404-card {
  max-width: 640px;
  padding: 36px 32px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(42, 163, 181, 0.2), transparent 48%),
    #f4fbfa;
  border: 1px solid #d5e4ea;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  color: #123a48;
}
html body .bu-e404-mark {
  margin: 0;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
  background: linear-gradient(90deg, #0b6e86, #10b981, #c45c26);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html body .bu-e404-lead { color: #3d5c66; max-width: 46ch; }
html body .bu-e404-cta { display: flex; flex-wrap: wrap; gap: 8px; }

/* —— Homepage explore + motion —— */
html body .bu-home-explore {
  padding: 48px 0 28px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(16, 185, 129, 0.12), transparent 42%),
    #f7fbfb;
}
html body .bu-home-explore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
html body .bu-home-explore-card {
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d5e4ea;
  text-decoration: none;
  color: #123a48;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease;
}
html body .bu-home-explore-card strong { font-size: 16px; color: #0f2f38; }
html body .bu-home-explore-card span { font-size: 13px; color: #4b6b75; line-height: 1.4; }
html body .bu-home-explore-card em { color: #0b6e86; font-style: normal; font-weight: 800; }
html body .bu-home-explore-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(11, 110, 134, 0.14);
}
@media (max-width: 980px) {
  html body .bu-home-explore-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  html body .bu-home-explore-grid { grid-template-columns: 1fr; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(8px);
  animation: none;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.7s cubic-bezier(.2, .8, .2, 1), transform 0.7s cubic-bezier(.2, .8, .2, 1), filter 0.7s ease;
}
html body.bu-pub-leave .landing-shell-main {
  animation: bu67-leave 0.28s ease both;
}
@keyframes bu67-leave {
  to { opacity: 0; filter: blur(8px); transform: translateY(8px); }
}

/* Preloader polish */
html body.bu-has-pre #bu-pre {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(42, 163, 181, 0.35), transparent 46%),
    radial-gradient(ellipse at 90% 80%, rgba(196, 92, 38, 0.22), transparent 40%),
    #07131c !important;
  z-index: 2147483640;
}
html body.bu-has-pre .bu-pre-tag,
html body.bu-has-pre .bu-pre-step { color: #e8f4f2 !important; }

html body.bu-product-page .bu-pro-nav a,
html body.bu-landing-page .bu-pro-nav a {
  color: #123a48 !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  html body.bu-pub-leave .landing-shell-main { animation: none; }
}
