/* Compact homepage entry: phones and touch tablets, with desktop and shelves preserved.
   Section links use native page navigation. */
.home-mobile-entry { display: none; }
@media (max-width: 1024px) {
  :is(.catalog-home, .directions-page, .methods-page) .marketplace-public-header .marketplace-primary-nav { display: none; }
  :is(.catalog-home, .directions-page, .methods-page) .marketplace-hero-stack.wb-preserved-hero-stack { padding-bottom: 0; margin-bottom: 24px; }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero.wb-preserved-hero {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    min-height: 390px; gap: 22px; padding: 30px 20px 56px; text-align: center;
    background: linear-gradient(to bottom, #eaf3fa 0%, #eaf3fa 30%, transparent 64%), url("/assets/hero/consultation-blue-20261103.webp") center bottom / min(100%, 720px) auto no-repeat, #eaf3fa;
    border-radius: 24px; overflow: hidden;
  }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero > .wb-preserved-hero-copy { display: block; width: 100%; }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero .wb-preserved-hero-copy > h1 { width: auto; max-width: 480px; margin: 0 auto; font-size: clamp(24px, 6.1vw, 34px); line-height: 1.13; text-align: center; }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero .wb-preserved-hero-copy > p { max-width: 330px; margin: 14px auto 0; font-size: 15px; line-height: 1.4; text-align: center; }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero .wb-preserved-hero-copy > h1,
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero .wb-preserved-hero-copy > p,
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero .marketplace-service-stats strong,
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero .marketplace-service-stats span { color: #153e32; text-shadow: 0 1px 7px #ffffffb0; }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero > .wb-preserved-hero-people { display: none; }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero > .marketplace-service-stats { align-self: center; width: 100%; max-width: 360px; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: center; text-align: center; }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero .marketplace-service-stats strong { font-size: clamp(21px, 5.8vw, 29px); line-height: 1.1; }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero .marketplace-service-stats span { font-size: 12px; line-height: 1.3; }
  :is(.catalog-home, .directions-page, .methods-page) .wb-preserved-hero-stack > .marketplace-search-panel { display: none; }
  .home-mobile-entry { display: block; position: relative; margin: -28px 0 0; }
  .home-mobile-search { display: flex; align-items: center; gap: 6px; min-height: 56px; width: calc(100% - 28px); max-width: 680px; margin: 0 auto; padding: 5px 7px 5px 17px; border: 1px solid #d9e5dc; border-radius: 32px; background: #fff; box-shadow: 0 6px 18px #173e3020; }
  :is(.catalog-home, .directions-page, .methods-page) .home-mobile-search input[type="search"] { appearance: none; -webkit-appearance: none; box-shadow: none; border-radius: 0; min-height: 0; flex: 1; width: 0; min-width: 0; border: 0; background: transparent; padding: 8px 0; color: #193e33; font: inherit; font-size: 16px; outline-offset: 4px; }
  .home-mobile-search input::placeholder { font-size: 14px; color: #64756c; opacity: 1; }
  .home-mobile-search button { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: #d2df8b; }
  .home-mobile-sections { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; max-width: 680px; margin: 22px auto 0; padding: 0; }
  .home-mobile-sections a { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 8px; border: 0; padding: 0; background: none; text-decoration: none; color: #193e33; font: inherit; font-size: clamp(9px, 2.65vw, 12px); font-weight: 600; line-height: 1.25; }
  .home-mobile-sections a > span { display: grid; width: 52px; height: 52px; border-radius: 18px; place-items: center; background: #edf3ed; }
  .home-mobile-sections a[aria-current="page"] > span { background: #dce7ac; }
  .home-mobile-sections a:focus-visible { outline: 2px solid #2e6b5c; outline-offset: 4px; border-radius: 8px; }

}

@media (min-width: 600px) and (max-width: 1024px) {
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero.wb-preserved-hero { min-height: 440px; padding-top: 28px; gap: 20px; }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero .wb-preserved-hero-copy > h1 { max-width: 580px; font-size: 32px; }
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero .wb-preserved-hero-copy > p { max-width: 440px; font-size: 16px; }
  .home-mobile-sections a { font-size: 12px; }
  .home-mobile-sections a > span { width: 58px; height: 58px; }
}

@media (min-width: 721px) and (max-width: 1024px) {
  :is(.catalog-home, .directions-page, .methods-page) .service-stats-hero.wb-preserved-hero {
    background-image: linear-gradient(to bottom, #eaf3fa 0%, #eaf3fa 30%, transparent 64%), linear-gradient(to right, #eaf3fa calc(50% - 360px), transparent calc(50% - 280px), transparent calc(50% + 280px), #eaf3fa calc(50% + 360px)), url("/assets/hero/consultation-blue-20261103.webp");
    background-size: auto, auto, 720px auto;
    background-position: center, center, center bottom;
    background-repeat: no-repeat;
  }
}

@media (max-width: 360px) {
 .home-mobile-search { width: calc(100% - 16px); padding-left: 10px; gap: 4px; }
 .home-mobile-search input::placeholder { font-size: 12px; }
}
@media (max-width: 599px) {
 body:is(.catalog-home,.directions-page,.methods-page) .matching-chat__launcher { max-width: min(280px, calc(100vw - 24px)); padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 599px) {
 body:is(.catalog-home,.directions-page,.methods-page) .matching-chat__launcher { min-height: 48px; }
 body:is(.catalog-home,.directions-page,.methods-page) .matching-chat__launcher > img { width: 32px; height: 32px; }
 body:is(.catalog-home,.directions-page,.methods-page) .matching-chat__launcher strong { font-size: 11px; }
}

/* Mobile search follows the page independently of the hero and native section links. */
@media (max-width:1024px) {
  body:is(.catalog-home,.directions-page,.methods-page) > .marketplace-public-header { display:none; }
  body:is(.directions-page,.methods-page) :is(.directions-index-heading,.methods-index-heading) > a { display:none; }
  body:is(.directions-page,.methods-page) :is(.directions-index,.methods-index) { margin-top:20px; }
  .home-mobile-search-row,.home-mobile-search-row * { box-sizing:border-box; }
  .home-mobile-search-row { display:flex; align-items:center; gap:8px; width:calc(100% - 24px); max-width:740px; margin:0 auto; }
  .home-mobile-search-row .home-mobile-search { flex:1; min-width:0; width:auto; max-width:none; margin:0; }
  .home-mobile-search-row .home-mobile-favorites { position:relative; display:grid; place-items:center; flex:0 0 48px; width:48px; height:48px; border:1px solid #d9e5dc; border-radius:50%; background:#fff; box-shadow:0 6px 18px #173e3020; text-decoration:none; }
  .home-mobile-favorites > img { display:block; width:22px; height:22px; }
  .home-mobile-favorites [data-marketplace-favorite-count] { position:absolute; top:-4px; right:-4px; display:grid; place-items:center; min-width:20px; height:20px; padding:0 4px; border-radius:999px; background:#cbd97a; color:#173f36; font:700 11px/1 Arial,Helvetica,sans-serif; }
  .home-mobile-favorites [data-marketplace-favorite-count][hidden] { display:none; }
  .home-mobile-search-row.is-home-mobile-search-fixed { position:fixed; z-index:180; top:0; left:0; right:0; width:100%; max-width:none; margin:0; padding:8px 12px; background:#f5faf7; box-shadow:0 6px 18px #173e301a; }
  .home-mobile-search-row.is-home-mobile-search-fixed .home-mobile-search,.home-mobile-search-row.is-home-mobile-search-fixed .home-mobile-favorites { box-shadow:none; }
  .home-mobile-favorites:focus-visible { outline:2px solid #2e6b5c; outline-offset:3px; }
}
