/* @font-face {
  font-family: "Milliard";
  src: url("assets/fonts/Milliard-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Milliard";
  src: url("assets/fonts/Milliard-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Milliard";
  src: url("assets/fonts/Milliard-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
} */

:root {
  --green: #007f43;
  --ink: #172034;
  --muted: #667085;
  --card-width: clamp(250px, 26.7vw, 384px);
  --card-height: clamp(328px, 35vw, 504px);
  --gap: -24px;
}

/* * {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: "Milliard", Arial, sans-serif;
  font-weight: 300;
}

button {
  font: inherit;
} */

.range {
  /* min-height: 100vh; */
  overflow: hidden;
  padding: clamp(70px, 8.5vw, 122px) 0 clamp(64px, 8vw, 115px); 
}

.range__intro {
  margin: 0 auto clamp(42px, 4.2vw, 62px);
  padding: 0 24px;
  max-width: 820px;
  text-align: center;
}

.range__intro h1 {
  margin: 0 0 22px;
  color: var(--green);
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.range__intro p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.35;
}

.slider {
  position: relative;
}

.slider__viewport {
  overflow: visible;
}

.slider__track {
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
}

.product-card {
  position: relative;
  flex: 0 0 var(--card-width);
  height: var(--card-height);
  overflow: hidden;
  background: #eef4f9;
  transform-origin: center center;
  will-change: transform, opacity;
}

.product-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__copy {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 24px 28px; 
  display: none;
}
[style*="transform: translate(0px, 0px)"] .product-card__copy {
    display: block !important;
}

.product-card__copy h2 {
      margin: 0;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 24px !important;
    color: #101A28;
    text-align: center;
}

.product-card__copy p {
  display: none;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.3;
}

.slider__controls {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  width: calc(var(--card-width) + clamp(116px, 12vw, 174px));
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.slider__button {
  display: grid;
  width: 56px;
  height: 56px;
  padding: 0;
  place-items: center;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 180ms ease, color 180ms ease;
}

.slider__button:hover,
.slider__button:focus-visible {
  background: var(--green);
  color: #fff;
  outline: none;
}

.slider__button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.slider__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 700px) {
  :root {
    --card-width: calc(100vw - 80px);
    --card-height: 408px;
    --gap: 20px;
  }

  .range {
    /* min-height: 100svh; */
    padding: 52px 0 46px;
    background: #fff;
  }

  .range__intro {
    margin-bottom: 32px;
    padding: 0 20px;
  }

  .range__intro h1 {
    margin-bottom: 22px;
    font-size: 35px;
  }

  .range__intro p {
    font-size: 17px;
    line-height: 1.35;
  }

  .product-card__copy {
    padding: 18px 20px 19px;
  }

  .product-card__copy p {
    display: block;
  }

  .slider__controls {
    position: static;
    justify-content: center;
    gap: 28px;
    width: auto;
    margin-top: 30px;
    transform: none;
  }

  .slider__button {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}