.services-section {
  padding: 24px 0 76px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.06);
}

.service-card__image {
  display: block;
  height: 240px;
  background: var(--surface-soft);
  overflow: hidden;
  text-decoration: none;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-card__placeholder {
  min-height: 240px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(152, 116, 71, 0.18), transparent),
    var(--surface-soft);
  color: var(--brand);
  font-weight: 900;
}

.service-card__body {
  padding: 22px;
}

.service-card__body h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.service-card__body h2 a {
  text-decoration: none;
}

.service-card__body p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.service-card__link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 900;
}

.services-empty {
  padding: 46px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.services-empty h2 {
  margin: 0;
  font-size: 30px;
}

.services-empty p {
  color: var(--muted);
}

.service-details-hero {
  padding: 62px 0 42px;
}

.service-details-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.service-details-content,
.service-details-image,
.service-details-body article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-details-content {
  padding: 46px;
}

.service-details-content h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.12;
}

.service-details-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.9;
}

.service-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.service-details-image {
  overflow: hidden;
  min-height: 420px;
}

.service-details-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-details-body {
  padding: 0 0 78px;
}

.service-details-body article {
  padding: 36px;
}

.service-details-body h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.service-details-body p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 2;
}

@media (max-width: 980px) {
  .services-grid,
  .service-details-layout {
    grid-template-columns: 1fr;
  }

  .service-details-image {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .service-details-content,
  .service-details-body article,
  .services-empty {
    padding: 24px 20px;
  }

  .service-details-actions .btn {
    width: 100%;
  }
}