.service-topics {
  margin-top: 56px;
}

.topic-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topic-heading h3 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
}

.topic-controls {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.topic-heading button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.topic-heading [data-topics-pause] {
  font-size: 0;
}
.topic-heading [data-topics-pause]::before {
  content: "Ⅱ";
  font-size: 16px;
}

.topic-heading [data-topics-pause][aria-pressed="true"]::before {
  content: "▷";
}

.topic-heading button[hidden] {
  display: none;
}

.topic-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.topic-track::-webkit-scrollbar {
  display: none;
}

.topic-track > a {
  position: relative;
  display: flex;
  flex: 0 0 184px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 184px;
  padding: 22px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(49, 34, 57, 0.08);
  color: var(--ink);
  text-align: center;
  scroll-snap-align: start;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.topic-icon {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  fill: none;
  stroke: var(--purple);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.topic-track > a > span {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.topic-track > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(49, 34, 57, 0.12);
}

@media (max-width: 700px) {
  .service-topics {
    margin-top: 40px;
  }
  .topic-heading {
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 8px;
  }
  .topic-heading h3 {
    font-size: 19px;
  }
  .topic-heading button {
    width: 34px;
    flex-basis: 34px;
  }
  .topic-track {
    gap: 16px;
    padding-bottom: 18px;
  }
  .topic-track > a {
    flex-basis: 164px;
    min-height: 164px;
    padding: 18px 14px;
  }
  .topic-icon {
    width: 56px;
    height: 56px;
  }
}
