.block--service-cards {
  background-color: #fff;
  padding: 40px 0;
  width: 100%;
  overflow: hidden
}

@media screen and (min-width: 920px) {
  .block--service-cards {
    padding: 100px 0
  }
}

@media screen and (min-width: 1250px) {
  .block--service-cards {
    padding: 140px 0
  }
}

.service-cards__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: 40px
}

.service-cards__heading {
  font-family: "Axiforma", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  color: #50565b;
  margin: 0;
  max-width: 723px
}

@media screen and (min-width: 782px) {
  .service-cards__heading {
    font-size: 48px;
    line-height: 1.12
  }
}

@media screen and (min-width: 1250px) {
  .service-cards__heading {
    font-size: 60px;
    line-height: 1.08
  }
}

.service-cards__description {
  font-family: "TT Norms Pro", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.62;
  color: #1b1b1b;
  margin: 0;
  max-width: 700px
}

@media screen and (min-width: 782px) {
  .service-cards__description {
    font-size: 18px;
    line-height: 1.56
  }
}

@media screen and (min-width: 1250px) {
  .service-cards__description {
    font-size: 20px;
    line-height: 1.5
  }
}

.service-cards__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 100%
}

@media screen and (min-width: 920px) {
  .service-cards__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
  }
}

.service-card {
  position: relative;
  background-color: #f6f6f9;
  border: 1px solid #2154d7;
  border-radius: 40px 0;
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 0 10px 0 rgba(33, 84, 215, .2);
  transition: all .5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

@media screen and (min-width: 782px) {
  .service-card {
    min-height: 420px
  }
}

@media screen and (min-width: 1250px) {
  .service-card {
    min-height: 470px
  }
}

.service-card:hover {
  background-color: #0b2663;
  border-color: #0b2663;
  box-shadow: none
}

.service-card:hover .service-card__image img {
  transform: scale(1.15)
}

.service-card:hover .service-card__gradient {
  background: linear-gradient(122deg, #2154d7 41.4%, rgba(11, 38, 99, 0) 132%, #0b2663 135%, rgba(11, 38, 99, 0) 139%)
}

.service-card:hover .service-card__title {
  color: #f6f6f6
}

.service-card:hover .service-card__desc {
  color: #fff
}

.service-card:hover .btn--service-primary {
  background-color: #fff;
  color: #0b2663
}

.service-card:hover .btn--service-secondary {
  background-color: transparent;
  border-color: #fff;
  color: #fff
}

.service-card__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  z-index: 1
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

.service-card__gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(122deg, #2154d7 1.6%, rgba(11, 38, 99, 0) 0.6%, #f6f6f9 0.7%, #f6f6f9 50.3%, rgba(246, 246, 249, 0) 99%);
  transition: background .5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

.service-card__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: inherit;
  padding: 20px
}

@media screen and (min-width: 782px) {
  .service-card__content {
    padding: 25px 30px
  }
}

@media screen and (min-width: 1250px) {
  .service-card__content {
    padding: 30px 40px
  }
}

.service-card__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden
}

.service-card__title {
  font-family: "Axiforma", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.36;
  color: #50565b;
  margin: 0;
  transition: color .5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

@media screen and (min-width: 782px) {
  .service-card__title {
    font-size: 24px;
    line-height: 1.5
  }
}

@media screen and (min-width: 1250px) {
  .service-card__title {
    font-size: 28px;
    line-height: 1.5
  }
}

.service-card__desc {
  font-family: "TT Norms Pro", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: #1b1b1b;
  margin: 0;
  max-width: 517px;
  transition: color .5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

@media screen and (min-width: 782px) {
  .service-card__desc {
    font-size: 17px;
    line-height: 1.59
  }
}

@media screen and (min-width: 1250px) {
  .service-card__desc {
    font-size: 20px;
    line-height: 1.5
  }
}

.service-card__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px
}

.btn--service-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: #2154d7;
  color: #f6f6f6;
  font-family: "Axiforma", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.62;
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: all .5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

@media screen and (min-width: 782px) {
  .btn--service-primary {
    font-size: 18px;
    line-height: 1.56;
    padding: 9px 22px
  }
}

@media screen and (min-width: 1250px) {
  .btn--service-primary {
    font-size: 20px;
    line-height: 1.5;
    padding: 10px 25px
  }
}

.btn--service-primary:hover {
  background-color: #0b2663;
  color: #f6f6f6
}

.btn--service-primary .btn__icon {
  flex-shrink: 0
}

.btn--service-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: #ffffff;
  color: #2154d7;
  font-family: "Axiforma", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.62;
  padding: 8px 20px;
  border-radius: 25px;
  border: 1.5px solid #2154d7;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all .5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

@media screen and (min-width: 782px) {
  .btn--service-secondary {
    font-size: 18px;
    line-height: 1.56;
    padding: 9px 22px
  }
}

@media screen and (min-width: 1250px) {
  .btn--service-secondary {
    font-size: 20px;
    line-height: 1.5;
    padding: 10px 25px
  }
}

.btn--service-secondary:hover {
  background-color: #2154d7;
  color: #f6f6f6
}

.btn--service-secondary .btn__icon {
  flex-shrink: 0
}

.service-cards__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  padding: 0 15px;
  box-sizing: border-box
}

.service-cards__footer a.btn--service-primary {
  margin-bottom: 12px
}

@media screen and (min-width: 1250px) {
  .service-cards__footer {
    gap: 30px;
    padding: 0
  }
}

.service-cards__footer-heading {
  font-family: "Axiforma", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.36;
  color: #50565b;
  margin: 0;
  max-width: 100%;
  word-wrap: break-word
}

@media screen and (min-width: 782px) {
  .service-cards__footer-heading {
    font-size: 24px;
    line-height: 1.5
  }
}

@media screen and (min-width: 1250px) {
  .service-cards__footer-heading {
    font-size: 28px;
    line-height: 1.5
  }
}

/* Button hover overrides — icons follow text via currentColor */
.btn--service-primary:hover,
.btn--service-primary:focus {
  background-color: #0b2663;
  color: #f6f6f6
}

.btn--service-secondary:hover,
.btn--service-secondary:focus {
  background-color: #fff;
  color: #0b2663;
  border-color: #fff
}

.service-card:hover .btn--service-primary:hover,
.service-card:hover .btn--service-primary:focus {
  background-color: #0b2663;
  color: #f6f6f6
}

.service-card:hover .btn--service-secondary:hover,
.service-card:hover .btn--service-secondary:focus {
  background-color: #fff;
  color: #0b2663;
  border-color: #fff
}

@media (max-width: 767px) {
  .btn--service-primary,
  .btn--service-secondary {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    padding: 8px 14px;
  }
}