.as-home .as-ref-hero.as-ref-hero--backdrop {
  align-items: center;
  aspect-ratio: 5 / 2;
  background: #f7f9fb;
  border: 1px solid #e5eaf2;
  border-radius: 20px;
  box-shadow: 0 22px 54px rgba(47, 79, 130, 0.1);
  box-sizing: border-box;
  gap: 0 !important;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%) !important;
  isolation: isolate;
  min-height: 440px;
  overflow: hidden;
  padding: clamp(30px, 3.2vw, 46px) !important;
  position: relative;
}

.as-home .as-ref-hero--backdrop > .as-home-hero-backdrop {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  position: absolute;
  user-select: none;
  width: 100%;
  z-index: 0;
}

.as-home .as-ref-hero--backdrop > :not(.as-home-hero-backdrop):not(.as-ref-collage) {
  max-width: none;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.as-home .as-ref-hero--backdrop > .as-ref-collage--backdrop {
  min-height: 1px;
  pointer-events: none;
  visibility: hidden !important;
}

.as-home .as-ref-hero--backdrop input,
.as-home .as-ref-hero--backdrop button,
.as-home .as-ref-hero--backdrop a {
  position: relative;
  z-index: 3;
}

.as-home .as-home-category-card {
  align-items: center;
  color: #1a1a2e;
  display: flex;
  min-width: 0;
  text-decoration: none !important;
}

.as-home .as-home-category-card__icon {
  align-items: center;
  background: #f7f9fb;
  border-radius: 12px;
  color: #467ff7;
  display: inline-flex;
  flex: 0 0 48px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.as-home .as-home-category-card__icon svg {
  fill: currentColor;
  height: 22px;
  width: 22px;
}

.as-home .as-home-category-card__label {
  color: #1a1a2e;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  min-width: 0;
}

.as-home .as-home-category-card__arrow {
  color: #6b7280;
  display: none;
}

.as-home #main-content .as-ref-discovery-feed .as-home-feed-track {
  -ms-overflow-style: none;
  overflow-x: auto !important;
  padding-bottom: 6px !important;
  scroll-padding-inline: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.as-home #main-content .as-ref-discovery-feed .as-home-feed-track::-webkit-scrollbar {
  background: transparent;
  height: 0px;
  width: 0px;
}

.as-home #main-content .as-ref-discovery-feed .as-home-feed-track > .grid-item {
  scroll-snap-align: start;
}

.as-home #main-content .as-home-feed-head--enhanced {
  align-items: center;
  justify-content: flex-start;
}

.as-home #main-content .as-home-feed-nav {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}

.as-home #main-content .as-home-feed-nav__button {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(47, 79, 130, 0.1);
  color: #467ff7;
  cursor: pointer;
  display: inline-flex;
  font-family: Poppins, sans-serif;
  font-size: 19px;
  font-weight: 500;
  height: 48px;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  min-width: 48px;
  padding: 0;
  transition: transform 160ms ease;
  width: 48px;
}

.as-home #main-content .as-home-feed-nav__button:hover:not(:disabled),
.as-home #main-content .as-home-feed-nav__button:focus-visible {
  background: #2d66de;
  border-color: #2d66de;
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.as-home #main-content .as-home-feed-nav__button:focus-visible {
  box-shadow: 0 0 0 3px rgba(70, 127, 247, 0.2),
    0 9px 20px rgba(70, 127, 247, 0.2);
}

.as-home #main-content .as-home-feed-nav__button:active:not(:disabled) {
  transform: translateY(0);
}

.as-home #main-content .as-home-feed-nav__button:disabled {
  background: #f7f9fb;
  border-color: #e5eaf2;
  box-shadow: none;
  color: #6b7280;
  cursor: default;
  opacity: 0.7;
}

.as-home #main-content .as-home-feed-head--enhanced .as-ref-category-all {
  flex: 0 0 auto;
  margin-left: 4px;
}

