.section-cards {
  --cards-anim: 0.45s ease;
  position: relative;
  overflow-x: clip;
}

/* .section-cards .section-description {
  color: #757575;
  max-width: 36rem;
  line-height: 1.9;
  font-size: 0.9375rem;
} */

.section-cards .cards-sw {
  width: 100%;
  margin-top: var(--space-head);
}

.section-cards .cards-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.section-cards .cards-item__media {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-cards .cards-item__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.section-cards .cards-item__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 18px;
  gap: 0.2rem;
  flex: 1;
}

.section-cards .cards-item__title {
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  font-variation-settings: "wght" 500;
  @media (width>=768px) {
    font-size: 16px;
  }
}

.section-cards .cards-item__en {
  color: var(--color2);
  font-size: 16px;
  font-family: var(--en_font);
  line-height: 1.4;
}

.section-cards .btns {
  justify-content: center;
}

/* ---------- image1: albums + swatches ---------- */

.section-cards--image3 .swiper-cards-image3,
.section-cards--image1 .swiper-cards-image1 {
  overflow: visible;
  /* margin-right: -10px; */
  width: 100%;
}

.swiper-cards-image3 .swiper-slide,
.swiper-cards-image1 .swiper-slide {
  width: min(72vw, 308px);
  padding: 0 min(10px, 2vw);
  height: auto;
  flex-shrink: 0;
  transition: 0.5s ease;
}

.section-cards--image1 .sw-navigation.sw-between .swiper-nav-next,
.section-cards--image1 .sw-navigation.sw-between .swiper-nav-prev,
.section-cards--image3 .sw-navigation.sw-between .swiper-nav-next,
.section-cards--image3 .sw-navigation.sw-between .swiper-nav-prev {
  position: absolute;
  transform: translateY(calc(-50% - 30px));
  z-index: 3;
  margin: 0;
}
.section-cards--image1 .sw-navigation.sw-between .swiper-nav-next,
.section-cards--image3 .sw-navigation.sw-between .swiper-nav-next {
  right: calc(50% - min(38vw, 470px) - 20px);
}

.section-cards--image1 .sw-navigation.sw-between .swiper-nav-prev,
.section-cards--image3 .sw-navigation.sw-between .swiper-nav-prev {
  left: calc(50% - min(38vw, 470px) - 20px);
}
.section-cards--image3 .cards-item__media,
.section-cards--image1 .cards-item__media {
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
}
.section-cards--image3 .cards-item__img,
.section-cards--image1 .cards-item__img {
  transform: scale(1);
  transition: transform 0.7s ease;
  will-change: transform;
}
.section-cards--image3 .cards-item:hover .cards-item__img,
.section-cards--image1 .cards-item:hover .cards-item__img {
  transform: scale(1.08);
}
/*.section-cards--image1 .cards-item__media::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  z-index: 1;*/
/*  background-image: linear-gradient(to top, #00000066, #00000000);*/
/*  pointer-events: none;*/
/*}*/
.section-cards--image1 .cards-swatches {
  /* position: absolute; */
  /* left: 50%; */
  /* bottom: 24px; */
  /* transform: translateX(calc(-50% - 10px)); */
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  z-index: 2;
  margin-left: -22px;
  margin-top: 5px;
}

.section-cards--image1 .cards-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--white);
  background-size: cover;
  background-position: center;
  margin-right: -20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  background-color: var(--color3);
}

.section-cards--image1 .cards-swatch--count {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--text);
  font-size: 8px;
  line-height: 1;
  text-align: center;
  padding: 0 0.25rem;
  margin-right: -20px;
  z-index: 1;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.section-cards--image1 .cards-swatch--count b {
  font-family: var(--en_font);
  font-size: 18px;
  font-variation-settings: "wght" 500;
  direction: ltr;
  margin-left: -5px;
}

.section-cards .cards-item--catalog {
  border: 1px solid var(--color3);
  border-radius: 32px;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  padding: 20px;
}

.cards-item--catalog .cards-item__media {
  width: 42%;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 24px;
}

.cards-item--catalog .cards-item__body {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  gap: 0.35rem;
  justify-content: center;
}

.cards-item--catalog .cards-item__title {
  font-size: 15px;
}

.cards-item--catalog .cards-item__en {
  font-size: 13px;
}

