/* Shared mobile refinements for every public page. */
html {
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 800px) {
  body {
    min-width: 320px;
    overflow-wrap: break-word;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .site-header .menu-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-content: center;
    flex: 0 0 48px;
    cursor: pointer;
  }

  .site-header .main-nav {
    gap: 0;
    padding: 12px 17px 18px;
    border-top: 1px solid rgba(6, 19, 55, .08);
  }

  .site-header .main-nav a {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(6, 19, 55, .07);
    border-radius: 7px;
  }

  .site-header .main-nav a:last-child {
    border-bottom: 0;
  }

  .site-header .main-nav .active {
    background: rgba(7, 83, 133, .07);
    color: #075385;
  }

  .button,
  button,
  input,
  select,
  textarea {
    touch-action: manipulation;
  }

  .button {
    min-height: 52px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .faq-item button,
  .faq .faq-item button,
  .cr-faq-item button {
    min-height: 56px;
  }

  .faq-item button b,
  .faq .faq-item button b,
  .cr-faq-item button b {
    flex-shrink: 0;
  }

  .service-window,
  .home-testimonial-window {
    touch-action: pan-y;
  }

  .slider-dots,
  .home-testimonial-dots {
    gap: 0;
  }

  .slider-dots button,
  .services .slider-dots button,
  .home-testimonial-dots button {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }

  .slider-dots button::after,
  .services .slider-dots button::after,
  .home-testimonial-dots button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #8d95a3;
    content: "";
    transform: translate(-50%, -50%);
    transition: width .24s ease, background-color .24s ease;
  }

  .slider-dots button.active,
  .services .slider-dots button.active,
  .home-testimonial-dots button.active {
    width: 44px;
    background: transparent;
  }

  .slider-dots button.active::after,
  .services .slider-dots button.active::after,
  .home-testimonial-dots button.active::after {
    width: 26px;
    background: #d6b532;
  }

  .footer-grid a,
  .footer-bottom a,
  .legal-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
  }

  .footer-bottom div {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .legal-nav a {
    padding-block: 10px;
  }
}

@media (max-width: 520px) {
  .site-header .nav-wrap {
    width: calc(100% - 28px);
  }

  .site-header .main-nav {
    padding-inline: 14px;
  }

  .section {
    padding-block: 56px;
  }

  .home-contact-section {
    padding-block: 56px;
  }

  .home-testimonial-window {
    width: 100%;
  }

  .home-testimonial-arrow {
    display: none;
  }

  .home-testimonial-card {
    min-height: 0;
  }

  .site-footer {
    padding-top: 62px;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-grid h3 {
    margin-bottom: 14px;
  }

  .footer-grid a,
  .footer-grid p {
    margin-bottom: 4px;
  }

  .footer-bottom {
    margin-top: 40px;
  }

  .footer-bottom div {
    gap: 0 18px;
  }

  .legal-content {
    padding: 28px 20px;
  }

  .legal-intro {
    padding: 19px 18px;
  }

  .legal-content h2 {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-track,
  .home-testimonial-track {
    transition: none;
  }
}
