/* Phone layout for the same pages. Desktop rules stay; this only applies on a narrow screen. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Явно разрешить вставку/копирование в поля на телефоне */
input,textarea,.field input,.field textarea,#modalContent input,#modalContent textarea{
  -webkit-user-select:text!important;
  user-select:text!important;
  -webkit-touch-callout:default!important;
}
@media(max-width:900px){
html,body{overflow-x:hidden}
body{font-size:16px;line-height:1.5}
.shell,main.shell{padding-left:16px;padding-right:16px;max-width:100%}
.header-v063,.header-inner{height:auto;min-height:64px}
.header-inner{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0}
.brand-v063{font-size:20px!important;letter-spacing:-.4px}
.logo-image{width:36px!important;height:36px!important}
.main-nav{display:none}
.nav-toggle{display:none!important}
.header-actions{display:flex;flex:1 1 100%;gap:8px;width:100%;margin:6px 0 0;align-items:center;justify-content:center}
.header-actions .btn,.header-actions .btn-small{flex:0 0 auto;min-height:40px;padding:8px 12px!important;font-size:14px!important;border-radius:999px}
.auth-pill{display:inline-flex;width:min(100%,340px)}
.auth-pill__login,.auth-pill__signup{flex:1 1 0}
.cta-pill{display:inline-flex;width:min(100%,360px);margin:0 auto}
.cta-pill__need,.cta-pill__help{flex:1 1 0;min-height:48px;font-size:15px!important;padding:12px 14px!important;border-radius:0!important;box-shadow:none!important}
.hero.hero-v063,.hero.hero-v062{display:flex!important;flex-direction:column;gap:16px;min-height:0;padding:12px 0 28px}
.hero.hero-v063 .hero-photo-stage,.home-hero .home-visual{order:-1}
.hero-v063 h1,.hero-v062 h1{font-size:clamp(28px,8vw,36px)!important;line-height:1.15;letter-spacing:-1px}
.hero-v063 .hero-copy>p,.hero-v063 .hero-copy p{font-size:16px!important;line-height:1.55;max-width:none}
.hero-v063 .hero-copy>p br.desktop-only{display:none}
.hero-v063 .hero-dual-actions.cta-pill,.home-ctas.cta-pill{flex-direction:row!important;width:min(100%,360px)!important;gap:0!important;margin-left:auto;margin-right:auto}
.hero-v063 .hero-dual-actions .cta-pill__need,.hero-v063 .hero-dual-actions .cta-pill__help{flex:1 1 0!important;width:auto!important;min-height:48px}
.hero-v063 .hero-photo-stage{margin-left:-16px;margin-right:-16px;width:calc(100% + 32px);height:auto!important;min-height:0!important;aspect-ratio:2.27;background:#e8eee7}
.hero-v063 .hero-photo{width:100%;height:auto;object-fit:contain!important;object-position:center center!important}
.feature-strip{display:grid;grid-template-columns:1fr;gap:0}
.feature-item{padding:14px 0;gap:14px}
.feature-item strong{font-size:17px}
.feature-item small{font-size:14px}
.catalog-grid{grid-template-columns:1fr!important;gap:14px}
.catalog-tile strong{font-size:18px}
.catalog-tile small{font-size:14px}
.catalog-lead h2,.section-head h2,.how h2{font-size:26px!important}
.catalog-search input,.field input,.field select,.field textarea,input,select,textarea{font-size:16px!important;min-height:48px}
input[type=checkbox],input[type=radio]{min-height:16px!important;width:16px!important;height:16px!important;min-width:16px}
.field textarea{min-height:96px}
.chip,.btn{min-height:44px}
#requests{padding-top:8px}
#requests .section-head{display:block;margin:0 0 12px!important}
#requests .section-head h2{font-size:24px!important;line-height:1.25;max-width:100%}
#requests .filters{display:flex;flex-wrap:wrap;justify-content:flex-start!important;margin:0 0 14px!important;padding:0;min-height:0;gap:8px}
#requests .filters .chip,#requests .filters .extra-cat{font-size:14px;min-height:40px}
#requests .scope-tools,#requests .match-tools{flex-wrap:wrap;font-size:14px!important}
#requests .scope-tools select{font-size:15px!important;min-height:44px;max-width:100%}
#requests .tasks{grid-template-columns:1fr!important;gap:14px}
.tasks{grid-template-columns:1fr!important}
.task h3{font-size:18px}
.steps{grid-template-columns:1fr!important}
.modal-backdrop{padding:0;align-items:stretch}
.modal-backdrop .modal,.modal{width:100%!important;max-width:100%!important;max-height:100vh;min-height:100%;border-radius:0;padding:18px 16px 28px}
.modal h2,#modalTitle{font-size:22px!important}
.close{width:44px;height:44px;font-size:22px}
.role-options{grid-template-columns:1fr!important}
.dash-grid,.dash-stats{grid-template-columns:1fr!important}
.dash-controls{display:flex;flex-direction:column;gap:8px}
.dash-controls .btn{width:100%;min-height:44px;white-space:normal}
.footer-row{flex-direction:column;align-items:flex-start;gap:10px;font-size:16px}
.toast{left:12px!important;right:12px!important;transform:none!important;width:auto!important;font-size:16px;bottom:max(12px, env(safe-area-inset-bottom, 0px))!important;top:auto!important}
.hint,.geo-note,.geo-result,.panel-subtitle,.notice,.about-v063,.link,.mode-chip,.mode-line,
.med-feature p,.med-privacy,.med-warning,.med-demo,.med-result p,.med-cat-callout p,
.med-steps span,.ai-welcome p,.ai-msg,.ai-banner,.ai-examples button,.ai-choices button,
.mission-text,.honor-card p,.honor-card .hint,.catalog-search-label,.scope-tools label,
.float-card strong,.float-card small,footer,.chip,.role-option,.btn-small,.mode-select label
{font-size:16px!important;line-height:1.55!important}
.med-warning strong,.ai-msg .ai-author,.ai-badge{font-size:15px!important}
.section-head p,.how-intro,.catalog-lead p{font-size:16px!important;line-height:1.55!important}
.task p,.task-foot,.price{font-size:16px!important}
.modal p,.soft-panel p,.safety-note,.server-notice{font-size:16px!important;line-height:1.55!important}
#helperFeedCta .helper-feed-actions{flex-direction:column;align-items:stretch;gap:8px}
#helperFeedCta .btn-primary,#helperFeedCta .btn-light{width:100%;min-height:48px}
#modalContent{overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 80px)}
#cabinetNav{flex-direction:row;flex-wrap:wrap}
#cabinetNav .btn{width:auto;flex:1 1 calc(50% - 8px)}
.feed-search{flex-direction:column;align-items:stretch}
.feed-search input,.feed-search .btn{width:100%}
.chat-history{max-height:40vh;overflow-y:auto}
.task-more>summary{min-height:44px}
}
@media(max-width:360px){
.brand-v063{font-size:18px!important}
.header-actions .btn{font-size:16px!important;padding:10px 8px!important}
.hero-v063 h1{font-size:26px!important}
}
#helperFeedCta .btn-primary{min-height:48px}
