/**
 * Landing page mobile content polish (Android-style spacing)
 */
@media (max-width: 992px) {
  :root {
    --ln-top: 56px;
    --ln-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ln-safe-top: env(safe-area-inset-top, 0px);
  }

  .hero-section {
    padding-top: calc(var(--ln-top) + var(--ln-safe-top) + 24px) !important;
    padding-bottom: 32px !important;
    min-height: auto !important;
  }

  .hero-section > .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero-content {
    text-align: center !important;
    margin-bottom: 24px !important;
  }

  .hero-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    text-wrap: balance;
  }

  .hero-title .hero-title-rest {
    display: inline;
  }

  .hero-subtitle {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    text-wrap: balance;
    max-width: 22em;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .btn-hero {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
  }

  .section-title {
    margin-bottom: 24px !important;
    padding: 0 4px;
  }

  .section-title h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }

  .section-title p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  #features,
  #services,
  #about,
  .features-section,
  .services-section,
  .about-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .feature-card,
  .service-card {
    margin-bottom: 14px !important;
    border-radius: 14px !important;
    padding: 20px 16px !important;
  }

  .feature-card h3,
  .service-card h3 {
    font-size: 17px !important;
  }

  .feature-card p,
  .service-card p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  /* Officials / captains blocks */
  .hero-section--subpage {
    padding-top: calc(var(--ln-top) + var(--ln-safe-top) + 28px) !important;
    padding-bottom: 28px !important;
  }

  .hero-section--subpage .hero-title {
    font-size: 24px !important;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-section--subpage .hero-subtitle {
    font-size: 14px !important;
    margin-top: 10px !important;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }

  .captains-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .captain-card {
    min-height: 220px !important;
    padding: 20px 14px 18px !important;
  }

  .captain-card h3 {
    font-size: 14px !important;
    min-height: 36px !important;
  }

  footer,
  .footer-section {
    padding-bottom: calc(24px + var(--ln-safe-bottom)) !important;
  }
}

@media (max-width: 480px) {
  .captains-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 22px !important;
  }

  .hero-section {
    padding-top: calc(var(--ln-top) + var(--ln-safe-top) + 20px) !important;
  }
}
