/* Unified CTA motion: the hover color rises as a separate layer. */
body .site-shell .button {
  --button-rest-bg: transparent;
  --button-fill: var(--component-blue, var(--blue));
  --button-hover-color: #fff;
  --button-hover-border: var(--button-fill);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--button-rest-bg);
  background-image: none;
  transition: color 300ms ease, border-color 300ms ease;
}

body .site-shell .button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--button-fill);
  pointer-events: none;
  transform: translateY(101%);
  transition: transform 520ms cubic-bezier(.23, 1, .32, 1);
}

body .site-shell .button.button--outline {
  --button-rest-bg: #fff;
  --button-fill: var(--component-blue, var(--blue));
  --button-hover-color: #fff;
}

body .site-shell .button.button--primary {
  --button-rest-bg: var(--component-blue, var(--blue));
  --button-fill: #fff;
  --button-hover-color: var(--component-blue, var(--blue));
}

body.home-page .hero-actions .button.button--outline {
  --button-rest-bg: transparent;
  --button-fill: #fff;
  --button-hover-color: var(--text-color, var(--ink));
  --button-hover-border: #fff;
}

body.home-page .hero-actions .button.button--primary {
  --button-rest-bg: #fff;
  --button-fill: var(--component-blue, var(--blue));
  --button-hover-color: #fff;
  --button-hover-border: var(--component-blue, var(--blue));
}

body .site-shell .button.button--outline:hover,
body .site-shell .button.button--outline:focus-visible,
body .site-shell .button.button--primary:hover,
body .site-shell .button.button--primary:focus-visible {
  background-color: var(--button-rest-bg);
  background-image: none;
  border-color: var(--button-hover-border);
  color: var(--button-hover-color);
}

body .site-shell .button.button--outline:hover::before,
body .site-shell .button.button--outline:focus-visible::before,
body .site-shell .button.button--primary:hover::before,
body .site-shell .button.button--primary:focus-visible::before {
  transform: translateY(0);
}

body .site-shell .main-nav a,
body .site-shell .phone,
body .site-shell .site-footer a:not(.site-footer__logo),
body .site-shell .card-action,
body .site-shell .solution-link,
body .site-shell .related-card--service .related-card__cta,
body .site-shell .related-card__product-copy > a,
body .site-shell .product-related__heading > a {
  isolation: isolate;
  overflow: hidden;
  background-color: transparent;
  transition: color 300ms ease;
}

body .site-shell .main-nav a,
body .site-shell .phone,
body .site-shell .site-footer a:not(.site-footer__logo) {
  position: relative;
}

body .site-shell .related-card__product-copy > a,
body .site-shell .product-related__heading > a {
  position: relative;
  min-height: 39px;
  margin-left: -10px;
  padding: 8px 10px;
}

body .site-shell .site-footer__privacy {
  width: max-content;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  margin-left: -10px;
  padding: 8px 10px;
  white-space: nowrap;
}

body .site-shell .site-footer__contacts > a[href^="tel:"],
body .site-shell .site-footer__contacts > a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 40px;
  margin-left: -10px;
  padding: 8px 10px;
  white-space: nowrap;
}

body .site-shell .main-nav a::before,
body .site-shell .phone::before,
body .site-shell .site-footer a:not(.site-footer__logo)::before,
body .site-shell .card-action::before,
body .site-shell .solution-link::before,
body .site-shell .related-card--service .related-card__cta::before,
body .site-shell .related-card__product-copy > a::before,
body .site-shell .product-related__heading > a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--component-blue, var(--blue));
  pointer-events: none;
  transform: translateY(101%);
  transition: transform 520ms cubic-bezier(.23, 1, .32, 1);
}

body .site-shell .main-nav a::after { display: none; }

body .site-shell .main-nav a:hover,
body .site-shell .main-nav a:focus-visible,
body .site-shell .phone:hover,
body .site-shell .phone:focus-visible,
body .site-shell .site-footer a:not(.site-footer__logo):hover,
body .site-shell .site-footer a:not(.site-footer__logo):focus-visible,
body .site-shell .related-card--service .related-card__cta:hover,
body .site-shell .services-archive .related-card--service:hover .related-card__cta,
body .site-shell .related-card--service:focus-visible .related-card__cta,
body .site-shell .related-card__product-copy > a:hover,
body .site-shell .related-card__product-copy > a:focus-visible,
body .site-shell .product-related__heading > a:hover,
body .site-shell .product-related__heading > a:focus-visible,
body .site-shell .catalog-card:hover .card-action,
body .site-shell .catalog-card:focus-visible .card-action,
body .site-shell .solution-panel:hover .solution-link,
body .site-shell .solution-link:hover,
body .site-shell .solution-link:focus-visible {
  background-color: transparent;
  color: #fff;
  outline: none;
}

body .site-shell .main-nav a:hover::before,
body .site-shell .main-nav a:focus-visible::before,
body .site-shell .phone:hover::before,
body .site-shell .phone:focus-visible::before,
body .site-shell .site-footer a:not(.site-footer__logo):hover::before,
body .site-shell .site-footer a:not(.site-footer__logo):focus-visible::before,
body .site-shell .related-card--service .related-card__cta:hover::before,
body .site-shell .services-archive .related-card--service:hover .related-card__cta::before,
body .site-shell .related-card--service:focus-visible .related-card__cta::before,
body .site-shell .related-card__product-copy > a:hover::before,
body .site-shell .related-card__product-copy > a:focus-visible::before,
body .site-shell .product-related__heading > a:hover::before,
body .site-shell .product-related__heading > a:focus-visible::before,
body .site-shell .catalog-card:hover .card-action::before,
body .site-shell .catalog-card:focus-visible .card-action::before,
body .site-shell .solution-panel:hover .solution-link::before,
body .site-shell .solution-link:hover::before,
body .site-shell .solution-link:focus-visible::before {
  transform: translateY(0);
}

body .site-shell .site-footer__contacts > a:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

@media (max-width: 576px) {
  body .site-shell .site-footer__contacts > a[href^="mailto:"] {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 961px) {
  body .site-shell .catalog-card ul {
    gap: 8px;
    margin-top: 24px;
  }

  body .site-shell .solution-copy .solution-link {
    top: auto;
    bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .site-shell .button,
  body .site-shell .button::before,
  body .site-shell .main-nav a::before,
  body .site-shell .phone::before,
  body .site-shell .site-footer a:not(.site-footer__logo)::before,
  body .site-shell .related-card--service .related-card__cta::before,
  body .site-shell .related-card__product-copy > a::before,
  body .site-shell .product-related__heading > a::before,
  body .site-shell .card-action::before,
  body .site-shell .solution-link::before {
    transition-duration: 1ms;
  }
}