.cards-item--catalog .cards-swatches {
  margin-left: 0;
  margin-bottom: 4px;
}

.cards-item--catalog .cards-swatch {
  width: 36px;
  height: 36px;
  margin-right: -16px;
}

.cards-item--catalog .cards-swatch--count {
  margin-right: -16px;
  font-size: 7px;
}

.cards-item--catalog .cards-swatch--count b {
  font-size: 14px;
}

.cards-item--catalog .cards-item__catalog.button {
  min-width: auto;
  margin-top: 8px;
  min-height: 37px;
  font-size: 11px;
  gap: 6px;
}

.cards-item--catalog .cards-item__catalog.button .icon-download {
  font-size: 14px;
}

.section-cards--album-archive .album-item-arch {
  margin-bottom: 1.5rem;
}

.section-cards--album-archive {
  margin: var(--space-head) 0 var(--space-section);
}
.section-cards--image1 .cards-item__img {
  object-fit: contain;
}
@media (width >= 768px) {
  .cards-item__catalog-container {
    margin-top: auto;
  }
  .section-cards .cards-item--catalog {
    flex-direction: column;
    align-items: center;
    gap: unset;
    padding: 12px 12px 20px;
  }

  .cards-item--catalog .cards-item__media {
    width: 100%;
    /* aspect-ratio: 4 / 5; */
    border-radius: 32px;
  }

  .cards-item--catalog .cards-item__body {
    flex: 1;
    min-width: unset;
    margin-top: 18px;
    gap: 0.2rem;
    justify-content: unset;
  }

  .cards-item--catalog .cards-item__title {
    font-size: 16px;
  }

  .cards-item--catalog .cards-item__en {
    font-size: 16px;
  }

  .cards-item--catalog .cards-swatches {
    margin-left: -22px;
    margin-bottom: 15px;
  }

  .cards-item--catalog .cards-swatch {
    width: 44px;
    height: 44px;
    margin-right: -20px;
  }

  .cards-item--catalog .cards-swatch--count {
    margin-right: -20px;
    font-size: 8px;
  }

  .cards-item--catalog .cards-swatch--count b {
    font-size: 18px;
  }

  .cards-item--catalog .cards-item__catalog.button {
    min-width: 118px;
    margin-top: 16px;
    font-size: 12px;
  }

  .cards-item--catalog .cards-item__catalog.button .icon-download {
    font-size: 16px;
  }
}

/* .section-cards--image3 .swiper-button-disabled,
.section-cards--image1 .swiper-button-disabled {
  opacity: 0;
} */
/* .section-cards--image1 .sw-navigation .icon-arrow-right {
  opacity: 0;
  transition:
    transform 0.6s ease 1s,
    opacity 0.3s ease 1s;
  transform: translateX(60px);
}
.section-cards--image1 .sw-navigation .icon-arrow-left {
  opacity: 0;
  transition:
    transform 0.6s ease 1s,
    opacity 0.3s ease 1s;
  transform: translateX(-60px);
} */
/* .section-cards--image1 .is-inview .sw-navigation .icon-arrow-right,
.section-cards--image1 .is-inview .sw-navigation .icon-arrow-left {
  opacity: 1;
  transform: unset;
} */
.section-cards--image1 .btns {
  opacity: 0;
  transform: translateY(-10px);
  transition: 0.4s ease;
}
.section-cards--image1 .btns.is-inview {
  opacity: 1;
  transform: unset;
}
.section-cards--image1 .sw-navigation {
  margin: 0 !important;
}
.section-cards--image1 .sw-navigation.sw-between .swiper-nav-next,
.section-cards--image1 .sw-navigation.sw-between .swiper-nav-prev,
.section-cards--image3 .sw-navigation.sw-between .swiper-nav-next,
.section-cards--image3 .sw-navigation.sw-between .swiper-nav-prev {
  top: 46%;
}

/* ---------- image2: hover grows from top ---------- */
.section-cards--image2::before {
  content: "";
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, #c6a88a30, #0000 40%);
  width: 100%;
  position: absolute;
  transform: translate(-50%, 31%);
  left: 50%;
  bottom: 0;
}
.section-cards--image2 .swiper-cards-image2 .swiper-slide {
  width: min(42vw, 320px);
  margin-left: min(20px, 4vw);
  height: auto;
  align-self: flex-end;
}
.section-cards--image2 .swiper {
  overflow: visible;
}
.swiper-cards-image2 {
  /* margin-right: calc(-1 * min(22px, 4vw)); */
}
.section-cards--image2 .sw {
  margin-top: var(--space-head);
  overflow: visible;
}

