/* Betjam Argentina - каркас: токены, ресет, шрифты, шапка, S0, нижняя навигация, крошки, футер, кнопки */

@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-400.woff2") format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-500.woff2") format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-700.woff2") format("woff2"); }

:root {
  --bj-bg: #2E005C;
  --bj-nav: #4F107F;
  --bj-top: #5C00A3;
  --bj-violet: #7F00E0;
  --bj-violet-hi: #9100FF;
  --bj-tile: linear-gradient(#6E00C2, #560891);
  --bj-panel: #3D0A73;
  --bj-line: rgba(222, 179, 255, .18);
  --bj-accent: #FFB700;
  --bj-on-accent: #0B0014;
  --bj-text: #FFFFFF;
  --bj-muted: #C9B3E0;
  --bj-link: #DEB3FF;
  --bj-light: #FFFFFF;
  --bj-light-ink: #0B0014;
  --bj-light-muted: #5C4A70;
  --bj-banner: #3A0070;
  --bj-radius: 8px;
  --bj-font: Roboto, system-ui, "Segoe UI", Arial, sans-serif;
  --bj-wrap: 1200px;
  --bj-gutter: 16px;
  --bj-gap: 28px;
  --bj-header: 62px;
}
@media (min-width: 1024px) {
  :root { --bj-gutter: 24px; --bj-gap: 44px; --bj-header: 90px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bj-header) + 10px); }
body {
  margin: 0;
  background: var(--bj-bg);
  color: var(--bj-text);
  font: 400 16px/1.6 var(--bj-font);
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--bj-link); text-underline-offset: 2px; }
a:hover { color: var(--bj-accent); }
:focus-visible { outline: 2px solid var(--bj-accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 20px; }
h3 { font-size: 18px; font-weight: 500; }
@media (min-width: 1024px) { h1 { font-size: 32px; } h2 { font-size: 24px; } }
p { margin: 0 0 1em; }
.bj-wrap { width: 100%; max-width: var(--bj-wrap); margin: 0 auto; padding: 0 var(--bj-gutter); }
.bj-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--bj-accent); color: var(--bj-on-accent); padding: 8px 16px; }
.bj-skip:focus { left: 8px; top: 8px; }

/* Кнопки */
.bj-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 32px; padding: 0 16px; border-radius: var(--bj-radius);
  font: 400 14px/1.1 var(--bj-font); text-decoration: none; text-align: center;
  white-space: nowrap; border: 0; cursor: pointer;
}
.bj-btn--accent { background: var(--bj-accent); color: var(--bj-on-accent); }
.bj-btn--accent:hover { background: #FFC633; color: var(--bj-on-accent); }
.bj-btn--violet { background: var(--bj-violet); color: var(--bj-text); }
.bj-btn--violet:hover { background: var(--bj-violet-hi); color: var(--bj-text); }
.bj-btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--bj-text); }

/* Шапка */
.bj-header { position: sticky; top: 0; z-index: 50; }
.bj-header__top { background: var(--bj-top); }
.bj-header__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.bj-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bj-brand__logo { width: 118px; height: 26px; }
.bj-flag { width: 22px; height: 22px; flex-shrink: 0; }
.bj-header__actions { display: flex; align-items: center; gap: 8px; }
.bj-header__actions .bj-btn { min-height: 38px; padding: 0 12px; font-size: 15px; }
.bj-header__actions--desk { display: none; }
/* Строка 2 (меню бренда) - отдельный <nav> после <header>: mobile - прокручиваемая полоса 44px, уезжает со
   страницей; desktop - липкая 42px под строкой 1 (top: 48px). */
