/* Dv228 — mobile layout only. Dv227 backgrounds deliberately untouched. */
@media (max-width:900px) {
  html,body {max-width:100%; overflow-x:clip;}
  html body #r-header{position:relative!important;z-index:1000!important;padding:10px 12px!important;}
  html body #r-header .nav-shell{width:100%!important;box-sizing:border-box!important;display:flex!important;min-height:62px!important;height:auto!important;padding:10px 14px!important;gap:10px!important;align-items:center!important;position:relative!important;border-radius:14px!important;flex-wrap:nowrap!important;}
  html body #r-header .brand{flex:0 1 auto!important;min-width:0!important;font-size:18px!important;white-space:nowrap!important;}
  html body #r-header .r-mark{width:32px!important;height:32px!important;}
  html body #r-header .lang{margin-left:auto!important;display:flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important;}
  html body #r-header .lang button{min-width:28px!important;min-height:38px!important;}
  html body #r-header .menu-btn{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;flex-direction:column!important;gap:5px!important;padding:8px!important;margin:0!important;cursor:pointer!important;background:transparent!important;border:0!important;position:relative!important;z-index:1004!important;}
  html body #r-header .menu-btn i{display:block!important;width:23px!important;height:2px!important;margin:0!important;background:#fff!important;position:static!important;}
  html body #r-header .main-nav{display:none!important;position:absolute!important;left:0!important;right:0!important;top:calc(100% + 8px)!important;width:100%!important;box-sizing:border-box!important;transform:none!important;margin:0!important;padding:8px!important;background:rgba(24,28,32,.94)!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:14px!important;box-shadow:0 18px 40px rgba(0,0,0,.35)!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;z-index:1003!important;}
  html body #r-header .main-nav.open{display:flex!important;}
  html body #r-header .main-nav a{display:block!important;width:100%!important;box-sizing:border-box!important;font-size:15px!important;line-height:1.3!important;text-align:left!important;padding:14px 12px!important;white-space:normal!important;text-decoration:none!important;}
  html body.home-page #r-main .r-hero{width:100%!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:32px 20px 0!important;gap:22px!important;}
  html body.home-page #r-main .r-hero-copy{min-width:0!important;}
  html body.home-page #r-main .r-hero h1{font-size:clamp(44px,12vw,66px)!important;line-height:1.05!important;}
  html body.home-page #r-main .r-hero-ship{min-width:0!important;min-height:0!important;padding:14px!important;}
  html body.home-page #r-main .r-hero-ship img{width:100%!important;height:auto!important;max-height:280px!important;object-fit:contain!important;}
  html body.home-page #r-main .r-hero-foot{grid-column:1!important;min-width:0!important;}
  html body.home-page #r-main .r-selected{box-sizing:border-box!important;width:100%!important;padding:42px 20px!important;}
  html body.home-page #r-main .r-section-title{display:flex!important;flex-wrap:wrap!important;align-items:start!important;gap:12px!important;}
  html body.home-page #r-main .r-projects{grid-template-columns:minmax(0,1fr)!important;gap:26px!important;}
  html body.home-page #r-main .r-project{min-width:0!important;}
  html body.home-page #r-main .r-project-image{height:clamp(200px,57vw,310px)!important;}
  html body.home-page #r-main .r-archive-row{grid-template-columns:minmax(0,1fr) auto 22px!important;gap:10px!important;}
  html body.home-page #r-main .r-archive-row > span:nth-child(3){display:none!important;}
  html body.home-page #r-main .r-shop-banner-section{max-width:none!important;margin:0 16px 30px!important;padding:0!important;}
  html body.home-page #r-main .r-shop-banner-link,html body.home-page #r-main .r-shop-banner{width:100%!important;height:auto!important;max-width:100%!important;}
  html body.projects-page #r-main .container,html body.project-page #r-main .container{width:calc(100% - 36px)!important;max-width:100%!important;box-sizing:border-box!important;}
  html body.projects-page #r-main .page-hero,html body.project-page #r-main .page-hero{padding:38px 0 26px!important;}
  html body.projects-page #r-main .project-tools{margin-bottom:20px!important;}
  html body.projects-page #r-main .project-tools-top{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:end!important;}
  html body.projects-page #r-main .project-search{flex:1 1 200px!important;min-width:0!important;}
  html body.projects-page #r-main .project-search input{max-width:100%!important;width:100%!important;box-sizing:border-box!important;}
  html body.projects-page #r-main .filter-toggle{flex:0 0 auto!important;}
  html body.projects-page #r-main .project-grid,html body.project-page #r-main .gallery-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;}
  html body.projects-page #r-main .project-card,html body.project-page #r-main .gallery-card{min-width:0!important;}
  html body.projects-page #r-main .project-card .thumb{height:clamp(220px,65vw,390px)!important;}
  html body.project-page #r-main .gallery-image{height:clamp(230px,70vw,470px)!important;}
  html body.project-page #r-main .gallery-image img{max-width:100%!important;max-height:100%!important;object-fit:contain!important;}
  html body #shared-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px 20px!important;}
  html body #shared-footer .footer-brand{grid-column:1/-1!important;}
}
@media(max-width:520px){
  html body #r-header .nav-shell{padding:8px 10px!important;}
  html body.projects-page #r-main .project-tools-top{flex-direction:column!important;align-items:stretch!important;}
  html body.projects-page #r-main .project-search,html body.projects-page #r-main .filter-toggle{width:100%!important;flex:auto!important;}
  html body #shared-footer .footer-grid{grid-template-columns:minmax(0,1fr)!important;gap:25px!important;}
  html body #shared-footer .footer-brand{grid-column:auto!important;}
}
