/* Dev-hero brands carousel */
.dhb-carousel {
  margin: 24px 0;
  padding: 24px 0;
}

.dhb-carousel__head {
  margin-bottom: 18px;
}

.dhb-carousel__body {
  position: relative;
}

.dhb-carousel__body--full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.dhb-carousel__wrap {
  position: relative;
}

.dhb-carousel__owl.owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.dhb-carousel__owl.owl-carousel .owl-item {
  display: flex;
}

.dhb-carousel__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 220px;
  padding: 22px 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.dhb-carousel__item:hover,
.dhb-carousel__item:focus {
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.dhb-carousel__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  max-width: 100%;
}

.dhb-carousel__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dhb-carousel__name {
  display: block;
  width: 100%;
  font-size: 1em;
  line-height: 1.3;
  color: #222;
  word-break: break-word;
}

/* Owl nav buttons — стиль из шаблона */
.dhb-carousel .owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
  margin: 0;
}

.dhb-carousel .owl-carousel .owl-nav button.owl-prev,
.dhb-carousel .owl-carousel .owl-nav button.owl-next {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 50%;
  color: #222 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dhb-carousel .owl-carousel .owl-nav button.owl-prev {
  margin-left: -18px;
}

.dhb-carousel .owl-carousel .owl-nav button.owl-next {
  margin-right: -18px;
}

.dhb-carousel .owl-carousel .owl-nav button.owl-prev:hover,
.dhb-carousel .owl-carousel .owl-nav button.owl-next:hover {
  background: var(--btn-primary-bg, #000) !important;
  color: var(--btn-primary-c, #fff) !important;
  border-color: var(--btn-primary-bg, #000) !important;
}

.dhb-carousel .owl-carousel .owl-nav button.owl-prev.disabled,
.dhb-carousel .owl-carousel .owl-nav button.owl-next.disabled {
  opacity: 0.4;
  cursor: default;
}

.dhb-carousel .owl-carousel .owl-dots {
  margin-top: 16px;
  text-align: center;
}

.dhb-carousel .owl-carousel .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

.dhb-carousel .owl-carousel .owl-dots .owl-dot.active span {
  background: var(--btn-primary-bg, #000);
}

.dhb-carousel__footer {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.dhb-carousel__footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 991px) {
  .dhb-carousel__thumb { width: 96px; height: 96px; }
  .dhb-carousel__item  { min-height: 180px; padding: 16px 10px; gap: 10px; }
  .dhb-carousel .owl-carousel .owl-nav button.owl-prev { margin-left: 0; }
  .dhb-carousel .owl-carousel .owl-nav button.owl-next { margin-right: 0; }
}

@media (max-width: 575px) {
  .dhb-carousel__thumb { width: 80px; height: 80px; }
}
