/* Mobile only. Photo stays sharp. ClearLink fade at the bottom. Lang+TG on the right. */

@media (min-width: 901px) {
  .ql-hero-blur,
  .ql-hero-veil { display: none !important; }
}

@media (max-width: 900px) {
  html body .menu-toggle,
  html body .menu-toggle--light,
  html body #main-nav,
  html body .main-nav {
    display: none !important;
  }

  html body .site-header.site-header--over-hero {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 20 !important;
    background: none !important;
  }

  html body .site-header .header-inner {
    display: block !important;
    position: relative !important;
    min-height: 56px !important;
    padding: 12px 16px !important;
  }

  html body .site-header .brand,
  html body .site-header a.brand {
    position: absolute !important;
    left: 16px !important;
    top: 12px !important;
    display: inline-flex !important;
    margin: 0 !important;
  }

  html body .site-header .header-actions {
    position: absolute !important;
    right: 16px !important;
    top: 12px !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  html body .site-header .lang,
  html body .site-header .header-tg-btn {
    display: inline-flex !important;
  }

  html body #home.hero {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden !important;
    background: #0a1628 !important;
  }

  html body #home.hero picture,
  html body #home.hero .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 62% 14% !important;
    filter: none !important;
    opacity: 1 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    z-index: 0 !important;
  }

  /* Same overlay as ClearLink — not a blurred photo */
  html body #home.hero::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    height: auto !important;
    z-index: 1 !important;
    pointer-events: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.34) 34%, rgba(0, 0, 0, 0.08) 56%, transparent 72%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, transparent 46%, rgba(0, 0, 0, 0.26) 100%) !important;
  }

  html body #home.hero::before {
    display: none !important;
    content: none !important;
  }

  .ql-hero-blur,
  .ql-hero-veil { display: none !important; }

  /* Only the last strip of the photo is softened — the transition under the text */
  .ql-hero-fade {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 28% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  .ql-hero-fade img {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 360% !important;
    object-fit: cover !important;
    object-position: 62% 14% !important;
    filter: blur(16px) !important;
    transform: scale(1.06) !important;
  }

  html body #home.hero .hero-inner {
    position: absolute !important;
    inset: auto 0 0 !important;
    z-index: 3 !important;
    padding: 24px 20px 28px !important;
    transform: none !important;
  }

  html body #home.hero .hero-copy {
    max-width: 440px !important;
    width: auto !important;
    transform: none !important;
    text-align: left !important;
    display: block !important;
    align-items: flex-start !important;
  }

  html body #home.hero .hero-title {
    font-size: clamp(36px, 10vw, 48px) !important;
    line-height: 0.96 !important;
    text-align: left !important;
  }

  html body #home.hero .hero-cta-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    margin-top: 22px !important;
    width: min(100%, 360px) !important;
  }

  html body #home.hero .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  html body #home.hero .hero-actions .button {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 999px !important;
  }

  html body #home.hero .hero-payment-logos,
  html body #home.hero .hero-payment-logos.cn-pay-strip {
    margin-top: 18px !important;
    justify-content: flex-start !important;
  }
}
