.alpa-service-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.alpa-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 48%);
  align-items: stretch;
  width: 100%;
  background: transparent;
  overflow: visible;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.08));
}

.alpa-service-card--reverse {
  grid-template-columns: minmax(320px, 48%) minmax(0, 1fr);
}

.alpa-service-card--reverse .alpa-service-card__content {
  order: 2;
}

.alpa-service-card--reverse .alpa-service-card__media {
  order: 1;
}

.alpa-service-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
  background: #fff;
}

.alpa-service-card__icon-wrap {
  margin-bottom: 24px;
}

.alpa-service-card__icon {
  display: block;
  max-width: 50px;
  width: 100%;
  height: auto;
  transition: transform .35s ease, opacity .35s ease;
}

.alpa-service-card:hover .alpa-service-card__icon {
  transform: translate3d(4px,-3px,0);
}

.alpa-service-card__title {
  margin: 0 0 20px;
  color: #000;
  font-weight: 500;
  line-height: 1.15;
}

.alpa-service-card__text,
.alpa-service-card__text p {
  color: #111;
}

.alpa-service-card__text p {
  margin: 0 0 16px;
}

.alpa-service-card__text p:last-child {
  margin-bottom: 0;
}

.alpa-service-card--default .alpa-service-card__title {
  font-size: 40px;
}

.alpa-service-card--default .alpa-service-card__text,
.alpa-service-card--default .alpa-service-card__text p {
  font-size: 20px;
  line-height: 1.8;
}

.alpa-service-card--compact .alpa-service-card__title {
  font-size: 32px;
}

.alpa-service-card--compact .alpa-service-card__text,
.alpa-service-card--compact .alpa-service-card__text p {
  font-size: 17px;
  line-height: 1.7;
}

.alpa-service-card--large .alpa-service-card__title {
  font-size: 46px;
}

.alpa-service-card--large .alpa-service-card__text,
.alpa-service-card--large .alpa-service-card__text p {
  font-size: 22px;
  line-height: 1.9;
}

.alpa-service-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.alpa-service-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none !important;
  transition: all .35s ease;
}

.alpa-service-card__btn--primary {
  min-width: 158px;
  padding: 15px 28px;
  background: #2f5fe7;
  color: #fff !important;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(47, 95, 231, 0.18);
}

.alpa-service-card__btn--primary:hover {
  transform: translateY(-2px);
  background: #244fd3;
  box-shadow: 0 14px 30px rgba(47, 95, 231, 0.24);
}

.alpa-service-card__btn--ghost {
  padding: 14px 6px;
  color: #111 !important;
  font-size: 17px;
  font-weight: 500;
}

.alpa-service-card__btn--ghost:hover {
  transform: translateY(-2px);
}

.alpa-service-card__btn-arrow {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  transition: transform .35s ease;
}

.alpa-service-card__btn--ghost:hover .alpa-service-card__btn-arrow {
  transform: translate3d(4px,-2px,0);
}

.alpa-service-card__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: transparent;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 76%, 86% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 86% 100%, 0 100%);
}

.alpa-service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.alpa-service-card:hover .alpa-service-card__media img {
  transform: scale(1.035);
}

@media (max-width: 1199px) {
  .alpa-service-card__content {
    padding: 52px 40px;
  }

  .alpa-service-card--default .alpa-service-card__title { font-size: 34px; }
  .alpa-service-card--large .alpa-service-card__title { font-size: 38px; }
  .alpa-service-card--compact .alpa-service-card__title { font-size: 28px; }

  .alpa-service-card--default .alpa-service-card__text,
  .alpa-service-card--default .alpa-service-card__text p,
  .alpa-service-card--large .alpa-service-card__text,
  .alpa-service-card--large .alpa-service-card__text p {
    font-size: 18px;
    line-height: 1.75;
  }
}

@media (max-width: 860px) {
  .alpa-service-card,
  .alpa-service-card--reverse {
    grid-template-columns: 1fr;
  }

  .alpa-service-card__content,
  .alpa-service-card--reverse .alpa-service-card__content {
    order: 1;
    padding: 36px 26px;
  }

  .alpa-service-card__media,
  .alpa-service-card--reverse .alpa-service-card__media {
    order: 2;
    min-height: 320px;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  }

  .alpa-service-card--default .alpa-service-card__title,
  .alpa-service-card--large .alpa-service-card__title,
  .alpa-service-card--compact .alpa-service-card__title {
    font-size: 28px;
  }

  .alpa-service-card--default .alpa-service-card__text,
  .alpa-service-card--default .alpa-service-card__text p,
  .alpa-service-card--large .alpa-service-card__text,
  .alpa-service-card--large .alpa-service-card__text p,
  .alpa-service-card--compact .alpa-service-card__text,
  .alpa-service-card--compact .alpa-service-card__text p {
    font-size: 16px;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .alpa-service-card__content {
    padding: 28px 22px;
  }

  .alpa-service-card__actions {
    gap: 12px;
    margin-top: 26px;
  }

  .alpa-service-card__btn--primary,
  .alpa-service-card__btn--ghost {
    font-size: 15px;
  }

  .alpa-service-card__media {
    min-height: 250px;
  }
}
