:root {
  --page-gutter: clamp(24px, 7.8053vw, 128px);
  --card-width: clamp(420px, 25.5739vw, 420px);
  --card-gap: clamp(18px, 1.6529vw, 28px);
  --charcoal: #231f20;
  --red: #158dff;
  --border: #dedede;
  --muted: #646464;
  color-scheme: light;
  font-family: Roboto, Arial, sans-serif;
  background: #fff;
  color: var(--charcoal);
}
.slider {
  padding: 40px 7vw;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
.products {
  padding-top: clamp(24px, 2.2039vw, 36px);
  padding-bottom: 18px;
  overflow: hidden;
}
.products__header {
  width: 100%;
  /* max-width: calc(100% - var(--page-gutter) * 2); */
  height: 41px;
  /* margin-left: var(--page-gutter); */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.products__header h1 {
  margin: 3px 0 0;
  font-size: 25px;
  line-height: 1.32;
  font-weight: 800;
}
.products__header h1 span {
  color: #000;

  padding: 0 1px;
}
.products__controls {
  display: flex;
  gap: 4px;
  margin-top: -4px;
  margin-right: 0;
}
.products__arrow {
  width: 26px;
  height: 28px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #646a6b;
  cursor: pointer;
  transition: color 0.18s, opacity 0.18s;
}
.products__arrow svg {
  display: block;
  height: 100%;
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.products__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}
.products__arrow:hover:not(:disabled) {
  color: var(--red);
}
.products__arrow:focus-visible,
.products__track:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.products__track {
  display: flex;
  gap: var(--card-gap);
  /* margin: 0 0 0 var(--page-gutter); */
  padding: 0 var(--page-gutter) 0 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-end: var(--page-gutter);
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.products__track::-webkit-scrollbar {
  display: none;
}
.products__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.product-card {
  position: relative;
  flex: 0 0 var(--card-width);
  height: calc(var(--card-width) * 1.21);
  container-type: inline-size;
  border: 1px solid var(--border);
  background-color: #0000000a;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}
.product-card__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 11.2cqw 11.2cqw 0;
  pointer-events: none;
}
.product-card__model {
  margin: 0;
  font-family: "Roboto Mono", monospace;
  font-size: 7.17cqw;
  line-height: 1.3;
  letter-spacing: 0.03em;
  font-weight: 300;
  color: var(--red);
}
.product-card__visual {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__visual img {
  display: block;
  height: 38cqw;
  object-fit: contain;
  max-width: 100%;
  user-select: none;
}
.product-card__type {
  font-size: 4.3cqw;
  line-height: 1.17;
  font-weight: 750;
  margin: 0 0 0.4cqw;
  letter-spacing: 0.015em;
}
.product-card__subtitle {
  font-size: 4.3cqw;
  line-height: 1.2;
  font-weight: 300;
  margin: 0 0 3.1cqw;
}
.product-card__description {
  font-size: 2.87cqw;
  line-height: 1.63;
  font-weight: 350;
  margin: 0;
  color: var(--muted);
}
.product-card__specs {
  position: absolute;
  left: 11.2cqw;
  right: 11.2cqw;
  bottom: 26.7cqw;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.6cqw;
  margin: 0;
}
.product-card__spec {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2cqw;
}
.product-card__spec dt {
  font-size: 1.8cqw;
  font-weight: 450;
  line-height: 1.4;
  margin: 0;
  color: #231f20;
}
.product-card__spec dd {
  font-family: "Roboto Mono", monospace;
  font-size: 3.2cqw;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  color: #414141;
}
.product-card__watermark {
  position: absolute;
  z-index: 0;
  top: -0.8cqw;
  right: -13.2cqw;
  font-size: 36cqw;
  line-height: 0.74;
  letter-spacing: -0.055em;
  font-weight: 850;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  color: #231f20;
}
.product-card__watermark span {
  display: block;
}
.product-card__watermark span + span {
  margin-left: 14.3cqw;
}
.product-card__explore {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 42cqw;
  height: 10.1cqw;
  background: var(--charcoal);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2.7cqw;
  padding: 0 5.5cqw 0 9cqw;
  color: #fff;
  text-decoration: none;
  transition: background 0.18s;
}
.product-card__explore span {
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1.2;
  font-weight: 800;
}
.product-card__explore svg {
  width: 2.6cqw;
  height: 4cqw;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  transition: transform 0.18s;
}
.product-card__explore:hover {
  background: #158dff;
}
.product-card__explore:hover svg {
  transform: translateX(2px);
}
.product-card__explore:focus-visible {
  background: #158dff;
  outline: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Mobile cards keep comfortable reading sizes while preserving the reference proportions. */
@media (min-width: 1600px) {
  .products__header {
    height: 60px;
  }
  .products__arrow {
    width: 36px;
    height: 38px;
  }
  .products__controls {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  :root {
    --page-gutter: 32px;
    --card-width: calc((100vw - 96px) / 2);
    --card-gap: 20px;
  }
  .products__header {
    width: calc(100%);
    max-width: none;
    height: 48px;
  }
  .products__header h1 {
    font-size: 20px;
  }
  .products__arrow {
    width: 32px;
    height: 34px;
  }
  .product-card {
    min-height: 480px;
  }
  .product-card__description {
    font-size: max(10px, 2.87cqw);
  }
  .product-card__spec dt {
    font-size: max(6px, 1.8cqw);
  }
  .product-card__explore {
    min-height: 36px;
    min-width: 145px;
  }
}
@media (max-width: 600px) {
  :root {
    --page-gutter: 22px;
    --card-width: calc(100vw - 68px);
    --card-gap: 16px;
  }
  .products {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .products__header {
    /* width: calc(100% - 44px); */
    height: 50px;
  }
  .products__header h1 {
    font-size: 20px;
  }
  .products__controls {
    gap: 8px;
  }
  .products__arrow {
    width: 32px;
    height: 34px;
  }
  .product-card {
    height: auto;
    min-height: calc(var(--card-width) * 1.58);
  }
  .product-card__content {
    padding: 10cqw 9cqw 29cqw;
  }
  .product-card__model {
    font-size: 7.2cqw;
  }
  .product-card__visual {
    height: 40cqw;
  }
  .product-card__type,
  .product-card__subtitle {
    font-size: 4.4cqw;
  }
  .product-card__subtitle {
    margin-bottom: 4cqw;
  }
  .product-card__description {
    font-size: 3.25cqw;
    line-height: 1.65;
  }
  .product-card__specs {
    left: 9cqw;
    right: 9cqw;
    bottom: 19cqw;
    gap: 3cqw;
  }
  .product-card__spec dd {
    font-size: 3.1cqw;
  }
  .product-card__spec dt {
    font-size: 1.95cqw;
  }
  .product-card__explore {
    height: 11cqw;
    min-height: 38px;
    width: 46cqw;
    padding-right: 5cqw;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Let longer descriptions determine the shared card height on touch layouts. */
@media (max-width: 900px) {
  .product-card {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .product-card__content {
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 20cqw;
  }
  .product-card__specs {
    position: static;
    margin: auto 0 0;
    padding-top: 8cqw;
    flex-shrink: 0;
  }
  .product-card__model,
  .product-card__visual,
  .product-card__type,
  .product-card__subtitle {
    flex-shrink: 0;
  }
  .product-card__description {
    font-size: max(10px, 2.87cqw);
  }
}
@media (max-width: 600px) {
  .product-card__content {
    padding-bottom: 21cqw;
  }
  .product-card__type,
  .product-card__subtitle {
    font-size: max(13px, 4.4cqw);
  }
  .product-card__description {
    font-size: max(11px, 3.25cqw);
  }
  .product-card__spec dd {
    font-size: max(9px, 3.1cqw);
  }
  .product-card__spec dt {
    font-size: max(6px, 1.95cqw);
  }
}

.product-card:last-child {
  scroll-snap-align: end;
}

.product-card__type,
.product-card__watermark {
  font-family: AvantGarde, Roboto, Arial, sans-serif;
}
