:root{--mobile-dock-height:72px;--mobile-page-gap:10px}
.mobile-dock{display:none}
@media(max-width:820px){
  html{scroll-padding-top:76px;scroll-padding-bottom:calc(var(--mobile-dock-height) + 18px);-webkit-text-size-adjust:100%}
  body{overflow-x:hidden;padding-bottom:calc(var(--mobile-dock-height) + env(safe-area-inset-bottom) + 14px)!important}
  body.auth-loading,body.auth-locked{padding-bottom:0!important}
  button,a,input,select,textarea{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  input,select,textarea{font-size:16px!important}
  .page-shell{width:100%!important;max-width:100%!important;padding:10px 10px 24px!important}
  .header-wrap{top:6px!important}
  .topbar,.topbar.scrolled{min-height:58px!important;padding:8px 10px!important;border-radius:18px!important;gap:8px!important}
  .topbar .logo,.logo{font-size:26px!important;line-height:1!important}
  .actions{gap:7px!important}
  .theme-toggle,.icon-btn,.burger{width:42px!important;height:42px!important;min-width:42px!important;border-radius:14px!important}
  .nav-links,.topbar>.login-btn,.actions>.login-btn{display:none!important}
  .burger{display:flex!important}
  .mobile-menu{position:fixed!important;top:72px!important;left:10px!important;right:10px!important;width:auto!important;max-height:calc(100dvh - 166px)!important;overflow:auto!important;padding:10px!important;border-radius:18px!important;z-index:1500!important}
  .mobile-menu a,.mobile-auth-btn{min-height:46px!important;display:flex!important;align-items:center!important;padding:12px 14px!important;font-size:15px!important}
  .mobile-dock{position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:900;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px;border:1px solid rgba(116,139,220,.18);border-radius:22px;background:rgba(255,255,255,.92);box-shadow:0 18px 42px rgba(18,38,89,.20);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  body.dark .mobile-dock{background:rgba(12,18,30,.94);border-color:rgba(255,255,255,.08);box-shadow:0 20px 48px rgba(0,0,0,.40)}
  .mobile-dock a{min-width:0;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:16px;color:var(--muted,#667085)!important;font-size:10px;font-weight:800;text-decoration:none!important;white-space:nowrap}
  .mobile-dock a svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .mobile-dock a.active{color:var(--primary,#2457f5)!important;background:rgba(36,87,245,.10)}
  body.dark .mobile-dock a.active{background:rgba(111,145,255,.15)}
  .asset-modal{padding:0!important;align-items:flex-end!important}
  .asset-modal .modal-card,.modal-card{width:100%!important;max-width:none!important;max-height:88dvh!important;border-radius:24px 24px 0 0!important;border-bottom:0!important}
  .modal-head{padding:14px 14px 10px!important}
  .modal-body{padding:12px!important;overscroll-behavior:contain}
  .modal-close{width:44px!important;height:44px!important}
  .search,.asset-search{min-height:50px!important;border-radius:15px!important}
  .asset-grid{grid-template-columns:1fr!important;gap:8px!important}
  .primary-btn,.secondary-btn,.ghost-btn,.exchange-btn,.contact-action,.channel-btn{min-height:48px!important}
  .fx-tilt:hover{transform:none!important}
  .bitvier-footer{padding:26px 10px 12px!important}
  .bitvier-footer-shell{padding:16px!important;border-radius:22px!important;gap:16px!important}
  .bitvier-footer-right{min-width:0!important;width:100%!important}
  .bitvier-footer-card{padding:14px!important;border-radius:16px!important}
  .bitvier-footer-partners{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .bitvier-partner{width:100%!important;height:48px!important;border-radius:12px!important}

  /* Главная и обменник */
  .swap-wrap{margin-top:12px!important;height:46px!important;align-items:center!important}
  .swap-top{width:46px!important;height:46px!important;border-radius:15px!important;font-size:23px!important}
  .exchange-grid{grid-template-columns:1fr!important;gap:10px!important;margin-top:10px!important}
  .exchange-grid>.card{padding:15px!important;border-radius:20px!important}
  .card-title{font-size:19px!important;margin-bottom:12px!important}
  .amount{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:12px!important;border-radius:17px!important;margin-bottom:10px!important}
  .amount input{min-width:0!important;font-size:29px!important;line-height:1.1!important}
  .currency-picker{min-width:112px!important;min-height:48px!important;padding:8px 10px!important;border-radius:15px!important;gap:7px!important}
  .currency-picker img{width:26px!important;height:26px!important}
  .subtext,.min-note,.info-chip,.aml-text{font-size:12px!important}
  .info-chip{width:100%!important;justify-content:center!important;text-align:center!important}
  .rateBox{padding:12px!important;border-radius:15px!important}
  .wallet-exchange-summary>div{padding:11px 12px!important;align-items:flex-start!important}
  .wallet-exchange-summary strong{max-width:58%;font-size:12px!important}
  .exchange-btn{position:sticky;bottom:calc(var(--mobile-dock-height) + 20px);z-index:40;margin-top:14px!important;padding:15px!important;border-radius:16px!important}
  .section{padding:42px 0 10px!important}
  .section-title{font-size:28px!important;margin-bottom:18px!important}
  .advantages-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .adv-card{padding:14px 10px!important;border-radius:18px!important}
  .adv-card img{width:58px!important;height:58px!important;margin:0 auto 10px!important}
  .adv-number{font-size:23px!important;margin-bottom:5px!important}
  .adv-text{font-size:12px!important;line-height:1.35!important}

  /* Кошелек */
  .wallet-strip{display:flex!important;grid-template-columns:none!important;gap:9px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;padding:2px 1px 8px!important;scrollbar-width:none}
  .wallet-strip::-webkit-scrollbar{display:none}
  .wallet-strip .strip-card{flex:0 0 82vw!important;min-height:112px!important;scroll-snap-align:start;padding:15px!important;border-radius:19px!important}
  .strip-value{font-size:24px!important}
  .portfolio-panel,.panel{padding:14px!important;border-radius:20px!important}
  .portfolio-head,.panel-head{flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  .portfolio-exchange-btn,.panel-actions,.panel-actions>*{width:100%!important}
  .wallet-grid{grid-template-columns:1fr!important;gap:10px!important;margin-top:10px!important}
  .tabs-row{position:sticky!important;top:70px!important;z-index:45!important;display:flex!important;overflow-x:auto!important;gap:5px!important;padding:5px!important;border-radius:16px!important;background:var(--card)!important;box-shadow:0 8px 22px rgba(29,45,87,.10)!important;scrollbar-width:none}
  .tabs-row::-webkit-scrollbar{display:none}
  .tab-btn{flex:1 0 96px!important;min-height:44px!important;padding:9px 10px!important}
  .wallet-body{padding-top:12px!important}
  .hero-card{flex-direction:column!important;align-items:stretch!important;gap:14px!important;padding:15px!important;border-radius:18px!important}
  .hero-balance{text-align:left!important}
  .hero-actions,.actions-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .deposit-grid{grid-template-columns:1fr!important;gap:10px!important}
  .address-card,.qr-card,.send-card{padding:14px!important;border-radius:18px!important}
  .address-value{font-size:13px!important;word-break:break-all!important}
  .networks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .field input,.field select,.input-wrap input{min-height:50px!important}
  .summary{padding:13px!important;border-radius:16px!important}
  .history-list{gap:8px!important}
  .toast-wrap{left:10px!important;right:10px!important;bottom:calc(var(--mobile-dock-height) + 18px)!important;width:auto!important}

  /* FAQ */
  .faq-hero,.contacts-hero{padding:42px 4px 18px!important;text-align:left!important}
  .faq-title,.contacts-title{font-size:34px!important;line-height:1.08!important}
  .faq-subtitle,.contacts-subtitle{font-size:14px!important;line-height:1.6!important}
  .faq-layout{grid-template-columns:1fr!important;gap:10px!important;margin-top:12px!important}
  .faq-side{position:static!important;padding:15px!important;border-radius:19px!important}
  .faq-tags{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:3px!important;scrollbar-width:none}
  .faq-tags::-webkit-scrollbar{display:none}
  .faq-tags span,.faq-tags a{flex:0 0 auto!important;min-height:38px!important;display:inline-flex!important;align-items:center!important}
  .faq-list{gap:8px!important}
  .faq-item{border-radius:18px!important}
  .faq-question{min-height:66px!important;padding:14px 13px!important;align-items:flex-start!important}
  .faq-q-left{gap:10px!important;align-items:flex-start!important}
  .faq-number{width:34px!important;height:34px!important;min-width:34px!important;border-radius:11px!important;font-size:12px!important}
  .faq-q-text{font-size:15px!important;line-height:1.35!important}
  .faq-answer-inner{padding:0 14px 15px 57px!important;font-size:13px!important;line-height:1.65!important}
  .faq-highlight{padding:11px!important;border-radius:13px!important}

  /* Контакты */
  .contacts-grid{grid-template-columns:1fr!important;gap:10px!important;margin-top:12px!important}
  .contact-card,.channel-card{padding:15px!important;border-radius:20px!important}
  .contact-row{grid-template-columns:1fr!important;gap:9px!important;padding:13px!important;border-radius:15px!important}
  .contact-action{width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .channel-wrap{flex-direction:column!important;align-items:stretch!important;gap:13px!important}
  .channel-btn{width:100%!important;justify-content:center!important}

  /* Вход и служебные страницы */
  .login-page-shell{padding:0!important}
  .login-main{min-height:100dvh!important}
  .login-card{min-height:100dvh!important;padding:22px 18px calc(24px + env(safe-area-inset-bottom))!important;border-radius:0!important}
  .login-card h2{font-size:31px!important}
  .auth-tabs{position:sticky;top:8px;z-index:10}
  .auth-field input,.auth-submit{min-height:56px!important;border-radius:15px!important}
  .utility-shell{width:100%!important}
  .utility-card{padding:24px 18px!important;border-radius:22px!important}
  .utility-actions{display:grid!important;grid-template-columns:1fr!important}
}
@media(max-width:420px){
  .advantages-grid{grid-template-columns:1fr!important}
  .wallet-strip .strip-card{flex-basis:88vw!important}
  .mobile-dock{left:6px;right:6px;gap:2px;padding:5px}
  .mobile-dock a{font-size:9px;min-height:52px}
  .amount{grid-template-columns:1fr!important}
  .currency-picker{width:100%!important;justify-content:center!important}
  .faq-answer-inner{padding-left:14px!important}
  .faq-number{display:none!important}
}
