/* Builds on theme.css + home.css */

.svc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 16px;
}
.svc-head h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.2px; }

.offer-btn {
  white-space: nowrap; flex: none;
  height: 40px; padding: 0 18px; border-radius: 8px;
  border: 1.5px solid var(--border); color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
}
.offer-btn:hover { background: var(--soft); }
.offer-btn svg { width: 18px; height: 18px; stroke-width: 2.4; }


.svc-grid {
  display: grid; grid-template-columns: repeat(var(--cols-d, 3), minmax(0, 1fr));
  gap: 28px 24px; margin-top: 28px;
}
.svc { display: flex; flex-direction: column; }
.svc-img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; display: block;
  border-radius: 10px; background: var(--soft);
}
.svc-cat { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--green-dark); }
.svc-title {
  margin: 4px 0 0; font-size: 17px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svc-by { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.svc-by .mini {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--green-tint); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.svc-by .tick { width: 15px; height: 15px; color: var(--green-dark); }
.svc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.svc-price { font-size: 16px; font-weight: 700; }
.svc-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.svc-meta { font-size: 13px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; min-width: 0; }
.svc-chat {
  height: 40px; padding: 0 16px; border-radius: 8px; flex: none;
  background: var(--soft); color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
}
.svc-chat:hover { background: var(--soft-hover); }
.svc-chat svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .svc-head h1 { font-size: 20px; }
  .svc-head { flex-wrap: wrap; gap: 10px; }
  .svc-actions { width: 100%; justify-content: space-between; }
  .offer-btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .svc-grid { grid-template-columns: repeat(var(--cols-m, 2), minmax(0, 1fr)); gap: 20px 12px; margin-top: 16px; }
  .svc-img { aspect-ratio: 1 / 1; border-radius: 8px; }
  .svc-cat { margin-top: 8px; font-size: 12px; }
  .svc-title { margin-top: 2px; font-size: 14px; font-weight: 500; }
  .svc-by { margin-top: 6px; font-size: 12px; gap: 6px; }
  .svc-by .mini { width: 20px; height: 20px; font-size: 10px; }
  .svc-by .tick { width: 13px; height: 13px; }
  .svc-foot { margin-top: 8px; padding-top: 0; border-top: 0; }
  .svc-price { font-size: 16px; }
  .svc-price small { font-size: 12px; }
  .svc-meta { font-size: 12px; }
  .svc-chat { display: none; }
}

.svc-link { display: block; text-decoration: none; color: var(--ink); }
.svc-link:hover .svc-title { text-decoration: underline; text-underline-offset: 3px; }
button.svc-chat { border: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

.svc-by-name { color: inherit; text-decoration: none; position: relative; z-index: 1; }
.svc-by-name:hover { text-decoration: underline; }

.mini { background-size: cover; background-position: center; overflow: hidden; }

.svc-actions { display: flex; align-items: center; gap: 12px; }
