.statistic {
  padding: 0;
}

.statistic .grid {
  align-items: stretch;
}

.statistic__image img {
  width: 100%;
}

.statistic__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacer);
  width: 100%;
  margin-left: auto;
  padding: 0 var(--spacer);
}

.statistic__headline,
.statistic__content :last-child {
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .statistic__content-wrapper {
    max-width: calc((var(--container-max-width) * 0.5) - var(--spacer--xl));
    padding: var(--spacer--lg) var(--spacer--sm) var(--spacer--lg) 0;
  }

  .section-statistic.image--left .statistic__image {
    order: 1;
  }

  .section-statistic.image--left .statistic__content-wrapper {
    order: 2;
    margin-right: auto;
    margin-left: 0;
    padding: var(--spacer--xxxl) 0 var(--spacer--xxxl) var(--spacer--sm);
  }
}

.statistic__logos {
  margin-top: var(--spacer--xl);
  row-gap: var(--spacer);
}

@media (max-width: 767px) {
  .statistic__image {
    order: 1;
  }

  .statistic__content-wrapper {
    order: 2;
  }
}

.statistic__logo {
  position: relative;
  width: 100%;
}

.statistic__logo:not(:nth-child(5n)):not(:last-child)::after {
  position: absolute;
  top: 0;
  right: calc(var(--card--gap) * -0.5);
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--gray);
  transform: translateX(50%);
}

.statistic__logo img {
  width: 100%;
  height: 100%;
  max-height: 90px;

  object-fit: contain;
  -webkit-mask-image: none;
  mask-image: none;
}
