/* mobile.css ? ????????? ? ?????????? ????????? (?? 900px). ?????: ??????? ???? ? ??????. */
html,body{max-width:100%}
img,svg,video,canvas{max-width:100%}
@media(max-width:900px){
  html,body{overflow-x:hidden}
  .shell{padding-inline:14px;max-width:100%;box-sizing:border-box}
  main,section,article,aside,.workspace,.hero,.grid,.footer-grid{min-width:0;max-width:100%}
  h1{font-size:clamp(26px,7.4vw,36px);line-height:1.15;overflow-wrap:anywhere}
  h2{overflow-wrap:anywhere}
  p,li,a,td,th{overflow-wrap:anywhere}
  table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  pre,code{max-width:100%;overflow-x:auto}
  .btn,button,.burger,.nav a,select{min-height:44px}
  input,select,textarea{font-size:16px!important;min-height:44px;max-width:100%;box-sizing:border-box}
  .nav{max-height:calc(100dvh - 64px);overflow-y:auto}
  .nav .lang-menu{margin:8px 0 0;display:block}
  .nav .lang-menu .btn,.nav .lang-menu .odds-btn{width:100%;justify-content:flex-start}
  .nav .lang-menu .odds-pop{position:static;width:100%;margin-top:6px;box-sizing:border-box}
  .hero{grid-template-columns:1fr!important;gap:16px}
  .feature,.side-card{padding:18px 16px;box-sizing:border-box;width:100%}
  .hero-plate{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .cta-row{display:flex;flex-direction:column;gap:10px}
  .cta-row .btn{width:100%}
  .footer{text-align:center}
  .footer-grid{text-align:center;justify-items:center}
  .footer ul{justify-items:center}
  .soc-row{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
  .footer .risk{text-align:left}
  .live-side{width:100%;order:2}
  .ls-book{width:100%;box-sizing:border-box;max-height:70vh;overflow-y:auto}
  .ls-card{box-sizing:border-box}
  .bx-card{width:100%;box-sizing:border-box}
}
@media(max-width:640px){
  /* ?????????? ?????: ??????? + ?????? + ??????, ???? ? ?????? ???? (mobile.js) */
  .top .shell{height:60px!important;flex-wrap:nowrap!important;gap:8px;padding-block:0!important}
  .top .brand{margin-right:auto;gap:8px;min-width:0}
  .top .brand img{width:36px;height:36px}
  .top .brand b,.top .brand .aq-word{font-size:13px;white-space:nowrap}
  .top .top-actions{order:0!important;flex-basis:auto!important;margin-left:0!important;gap:6px;flex:0 0 auto}
  .top .top-actions .btn{padding:8px 12px;font-size:14px;white-space:nowrap}
  .top .top-actions .odds-menu,.top .top-actions .lang-menu{display:none}
  .top .top-actions .user-label{display:none}
  .nav{top:60px}
  /* ???? ??????? ??????: ???????? ???????, ????????? ?????? (??? ????????) */
  body:has(#hotBand:not([hidden])) #tickerBand,body:has(#hotBand:not(.gone)) #tickerBand{display:none}
  .hot-band,.ticker,.coin-bar{max-width:100vw}
  .hot-t{max-width:60vw}
  /* ???????????? ? ??????????? ? ?????? ?????? */
  .eyebrow,.ls-foot,.ls-src,.price-line .pl-sub{display:none}
  .section{padding-block:28px}
  .section-head{display:block}
  .steps,.steps-4,.grid.two,.grid.three,.grid.four{grid-template-columns:1fr!important}
  .hero-plate b{font-size:18px}
  .hero-plate span{font-size:11px}
  .ls-cols{grid-template-columns:1fr 1fr}
  .desk-dialog,.modal,.dialog{max-width:calc(100vw - 20px)}
}

/* --- нижняя панель и размеры иконок (fix: гигантские SVG) --- */
.tabbar{display:none}
.tb-menu[hidden]{display:none!important}
svg:not([width]):not([class*=chart]){max-height:100%}
.soc-btn svg{width:22px;height:22px;flex:0 0 auto}
.bx-sico{width:18px;height:18px}
.bx-refresh svg{width:20px;height:20px}
@media(max-width:768px){
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:900;height:60px;padding:0 4px env(safe-area-inset-bottom);box-sizing:content-box;background:#0b0f14;border-top:1px solid rgba(255,255,255,.1);align-items:stretch;justify-content:space-around;margin:0}
  .tabbar .tb-item{flex:1 1 0;min-width:0;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 2px;background:none;border:0;color:#9aa4b2;font-family:inherit;font-weight:600;font-size:11px;line-height:1.1;text-decoration:none;position:relative;cursor:pointer;overflow:hidden}
  .tabbar .tb-item[aria-current=page]{color:#3ddc97}
  .tabbar .tb-item svg{width:24px;height:24px;max-width:24px;max-height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .tabbar .tb-item span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tabbar .tb-badge{position:absolute;top:2px;right:22%;min-width:16px;height:16px;border-radius:8px;background:#e5484d;color:#fff;font-size:10px;line-height:16px;text-align:center}
  .tabbar .tb-badge[hidden]{display:none}
  body.has-tabbar{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  .tb-menu{position:fixed;right:10px;bottom:calc(70px + env(safe-area-inset-bottom));z-index:901;width:min(280px,calc(100vw - 20px));padding:12px;border-radius:12px;background:#121820;border:1px solid rgba(255,255,255,.12);display:grid;gap:8px}
  /* пустые блоки */
  .ls-card:empty,.live-side:empty,.skeleton:empty,.section:empty,.card:empty,.side-card:empty,[id$=List]:empty,[id$=Box]:empty{display:none}
  .shell>div:empty,main>div:empty{display:none}
}
