/* Home only. Preserve all content, links and existing carousel behavior. */
@media (max-width:767.98px) {
  .fab-hero.fab-hero {min-width:0;max-width:100%;padding-bottom:0!important;}
  .fab-hero .splide__track,.fab-hero .splide__list {min-width:0;max-width:100%;}
  .fab-hero .fab-hero-slide {min-width:0;height:auto!important;}
  .fab-hero .fab-hero-slide figure {display:flex!important;flex-direction:column;position:relative;margin:0!important;width:100%;min-width:0;height:auto!important;gap:0!important;}
  .fab-hero .fab-hero-slide picture {display:block;position:relative;width:100%;min-width:0;aspect-ratio:16/10;background:#f2efed;}
  .fab-hero .fab-hero-slide picture img {display:block;width:100%!important;height:100%!important;max-width:100%;max-height:none!important;min-height:0!important;object-fit:contain!important;object-position:center;}
  .fab-hero .fab-hero-slide figcaption {position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column;gap:8px;min-width:0;width:100%;max-width:100%!important;height:auto!important;max-height:none!important;box-sizing:border-box;padding:16px!important;background:#343b48!important;color:#fff!important;backdrop-filter:none;overflow-wrap:anywhere;}
  .fab-hero .fab-hero-slide figcaption h2 {font-size:clamp(18px,5.2vw,24px)!important;line-height:1.28;margin:0!important;color:inherit;}
  .fab-hero .fab-hero-slide figcaption p {font-size:15px!important;line-height:1.45;margin:0!important;font-weight:400;color:inherit;}
  .fab-hero .fab-hero-pagination {position:relative!important;inset:auto!important;transform:none!important;display:flex!important;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;padding:4px 0!important;margin:0!important;width:100%;box-sizing:border-box;}
  .fab-hero .fab-hero-pagination li {flex:0 1 38px;min-width:20px;}
  .fab-hero .fab-hero-pagination li button {position:relative;display:block;width:100%!important;height:28px!important;margin:0!important;background:transparent!important;opacity:1!important;clip-path:none!important;transform:none!important;border-radius:0!important;}
  .fab-hero .fab-hero-pagination li button::after {content:"";position:absolute;left:2px;right:2px;top:11px;height:5px;border-radius:3px;background:#d9d4d0;}
  .fab-hero .fab-hero-pagination li button.is-active::after {background:#ed582e;}
  .fab-announce.fab-announce {gap:12px!important;margin:0!important;max-width:100%;align-items:center;}
  .fab-announce h2 {min-width:0;overflow-wrap:anywhere;font-size:clamp(19px,5vw,25px)!important;line-height:1.35;}
  .fab-announce .fab-mark {flex:none;--width:8px!important;--height:52px!important;}
  .fab-grid-banners-type-1 .fab-grid-banners-type-1-wrap {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;min-width:0;max-width:100%;}
  .fab-grid-banners-type-1-wrap .fab-box-banner {position:relative;grid-area:auto!important;min-width:0!important;width:100%!important;min-height:clamp(155px,48vw,220px)!important;max-width:100%;height:auto;box-sizing:border-box;overflow:hidden;border-radius:5px;}
  .fab-grid-banners-type-1-wrap .fab-box-banner-background {position:absolute;inset:0;height:100%;width:100%;background-size:cover;}
  .fab-grid-banners-type-1-wrap .fab-box-banner__shadow {position:relative;inset:auto;padding:32px 10px 12px!important;background:linear-gradient(0deg,rgba(0,0,0,.78),transparent);}
  .fab-grid-banners-type-1-wrap .fab-box-banner h3 {font-size:clamp(14px,4vw,18px)!important;line-height:1.25;margin:0;overflow-wrap:anywhere;}
  .cb-features .cb-features-grid,.fab-steps-works .fab-steps-works-row,.fab-achievements-grid.fab-achievements-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;overflow:visible!important;min-width:0;max-width:100%;}
  .cb-features-grid .fab-feature,.fab-steps-works-row .fab-step-work-item,.fab-achievements-grid .fab-achievement-item {width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;gap:8px!important;overflow-wrap:anywhere;}
  .cb-features-grid .fab-feature {padding:14px!important;border:1px solid #e8e3df;border-radius:8px;}
  .cb-features-grid .fab-feature img.icon {width:48px;height:48px;object-fit:contain;}
  .cb-features-grid .fab-feature h3,.fab-step-work-item h3,.fab-achievement-item h3 {font-size:18px!important;line-height:1.35;margin:0;}
  .cb-features-grid .fab-feature p,.fab-step-work-item p,.fab-achievement-item p {font-size:15px!important;line-height:1.5;margin:0;min-width:0;width:auto!important;overflow-wrap:anywhere;}
  .fab-steps-works-row>svg {display:none!important;}
  .fab-steps-works-row .fab-step-work-item img,.fab-achievements-grid .fab-achievement-item img {display:block;min-width:0!important;width:100%!important;max-width:100%;height:auto!important;max-height:250px;object-fit:contain;object-position:center;}
  .fab-seo-block,.fab-seo-block-wrap,.fab-seo-block-column {min-width:0;max-width:100%;overflow-wrap:anywhere;}
  .fab-seo-block-columns .fab-seo-block-column {column-count:1!important;column-width:auto!important;}
  .fab-seo-block :is(img,video,iframe) {max-width:100%;}
  a.fab-button-open-marquiz {top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:12px;right:auto;transform:none!important;clip-path:none!important;border-radius:6px;padding:10px 14px!important;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:14px!important;line-height:1.2;box-sizing:border-box;box-shadow:0 2px 8px #0002;}
  body:has(.fab-toggle-menu:checked) a.fab-button-open-marquiz {visibility:hidden;}
  .fab-hero a:focus-visible,.fab-hero button:focus-visible,.fab-grid-banners-type-1 a:focus-visible {outline:2px solid #ed582e;outline-offset:-2px;}
}

/* Mobile banner geometry must settle immediately, including when legacy hover transitions are active. */
@media (max-width:767.98px) {
  .fab-grid-banners-type-1 .fab-grid-banners-type-1-wrap {
    grid-auto-columns:minmax(0,1fr)!important;grid-auto-flow:row!important;
    grid-template-areas:none!important;transition:none!important;
  }
  .fab-grid-banners-type-1 .fab-grid-banners-type-1-wrap > .fab-box-banner {
    grid-column:auto!important;grid-row:auto!important;
    min-width:0!important;max-width:100%!important;width:100%!important;
    margin-inline:0!important;box-sizing:border-box!important;transition:none!important;
    animation:none!important;transform:none!important;
  }
  .fab-grid-banners-type-1 .fab-box-banner .fab-box-banner-background {
    transform:none!important;transition:none!important;animation:none!important;
  }
  .fab-grid-banners-type-1 .fab-box-banner .fab-box-banner__shadow {
    min-width:0;max-width:100%;box-sizing:border-box;
  }
  .fab-grid-banners-type-1 .fab-box-banner h3 {min-width:0;max-width:100%;}
}