.section-cards--image2 .cards-item__media {
  border-radius: 32px;
  background: #eeddce36;
  margin-top: 0;
}

.section-cards--image2 .cards-item__body {
  margin-top: 1.25rem;
}

.section-cards--image2 .cards-item__en {
  display: none;
}

/* ---------- image3: tabs ---------- */
.section-cards--image3 .cards-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.section-cards--image3 .cards-head .section-title {
  text-align: center;
}

.section-cards--image3 .cards-head .section-description {
  margin-inline: auto;
  max-width: 36rem;
}

.section-cards--image3 .cards-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.section-cards--image3 .cards-tab {
  appearance: none;
  border: 1px solid #ececec;
  background: transparent;
  color: var(--bg_light);
  border-radius: 999px;
  min-height: 40px;
  font-size: 14px;
  padding: 0.5rem 1.5rem;
  font-family: var(--main_font), Arial, sans-serif;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.section-cards--image3 .cards-tab.active,
.section-cards--image3 .cards-tab:hover {
  background: var(--color3);
  border-color: var(--color3);
}

.section-cards--image3 .tab-cards .swiper-slide:nth-child(1) .product-card,
.section-cards--image3 .tab-cards .swiper-slide:nth-child(2) .product-card,
.section-cards--image3 .tab-cards .swiper-slide:nth-child(3) .product-card,
.section-cards--image3 .tab-cards .swiper-slide:nth-child(4) .product-card,
.section-cards--image3 .tab-cards .swiper-slide:nth-child(5) .product-card,
.section-cards--image3 .tab-cards .swiper-slide:nth-child(6) .product-card {
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translate3d(1.25rem, 0.75rem, 0) scale(0.96);
  opacity: 0;
}

.section-cards--image3 .tab-cards .swiper-slide:nth-child(1) .product-card {
  transition-delay: 0.08s;
}

.section-cards--image3 .tab-cards .swiper-slide:nth-child(2) .product-card {
  transition-delay: 0.14s;
}

.section-cards--image3 .tab-cards .swiper-slide:nth-child(3) .product-card {
  transition-delay: 0.2s;
}

.section-cards--image3 .tab-cards .swiper-slide:nth-child(4) .product-card {
  transition-delay: 0.26s;
}

.section-cards--image3 .tab-cards .swiper-slide:nth-child(5) .product-card {
  transition-delay: 0.32s;
}

.section-cards--image3 .tab-cards .swiper-slide:nth-child(6) .product-card {
  transition-delay: 0.38s;
}

.section-cards--image3 .tab-cards.active .swiper-slide .product-card {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.tab-cards-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.tab-cards {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* transform: translate3d(0, 1rem, 0); */
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.4s;
  z-index: 0;
}

.tab-cards.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* transform: translate3d(0, 0, 0); */
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
  z-index: 1;
}

/* ---------- image5: products swiper ---------- */
.section-cards--image5 .cards-sw {
  margin-top: var(--space-head);
}

.section-cards--image5 .swiper-cards-image5 {
  overflow: hidden;
  width: 100%;
}

.section-cards--image5 .swiper-cards-image5 .swiper-slide {
  width: 25%;
  padding: 0 min(10px, 2vw);
  height: auto;
  box-sizing: border-box;
}

.section-cards--image5 .product-item {
  width: 100%;
}

/* ---------- image4: center larger + bg swap ---------- */

.section-cards--image4 .cards-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
}

.section-cards--image4 .cards-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--white) 0%, rgba(255, 255, 255, 0) 100%)
      top / 100% clamp(80px, 18vh, 180px) no-repeat,
    linear-gradient(to top, var(--white) 0%, rgba(255, 255, 255, 0) 100%)
      bottom / 100% clamp(80px, 18vh, 180px) no-repeat,
    linear-gradient(to right, var(--white) 0%, rgba(255, 255, 255, 0) 100%)
      left / clamp(60px, 12vw, 160px) 100% no-repeat,
    linear-gradient(to left, var(--white) 0%, rgba(255, 255, 255, 0) 100%)
      right / clamp(60px, 12vw, 160px) 100% no-repeat;
}

