.event-services {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.event-services__item {
  padding: 28px 32px;
  width: calc((100% / 3) - 16px);
  display: flex;
  flex-direction: column;
  background: #faf8f8;
  border: 1px solid #faf8f8;
  border-radius: 20px;
  position: relative;
}

.event-services__item.is-active {
  border-color: #f3d84a;
}

.event-services__item.is-active .event-services__button_add svg:nth-child(1) {
  display: none;
}

.event-services__item.is-active .event-services__button_add svg:nth-child(2) {
  display: block;
}

.event-services__text {
  margin-bottom: 24px;
}

.event-services__item-title {
  margin-bottom: 20px;
  display: block;
  font-family: "Igra Sans";
  font-size: 24px;
  line-height: 1;
  color: #141414;
}

.event-services__item-description {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 24px;
  color: #141414;
  text-align: initial;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.event-services__item-footnote {
  display: block;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: #141414;
}

.event-services__item-image {
  margin-top: auto;
  aspect-ratio: 332/200;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
  position: relative;

  &::before,
  &::after {
    content: "";
    display: block;
    width: 62px;
    height: 62px;
    position: absolute;
    z-index: 1;
    bottom: -1px;
  }

  &::before {
    background: url("/local/templates/events_redizign/images/events/service-decor-left.svg")
      no-repeat center;
    background-size: contain;
    left: -1px;
  }

  &::after {
    background: url("/local/templates/events_redizign/images/events/service-decor-right.svg")
      no-repeat center;
    background-size: contain;
    right: -1px;
  }
}

.event-services__item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-services__button {
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  font-size: 0;
  cursor: pointer;
  transition: 0.3s ease-out;
  position: absolute;
  bottom: 28px;
  z-index: 2;
}

.event-services__button svg {
  width: 24px;
  height: 24px;
}

.event-services__button_add svg:nth-child(2) {
  display: none;
}

.event-services__button_add {
  background: #f3d84a;
  left: 31px;
}

.event-services__button_more {
  background: #d44b3f;
  right: 31px;
}

@media (hover: hover) {
  .event-services__button_add:hover {
    background: #e9c819;
  }

  .event-services__button_more:hover {
    background: #b02e23;
  }
}

@media (max-width: 1200px) {
  .event-services {
    gap: 16px;
  }

  .event-services__item {
    padding: 21px 24px;
    padding-left: 21px;
    width: calc(100% / 2 - 8px);
  }

  .event-services__text {
    margin-bottom: 16px;
  }

  .event-services__item-title {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 24px;
  }

  .event-services__item-description {
    margin-bottom: 8px;
  }

  .event-services__item-image {
    aspect-ratio: 312/200;

    &::before,
    &::after {
      width: 64px;
      height: 64px;
    }
  }

  .event-services__button {
    bottom: 21px;
  }

  .event-services__button_add {
    left: 23px;
  }

  .event-services__button_more {
    right: 24px;
  }
}

@media (max-width: 767px) {
  .event-services {
    flex-direction: column;
    gap: 16px;
  }

  .event-services__item {
    padding: 20px 16px 16px;
    width: 100%;
    border-radius: 16px;
  }

  .event-services__text {
    margin-bottom: 16px;
  }

  .event-services__item-title {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .event-services__item-description {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 19px;
  }

  .event-services__item-footnote {
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
  }

  .event-services__item-image {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    aspect-ratio: 256/160;

    &::before,
    &::after {
      width: 58px;
      height: 58px;
    }
  }

  .event-services__button {
    bottom: 15px;
  }

  .event-services__button_add {
    left: 15px;
  }

  .event-services__button_more {
    right: 15px;
  }
}
