/* ═══════════════════════════════════════════════════════
   PUBLIC-MAP — Mobile performance and universal phone layout
   Keeps phones smooth by removing decorative motion and overflow.
   ═══════════════════════════════════════════════════════ */

@media (max-width: 900px), (hover: none), (pointer: coarse) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    touch-action: pan-y;
  }

  #cur,
  #cur2,
  .spark,
  .mouse-trail,
  .burst-3d,
  #bg-particles,
  .hero-novideo .hero-aurora,
  .hero-novideo .hero-aurora-2,
  .hero-ambient-glow,
  .hero-glow {
    display: none !important;
  }

  .hero-slide {
    inset: 0 !important;
    width: 100% !important;
    transform: none !important;
    animation: none !important;
    will-change: auto !important;
  }

  .hero-slide-1 {
    opacity: .92 !important;
  }

  .hero-slide-2,
  .hero-slide-3 {
    display: none !important;
    opacity: 0 !important;
  }

  .hero-novideo .hero-grid-overlay {
    opacity: .45 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  nav {
    height: 62px !important;
    padding: 0 16px !important;
  }

  .nav-brand {
    font-size: clamp(18px, 5.6vw, 22px) !important;
    letter-spacing: .08em !important;
    line-height: 1 !important;
  }

  .nav-toggle {
    width: 46px !important;
    height: 46px !important;
    padding: 11px !important;
    border-radius: 14px !important;
    animation: none !important;
    transform: none !important;
    box-shadow: 0 6px 18px rgba(27, 91, 255, .28), inset 0 1px 0 rgba(255,255,255,.1) !important;
  }

  .nav-toggle::before {
    display: none !important;
  }

  .nav-toggle-bar {
    width: 21px !important;
    height: 2px !important;
    box-shadow: none !important;
  }

  #lang-toggle {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 4px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero {
    min-height: 100svh !important;
    height: auto !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .hero-content {
    min-height: 100svh !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 82px clamp(16px, 5vw, 28px) 34px !important;
    align-content: center !important;
    gap: 18px !important;
    transform: none !important;
  }

  .hero-pre,
  .hero-h1,
  .hero-h1-premium,
  .hero-sub,
  .hero-btns,
  .hero-trust,
  .hero-kpis {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .hero-pre {
    width: fit-content !important;
    max-width: 100% !important;
    padding: 8px 12px !important;
    margin: 0 0 16px !important;
    border-radius: 999px !important;
    white-space: normal !important;
    font-size: clamp(10px, 2.65vw, 12px) !important;
    line-height: 1.45 !important;
    letter-spacing: .12em !important;
  }

  .hero-pre img {
    width: 22px !important;
    height: 15px !important;
  }

  .hero-h1-premium {
    margin: 0 0 14px !important;
  }

  .hero-h1-premium .hero-line-1 {
    font-size: clamp(38px, 12vw, 54px) !important;
    line-height: 1.02 !important;
  }

  .hero-h1-premium .hero-line-2 {
    font-size: clamp(46px, 15vw, 68px) !important;
    line-height: .98 !important;
    margin-top: 2px !important;
  }

  .hero-sub {
    max-width: 100% !important;
    margin: 0 0 22px !important;
    font-size: clamp(14px, 3.65vw, 17px) !important;
    line-height: 1.7 !important;
  }

  .hero-btns {
    width: 100% !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .hero-btns .btn-red,
  .hero-btns .btn-ghost {
    width: 100% !important;
    min-height: 54px !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: clamp(14px, 3.8vw, 17px) !important;
  }

  .hero-trust {
    width: 100% !important;
    margin-top: 18px !important;
    gap: 12px 18px !important;
  }

  .hero-trust-item {
    font-size: clamp(13px, 3.5vw, 16px) !important;
    line-height: 1.25 !important;
  }

  .hero-trust-item .ht-svg {
    width: 22px !important;
    height: 22px !important;
  }

  .hero-kpis {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 26px !important;
  }

  .kpi {
    min-width: 0 !important;
  }

  .kpi-n {
    font-size: clamp(30px, 9vw, 44px) !important;
    line-height: 1 !important;
  }

  .kpi-l {
    font-size: clamp(9px, 2.4vw, 12px) !important;
    letter-spacing: .12em !important;
  }

  .rv,
  .rv-l,
  .rv-r,
  .tilt-3d,
  .depth-3d,
  .srv-card,
  .g-price-card,
  .rev-card,
  .cred-glass,
  .stripe-wrap,
  .review-card-3d,
  .g-feat-card,
  .cert-card,
  .anim,
  .anim.in,
  .stagger > *,
  .stagger.in > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .seo-grid,
  .seo-explain,
  .g-hero-grid,
  .g-hero-wrap,
  .g-feat-grid,
  .g-price-grid,
  .srv-grid,
  .rev-grid,
  .certs-grid,
  .cert-badges-grid,
  .contact-grid,
  .maps-features {
    max-width: 100% !important;
  }

  .cert-marquee,
  .cert-accred-card,
  .hero-novideo,
  .hero-slideshow,
  .maps-sec,
  .google-sec,
  .seo-sec,
  .services-panel,
  .reviews-sec,
  .cred-sec,
  .faq-sec,
  .pay-sec,
  .nl-sec,
  footer {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    contain: paint;
  }

  .cert-marquee-track {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 380px) {
  nav {
    height: 58px !important;
    padding: 0 14px !important;
  }

  .nav-brand {
    font-size: 17px !important;
  }

  .nav-toggle {
    width: 42px !important;
    height: 42px !important;
    padding: 10px !important;
  }

  .hero-content {
    padding: 74px 16px 30px !important;
    gap: 14px !important;
  }

  .hero-pre {
    font-size: 9.5px !important;
    letter-spacing: .09em !important;
  }

  .hero-h1-premium .hero-line-1 {
    font-size: clamp(34px, 11.4vw, 42px) !important;
  }

  .hero-h1-premium .hero-line-2 {
    font-size: clamp(42px, 14vw, 54px) !important;
  }

  .hero-sub {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  .hero-btns .btn-red,
  .hero-btns .btn-ghost {
    min-height: 50px !important;
    font-size: 14px !important;
  }

  .hero-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Compact mobile journey: keep the commercial content, remove long secondary reading. */
@media (max-width: 768px) {
  .g-process,
  .seo-sec,
  .maps-sec {
    display: none !important;
  }

  .g-features,
  .g-pricing,
  .services-panel-inner,
  #avis,
  #certifications,
  .cred-sec,
  .pay-sec,
  .nl-sec {
    padding-top: 40px !important;
    padding-bottom: 44px !important;
  }

  .g-feat-grid,
  .g-price-grid,
  .srv-grid,
  .rev-grid,
  .cert-badges-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 16px !important;
    margin-left: -4px;
    margin-right: -4px;
  }

  .g-feat-grid::-webkit-scrollbar,
  .g-price-grid::-webkit-scrollbar,
  .srv-grid::-webkit-scrollbar,
  .rev-grid::-webkit-scrollbar,
  .cert-badges-grid::-webkit-scrollbar {
    display: none;
  }

  .g-feat-card,
  .g-price-card,
  .srv-card,
  .rev-card,
  .cert-badges-grid > div {
    flex: 0 0 min(84vw, 340px) !important;
    width: min(84vw, 340px) !important;
    max-width: min(84vw, 340px) !important;
    scroll-snap-align: start;
  }

  .srv-card,
  .rev-card,
  .g-feat-card {
    min-height: 0 !important;
    height: auto !important;
  }

  .srv-card {
    padding: 24px !important;
  }

  .rev-card {
    padding: 22px !important;
  }

  #certifications .cert-badges-grid {
    margin-bottom: 28px !important;
  }

  #certifications .cert-badges-grid svg {
    width: 150px !important;
    height: 150px !important;
  }

  #certifications .cert-badges-grid > div {
    gap: 12px !important;
  }

  .cert-static-grid {
    display: none !important;
  }
}