.section-cards--image4 .cards-bg__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(0);
  transform: scale(1);
  transition:
    opacity 0.6s ease,
    filter 0.45s ease,
    transform 0.45s ease;
  will-change: opacity;
}

.section-cards--image4 .cards-bg__layer.is-active {
  opacity: 1;
}

.section-cards--image4 .cards-bg__layer.is-preview {
  filter: blur(24px);
  transform: scale(1.08);
}

.section-cards--image4 .cards-item__en {
  font-size: 11px;
  line-height: 1.4;
  @media (width>=768px) {
    font-size: 14px;
  }
}
.section-cards--image4 > .container {
  position: relative;
  z-index: 1;
}

.section-cards--image4 .sw {
  margin-top: var(--space-head);
  padding-top: 10rem;
}
.section-cards--image4 .sw-navigation {
  position: relative;
}

.section-cards--image4 .swiper-cards-image4 .swiper-wrapper {
  align-items: flex-end;
}

.section-cards--image4 .swiper-cards-image4 .swiper-slide {
  /* base = center size; coverflow scales sides down */
  width: 115px;

  /* padding: 0 clamp(2px, 0.35vw, 6px); */
  height: auto;
  transform-origin: center bottom;
}

.section-cards--image4 .cards-item {
  width: 100%;
  transition: transform 0.3s ease;
}
.section-cards--image4 .cards-item:hover {
  transform: translateY(-10px);
}
.section-cards--image4 .cards-item__body {
  /* stretch translate synced from media via JS; no scale */
  transition-property: transform;
}

.section-cards--image4 .cards-item__media {
  width: 100%;
  /* height: clamp(160px, 20vw, 280px); */
  transform-origin: bottom;
  overflow: visible;
}

.section-cards--image4 .cards-item__media img {
  object-fit: contain;
  object-position: bottom;
  transition: transform 0.4s ease;
  transform-origin: bottom;
}
.section-cards--image4 .swiper-slide-active .cards-item__media img {
  transform: scale(1.35);
}

/* image4 inview: center fixed; ±5 sides rise (nearest pair first) */
.swiper-cards-image4:not(.is-inview) .swiper-slide:not(.swiper-slide-active) {
  opacity: 0;
  transform: translateY(clamp(2.5rem, 6vw, 4.5rem));
  transition: 1s ease;
}

.swiper-cards-image4.is-inview .swiper-slide {
  opacity: 1;
  transform: translateY(0);
  transition: 1s ease;
}

.swiper-cards-image4.is-inview .swiper-slide-active {
  transition-delay: 0s;
}

/* default (dist ≥ 5) */
.swiper-cards-image4.is-inview .swiper-slide:not(.swiper-slide-active) {
  transition-delay: 0.48s;
}

/* dist 1: items next to center (e.g. 4 & 6) */
.swiper-cards-image4.is-inview .swiper-slide-active + .swiper-slide,
.swiper-cards-image4.is-inview .swiper-slide:has(+ .swiper-slide-active) {
  transition-delay: 0s;
}

/* dist 2 (e.g. 3 & 7) */
.swiper-cards-image4.is-inview
  .swiper-slide-active
  + .swiper-slide
  + .swiper-slide,
.swiper-cards-image4.is-inview
  .swiper-slide:has(+ .swiper-slide + .swiper-slide-active) {
  transition-delay: 0.12s;
}

/* dist 3 (e.g. 2 & 8) */
.swiper-cards-image4.is-inview
  .swiper-slide-active
  + .swiper-slide
  + .swiper-slide
  + .swiper-slide,
.swiper-cards-image4.is-inview
  .swiper-slide:has(+ .swiper-slide + .swiper-slide + .swiper-slide-active) {
  transition-delay: 0.24s;
}

/* dist 4 (e.g. 1 & 9) */
.swiper-cards-image4.is-inview
  .swiper-slide-active
  + .swiper-slide
  + .swiper-slide
  + .swiper-slide
  + .swiper-slide,
.swiper-cards-image4.is-inview
  .swiper-slide:has(
    + .swiper-slide + .swiper-slide + .swiper-slide + .swiper-slide-active
  ) {
  transition-delay: 0.36s;
}

/* dist 5 (e.g. 0 & 10) */
.swiper-cards-image4.is-inview
  .swiper-slide-active
  + .swiper-slide
  + .swiper-slide
  + .swiper-slide
  + .swiper-slide
  + .swiper-slide,
