.bm-home,
.bm-footer {
  --bm-ink: #171717;
  --bm-paper: #ffffff;
  --bm-soft: #f4f3f1;
  --bm-line: #d7d5d1;
  --bm-radius: 14px;
  color: var(--bm-ink);
  font-family: var(--font-body--family, sans-serif);
  width: 100%;
  max-width: 100%;
  overflow: clip;
}

.bm-home *,
.bm-footer * {
  box-sizing: border-box;
}

.bm-home a,
.bm-footer a {
  color: inherit;
  text-decoration: none;
}

.bm-home__inner {
  width: min(100% - 40px, 1360px);
  margin-inline: auto;
}

.bm-home__heading {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.bm-home__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid var(--bm-ink);
  border-radius: 999px;
  background: var(--bm-ink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease;
}

.bm-home__button:hover {
  background: #fff;
  color: var(--bm-ink) !important;
}

.bm-home-hero__link,
.bm-home-hero__media,
.bm-home-hero picture,
.bm-home-hero img {
  display: block;
  width: 100%;
}

.bm-home-hero img {
  height: auto;
  aspect-ratio: 3.56 / 1;
  object-fit: cover;
}

.bm-home-hero__content {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 20px 34px;
  text-align: center;
}

.bm-home-hero__eyebrow,
.bm-home-hero__body {
  margin: 0;
}

.bm-home-hero__eyebrow {
  font-size: 12px;
  font-weight: 650;
}

.bm-home-hero__body {
  max-width: 620px;
  color: #4b4b4b;
  font-size: 14px;
}

.bm-home-categories {
  padding: 10px 0 54px;
}

.bm-home-categories__rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.bm-category-card__link,
.bm-category-card__image {
  display: block;
  width: 100%;
}

.bm-category-card__media {
  overflow: hidden;
  border-radius: var(--bm-radius);
  background: var(--bm-soft);
}

.bm-category-card__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 240ms ease;
}

.bm-category-card__link:hover .bm-category-card__image {
  transform: scale(1.025);
}

.bm-category-card__title {
  margin: 10px 4px 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.bm-home-products {
  padding: 54px 0 70px;
  background: var(--bm-soft);
}

.bm-home-products__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.bm-home-products__view-all {
  flex: 0 0 auto;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 650;
}

.bm-home-products__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  grid-template-rows: 1fr;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}

.bm-product-card {
  min-width: 0;
  scroll-snap-align: start;
}

.bm-product-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #eceae6;
  border-radius: var(--bm-radius);
  background: #fff;
}

.bm-product-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform 220ms ease;
}

.bm-product-card__media:hover .bm-product-card__image {
  transform: scale(1.02);
}

.bm-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bm-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.bm-product-card__title {
  min-height: 42px;
  margin: 13px 2px 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.bm-product-card__price {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 2px;
  font-size: 14px;
}

.bm-product-card__compare {
  color: #777;
  text-decoration: line-through;
}

.bm-home-editorial {
  padding: 72px 0;
}

.bm-home-editorial__media,
.bm-home-editorial__image {
  display: block;
  width: 100%;
}

.bm-home-editorial__media {
  overflow: hidden;
  border-radius: var(--bm-radius);
}

.bm-home-editorial__image {
  aspect-ratio: 2.37 / 1;
  object-fit: cover;
}

.bm-home-editorial__content {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 650px;
  margin: 24px auto 0;
  text-align: center;
}

.bm-home-editorial__body,
.bm-home-innovation__body {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.bm-home-tech {
  padding: 66px 0 76px;
}

.bm-home-tech__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 14px;
  margin-top: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

.bm-tech-card {
  min-width: 0;
  scroll-snap-align: start;
}

.bm-tech-card__media {
  overflow: hidden;
  border-radius: var(--bm-radius);
  background: var(--bm-soft);
}

.bm-tech-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.bm-tech-card__title {
  margin: 14px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.bm-tech-card__body {
  min-height: 42px;
  margin: 0 0 13px;
  color: #565656;
  font-size: 13px;
  line-height: 1.5;
}

.bm-tech-card__link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 650;
}

.bm-home-innovation__media,
.bm-home-innovation picture,
.bm-home-innovation__image {
  display: block;
  width: 100%;
}

.bm-home-innovation__image {
  min-height: 400px;
  object-fit: cover;
}

.bm-home-innovation__content {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 20px 54px;
  text-align: center;
}

.bm-home-innovation__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bm-home-community {
  padding: 70px 0 76px;
  background: var(--bm-soft);
}

.bm-home-community__title {
  margin-bottom: 26px;
  text-align: center;
}

.bm-home-community__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bm-community-card {
  display: grid;
  min-height: 220px;
  align-content: end;
  padding: 26px;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  background: #fff;
}

.bm-community-card__number {
  align-self: start;
  margin-bottom: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.bm-community-card__title {
  margin: 20px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.bm-community-card__body {
  margin: 0 0 14px;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

.bm-community-card__link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 650;
}

.bm-home-service {
  border-top: 1px solid var(--bm-line);
  border-bottom: 1px solid var(--bm-line);
  background: #fff;
}

.bm-home-service__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bm-service-item {
  display: grid;
  min-height: 110px;
  place-content: center;
  gap: 5px;
  padding: 20px;
  border-right: 1px solid var(--bm-line);
  text-align: center;
}

.bm-service-item:last-child {
  border-right: 0;
}

.bm-service-item__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.bm-service-item__body {
  margin: 0;
  color: #666;
  font-size: 12px;
}

.bm-footer {
  padding: 56px 0 24px;
  background: #1c1f1d;
  color: #fff;
}

.bm-footer__inner {
  width: min(100% - 40px, 1360px);
  margin-inline: auto;
}

.bm-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.75fr);
  gap: 70px;
  padding-bottom: 46px;
}

.bm-footer__heading,
.bm-footer__menu-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.bm-footer__heading {
  font-size: clamp(28px, 3vw, 44px);
}

.bm-footer__copy {
  max-width: 560px;
  margin: 10px 0 20px;
  color: #d6d7d6;
  font-size: 14px;
  line-height: 1.55;
}

.bm-footer__form {
  display: flex;
  max-width: 570px;
}

.bm-footer__input,
.bm-footer__submit {
  min-height: 46px;
  border: 1px solid #858986;
  background: transparent;
  color: #fff;
}

.bm-footer__input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border-radius: 6px 0 0 6px;
}

.bm-footer__input::placeholder {
  color: #c2c5c2;
}

.bm-footer__submit {
  padding: 0 22px;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  font-weight: 650;
}

.bm-footer__menu-title {
  margin-bottom: 15px;
  font-size: 24px;
}

.bm-footer__menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bm-footer__menu a {
  color: #e0e1e0;
  font-size: 13px;
}

.bm-footer__bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #555955;
}

