.csg {
  --csg-ink: #111111;
  --csg-muted: #555555;
  --csg-line: #dedede;
  --csg-paper: #ffffff;
  --csg-soft-paper: #f3f1ed;
  --csg-accent: #ee4700;
  overflow: hidden;
  padding: 54px 0 36px;
  background: var(--csg-paper);
  color: var(--csg-ink);
}

.csg *,
.csg *::before,
.csg *::after {
  box-sizing: border-box;
}

.csg__shell {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

.csg__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.csg__kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--csg-accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.csg h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.csg__header p {
  max-width: 560px;
  margin: 13px 0 0;
  color: var(--csg-muted);
  font-size: 14px;
  line-height: 1.5;
}

.csg__controls {
  display: flex;
  gap: 10px;
}

.csg__controls button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--csg-ink);
  border-radius: 4px;
  background: var(--csg-paper);
  color: var(--csg-ink);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.csg__controls button:hover {
  background: var(--csg-ink);
  color: #ffffff;
  transform: translateY(-1px);
}

.csg__controls button:focus-visible,
.csg-card:focus-visible,
.csg__viewport:focus-visible {
  outline: 3px solid rgba(238, 71, 0, 0.38);
  outline-offset: 3px;
}

.csg__viewport {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 clamp(20px, 4vw, 64px) 18px;
  cursor: grab;
  scrollbar-width: none;
  scroll-snap-type: none;
}

.csg__viewport:active {
  cursor: grabbing;
}

.csg__viewport::-webkit-scrollbar {
  display: none;
}

.csg__track {
  width: max-content;
  display: flex;
}

.csg__group {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}

.csg-card {
  width: clamp(260px, 20.7vw, 368px);
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border: 1px solid var(--csg-line);
  border-radius: 4px;
  background: var(--csg-paper);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.csg-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
}

.csg-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--csg-soft-paper);
}

.csg-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 450ms ease;
}

.csg-card:hover .csg-card__image {
  transform: scale(1.018);
}

.csg-card__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  color: #222222;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.csg-card__body {
  min-height: 246px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
}

.csg-card__identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.csg-card__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--csg-ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.csg-card__eyebrow {
  display: block;
  margin-bottom: 1px;
  color: #777777;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.csg-card__identity strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
}

.csg-card__body > p {
  margin: 16px 0 22px;
  display: -webkit-box;
  overflow: hidden;
  color: #404040;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.csg-card__product {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #e5e5e5;
}

.csg-card__product span {
  display: -webkit-box;
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--csg-muted);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.csg-card__product strong {
  color: var(--csg-ink);
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .csg {
    padding-top: 42px;
  }

  .csg__header {
    align-items: center;
  }

  .csg__controls {
    display: none;
  }

  .csg__viewport {
    scroll-snap-type: x proximity;
  }

  .csg-card {
    width: min(76vw, 330px);
  }
}

@media (max-width: 560px) {
  .csg {
    padding-top: 34px;
  }

  .csg__header {
    margin-bottom: 24px;
  }

  .csg h2 {
    font-size: 32px;
  }

  .csg__header p {
    font-size: 12px;
  }

  .csg__viewport {
    padding-inline: 20px;
  }

  .csg__group {
    gap: 14px;
    padding-right: 14px;
  }

  .csg-card {
    width: 76vw;
  }

  .csg-card__body {
    min-height: 230px;
  }
}

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