@media (min-width: 1025px) {
  .as-home #main-content .as-ref-type-section.as-home-categories--enhanced {
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(47, 79, 130, 0.09);
    gap: 0;
    margin-bottom: 40px;
    margin-top: 24px;
    padding: 30px !important;
  }

  .as-home #main-content .as-home-categories--enhanced .as-ref-type-heading {
    align-items: center;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 22px;
    min-height: 48px;
  }

  .as-home #main-content .as-home-categories--enhanced .as-ref-type-heading h2 {
    color: #1a1a2e;
    font-family: Poppins, sans-serif;
    font-size: clamp(24px, 2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
  }

  .as-home #main-content .as-home-categories--enhanced .as-home-catalog-cta {
    align-items: center;
    background: #467ff7 !important;
    border: 1px solid #467ff7 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 24px rgba(70, 127, 247, 0.22);
    color: #ffffff !important;
    display: inline-flex !important;
    font-family: Poppins, sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    gap: 10px;
    height: 48px;
    justify-content: center;
    letter-spacing: 0;
    min-width: 132px;
    padding: 0 22px !important;
    text-transform: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
  }

  .as-home #main-content .as-home-categories--enhanced .as-home-catalog-cta:hover {
    box-shadow: 0 14px 28px rgba(70, 127, 247, 0.3);
    transform: translateY(-2px);
  }

  .as-home #main-content .as-home-categories--enhanced .as-ref-categories {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 !important;
  }

  .as-home #main-content .as-home-categories--enhanced .ref-category {
    height: auto;
    min-width: 0;
    width: auto;
  }

  .as-home #main-content .as-home-categories--enhanced .as-home-category-card {
    background: #f7f9fb;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    gap: 14px;
    min-height: 82px;
    padding: 16px;
    transition: background-color 180ms ease, border-color 180ms ease,
      box-shadow 180ms ease, transform 180ms ease;
  }

  .as-home #main-content .as-home-categories--enhanced .as-home-category-card:hover,
  .as-home #main-content .as-home-categories--enhanced .as-home-category-card:focus-visible {
    background: #ffffff;
    border-color: #467ff7;
    box-shadow: 0 12px 26px rgba(47, 79, 130, 0.12);
    outline: none;
    transform: translateY(-2px);
  }

  .as-home #main-content .as-home-categories--enhanced .as-home-category-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(70, 127, 247, 0.22),
      0 12px 26px rgba(47, 79, 130, 0.12);
  }

  .as-home #main-content .as-home-categories--enhanced .as-home-category-card__label {
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 600;
  }

  .as-home #main-content .as-home-categories--enhanced .as-home-category-card__arrow {
    display: inline-block;
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    transition: color 180ms ease, transform 180ms ease;
  }

  .as-home #main-content .as-home-categories--enhanced .as-home-category-card:hover .as-home-category-card__arrow,
  .as-home #main-content .as-home-categories--enhanced .as-home-category-card:focus-visible .as-home-category-card__arrow {
    color: #467ff7;
    transform: translateX(3px);
  }

}

@media (min-width: 1025px) and (max-width: 1199px) {
  .as-home #main-content .as-home-categories--enhanced .as-ref-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .as-home #main-content .as-ref-hero.as-ref-hero--backdrop {
    aspect-ratio: auto;
    background: #f7f9fb;
    display: flex !important;
    flex-direction: column;
    gap: 24px !important;
    min-height: 0;
    padding: 96px 18px 0 !important;
  }

  .as-home #main-content .as-ref-hero--backdrop > :not(.as-home-hero-backdrop):not(.as-ref-collage) {
    max-width: none;
    order: 1;
    width: 100%;
  }

  .as-home #main-content .as-ref-hero--backdrop > .as-home-hero-backdrop {
    aspect-ratio: 3 / 2;
    border-radius: 16px 16px 0 0;
    height: auto;
    margin: 0 -18px;
    object-fit: cover;
    object-position: 73% center;
    order: 2;
    position: relative;
    width: calc(100% + 36px);
  }

  .as-home #main-content .as-ref-hero--backdrop > .as-ref-collage--backdrop {
    display: none !important;
  }

  .as-home #main-content .as-ref-hero--backdrop .as-ref-shortcuts {
    display: flex !important;
    visibility: visible !important;
  }

  .as-home #main-content .as-ref-hero--backdrop .as-ref-shortcuts a {
    display: inline-flex !important;
    min-height: 48px;
    visibility: visible !important;
  }

  .as-home #main-content .as-home-categories--enhanced .as-home-category-card {
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
    min-height: 96px;
    padding: 0 4px;
    text-align: center;
  }

  .as-home #main-content .as-home-categories--enhanced .as-home-category-card__label {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 32px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .as-home #main-content .as-ref-hero.as-ref-hero--backdrop {
    aspect-ratio: auto;
    display: grid !important;
    gap: 0 !important;
    grid-template-areas: "copy collage" !important;
    grid-template-columns: minmax(0, 54%) minmax(0, 46%) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    min-height: 520px;
    padding: 96px 30px 30px !important;
  }

  .as-home #main-content .as-ref-hero--backdrop > :not(.as-home-hero-backdrop):not(.as-ref-collage) {
    order: initial;
  }

  .as-home #main-content .as-ref-hero--backdrop > .as-home-hero-backdrop {
    aspect-ratio: auto;
    border-radius: 0;
    height: 100%;
    inset: 0;
    margin: 0;
    object-position: center;
    order: initial;
    position: absolute;
    width: 100%;
  }

  .as-home #main-content .as-ref-hero--backdrop > .as-ref-collage--backdrop {
    display: grid !important;
  }
}

@media (max-width: 767px) {
  .as-home #main-content .as-ref-hero--backdrop > .as-home-hero-backdrop {
    display: none !important;
  }

  .as-home #main-content .as-home-feed-nav {
    display: none;
  }

  .as-home #main-content .as-home-feed-head--enhanced {
    justify-content: space-between;
  }

  .as-home #main-content .as-home-feed-head--enhanced .as-ref-category-all {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-home .as-ref-hero,
  .as-home .as-home-hero-backdrop,
  .as-home .as-home-category-card,
  .as-home .as-home-category-card__arrow,
  .as-home .as-home-catalog-cta,
  .as-home .as-home-feed-nav__button,
  .as-home .as-home-feed-track {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
