.product-advantages {
  padding-top: clamp(6.25rem, 4.625rem + 8.125vw, 14.375rem);
}

.product-advantages__box {
  position: relative;
  padding: clamp(1.25rem, 1.125rem + 0.625vw, 1.875rem);
  background-color: var(--color-surface-alt);
  border-radius: clamp(1.75rem, 0.85rem + 4.5vw, 6.25rem);
}

.product-advantages__deco {
  position: absolute;
  top: calc(clamp(11.25rem, 9.75rem + 7.5vw, 18.75rem) * -1);
  right: 0px;
  width: clamp(5.5rem, 3.1rem + 12vw, 17.5rem);
  height: clamp(6.5rem, 3.675rem + 14.125vw, 20.625rem);
}

.product-advantages__capsule {
  display: none;
}

.product-advantages__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.875rem, 0.675rem + 1vw, 1.875rem);
}

.product-advantages__item {
  padding-bottom: clamp(0.875rem, 0.675rem + 1vw, 1.875rem);
  border-bottom: 1px solid var(--color-primary);
}

.product-advantages__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.product-advantages__title {
  font-family: var(--font-body-bold);
  font-size: clamp(1.1875rem, 0.9875rem + 1vw, 2.1875rem);
  line-height: clamp(1.4375rem, 1.2rem + 1.1875vw, 2.625rem);
}

.product-advantages__text {
  margin-top: clamp(0.5rem, 0.4125rem + 0.4375vw, 0.9375rem);
  font-family: var(--font-body-medium);
  font-size: clamp(0.875rem, 0.775rem + 0.5vw, 1.375rem);
  line-height: clamp(1.1875rem, 1.05rem + 0.6875vw, 1.875rem);
}

@media (min-width: 768px) {
  .product-advantages__box {
    /* Ширина капсули по центру — керує і проміжком між колонками */
    --capsule-width: clamp(12.5rem, 10rem + 12.5vw, 25rem);
    margin-top: 0;
    border-radius: clamp(1.75rem, 0.85rem + 4.5vw, 6.25rem) 0
      clamp(1.75rem, 0.85rem + 4.5vw, 6.25rem) 0;
    padding: clamp(1.25rem, 0.375rem + 4.375vw, 5.625rem)
      clamp(1.25rem, 1.125rem + 0.625vw, 1.875rem);
    width: 100%;
  }

  .product-advantages__capsule {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--capsule-width);
    transform: translate(-50%, -50%);
  }

  .product-advantages__list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: calc(var(--capsule-width) + clamp(2rem, 0rem + 6vw, 6rem));
  }

  .product-advantages__item:nth-child(even) {
    text-align: right;
  }

  .product-advantages__item:nth-child(5),
  .product-advantages__item:nth-child(6) {
    padding-bottom: 0;
    border-bottom: none;
  }
  .product-advantages__deco {
    right: -3%;
    transform: scaleX(-1);
  }
}

/* ==========================================================================
   Entrance (js/modules/capsuleAdvantages.js)
   While the entrance runs, each existing separator (border-bottom) is swapped
   for an identical 1px line that grows away from the capsule; the real border
   comes back as soon as the entrance ends.
   ========================================================================== */
.product-advantages.has-sep-motion .product-advantages__item.has-sep-line {
  position: relative;
  border-bottom-color: transparent;
}

.product-advantages.has-sep-motion .product-advantages__item.has-sep-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Left-hand benefits: the line starts at the capsule side and grows left. */
.product-advantages.has-sep-motion .product-advantages__item[data-sep-from="right"]::after {
  transform-origin: right center;
}

.product-advantages.has-sep-motion .product-advantages__item.is-sep-in::after {
  transform: scaleX(1);
}
