/* =========================================================
   WILLIAM — Public services & prices
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.w-svc-head {
  position: relative;
  padding: 130px 0 26px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, .18), transparent 60%);
}
.w-svc-head h1 { margin: 18px 0 10px; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; color: var(--w-heading); letter-spacing: -.02em; }
.w-svc-head p { margin: 0 auto 28px; max-width: 560px; color: var(--w-text-muted); }

.w-svc-tools {
  position: sticky; top: 64px; z-index: 5;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  padding: 14px 0;
  background: rgba(var(--w-bg-rgb), .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.w-svc-search {
  position: relative; width: 100%; max-width: 560px; margin: 0;
}
.w-svc-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--w-text-faint); }
.w-svc-search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px;
  border-radius: 999px; border: 1px solid var(--w-border);
  background: var(--w-bg-input); color: var(--w-text); font-size: 15px;
}
.w-svc-search input:focus { outline: none; border-color: var(--w-border-focus); box-shadow: 0 0 0 3px rgba(99, 102, 241, .2); }

.w-svc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.w-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--w-border); background: var(--w-bg-card);
  color: var(--w-text-muted); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.w-chip:hover { color: var(--w-heading); border-color: rgba(99, 102, 241, .45); }
.w-chip.is-active { color: #fff; background: rgba(99, 102, 241, .2); border-color: rgba(99, 102, 241, .6); }
.w-chip:focus-visible { outline: 2px solid var(--w-primary-light); outline-offset: 2px; }

.w-svc-body { padding-top: 10px; padding-bottom: 70px; }
.w-svc-group { margin-top: 34px; }
.w-svc-group[hidden] { display: none; }
.w-svc-group-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; font-size: 20px; font-weight: 700; color: var(--w-heading);
}
.w-svc-group-title .w-net-icon { width: 38px; height: 38px; margin: 0; font-size: 17px; border-radius: 11px; }
.w-svc-group-title small { font-size: 13px; font-weight: 500; color: var(--w-text-faint); }

.w-svc-table {
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius);
  overflow: hidden;
  background: var(--w-bg-card);
}
.w-svc-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 130px 170px 120px;
  gap: 14px; align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--w-border);
  font-size: 14px;
}
.w-svc-row[hidden] { display: none; }
.w-svc-row:hover { background: var(--w-bg-hover); }
.w-svc-row--head {
  border-top: 0; background: rgba(var(--w-ov), .02);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--w-text-faint);
}
.w-svc-row--head:hover { background: rgba(var(--w-ov), .02); }
.w-svc-id { color: var(--w-text-faint); font-variant-numeric: tabular-nums; }
.w-svc-name { color: var(--w-text); line-height: 1.45; }
.w-svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.w-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; color: var(--w-text-muted); background: rgba(var(--w-ov), .06);
}
.w-tag.is-refill { color: var(--w-ok-text); background: rgba(16, 185, 129, .12); }
.w-svc-price { font-weight: 800; color: var(--w-ok-text); font-variant-numeric: tabular-nums; }
.w-svc-minmax { color: var(--w-text-muted); font-variant-numeric: tabular-nums; }
.w-svc-price small, .w-svc-minmax small { display: none; }
.w-svc-buy { text-align: right; }
.w-svc-buy .w-btn { white-space: nowrap; }

.w-svc-empty {
  margin: 40px 0; padding: 26px; text-align: center;
  border: 1px dashed var(--w-border); border-radius: var(--w-radius); color: var(--w-text-muted);
}
.w-svc-empty[hidden] { display: none; }

.w-svc-foot { border-top: 1px solid var(--w-border); padding: 22px 0; font-size: 13px; color: var(--w-text-faint); }
.w-svc-foot .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.w-svc-foot p { margin: 0; }
.w-svc-foot a { color: var(--w-text-muted); }

/* ---- Cards below 768px ---- */
@media (max-width: 767px) {
  .w-svc-head { padding-top: 110px; }
  .w-svc-tools { top: 58px; }
  .w-svc-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .w-chip { flex: 0 0 auto; }
  .w-svc-table { border: 0; background: transparent; overflow: visible; }
  .w-svc-row--head { display: none; }
  .w-svc-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "name name" "price minmax" "buy buy";
    gap: 10px 14px;
    margin-bottom: 12px; padding: 16px;
    border: 1px solid var(--w-border); border-radius: var(--w-radius);
    background: var(--w-bg-card);
  }
  .w-svc-id { display: none; }
  .w-svc-name { grid-area: name; }
  .w-svc-price { grid-area: price; }
  .w-svc-minmax { grid-area: minmax; }
  .w-svc-buy { grid-area: buy; text-align: left; }
  .w-svc-buy .w-btn { width: 100%; justify-content: center; }
  .w-svc-price small, .w-svc-minmax small {
    display: block; margin-bottom: 2px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--w-text-faint);
  }
}
