.services-section {
  padding: 74px 36px 82px;
  background: var(--white);
  overflow: hidden;
}

.services-container {
  width: min(1560px, 100%);
  margin: 0 auto;
}

.services-header {
  max-width: 980px;
  margin-bottom: 34px;
}

.services-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px 8px;
  margin-bottom: 18px;
  background: var(--orange);
  color: var(--white);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.services-header h2 {
  color: var(--black);
  font-size: clamp(52px, 5.7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 900;
  margin-bottom: 18px;
}

.services-header p {
  max-width: 780px;
  color: var(--text);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.45;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.service-card {
  min-height: 330px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.055);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 0, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 34px 6px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-body {
  flex: 1;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 28px 28px;
}

.service-small-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(255, 61, 0, 0.2);
}

.service-small-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}

.service-content {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  color: var(--black);
  font-size: clamp(23px, 1.8vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 900;
  margin-bottom: 14px;
}

.service-content p {
  color: #51413d;
  font-size: 17px;
  line-height: 1.52;
  margin-bottom: 24px;
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--orange);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.service-link strong {
  font-size: 27px;
  line-height: 1;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.service-card:hover .service-link strong {
  transform: translateX(5px);
}

@media (max-width: 1200px) {
  .services-section {
    padding: 70px 28px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(620px, 100%);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .services-section {
    padding: 58px 18px;
  }

  .services-badge {
    padding: 8px 18px 7px;
    font-size: 13px;
  }

  .services-header h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.065em;
  }

  .services-header p {
    font-size: 17px;
  }

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

  .service-card,
  .service-card:last-child:nth-child(odd) {
    width: 100%;
    min-height: 0;
  }

  .service-image {
    height: 150px;
    padding: 18px 22px 4px;
  }

  .service-body {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 14px 20px 24px;
  }

  .service-small-icon {
    width: 42px;
    height: 42px;
  }

  .service-small-icon svg {
    width: 20px;
    height: 20px;
  }

  .service-content h3 {
    font-size: 23px;
  }

  .service-content p {
    font-size: 16px;
  }

  .service-link {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .service-image {
    height: 132px;
  }

  .service-body {
    grid-template-columns: 1fr;
  }

  .service-small-icon {
    margin-bottom: 2px;
  }
}
