/* تحسينات واجهة الجوال - لا تؤثر على سطح المكتب */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  body {
    overflow-x: hidden;
  }

  .page-shell,
  main,
  .section-card,
  .hero,
  .hero-modern {
    width: min(100%, 100vw);
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-shell {
    padding-inline: 10px;
  }

  .topbar,
  header.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
  }

  .yl-header-shortcuts {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .yl-header-link {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    white-space: nowrap;
    padding: 8px 12px;
  }

  .nav-toggle,
  .yl-header-menu-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .main-nav {
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav a,
  .contact-link,
  .seo-internal-link,
  .claim-link,
  .case-title-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero h1,
  .section-head h2,
  .case-card h2 {
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .posts-grid,
  .contact-grid,
  .seo-internal-links-grid {
    grid-template-columns: 1fr !important;
  }

  .case-card,
  .post-card,
  .service-card,
  .section-card {
    border-radius: 16px;
    padding: 14px;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  .yl-floating-share-wrap {
    inset-inline: auto 10px;
    bottom: 12px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 8px;
  }

  .hero h1 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .section-card {
    padding: 12px;
  }
}
