/* v223: compact mobile spacing on every page. Loaded last; mobile only. */
@media (max-width:800px){
  /* Bottom of the page: the body already leaves room for the bottom menu,
     so pages no longer add another 130-160px of empty space under it. */
  body .account-shell{padding-bottom:20px}
  body .billing-shell{margin-bottom:20px}
  body .service-shell{margin-bottom:20px}
  body .service-links{margin:18px auto 0;padding-bottom:0;gap:12px 16px}
  body .site-footer{padding-top:24px;padding-bottom:20px;gap:16px}

  /* Home sections. */
  body .hero{padding-top:24px;padding-bottom:34px}
  body .section{padding-top:30px;padding-bottom:30px}
  body .section.wrap{row-gap:18px}
  body .moments{margin-top:0;margin-bottom:0}
  body .eyebrow{margin-bottom:12px}
  body .animated-headline{margin-bottom:18px}
  body .hero-actions{margin-top:22px}
  body .section-head{margin-bottom:18px}
  body .steps{gap:12px}
  body .section article:not([class]){padding-top:18px;padding-bottom:18px}
  body .section-note{margin-top:14px;padding-top:12px;padding-bottom:12px}
  body .section .intro{margin-top:14px}
  body .charts-empty{padding-top:20px;padding-bottom:20px}
  body .charts-status{margin-bottom:14px}
  body .faq summary{padding-top:14px;padding-bottom:14px}
  body .faq details p{margin-bottom:14px}
  body #about{margin-top:12px;margin-bottom:20px;padding-top:20px;padding-bottom:20px}
  body .about-grid{gap:16px}

  /* Song creation. */
  body .create-panel{padding-top:20px;padding-bottom:20px;gap:22px}
  body .create-panel>div>p:not(.eyebrow){margin-top:14px;margin-bottom:14px}
  body .song-progress{margin-bottom:18px}
  body .song-step h3{margin-bottom:6px}
  body .step-help{margin-bottom:14px}
  body .song-step>input,body .song-step>textarea,body .song-step>div:not(.form-row):not(.generation-preview){margin-bottom:12px}
  body .song-step label{margin-top:8px}
  body .wizard-actions{margin-top:18px}
  /* Step 4: the value sits next to its label ("Рассказчик — Как указано в истории"). */
  body .song-summary{grid-template-columns:minmax(92px,36%) minmax(0,1fr);gap:8px 12px;margin-bottom:16px;align-items:baseline}
  body .song-summary dd{margin-bottom:0}
  body .song-summary .review-lyrics-card{margin-top:6px}
  body #review-back{margin:0 0 16px}
  body .generation-preview{padding:16px}
  body .generation-preview h4{margin:12px 0 6px}
  body .generation-actions{margin-top:16px;margin-bottom:12px}

  /* Payment. */
  body .billing-shell{margin-top:16px}
  body .billing-heading{margin-bottom:20px}
  body .billing-heading h1{margin-top:8px;margin-bottom:14px}
  body .purchase-guide{margin-top:16px;margin-bottom:16px}
  body .billing-sign-in{margin-top:16px;margin-bottom:16px}
  body .service-card{margin-bottom:16px}

  /* Sign-in / registration. */
  body .auth-tabs{margin-bottom:18px}
  body .social-auth{margin-top:16px}
  body .auth-divider{margin-top:16px}
  body .auth-submit{margin-top:18px}
  body .auth-links{margin-top:14px}
  body .auth-note{margin-top:16px;margin-bottom:12px}

  /* Support, privacy, terms and other text pages. */
  body .service-heading{margin-bottom:20px}
  body .service-heading h1,body .account-title h1{margin-bottom:14px}
  body .account-title{margin-bottom:18px}
  body .privacy-copy h2{margin-top:22px}
}
