/* Mobile responsive overrides */
@media (max-width: 900px) {
  html, body {
    height: auto !important;
    overflow-y: auto !important;
  }
  .wrapper {
    padding: 0 16px;
    max-width: 100%;
  }
  .header {
    padding: 12px 0;
    height: auto;
  }
  .header .wrapper {
    align-items: center;
    justify-content: space-between;
  }
  .header-logo {
    max-height: 48px !important;
    height: auto !important;
    display: block;
  }
  /* override inline wide button */
  #buttonAuthHeader, .header-buttons .button {
    min-width: unset !important;
    width: auto !important;
    height: 48px !important;
    font-size: 14px !important;
    padding: 0 12px !important;
  }
  .header-buttons { gap: 8px; }

  /* make main layout stack vertically */
  .section-main__row {
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 40px !important;
  }
  .section-main__data.plug {
    margin-left: 0 !important;
    align-items: center !important;
    text-align: center !important;
  }
  .section-main__dataTitle {
    font-size: 28px !important;
    line-height: 34px !important;
  }
  .section-main__dataText {
    font-size: 16px !important;
    line-height: 22px !important;
  }

  /* hide large decorative/parallax elements on small screens */
  .section-main__player, .mouse-parallax-bullets, .mouse-parallax-bullets1 {
    display: none !important;
  }

  .social { justify-content: center; margin-top: 12px; }
  .social-item { width: 44px; height: 44px; margin-right: 12px; }

  /* make buttons touch-friendly and full width inside blocks */
  .button {
    min-width: unset !important;
    width: 100% !important;
    height: 48px !important;
    font-size: 15px !important;
  }
  .plug-download__buttons { display: flex; flex-direction: column; gap: 10px; }

  .decor { height: auto !important; position: relative !important; padding-top: 40px; }

  /* modals and inputs fit mobile */
  .modal .modal-content {
    max-width: 95% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px !important;
  }
  .main-input, input, textarea { width: 100% !important; }
}

@media (max-width: 480px) {
  .header-logo { max-height: 40px !important; }
  .section-main__dataTitle { font-size: 22px !important; line-height: 28px !important; }
  #buttonAuthHeader, .header-buttons .button { height: 44px !important; font-size: 14px !important; }
  .button { height: 44px !important; font-size: 14px !important; }
  .social-item { width: 40px; height: 40px; margin-right: 10px; }
}

/* Utility: ensure images never overflow their containers */
img, .section-main__player img { max-width: 100%; height: auto; }
