/* Page-only refinements based on 合作品牌.psd and 合作网络.psd. */
body.page-partners .hero--page {
  min-height: clamp(530px, 61vw, 690px);
  background: linear-gradient(108deg, #fbf8f3 0%, #f7f1ee 54%, #efbad0 100%);
}

body.page-partners .hero--page .hero__scrim {
  display: none;
}

body.page-partners .hero--page .hero__img {
  display: none;
}

body.page-partners .hero--page .hero__inner {
  min-height: inherit;
  padding-block: clamp(76px, 10vw, 130px);
}

body.page-partners .hero--page h1 {
  max-width: 720px;
  font-size: clamp(52px, 7vw, 88px);
  letter-spacing: .015em;
}

body.page-partners .hero--page .lead {
  max-width: 590px;
  color: #615b56;
}

.partner-hero-stats {
  display: flex;
  gap: 12px;
  position: absolute;
  top: 50%;
  right: 0;
  flex-direction: column;
  margin: 0;
  transform: translateY(-50%);
}

.partner-hero-stats > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 198px;
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid rgba(194, 71, 123, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
}

.partner-hero-stats > div:first-child {
  background: #f4ccda;
}

.partner-hero-stats span {
  color: #c2477b;
  font-size: 28px;
  font-weight: 750;
  line-height: 1;
}

.partner-hero-stats small {
  color: #4f4846;
  font-size: 13px;
}

body.page-partners main > section:nth-of-type(2) .wrap,
body.page-partners main > section:nth-of-type(3) .wrap {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.5fr);
  align-items: start;
  column-gap: clamp(36px, 7vw, 100px);
}

body.page-partners main > section:nth-of-type(2) .sec-head,
body.page-partners main > section:nth-of-type(3) .sec-head {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
}

body.page-partners main > section:nth-of-type(2) .logos,
body.page-partners main > section:nth-of-type(3) .logos {
  grid-column: 2;
  grid-row: 1;
}

body.page-partners main > section:nth-of-type(2) > .wrap > p,
body.page-partners main > section:nth-of-type(3) > .wrap > p {
  grid-column: 2;
}

body.page-partners main > section:nth-of-type(3) {
  background: linear-gradient(110deg, #f8dce7 0%, #f3c5d7 56%, #efbad0 100%);
}

body.page-partners main > section:nth-of-type(3) .logos {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: transparent;
}

body.page-partners main > section:nth-of-type(3) .logos .cell {
  min-height: 72px;
  border-radius: 9px;
  box-shadow: none;
}

body.page-partners .sec-head {
  margin-bottom: clamp(24px, 3vw, 42px);
}

body.page-partners .logos .cell {
  min-height: 78px;
  border-radius: 10px;
  background: #fff;
}

body.page-partners .logos .cell img {
  max-width: 84%;
  max-height: 48px;
  object-fit: contain;
}

.partner-products {
  overflow: hidden;
  padding: clamp(56px, 8vw, 118px) 0;
  background: #f8f4ee;
}

.partner-carousel-list {
  display: grid;
  gap: 32px;
}

.partner-carousel {
  min-width: 0;
  padding: 20px 22px 23px;
  border: 1px solid #eee8e3;
  border-radius: 16px;
  background: #fff;
}

.partner-carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.partner-carousel__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: #26211f;
  font-size: 20px;
}

.partner-carousel__count {
  color: #98908b;
  font-size: 12px;
  font-weight: 400;
}

.partner-carousel__controls {
  display: flex;
  gap: 8px;
}

.partner-carousel__button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #e9e1dc;
  border-radius: 50%;
  background: #fff;
  color: #4c4541;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.partner-carousel__button:hover,
.partner-carousel__button:focus-visible {
  border-color: #e9aac2;
  background: #fceaf1;
  outline: none;
}

.partner-carousel__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.partner-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.partner-carousel__track {
  display: flex;
  gap: 14px;
  width: max-content;
  min-width: 100%;
}

.partner-product-card {
  flex: 0 0 clamp(142px, 17vw, 205px);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.partner-product-card__image {
  display: grid;
  height: clamp(150px, 18vw, 214px);
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f4f2;
}

.partner-product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.partner-product-card figcaption {
  overflow: hidden;
  margin-top: 10px;
  color: #514a46;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body.page-partners .hero--page {
    min-height: 580px;
  }

  body.page-partners .hero--page .hero__scrim {
    display: none;
  }

  body.page-partners .hero--page .hero__img {
    display: none;
  }

  .partner-hero-stats {
    position: static;
    gap: 8px;
    flex-direction: row;
    margin: 20px 0 4px;
    transform: none;
  }

  .partner-hero-stats > div {
    width: auto;
    min-width: 0;
    padding: 12px;
  }

  body.page-partners main > section:nth-of-type(2) .wrap,
  body.page-partners main > section:nth-of-type(3) .wrap {
    display: block;
  }

  body.page-partners main > section:nth-of-type(2) .sec-head,
  body.page-partners main > section:nth-of-type(3) .sec-head {
    margin-bottom: 24px;
  }

  body.page-partners main > section:nth-of-type(3) .logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partner-hero-stats span {
    font-size: 25px;
  }

  .partner-carousel {
    padding: 16px 14px 18px;
  }

  .partner-product-card {
    flex-basis: min(42vw, 174px);
  }

  .partner-product-card__image {
    height: min(46vw, 188px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-carousel__viewport {
    scroll-behavior: auto;
  }
}
