/* legal-services.html — только мобильная версия ≤767px */

@media (max-width: 767px) {
  body.services-page.legal-page {
    overflow-x: hidden;
  }

  body.services-page.legal-page .hero,
  body.services-page.legal-page .hero__inner,
  body.services-page.legal-page .hero__text {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  body.services-page.legal-page .hero h1 {
    font-size: clamp(28px, 6vw, 36px) !important;
    line-height: 1.15;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  body.services-page.legal-page .hero__lead {
    overflow-wrap: break-word;
    max-width: 100%;
  }

  body.services-page.legal-page .hero__buttons {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body.services-page.legal-page .hero__buttons .btn,
  body.services-page.legal-page .calc-cta__box .buttons .btn {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    height: auto;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    box-sizing: border-box;
    justify-content: center;
    overflow-wrap: break-word;
  }

  /* Четыре карточки преимуществ (hero__chips) */
  body.services-page.legal-page .hero__chips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 0;
  }

  body.services-page.legal-page .hero__chips li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    height: auto;
    flex: 0 0 auto;
    padding: 12px 14px;
    box-sizing: border-box;
    white-space: normal;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    border-radius: 16px;
  }

  body.services-page.legal-page .hero__chips li:last-child {
    grid-column: auto;
    width: 100%;
  }

  body.services-page.legal-page .hero__chips li > span[aria-hidden="true"] {
    flex: 0 0 18px;
    width: 18px;
    margin-top: 1px;
    text-align: center;
    line-height: 1.2;
  }

  body.services-page.legal-page .hero__photo {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.services-page.legal-page .float-wa {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 150;
  }

  body.services-page.legal-page .to-top {
    right: 20px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 140;
  }

  body.services-page.legal-page .calc-cta__box {
    margin-bottom: 8px;
  }

  body.services-page.legal-page .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  body.services-page.legal-page .float-wa {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}