.bm-footer__logo {
  display: block;
  width: 118px;
  height: auto;
  margin-bottom: 10px;
  filter: invert(1);
}

.bm-footer__copyright {
  margin: 0;
  color: #c6c9c6;
  font-size: 11px;
}

.bm-footer__payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.bm-footer__payment {
  display: inline-flex;
  width: 38px;
  height: 24px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
}

.bm-footer__payment svg {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 990px) {
  .bm-home-products__rail {
    grid-auto-columns: calc((100% - 42px) / 4);
  }

  .bm-home-tech__rail {
    grid-auto-columns: calc((100% - 42px) / 4);
  }
}

@media screen and (max-width: 749px) {
  .bm-home__inner,
  .bm-footer__inner {
    width: min(100% - 24px, 100%);
  }

  .bm-home__heading {
    font-size: 31px;
  }

  .bm-home-hero img {
    aspect-ratio: 390 / 413;
  }

  .bm-home-hero__content {
    padding: 20px 18px 28px;
  }

  .bm-home-categories {
    padding: 0 0 38px;
  }

  .bm-home-categories__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 31%;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .bm-home-categories__rail::-webkit-scrollbar {
    display: none;
  }

  .bm-category-card {
    scroll-snap-align: start;
  }

  .bm-category-card__media {
    border-radius: 8px;
  }

  .bm-category-card__title {
    margin-top: 7px;
    font-size: 11px;
  }

  .bm-home-products {
    padding: 38px 0 48px;
  }

  .bm-home-products__header {
    margin-bottom: 18px;
  }

  .bm-home-products__rail {
    grid-auto-columns: 72%;
    gap: 10px;
  }

  .bm-home-editorial,
  .bm-home-tech {
    padding: 46px 0;
  }

  .bm-home-editorial__image {
    aspect-ratio: 1 / 1.12;
  }

  .bm-home-editorial__content {
    margin-top: 19px;
  }

  .bm-home-tech__rail {
    grid-auto-columns: 72%;
    gap: 10px;
    margin-top: 18px;
  }

  .bm-home-innovation__image {
    min-height: 540px;
  }

  .bm-home-innovation__content {
    padding-bottom: 44px;
  }

  .bm-home-community {
    padding: 48px 0;
  }

  .bm-home-community__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bm-community-card {
    min-height: 190px;
  }

  .bm-home-service__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bm-service-item {
    min-height: 104px;
    border-bottom: 1px solid var(--bm-line);
  }

  .bm-service-item:nth-child(2n) {
    border-right: 0;
  }

  .bm-service-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .bm-footer {
    padding-top: 44px;
  }

  .bm-footer__top {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .bm-footer__form {
    max-width: none;
  }

  .bm-footer__menu {
    grid-template-columns: 1fr 1fr;
  }

  .bm-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .bm-footer__payments {
    justify-content: flex-start;
  }
}
