.certificates-carousel {
  --certificates-gap: 24px;
  --certificates-visible: 4;
  width: 100%;
  overflow: hidden;
}

.certificates-carousel__viewport {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.certificates-carousel__viewport.is-dragging {
  cursor: grabbing;
}

.certificates-carousel__track {
  display: flex;
  gap: var(--certificates-gap);
  transition: transform .45s ease;
  will-change: transform;
}

.certificates-carousel__card {
  display: flex;
  flex: 0 0 calc((100% - (var(--certificates-visible) - 1) * var(--certificates-gap)) / var(--certificates-visible));
  flex-direction: column;
  min-width: 0;
}

.certificates-carousel__photo {
  display: block;
  width: 100%;
  height: 400px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.certificates-carousel__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.certificates-carousel__title {
  display: block;
  min-height: 37px;
  margin: 28px 0 8px;
  color: #19181e;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .025em;
  text-align: center;
  text-transform: uppercase;
}

.certificates-carousel__description {
  margin: 0;
  color: #737a7d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.certificates-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 38px;
  padding-bottom: 54px;
}

.certificates-carousel__arrow {
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #498731;
  cursor: pointer;
  transition: opacity .2s, background-color .2s;
}

.certificates-carousel__arrow:hover {
  background: #3d7428;
}

.certificates-carousel__arrow:focus-visible {
  outline: 2px solid #212637;
  outline-offset: 3px;
}

.certificates-carousel__arrow:disabled {
  cursor: default;
  opacity: .35;
}

.certificates-carousel__arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.certificates-carousel__arrow--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.certificates-carousel__arrow--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.certificates-carousel__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 110px;
}

.certificates-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9ceca;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}

.certificates-carousel__dot.is-active {
  background: #498731;
  transform: scale(1.25);
}

@media only screen and (max-width: 1023px) {
  .certificates-carousel {
    --certificates-gap: 22px;
    --certificates-visible: 3;
  }

  .certificates-carousel__photo {
    height: 360px;
  }
}

@media only screen and (max-width: 766px) {
  .certificates-carousel {
    --certificates-gap: 20px;
    --certificates-visible: 2;
  }

  .certificates-carousel__photo {
    height: 340px;
  }
}

@media only screen and (max-width: 481px) {
  .certificates-carousel {
    --certificates-gap: 12px;
    --certificates-visible: 1;
  }

  .certificates-carousel__photo {
    height: 390px;
  }

  .certificates-carousel__controls {
    gap: 16px;
    margin-top: 28px;
    padding-bottom: 42px;
  }

  .certificates-carousel__arrow {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }
}