.swiper-cards-image4.is-inview
  .swiper-slide:has(
    + .swiper-slide
      + .swiper-slide
      + .swiper-slide
      + .swiper-slide
      + .swiper-slide-active
  ) {
  transition-delay: 0.48s;
}

.section-cards--image4 .sw-navigation::before {
  content: "";
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, #c6a88a1a, #0000 40%);
  width: 34rem;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  z-index: -1;
}
.section-cards--image4 .swiper-cards-image4 {
  overflow: visible;
  overflow-x: clip;
}
@media (width>= 992px) {
  .section-cards--image4 .sw {
    padding-top: 23rem;
  }
  .section-cards--image3 .cards-tab {
    min-height: 47px;
    font-size: 16px;
  }
  .section-cards--image2 .swiper {
    overflow-x: clip;
  }

  .section-cards--image2 .cards-item__media {
    height: 420px;
    filter: saturate(1);
    transition: all var(--cards-anim);
    /* will-change: filter, height, margin-top; */
  }
  .section-cards--image2 .cards-item:hover .cards-item__media {
    height: 460px;
    margin-top: -40px;
    filter: saturate(1.5);
  }

  .section-cards--image3 .cards-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    text-align: start;
  }

  .section-cards--image3 .cards-head .section-title {
    text-align: start;
    max-width: 31rem;
  }

  .section-cards--image3 .cards-head .section-description {
    margin-inline: 0;
  }

  .section-cards--image3 .cards-tabs {
    justify-content: flex-start;
  }
}
@media (width< 992px) {
  .section-cards--image3 .swiper-cards-image3 .swiper-slide,
  .section-cards--image1 .swiper-cards-image1 .swiper-slide {
    width: min(60vw, 240px);
  }

  .section-cards--image2 .swiper-cards-image2 .swiper-slide {
    width: min(55vw, 220px);
  }

  .section-cards--image5 .swiper-cards-image5 .swiper-slide {
    width: min(47vw, 200px);
  }
  .section-cards--image4 .swiper-cards-image4 {
    overflow: visible;
  }
  .section-cards--image4 .swiper-cards-image4 .swiper-slide {
    width: clamp(88px, 22vw, 140px);
  }

  .section-cards--image4 .cards-item__media {
    height: clamp(130px, 32vw, 200px);
  }
}

@media screen and (max-width: 575.98px) {
  /* .section-cards--image1 .sw-navigation.sw-between,
  .section-cards--image3 .sw-navigation.sw-between {
    position: static;
    margin-top: 1.25rem;
  }

  .section-cards--image1 .sw-navigation.sw-between .swiper-nav-next,
  .section-cards--image1 .sw-navigation.sw-between .swiper-nav-prev,
  .section-cards--image3 .sw-navigation.sw-between .swiper-nav-next,
  .section-cards--image3 .sw-navigation.sw-between .swiper-nav-prev {
    position: static;
    transform: none;
  } */
}

@media (width >= 768px) {
  /* .section-cards .cards-btn-wrap .button {
    margin-top: 48px;
  } */
  .section-cards--image2 .sw {
    margin-top: 65px;
  }
  .section-cards--image1 .cards-sw,
  .section-cards--image3 .cards-sw {
    margin-top: 115px;
  }

  .section-cards--image1 .swiper-slide-next,
  .section-cards--image1 .swiper-slide-prev,
  .section-cards--image3 .swiper-slide-next,
  .section-cards--image3 .swiper-slide-prev {
    margin-top: -67px;
  }
  .section-cards--image1 .sw-navigation.sw-between .swiper-nav-next,
  .section-cards--image1 .sw-navigation.sw-between .swiper-nav-prev,
  .section-cards--image3 .sw-navigation.sw-between .swiper-nav-next,
  .section-cards--image3 .sw-navigation.sw-between .swiper-nav-prev {
    transform: translateY(calc(-50% - 88px));
  }

  /* .section-cards--image3 .sw-navigation.sw-between .swiper-nav-next {
    right: calc(50% - min(29vw, 170px) - 1.25rem);
  }

  .section-cards--image3 .sw-navigation.sw-between .swiper-nav-prev {
    left: calc(50% - min(29vw, 170px) - 1.25rem);
  } */
}
