.section--services__list {
  margin-top: var(--adebeo-spacing-gap);
  display: grid;
  grid-gap: var(--adebeo-spacing-gap);
}

.section--services__item {
  position: relative;
  padding: var(--adebeo-spacing-inner);
}

.section--services__item a {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section--services__title {
  font-weight: 400;
}

.section--services__arrow {
  position: absolute;
  z-index: 2;
  bottom: 50%;
  transform: translateY(50%);
  right: 26px;
}

@media (max-width: 991px) {
  .section--services__item {
    display: grid;
    grid-gap: var(--adebeo-spacing-xs);
    padding-right: 77px;
    border: 2px solid var(--adebeo-color-primary);
    border-radius: var(--adebeo-border-radius-xs);
  }
  .section--services__item:has(.section--services__icon) {
    grid-template-columns: 38px 1fr;
    grid-template-rows: min-content min-content;
    align-items: center;
  }
  .section--services__icon {
    grid-row: span 2;
  }
  .section--services__heading {
    display: contents;
  }
}

@media (min-width: 992px) {
  .section--services {
    background-color: var(--adebeo-color-primary);
    border-radius: var(--adebeo-border-radius-xs);
    padding: var(--adebeo-spacing-xl) var(--adebeo-spacing-l);
  }
  .section--services .section__heading {
    color: var(--adebeo-white);
  }
  .section--services__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: var(--adebeo-spacing-gap);
  }
  .section--services__item {
    background-color: var(--adebeo-accent-color);
    padding-bottom: 120px;
    border-radius: var(--adebeo-border-radius-xs);
    color: var(--adebeo-text-color);
    transition: color 0.2s 0.2s ease-in-out;
  }
  .section--services__item:hover {
    color: var(--adebeo-white);
  }
  .section--services__item:nth-child(odd):last-child {
    grid-column: span 2;
  }
  .section--services__icon {
    filter: brightness(1) invert(0);
    transition: filter 0.2s 0.2s ease-in-out;
  }
  .section--services__item:hover .section--services__icon {
    filter: brightness(0) invert(1);
  }
  .section--services__item:after {
    content: '';
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--adebeo-white);
    border-radius: var(--adebeo-border-radius-xs);
  }
  .section--services__item.hover-in:after {
    animation: hover-in 0.4s ease-in-out forwards;
  }
  .section--services__item.hover-out:after {
    animation: hover-out 0.4s ease-in-out forwards;
  }
  .section--services__heading {
    position: relative;
    z-index: 2;
    margin-bottom: var(--adebeo-spacing-s);
  }
  .section--services__heading:has(.section--services__icon) {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-gap: var(--adebeo-spacing-s);
    align-items: center;
  }
  .section--services .heading__title b,
  .section--services .heading__title strong {
    color: var(--adebeo-white);
  }
  .section--services__description {
    position: relative;
    z-index: 2;
  }
  .section--services__arrow {
    right: 50px;
    bottom: 54px;
    transform: rotate(45deg);
  }
}

@keyframes hover-in {
  0% {
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
  }
  20% {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    right: -10px;
    bottom: -10px;
  }
  80% {
    width: 35px;
    height: 35px;
    right: 40px;
    bottom: 40px;
  }
  100% {
    width: 45px;
    height: 45px;
    right: 40px;
    bottom: 40px;
  }
}

@keyframes hover-out {
  0% {
    width: 45px;
    height: 45px;
    right: 40px;
    bottom: 40px;
  }
  20% {
    width: 37px;
    height: 37px;
    right: 40px;
    bottom: 40px;
  }
  80% {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    right: -10px;
    bottom: -10px;
  }
  100% {
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
  }
}
