@media (max-width:820px){
  :root{--radius:18px}.container{width:min(calc(100% - 28px),680px)}.desktop-header{display:none}.mobile-header{display:block;position:relative}.desktop-only{display:none!important}.mobile-only{display:block}.site-header{position:sticky;top:0}.mobile-top{position:relative;display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;min-height:72px}.mobile-brand{width:184px;height:49px;padding:7px 10px;border:1px solid rgba(255,255,255,.52);border-radius:13px;background:linear-gradient(145deg,#f4f4f2,#c7c8c6);display:flex;align-items:center}.mobile-brand img{width:100%;height:100%;object-fit:contain}.mobile-menu-panel{position:absolute;top:72px;inset-inline:14px;z-index:140;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:10px}.mobile-menu-panel nav a{display:flex;align-items:center;justify-content:space-between;padding:12px;border-radius:11px;font-weight:750}.mobile-menu-panel nav a:hover{background:var(--bg-soft)}.mobile-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid var(--line);padding-top:10px;margin-top:7px}.mobile-search-panel{position:absolute;top:72px;inset-inline:14px;z-index:145}.mobile-search-panel .search-box{box-shadow:var(--shadow)}.mobile-search-panel .search-results{position:relative;top:8px}
  .install-strip-inner{grid-template-columns:auto 1fr auto;min-height:72px;gap:10px}.install-close{display:none}.install-copy span{display:none}.install-btn{padding:9px 12px;font-size:.82rem}.install-app-icon{width:38px;height:38px}
  .hero-grid{min-height:0;grid-template-columns:1fr;gap:30px;padding:48px 0}.hero-panel{order:0}.hero-visual{min-height:210px;padding:20px;border-radius:24px}.visual-number{font-size:4rem}.hero h1{font-size:clamp(2.7rem,12vw,4.4rem);line-height:.96;letter-spacing:-.055em}.hero-desc{font-size:.98rem}.hero-actions{display:grid;grid-template-columns:1fr}.btn-primary,.btn-secondary{width:100%}.eyebrow{font-size:.68rem;letter-spacing:.15em}.hero::before{width:320px;height:320px;right:-170px;top:-180px}
  .section{padding:46px 0}.section-head{display:block}.view-link{display:inline-block;margin-top:10px}.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tool-card{min-height:145px;padding:14px}.tool-icon{width:42px;height:42px}.tool-card h3{font-size:.92rem}.tool-card p{font-size:.78rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tool-arrow{display:none}.trust-row{grid-template-columns:1fr}.trust-item+.trust-item{border-inline-start:0;border-top:1px solid #343638}.trust-item{padding:20px}
  .content-grid{grid-template-columns:1fr;gap:20px;padding:30px 0 52px}.toc{display:none}.page-hero{padding:38px 0 28px}.page-hero h1{font-size:clamp(2rem,10vw,3.2rem)}.prose h2{font-size:1.35rem}.contact-card{padding:18px}
  .footer-install-inner{display:grid;grid-template-columns:1fr;align-items:start;padding:24px 0}.footer-install .install-btn{width:100%}.footer-main{grid-template-columns:1fr 1fr;gap:30px 18px;padding:40px 0}.footer-brand{grid-column:1/-1}.footer-brand img{width:230px}.footer-bottom-inner{display:block;text-align:center}.tool-shell{padding:32px 0 54px}.tool-heading{grid-template-columns:1fr}.tool-heading .tool-icon{width:58px;height:58px}
}
@media (max-width:430px){.tools-grid{grid-template-columns:1fr}.footer-main{grid-template-columns:1fr}.footer-brand{grid-column:auto}.mobile-brand{width:168px}.install-copy strong{font-size:.88rem}.hero h1{font-size:2.8rem}}

/* v3.1 mobile refinements */
@media (max-width:820px){
  .mobile-header{overflow:visible;background:linear-gradient(135deg,#fbfbfa,#efefed 60%,#e2e2df)}
  html[data-theme="dark"] .mobile-header{background:linear-gradient(135deg,#0e0f10,#191b1d 60%,#24272a)}
  .mobile-top{min-height:76px;grid-template-columns:minmax(0,1fr) 46px 46px;gap:7px}
  .mobile-brand{width:min(218px,100%);height:58px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
  .mobile-brand img{object-position:left center;filter:drop-shadow(0 6px 10px rgba(0,0,0,.12))}
  html[dir="rtl"] .mobile-brand img{object-position:right center}
  .mobile-top .icon-btn{width:44px;height:44px;border-radius:13px}
  .mobile-menu-panel{top:78px;inset-inline:14px;z-index:320;background:rgba(255,255,255,.985);border-color:#cdcecb;box-shadow:0 24px 64px rgba(0,0,0,.2);padding:12px;max-height:calc(100vh - 94px);overflow:auto}
  html[data-theme="dark"] .mobile-menu-panel{background:rgba(27,29,31,.99);border-color:#3b3e41}
  .mobile-menu-panel nav a{min-height:47px;font-weight:800;border-bottom:1px solid color-mix(in srgb,var(--line) 58%,transparent)}
  .mobile-menu-panel nav a:last-child{border-bottom:0}
  .mobile-menu-actions{grid-template-columns:1fr 1fr;gap:9px}
  .mobile-menu-actions .lang-btn{width:100%;min-width:0}
  .mobile-lang-list{display:grid;gap:5px;margin-top:9px;padding-top:9px;border-top:1px solid var(--line)}
  .mobile-lang-list a{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:11px;font-weight:750}
  .mobile-lang-list a:hover{background:var(--bg-soft)}
  .mobile-search-panel{top:78px;z-index:330}
  .mobile-search-panel .search-box{background:rgba(255,255,255,.985)}
  html[data-theme="dark"] .mobile-search-panel .search-box{background:rgba(29,31,33,.99)}
  .footer-install-inner{grid-template-columns:1fr;gap:18px}
  .footer-install-copy{align-items:flex-start}
  .footer-main{grid-template-columns:1fr 1fr;gap:34px 22px;padding:44px 0}
  .footer-brand{grid-column:1/-1}
  .footer-brand img{width:260px}
}
@media (max-width:430px){
  .mobile-brand{width:min(190px,100%)}
  .footer-main{grid-template-columns:1fr}
  .footer-brand{grid-column:auto}
}
