.pfhero-v7__mobile-copy {
  display: none;
}

.pfhero-v7__mobile-cta-card {
  display: contents;
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  html body .header {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1200 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html body .header .container.row,
  html body .header .row {
    width: min(calc(100vw - 32px), 390px) !important;
    min-height: 64px !important;
    margin: 0 auto !important;
    padding: 8px !important;
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) 54px !important;
    gap: 10px !important;
    align-items: center !important;
    border-radius: 32px !important;
    background: rgba(255, 255, 255, .78) !important;
    border: 1px solid rgba(255, 255, 255, .82) !important;
    box-shadow: 0 18px 44px rgba(34, 76, 121, .13) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  }

  html body .header .logo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 22px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body .header .logo__text {
    display: none !important;
  }

  html body .header .logo img,
  html body .header .logo__icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    object-fit: contain !important;
  }

  html body .header .cta {
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  html body .header .btn.phone,
  html body .header .phone {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    justify-content: center !important;
    border-radius: 24px !important;
    color: #071b46 !important;
    background: rgba(255, 255, 255, .82) !important;
    border: 1px solid rgba(54, 122, 225, .18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 8px 18px rgba(31, 86, 153, .08) !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
  }

  html body .header .phone svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    color: #1368e8 !important;
    stroke-width: 3 !important;
  }

  html body .burger {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    margin: 0 !important;
    justify-self: end !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .86) !important;
    border: 1px solid rgba(255, 255, 255, .9) !important;
    box-shadow: 0 10px 22px rgba(31, 86, 153, .10) !important;
  }

  html body .burger__line {
    width: 20px !important;
    height: 3px !important;
    background: #1368e8 !important;
    border-radius: 999px !important;
  }

  html body .pd-hero-clean.pfhero-v7--home {
    min-height: clamp(760px, 100svh, 900px) !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    color: #061a43 !important;
    background: #eef7ff !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pd-hero-clean__media {
    display: block !important;
    inset: 2.5% !important;
    z-index: 0 !important;
    background-image: var(--hero-static-image) !important;
    background-size: cover !important;
    background-position: 76% 58% !important;
    background-repeat: no-repeat !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pd-hero-clean__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 76% 58% !important;
    transform: translateY(2%) !important;
    filter: saturate(1.02) contrast(1.01) brightness(1.08) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pd-hero-clean__media::before,
  html body .pd-hero-clean.pfhero-v7--home .pd-hero-clean__media::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    opacity: 1 !important;
    pointer-events: none !important;
    box-shadow: none !important;
    filter: none !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pd-hero-clean__media::before {
    background:
      linear-gradient(90deg, rgba(241, 249, 255, .95) 0%, rgba(241, 249, 255, .78) 31%, rgba(241, 249, 255, .22) 58%, rgba(241, 249, 255, 0) 100%) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pd-hero-clean__media::after {
    background:
      linear-gradient(180deg, rgba(238, 247, 255, .62) 0%, rgba(238, 247, 255, .16) 38%, rgba(238, 247, 255, .04) 66%, rgba(238, 247, 255, .30) 100%) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__container {
    width: 100% !important;
    max-width: none !important;
    min-height: inherit !important;
    padding: calc(env(safe-area-inset-top, 0px) + 104px) 18px 20px !important;
    margin: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: stretch !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__card {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(clamp(760px, 100svh, 900px) - 124px) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__card > h1,
  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__card > .pfhero-v7__subtitle {
    display: none !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__mobile-copy {
    display: block !important;
    width: min(62vw, 270px) !important;
    margin-top: clamp(78px, 11svh, 116px) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__mobile-title {
    color: #061a43 !important;
    font-size: clamp(44px, 13.2vw, 60px) !important;
    line-height: .98 !important;
    font-weight: 950 !important;
    letter-spacing: -.04em !important;
    text-shadow: 0 2px 14px rgba(255, 255, 255, .68) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__mobile-price {
    margin-top: 8px !important;
    color: #1c7df3 !important;
    font-size: clamp(52px, 17vw, 78px) !important;
    line-height: .96 !important;
    font-weight: 950 !important;
    letter-spacing: -.045em !important;
    text-shadow: 0 2px 18px rgba(255, 255, 255, .7) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__mobile-subtitle {
    margin: 18px 0 0 !important;
    color: rgba(14, 34, 68, .76) !important;
    font-size: clamp(17px, 4.6vw, 21px) !important;
    line-height: 1.42 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 12px rgba(255, 255, 255, .8) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__badges {
    width: 100% !important;
    margin: auto 0 18px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__badge {
    min-height: 58px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 9px 10px 44px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    position: relative !important;
    color: #071b46 !important;
    background: rgba(255, 255, 255, .50) !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 28px rgba(28, 74, 130, .12), inset 0 1px 0 rgba(255, 255, 255, .80) !important;
    backdrop-filter: blur(8px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
    font-size: 0 !important;
    line-height: 1.1 !important;
    text-shadow: none !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__badge:nth-child(1) {
    display: none !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__badge::before {
    content: "" !important;
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2489ff, #0f63d8) !important;
    box-shadow: 0 8px 18px rgba(31, 113, 235, .28) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__badge::after {
    display: block !important;
    color: #071b46 !important;
    font-size: clamp(12px, 3.4vw, 15px) !important;
    font-weight: 900 !important;
    line-height: 1.22 !important;
    letter-spacing: -.01em !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__badge:nth-child(2)::after {
    content: "Цена\A заранее";
    white-space: pre-line;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__badge:nth-child(3)::after {
    content: "Оплата\A после";
    white-space: pre-line;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__badge:nth-child(4)::after {
    content: "Гарантия";
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__mobile-cta-card {
    display: block !important;
    width: calc(100% - 10px) !important;
    margin: 0 auto 22px !important;
    padding: 18px 18px 16px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .58) !important;
    border: 1px solid rgba(255, 255, 255, .82) !important;
    box-shadow: 0 18px 44px rgba(17, 50, 96, .15), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
    backdrop-filter: blur(12px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(135%) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: stretch !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 0 20px !important;
    border-radius: 17px !important;
    font-size: clamp(19px, 5.1vw, 25px) !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__btn--primary {
    background: linear-gradient(135deg, #1690ff 0%, #0074f2 100%) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 14px 30px rgba(0, 116, 242, .24) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__btn--primary::after {
    content: "→" !important;
    margin-left: auto !important;
    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__btn--secondary {
    background: rgba(255, 255, 255, .44) !important;
    color: #0758c7 !important;
    border: 1px solid rgba(20, 121, 247, .55) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78) !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__btn--secondary::after {
    content: "○" !important;
    margin-left: auto !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__trustline {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    color: rgba(52, 65, 91, .68) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-shadow: none !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__trustline span {
    display: none !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__trustline::before {
    content: "▣" !important;
    color: rgba(52, 65, 91, .56) !important;
    font-size: 13px !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__trustline::after {
    content: "Ваши данные в безопасности" !important;
  }

  html body .today-status {
    margin: 0 !important;
    padding: 0 20px 28px !important;
    background: #eef7ff !important;
    position: relative !important;
    z-index: 3 !important;
  }

  html body .today-status__inner {
    width: min(100%, 390px) !important;
    margin: 0 auto !important;
    padding: 16px 18px !important;
    display: block !important;
    position: relative !important;
    border-radius: 26px !important;
    background: rgba(255, 255, 255, .86) !important;
    border: 1px solid rgba(255, 255, 255, .92) !important;
    box-shadow: 0 18px 44px rgba(31, 86, 153, .12) !important;
  }

  html body .today-status__item:not(.today-status__item--main),
  html body .today-status__cta {
    display: none !important;
  }

  html body .today-status__item--main {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 60px !important;
    padding: 0 30px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body .today-status__dot {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 15px !important;
    background: rgba(25, 128, 245, .10) !important;
    position: relative !important;
  }

  html body .today-status__dot::before {
    content: "" !important;
    position: absolute !important;
    inset: 10px !important;
    border: 3px solid #1677ed !important;
    border-radius: 50% !important;
  }

  html body .today-status__dot::after {
    content: "" !important;
    position: absolute !important;
    left: 23px !important;
    top: 16px !important;
    width: 9px !important;
    height: 12px !important;
    border-left: 3px solid #1677ed !important;
    border-bottom: 3px solid #1677ed !important;
    transform-origin: left bottom !important;
  }

  html body .today-status__item strong {
    display: block !important;
    margin: 0 0 2px !important;
    color: #061a43 !important;
    font-size: clamp(18px, 5vw, 22px) !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
    letter-spacing: -.02em !important;
  }

  html body .today-status__item p {
    margin: 0 !important;
    color: rgba(52, 65, 91, .72) !important;
    font-size: 0 !important;
    line-height: 1.25 !important;
  }

  html body .today-status__item p::after {
    content: "Без выходных" !important;
    font-size: 16px !important;
  }

  html body .today-status__inner::after {
    content: "›" !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(52, 65, 91, .42) !important;
    font-size: 42px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
  }
}

@media (max-width: 374px) {
  html body .header .container.row,
  html body .header .row {
    width: calc(100vw - 22px) !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    gap: 7px !important;
  }

  html body .header .btn.phone,
  html body .header .phone {
    font-size: 13px !important;
    padding: 0 8px !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__mobile-title {
    font-size: 43px !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__mobile-price {
    font-size: 55px !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__badge {
    min-height: 54px !important;
    padding-left: 39px !important;
  }

  html body .pd-hero-clean.pfhero-v7--home .pfhero-v7__badge::before {
    left: 8px !important;
    width: 26px !important;
    height: 26px !important;
  }
}

/* Mobile floating contacts: keep the buttons as a side fixed stack, not a bottom bar. */
@media (max-width: 768px) {
  html body {
    padding-bottom: 0 !important;
  }

  html body .social-widget,
  html body.service-page .social-widget,
  html body:not(.social-widget-visible) .social-widget,
  html body.service-page:not(.social-widget-visible) .social-widget,
  html body.social-widget-visible .social-widget,
  html body.service-page.social-widget-visible .social-widget {
    position: fixed !important;
    z-index: 9998 !important;
    left: calc(100vw - 60px) !important;
    right: auto !important;
    top: 55% !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  html body .social-widget__button,
  html body.service-page .social-widget__button {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    flex: 0 0 46px !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 26px rgba(2, 6, 23, .24) !important;
  }

  html body .social-widget__button svg,
  html body .social-widget__button img,
  html body.service-page .social-widget__button svg,
  html body.service-page .social-widget__button img {
    width: 20px !important;
    height: 20px !important;
  }

  html body .social-widget__button--max img,
  html body .social-widget__max-icon-img,
  html body.service-page .social-widget__button--max img,
  html body.service-page .social-widget__max-icon-img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
  }
}

@media (max-width: 380px) {
  html body .social-widget,
  html body.service-page .social-widget,
  html body:not(.social-widget-visible) .social-widget,
  html body.service-page:not(.social-widget-visible) .social-widget,
  html body.social-widget-visible .social-widget,
  html body.service-page.social-widget-visible .social-widget {
    left: calc(100vw - 50px) !important;
    right: auto !important;
    gap: 8px !important;
  }

  html body .social-widget__button,
  html body.service-page .social-widget__button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex-basis: 42px !important;
  }
}

/* Final mobile contact override: cancel old bottom-bar layouts and keep a side stack. */
@media (max-width: 768px) {
  html body div.social-widget[aria-label],
  html body:not(.social-widget-visible) div.social-widget[aria-label],
  html body.social-widget-visible div.social-widget[aria-label],
  html body.service-page div.social-widget[aria-label],
  html body.service-page:not(.social-widget-visible) div.social-widget[aria-label],
  html body.service-page.social-widget-visible div.social-widget[aria-label] {
    display: flex !important;
    position: fixed !important;
    z-index: 900 !important;
    left: auto !important;
    right: 10px !important;
    top: 55dvh !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body.nav-open div.social-widget[aria-label] {
    z-index: 30 !important;
  }

  html body div.social-widget[aria-label] .social-widget__button {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18) !important;
  }

  html body .popular-services > .container {
    padding-right: 72px !important;
  }
}

@media (max-width: 380px) {
  html body div.social-widget[aria-label],
  html body:not(.social-widget-visible) div.social-widget[aria-label],
  html body.social-widget-visible div.social-widget[aria-label],
  html body.service-page div.social-widget[aria-label],
  html body.service-page:not(.social-widget-visible) div.social-widget[aria-label],
  html body.service-page.social-widget-visible div.social-widget[aria-label] {
    right: 8px !important;
    gap: 8px !important;
  }

  html body div.social-widget[aria-label] .social-widget__button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  html body .popular-services > .container {
    padding-right: 62px !important;
  }
}