.bj-header__nav { background: var(--bj-nav); position: relative; z-index: 40; }
.bj-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--bj-radius);
  background: var(--bj-violet-hi); color: var(--bj-text);
}
.bj-iconbtn:hover { background: #A433FF; color: var(--bj-text); }
.bj-iconbtn svg { width: 18px; height: 18px; }
@media (max-width: 419px) {
  .bj-header__row { gap: 8px; }
  .bj-brand { gap: 6px; }
  .bj-brand__logo { width: 100px; height: 22px; }
  .bj-flag { width: 20px; height: 20px; }
  .bj-header__actions { gap: 6px; }
  .bj-header__actions .bj-btn { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 359px) {
  .bj-brand__logo { width: 88px; height: 19px; }
  .bj-flag { display: none; }
  .bj-header__actions .bj-btn { padding: 0 8px; font-size: 13px; }
}
@media (min-width: 1024px) {
  .bj-header__row { height: 48px; }
  .bj-brand__logo { width: 145px; height: 32px; }
  .bj-flag { width: 24px; height: 24px; }
  .bj-header__actions--mob { display: none; }
  .bj-header__actions--desk { display: flex; }
  .bj-header__actions .bj-btn { min-height: 32px; padding: 0 16px; font-size: 14px; text-transform: uppercase; }
  .bj-header__actions--desk { gap: 10px; }
  .bj-header__nav { position: sticky; top: 48px; z-index: 49; }
}
.bj-menu {
  display: flex; align-items: center; gap: 4px; height: 44px; margin: 0 auto; padding: 0 var(--bj-gutter); list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bj-menu::-webkit-scrollbar { display: none; }
.bj-menu li { flex-shrink: 0; }
.bj-menu li:first-child a { margin-left: -8px; }
@media (min-width: 1024px) {
  .bj-menu { height: 42px; overflow: visible; }
  .bj-menu li:first-child a { margin-left: -12px; }

}
.bj-menu a {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px; white-space: nowrap;
  color: var(--bj-text); text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase;
}
@media (min-width: 1024px) { .bj-menu a { padding: 0 12px; font-size: 15px; } }
.bj-menu .bj-menu__crystal { text-transform: none; }
.bj-menu a:hover { background: rgba(255, 255, 255, .12); color: var(--bj-text); }
.bj-menu a[aria-current="page"] { background: rgba(255, 255, 255, .12); }
.bj-menu .bj-menu__hot { background: var(--bj-accent); color: var(--bj-on-accent); }
.bj-menu .bj-menu__hot:hover { background: #FFC633; color: var(--bj-on-accent); }
.bj-menu .bj-menu__hot[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--bj-text); background: var(--bj-accent); }
.bj-menu svg { width: 15px; height: 15px; flex-shrink: 0; }
.bj-menu .bj-menu__chev { width: 13px; height: 13px; margin-left: -2px; }
.bj-menu .bj-menu__gem { width: 22px; height: 22px; }
@media (min-width: 1024px) { .bj-menu .bj-menu__crystal { margin-left: 12px; } .bj-menu .bj-menu__gem { width: 26px; height: 26px; } }

/* S0 app-card (только < 1024 px) */
.bj-app {
  background: var(--bj-light); color: var(--bj-light-ink);
  border-radius: 0 0 16px 16px; padding: 16px 0 20px; margin-bottom: 20px;
}
@media (min-width: 1024px) { .bj-app { display: none; } }
.bj-app p { margin: 0; }
.bj-app__in { padding: 0 16px; }
.bj-app__head { display: flex; align-items: center; gap: 14px; }
.bj-app__icon { width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0; }
.bj-app__name { font-size: 22px; font-weight: 700; line-height: 1.2; }
.bj-app__dev { font-size: 14px; font-weight: 500; color: var(--bj-violet); line-height: 1.3; }
.bj-app__cat { font-size: 13px; color: var(--bj-light-muted); line-height: 1.3; }
.bj-app__facts {
  display: flex; margin: 16px 0 0; padding: 0 16px;
}
.bj-app__fact {
  display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-end;
  flex: 1 1 0; min-width: 0; padding: 0 6px; text-align: center; border-left: 1px solid #E3DDEC;
}
.bj-app__fact:first-child { border-left: 0; padding-left: 0; }
.bj-app__fact dt { font-size: 11px; color: var(--bj-light-muted); line-height: 1.3; white-space: nowrap; }
.bj-app__fact dd { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.bj-app__get {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; margin-top: 16px;
  border-radius: var(--bj-radius); background: var(--bj-violet); color: #fff; text-decoration: none; font-size: 17px; font-weight: 500;
}
.bj-app__get:hover { background: var(--bj-violet-hi); color: #fff; }
.bj-app__get svg { width: 22px; height: 22px; }
.bj-app__note { font-size: 13px; color: var(--bj-light-muted); margin-top: 8px !important; text-align: center; }
.bj-app__shots {
  display: flex; gap: 8px; margin: 18px 0 0; padding: 0 16px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: thin;
}
.bj-app__shots li { flex: 0 0 150px; scroll-snap-align: start; }
.bj-app__shots img { width: 150px; height: 325px; object-fit: cover; border-radius: 12px; border: 1px solid #E3DDEC; }
.bj-app__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 20px 0 10px !important; display: flex; align-items: center; gap: 8px; }
.bj-app__badge { font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; padding: 2px 8px; border-radius: 10px; background: #F1E6FC; color: var(--bj-violet); }
.bj-app__info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.bj-app__info div { min-width: 0; }
.bj-app__info dt { font-size: 13px; color: var(--bj-light-muted); line-height: 1.3; }
.bj-app__info dd { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.bj-app__news { font-size: 15px; line-height: 1.5; }
.bj-app__news ul { margin: 8px 0 0; padding-left: 20px; }
.bj-app__news li::marker { color: var(--bj-violet); }

/* Крошки */
.bj-crumbs { font-size: 13px; color: var(--bj-muted); padding-top: 4px; }
.bj-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bj-crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--bj-muted); }
.bj-crumbs a { color: var(--bj-muted); text-decoration: none; }
.bj-crumbs a:hover { color: var(--bj-accent); text-decoration: underline; }
.bj-crumbs [aria-current="page"] { color: var(--bj-text); }
@media (min-width: 1024px) { .bj-crumbs { padding-top: 16px; } }

/* Нижняя навигация mobile */
.bj-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--bj-light); box-shadow: 0 -1px 0 rgba(0, 0, 0, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bj-tabbar ul { display: flex; height: 56px; margin: 0; padding: 0; list-style: none; }
.bj-tabbar li { flex: 1 1 0; }
.bj-tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%;
  color: var(--bj-nav); text-decoration: none; font-size: 11px; line-height: 1.1;
}
.bj-tabbar svg { width: 22px; height: 22px; }
.bj-tabbar a[aria-current="page"] { color: var(--bj-violet); font-weight: 700; }
.bj-tabbar__app span:first-child {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -24px;
  border-radius: 50%; background: var(--bj-violet); color: #fff; border: 3px solid var(--bj-light);
}
.bj-tabbar__app span:first-child svg { width: 22px; height: 22px; }
@media (min-width: 1024px) { .bj-tabbar { display: none; } }

/* Футер */
.bj-footer { background: var(--bj-top); margin-top: var(--bj-gap); padding: 32px 0 24px; font-size: 14px; }
.bj-footer__cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .bj-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .bj-footer__cols { grid-template-columns: repeat(3, 1fr) 1.3fr; } }
.bj-footer__title { margin: 0 0 10px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--bj-text); }
.bj-footer__links { margin: 0; padding: 0; list-style: none; }
.bj-footer__links li + li { margin-top: 6px; }
.bj-footer__apps { display: flex; gap: 8px; margin-top: 12px; }
.bj-footer__apps .bj-btn { min-height: 36px; flex: 1 1 0; }
.bj-footer__apps svg { width: 16px; height: 16px; }
.bj-footer__reg { margin-top: 8px; width: 100%; min-height: 36px; text-transform: uppercase; }
.bj-footer__legalnav { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--bj-line); }
.bj-footer__legalnav p { margin: 0; line-height: 1.9; }
.bj-footer__legal { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; font-size: 13px; color: var(--bj-muted); }
.bj-footer__legal p { margin: 0 0 8px; }
.bj-age {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bj-text);
  font-size: 13px; font-weight: 700; color: var(--bj-text);
}
.bj-footer__copy { margin: 14px 0 0; color: var(--bj-muted); font-size: 13px; }
