.uaubs {
  width: 100%;
  margin: 34px 0;
  color: #111;
}

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

.uaubs__kicker {
  display: block;
  margin-bottom: 6px;
  color: #222;
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  text-transform: none;
}

.uaubs__title {
  margin: 0;
  color: #111;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.uaubs__subtitle {
  margin: 7px 0 0;
  color: #666;
  font-size: 15px;
  line-height: 1.4;
}

.uaubs__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  align-items: center;
}

.uaubs__all {
  margin-right: 8px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.uaubs__all:hover,
.uaubs__all:focus {
  color: #ff5a00;
}

.uaubs__nav {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.uaubs__nav::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #111;
  border-right: 2px solid #111;
  content: "";
}

.uaubs__nav--prev::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.uaubs__nav--next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

.uaubs__nav:hover,
.uaubs__nav:focus {
  border-color: #111;
}

.uaubs__track {
  display: grid;
  grid-auto-columns: minmax(210px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

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

.uaubs__card {
  min-width: 0;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
  overflow: hidden;
}

.uaubs__media {
  position: relative;
  display: flex;
  height: 210px;
  padding: 18px;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.uaubs__media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 174px;
  object-fit: contain;
}

.uaubs__placeholder {
  display: flex;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  color: #777;
  background: #fff;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
}

.uaubs__rank {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 38px;
  padding: 7px 9px;
  border-radius: 5px;
  color: #fff;
  background: #ff5a00;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.uaubs__body {
  padding: 16px;
}

.uaubs__brand {
  display: block;
  min-height: 18px;
  margin-bottom: 5px;
  color: #777;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.uaubs__name {
  min-height: 42px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.uaubs__name a {
  color: #111;
  text-decoration: none;
}

.uaubs__name a:hover,
.uaubs__name a:focus {
  color: #ff5a00;
}

.uaubs__price {
  margin-bottom: 14px;
  color: #111;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.uaubs__button {
  display: flex;
  min-height: 42px;
  border-radius: 5px;
  color: #fff;
  background: #050505;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.uaubs a.uaubs__button,
.uaubs a.uaubs__button:visited {
  color: #fff !important;
}

.uaubs__button:hover,
.uaubs__button:focus {
  color: #fff !important;
  background: #ff5a00;
  text-decoration: none;
}

@media (min-width: 1200px) {
  .uaubs__track {
    grid-auto-columns: calc((100% - 72px) / 5);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .uaubs__track {
    grid-auto-columns: calc((100% - 36px) / 3);
  }
}

@media (max-width: 767px) {
  .uaubs {
    margin: 24px 0;
  }

  .uaubs__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .uaubs__title {
    font-size: 23px;
  }

  .uaubs__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .uaubs__all {
    margin-right: auto;
  }

  .uaubs__track {
    grid-auto-columns: minmax(220px, 78%);
    gap: 14px;
  }

  .uaubs__media {
    height: 190px;
  }
}
