.brand-list {
  background-color: rgb(255 255 255);
}

.block-brand-card {
  --brand-card-line: rgb(7 49 111);
  position: relative;
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
  background-color: rgb(255 255 255);
  border-bottom: clamp(2px, 0.45cqw, 5px) solid var(--brand-card-line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.block-brand-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: var(--aspect-ratio);
  padding: var(--padding);
  overflow: hidden;
  font-size: 0;
  background-color: rgb(var(--color-media-background));
}

.block-brand-list__link img {
  display: block;
  width: 100%;
  height: auto;
  background-color: transparent;
  animation: fadeIn 1s cubic-bezier(0.26, 0.54, 0.32, 1) 0s forwards;
}

.block-brand-list__link svg {
  width: 100%;
  height: 100%;
}

.brand-list .block-brand-card__image-wrapper {
  padding: 12px 12px 0;
  background-color: rgb(255 255 255);
}

.brand-list .block-brand-list__theme-carousel,
.brand-list .block-brand-list {
  background-color: rgb(255 255 255);
}

.brand-list .block-brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgb(7 49 111 / 10%);
}

.block-brand-card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(42px, 9cqw, 76px);
  padding: clamp(8px, 1.8cqw, 16px) clamp(8px, 2cqw, 20px) clamp(10px, 2.2cqw, 18px);
  color: rgb(35 35 35);
  font-size: clamp(14px, 4cqw, 30px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 959px) {
  .block-brand-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-bottom: 0;
  }

  .block-brand-card::after {
    position: absolute;
    inset-inline-start: 5%;
    inset-block-end: 0;
    width: 90%;
    height: clamp(2px, 0.45cqw, 5px);
    pointer-events: none;
    content: "";
    background-color: var(--brand-card-line);
  }

  .brand-list .block-brand-card__image-wrapper {
    flex: 0 0 auto;
    padding: 8px 8px 0;
  }

  .block-brand-card__title {
    flex: 1 0 auto;
    min-height: clamp(36px, 10cqw, 58px);
  }
}
