.motion-controls { margin: 22px 0 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.motion-controls h2 { margin: 0 0 12px; font-size: 18px; }
.motion-controls > div { display: flex; flex-wrap: wrap; gap: 8px; }
.motion-controls button { padding: 8px 12px; cursor: pointer; border: 1px solid var(--line); border-radius: 7px; background: #f0f2f9; color: var(--ink); font-size: 14px; }
.motion-controls button[aria-pressed="true"] { color: #ffffff; background: var(--accent); border-color: var(--accent); }
.motion-controls [data-replay] { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .service-catalog[data-motion] article { animation: var(--effect) 520ms cubic-bezier(.22,1,.36,1) var(--delay) backwards; }
  .service-catalog[data-motion="1"] { --effect: card-rise; }
  .service-catalog[data-motion="2"] { --effect: card-fade; }
  .service-catalog[data-motion="2"] article { animation-delay: 0ms; }
  .service-catalog[data-motion="3"] { --effect: card-slide; }
  .service-catalog[data-motion="3"] article:nth-child(odd) { --offset: -12px; }
  .service-catalog[data-motion="4"] { --effect: card-wipe; }
  .service-catalog[data-motion="5"] { --effect: card-focus; }
  .service-catalog[data-motion="6"] article { transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
  .service-catalog[data-motion="6"] article:hover, .service-catalog[data-motion="6"] article.is-demo {
    transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 26px #0005;
  }
}
@keyframes card-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes card-fade { from { opacity: .15; } to { opacity: 1; } }
@keyframes card-slide { from { opacity: 0; transform: translateX(var(--offset, 12px)); } to { opacity: 1; transform: none; } }
@keyframes card-wipe { from { clip-path: inset(0 100% 0 0 round 11px); } to { clip-path: inset(0 round 11px); } }
@keyframes card-focus { from { opacity: 0; filter: blur(4px); transform: scale(.98); } to { opacity: 1; filter: none; transform: none; } }

.service-catalog { scroll-margin-top: 115px; }
