/* Service directions extend the existing open, ruled Lonch layout. */
.category-hero.page-hero { min-height: 0; padding-bottom: 0; }
.category-hero .hero-shell { padding-top: clamp(132px, 14vh, 170px); padding-bottom: clamp(48px, 5vw, 80px); }
.category-hero .breadcrumbs { margin-bottom: clamp(30px, 4vw, 52px); }
.category-hero .category-switcher { margin: 44px 0 0; }
.category-hero .hero-title { font-size: clamp(34px, 4.8vw, 72px); line-height: 1.08; }
.category-hero .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.category-hero .hero-grid > * { min-width: 0; }
.category-hero .hero-aside p { margin-top: 0; }
.category-hero .hero-title { overflow-wrap: anywhere; hyphens: auto; }

.category-switcher { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 clamp(40px, 5vw, 72px); }
.category-switcher a { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; max-width: 100%; padding: 12px 16px; border: 1px solid var(--line-dark); border-radius: var(--control-radius, 12px); font-size: 14px; line-height: 1.4; text-decoration: none; transition: background .15s ease, color .15s ease; }
.section-light .category-switcher a { border-color: var(--line-light); }
.category-switcher a span { min-width: 0; overflow-wrap: anywhere; }
.category-switcher a svg { width: 16px; height: 16px; flex: 0 0 16px; }
.category-switcher a[aria-current="page"] { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.category-switcher a:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.category-switcher a:focus-visible { outline: 2px solid var(--acid); outline-offset: 5px; }
.section-light .category-switcher a:focus-visible { outline-color: var(--acid-dark); }
.section-light .category-switcher a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.category-service-list { border-top: 1px solid var(--line-light); }
.section-dark .category-service-list { border-color: var(--line-dark); }
.category-service-item { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: start; gap: clamp(24px, 4vw, 64px); padding: clamp(30px, 4vw, 56px) 0; border-bottom: 1px solid var(--line-light); color: inherit; text-decoration: none; }
.section-dark .category-service-item { border-color: var(--line-dark); }
.category-service-item > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.category-service-item h2, .category-service-item h3 { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.5vw, 38px); line-height: 1.2; font-weight: 540; letter-spacing: -.03em; overflow-wrap: anywhere; hyphens: auto; }
.category-service-item p { max-width: 60ch; margin: 0; color: var(--muted-light); font-size: 17px; line-height: 1.6; }
.section-dark .category-service-item p { color: var(--muted-dark); }
.category-service-item > svg { width: 28px; height: 28px; margin-top: 4px; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.category-service-item:focus-visible { outline: 2px solid var(--acid-dark); outline-offset: 6px; }
.section-dark .category-service-item:focus-visible { outline-color: var(--acid); }
@media (hover: hover) {
  .category-service-item:hover > svg { transform: translate(3px, -3px); }
  .category-service-item:hover h2, .category-service-item:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
}
@media (max-width: 980px) {
  .category-hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .category-hero .hero-aside { max-width: 650px; }
  .category-service-item > div { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 680px) {
  .category-hero .hero-shell { padding-top: 118px; }
  .category-switcher { flex-wrap: nowrap; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding: 6px 4px 12px; scrollbar-width: thin; scrollbar-color: var(--acid) transparent; }
  .category-switcher::-webkit-scrollbar { height: 3px; }
  .category-switcher::-webkit-scrollbar-thumb { background: var(--acid); }
  .category-switcher a { flex-shrink: 0; width: auto; max-width: none; white-space: nowrap; }
  .category-hero .category-switcher { margin-top: 28px; }
  .category-service-item { grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; }
  .category-service-item > svg { width: 24px; height: 24px; }
  .category-service-item p { font-size: 16px; }
  .category-hero .hero-title { font-size: clamp(32px, 8.5vw, 46px); }
}
@media (prefers-reduced-motion: reduce) {
  .category-switcher a, .category-service-item > svg { transition: none; }
  .category-service-item:hover > svg { transform: none; }
}
