/* Quiet motion: short responses, a single entrance, no ambient loops. */
:root {
  --motion-response: 180ms;
  --motion-open: 220ms;
  --motion-ease: cubic-bezier(.2,.7,.2,1);
}
.start-card-label > svg { width:72px; height:64px; flex-shrink:0; overflow:visible; }
/* The illustration stays still; its small pictogram carries the interaction. */
.start-card-image img { transition:none; }
.start-card-image:hover img { transform:none; }

@media (prefers-reduced-motion:no-preference) {
  html:not([data-motion=off]) :is(.button,.text-link,.full-calculator,.contact-channels>a,.copy-requisite,.faq-topics button,.service-row) {
    transition:color var(--motion-response), background-color var(--motion-response), border-color var(--motion-response);
  }
  html:not([data-motion=off]) :is(.button,.text-link,.full-calculator,.supply-link,.footer-requisites,.footer-contacts a) > img[src*="arrow-right"],
  html:not([data-motion=off]) .button > span[aria-hidden],
  html:not([data-motion=off]) .service-menu-arrow {
    transition:translate var(--motion-response) var(--motion-ease);
  }
  html:not([data-motion=off]) :is(.button,.text-link,.full-calculator,.supply-link,.footer-requisites,.footer-contacts a):is(:hover,:focus-visible) > img[src*="arrow-right"],
  html:not([data-motion=off]) .button:is(:hover,:focus-visible) > span[aria-hidden],
  html:not([data-motion=off]) .services-dropdown a:is(:hover,:focus-visible) .service-menu-arrow { translate:3px 0; }
  /* Supersede the older hero arrow transform to avoid doubling its travel. */
  html:not([data-motion=off]) .hero-actions :is(a,button):hover img { transform:none; }
  html:not([data-motion=off]) .services-menu[open] .services-dropdown {
    animation:motion-menu var(--motion-response) var(--motion-ease);
  }
  html:not([data-motion=off]) #request-dialog[open] {
    animation:motion-dialog var(--motion-open) var(--motion-ease);
  }
  html:not([data-motion=off]) #request-dialog[open]::backdrop {
    animation:motion-backdrop var(--motion-response) ease-out;
  }
  html:not([data-motion=off]) .faq-answers summary span { transition:transform var(--motion-response) var(--motion-ease); }
  html:not([data-motion=off]) :is(.faq-answers details,.formula-help)[open] > :not(summary) {
    animation:motion-answer var(--motion-open) ease-out;
  }
  /* Native details remains usable without JS and on older browsers. */
  @supports (interpolate-size:allow-keywords) and (transition-behavior:allow-discrete) {
    html:not([data-motion=off]) :is(.faq-answers details,.formula-help)::details-content {
      interpolate-size:allow-keywords;
      height:0;
      overflow:clip;
      transition:height var(--motion-open) var(--motion-ease), content-visibility var(--motion-open) allow-discrete;
    }
    html:not([data-motion=off]) :is(.faq-answers details,.formula-help)[open]::details-content { height:auto; }
  }
}
@keyframes motion-menu { from { opacity:.65; translate:0 -4px; } to { opacity:1; translate:0 0; } }
@keyframes motion-dialog { from { opacity:.65; translate:0 6px; } to { opacity:1; translate:0 0; } }
@keyframes motion-backdrop { from { opacity:0; } to { opacity:1; } }
@keyframes motion-answer { from { opacity:.65; } to { opacity:1; } }

/* URL comparison mode also disables motion inherited from earlier styles. */
html[data-motion=off] { scroll-behavior:auto; }
html[data-motion=off] *, html[data-motion=off] *::before, html[data-motion=off] *::after,
html[data-motion=off] *::backdrop, html[data-motion=off] *::details-content { animation:none!important; transition:none!important; }
html[data-motion=off] .hero-actions :is(a,button):hover img { transform:none; }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto!important; }
  *, *::before, *::after, *::backdrop, *::details-content { animation:none!important; transition:none!important; }
  .hero-actions :is(a,button):hover img { transform:none; }
}
