/* Shared mobile corrections, loaded after page-specific styles. */
@media(max-width:1024px){
  .lead-section .lead-fields input,.home-lead-dialog .lead-fields input,.hub-lead .lead-fields input{font-size:16px}
}
@media(max-width:767px){
  .container{width:calc(100% - 32px);max-width:100%}
  .header-inner,.lead-copy,.home-calculation-copy{min-width:0}
  .calculator-grid{grid-template-columns:minmax(0,1fr)}
  .calculator-form,.calculation-result,.form-grid>label{min-width:0}
  .button{white-space:normal;text-align:center;min-height:46px}
  input:not([type=checkbox]),select,textarea,.lead-section .lead-fields input,.home-lead-dialog .lead-fields input,.hub-lead .lead-fields input{font-size:16px;min-height:46px}
  .lead-fields,.hub-lead .lead-fields,.home-lead-dialog .lead-fields{grid-template-columns:minmax(0,1fr);gap:14px}
  .lead-fields>label:first-child,.lead-fields>label:nth-child(2),.hub-lead .lead-fields label:nth-child(2){max-width:100%}
  .lead-fields .button{width:100%}
  .consents label{min-width:0;line-height:1.55}
  .consents label span{min-width:0;overflow-wrap:anywhere}
  .lead-section .consents label{min-height:44px;gap:10px;cursor:pointer}
  .consents input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:2px 0 0;accent-color:var(--gold)}
  .filter-chips button,.reset-filters{min-height:44px;padding:10px 14px}
  .home-lead-dialog .dialog-close{width:44px;height:44px}
  .home-lead-dialog{overscroll-behavior:contain}
  .hub-hero-slogan{transform:none;width:120px;max-width:50%;margin:22px 0 0 auto}
  .hub-quote-complex,.hub-quote-note-art{transform:none}
  .hub-quote-note-art{flex-basis:auto}
  .hub-category-heading h2,.lead-copy h2{overflow-wrap:break-word}
  .home-calculation-copy{transform:none;margin-left:0;padding-left:0}
  .site-footer-grid{min-width:0}
  .site-footer-phone{white-space:normal}
  .table-wrap{max-width:100%;overscroll-behavior-x:contain}
  .menu-toggle{min-width:44px;min-height:44px}
  #navigation{max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:640px){
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions .button{width:100%;min-height:48px}
}
@media(max-width:374px){
  .site-header .brand-logo{width:110px}
  .home-lead-dialog .lead-section{padding:56px 16px 24px}
  .home-lead-dialog .lead-copy h2{font-size:22px}
  .home-advantages-grid{grid-template-columns:minmax(0,1fr)}
  .home-page .stats-inner{grid-template-columns:minmax(0,1fr)}
  .hero h1{font-size:28px;overflow-wrap:break-word}
  .hero h1 br{display:none}
}
