.tpm-services {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  background: linear-gradient(180deg, var(--tpm-white), rgba(245, 253, 253, 0.92));
}

.tpm-services::before {
  content: "";
  position: absolute;
  right: max(18px, calc((100% - 1180px) / 2));
  bottom: 18px;
  width: min(650px, 54vw);
  height: min(430px, 42vw);
  background-image: var(--tpm-services-map);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: 0.72;
  pointer-events: none;
}

.tpm-services .tpm-container {
  position: relative;
  z-index: 1;
}

.tpm-services__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto 46px;
  text-align: center;
}

.tpm-matriz .tpm-services__kicker {
  margin: 0 0 10px;
  color: var(--tpm-pink) !important;
  font-family: var(--tpm-font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tpm-services__heading h2,
.tpm-matriz .tpm-services__title {
  margin: 0;
  color: var(--tpm-teal) !important;
  font-family: var(--tpm-font-body);
  font-size: clamp(30px, 3.2vw, 42px) !important;
  font-weight: 800;
  line-height: 1.12 !important;
  text-align: center;
  text-transform: uppercase;
}

.tpm-matriz .tpm-services__intro {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(14, 33, 36, 0.76);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.58;
}

.tpm-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tpm-services__card {
  display: grid;
  min-height: 178px;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid rgba(239, 0, 67, 0.24);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(0, 38, 44, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tpm-services__card:hover {
  border-color: rgba(239, 0, 67, 0.76);
  background: var(--tpm-white);
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 38, 44, 0.08);
}

.tpm-services__icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
}

.tpm-services__icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.tpm-services__card:hover .tpm-services__icon img {
  transform: rotate(-7deg) scale(1.06);
}

.tpm-services__card h3 {
  margin: 0 0 8px;
  color: var(--tpm-teal);
  font-family: var(--tpm-font-body);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.16;
  text-transform: none;
}

.tpm-services__card p {
  margin: 0;
  color: rgba(14, 33, 36, 0.74);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.48;
}

@media (max-width: 1060px) {
  .tpm-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .tpm-services__heading {
    margin-bottom: 34px;
  }

  .tpm-matriz .tpm-services__intro {
    font-size: 16px;
  }

  .tpm-services__card {
    min-height: 156px;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .tpm-services {
    padding: 70px 0 78px;
  }

  .tpm-services::before {
    right: -150px;
    bottom: 18px;
    top: auto;
    width: 480px;
    height: 320px;
  }

  .tpm-matriz .tpm-services__kicker {
    font-size: 13px;
  }

  .tpm-services__heading h2 {
    font-size: 33px !important;
    line-height: 1.08 !important;
  }

  .tpm-matriz .tpm-services__intro {
    font-size: 15px;
  }

  .tpm-services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tpm-services__card {
    min-height: 0;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
  }

  .tpm-services__icon {
    width: 56px;
    height: 56px;
  }

  .tpm-services__card h3 {
    font-size: 21px;
  }

  .tpm-services__card p {
    font-size: 13px;
  }
}

