.carousel {
  margin-top: 24px;
}

.carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

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

.carousel__item {
  flex: 0 0 85%;
  max-width: 320px;
}

.carousel__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.carousel__button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel__button:active {
  transform: scale(0.96);
}

.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 999px;
  background: #b8c9bd;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

@media (min-width: 768px) {
  .carousel__item {
    flex: 0 0 60%;
  }
}


@media (max-width: 450px) {
  .carousel__item {
    flex: 0 0 92%;
    max-width: none;
  }
}
