/* «Оставить заявку» — кнопка внизу экрана на мобильном */
@media (max-width: 768px) {
  .btns {
    display: block !important;
  }
  .btns__box {
    right: 20px;
    bottom: 20px;
  }
}

/* Cases slider — mobile */
@media (max-width: 768px) {
  .mor-cases-slider-wrapper .swiper-button-next,
  .mor-cases-slider-wrapper .swiper-button-prev,
  .mor-cases-slider-wrapper .more-cases__arrow {
    display: none !important;
  }
}

/* Mobile (≤620px) — hero matches snapshot.bundle.css; loads after tablet. */
@media screen and (max-width: 620px) {
  .header__logo .header__logo-img {
    top: 0 !important;
    width: 132px !important;
    height: auto;
  }

  .main-heading-block .title-block[data-v-1a254476],
  .main-heading-block .title-block {
    max-width: 290px !important;
    font-size: 48px !important;
    margin-top: 150px !important;
    line-height: 54px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .main-heading-block .subtitle-block[data-v-1a254476],
  .main-heading-block .subtitle-block {
    max-width: 270px !important;
    font-size: 18px !important;
    margin-top: 33px !important;
    line-height: 25px !important;
  }

  .video-block[data-v-135dc442],
  .video-block {
    max-width: min(350px, calc(100% - 40px)) !important;
    height: 588px !important;
    margin-top: 0 !important;
    background: #000 !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .video-iframe-wrapper[data-v-135dc442],
  .video-iframe-wrapper {
    background: #000 !important;
  }

}

@media screen and (max-width: 500px) {
  .header__logo .header__logo-img {
    width: 97px !important;
  }
}

/* Mobile burger menu parity with redesigned desktop overlay */
@media screen and (max-width: 768px) {
  .header.active .new-static-menu.new-static-menu_main-str,
  .header.active .new-static-menu.new-static-menu_main-str[data-v-e5e2adce] {
    position: fixed;
    inset: 0;
    z-index: 120;
  }

  /* Оверлей new-static-menu (120) перекрывал бургер (z-index 3) — крестик не кликался */
  .header.active .menu-icon__wrapper,
  .header.active .menu-icon__wrapper[data-v-e5e2adce],
  .header.active .menu-icon,
  .header.active .menu-icon[data-v-e5e2adce] {
    z-index: 140 !important;
  }

  .header .new-static-menu .navigation-new,
  .header .new-static-menu .navigation-new[data-v-7050ddb2] {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-y: auto;
  }

  .header .new-static-menu .navigation-new__menu,
  .header .new-static-menu .navigation-new__menu[data-v-7050ddb2] {
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .header .new-static-menu .navigation-new__menu__list-wrapper,
  .header .new-static-menu .navigation-new__menu__list-wrapper[data-v-7050ddb2] {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .header .new-static-menu .navigation-new__list,
  .header .new-static-menu .navigation-new__list[data-v-7050ddb2] {
    margin: 0;
    width: 100%;
    align-items: flex-start;
    gap: 18px;
  }

  .header .new-static-menu .navigation-new__list a,
  .header .new-static-menu .navigation-new__list a[data-v-7050ddb2] {
    padding: 0;
    border-radius: 0;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 300;
    text-align: left;
  }

  .header .new-static-menu .navigation-new__buttons,
  .header .new-static-menu .navigation-new__buttons[data-v-7050ddb2] {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: min(360px, calc(100% - 28px));
    gap: 12px;
    margin-top: 49px;
    margin-bottom: 37px;
  }

  .header .new-static-menu .navigation-new__button,
  .header .new-static-menu .navigation-new__button[data-v-7050ddb2] {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    padding: 0 22px;
    border-radius: 26px !important;
  }

  .header .new-static-menu .btns__modal,
  .header .new-static-menu .btns__modal[data-v-7050ddb2] {
    position: static;
    width: 100%;
    left: auto;
    transform: none;
    margin-top: 8px;
    padding-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 39px;
  }

  .header .new-static-menu .btns__modal .footer-modern__contacts,
  .header .new-static-menu .btns__modal .footer-modern__contacts[data-v-ff4f3948] {
    display: flex;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    gap: 12px;
  }

  .header .new-static-menu .footer-modern__city-selector,
  .header .new-static-menu .footer-modern__city-selector[data-v-ff4f3948],
  .header .new-static-menu .header-burger-legacy-tel {
    display: none !important;
  }

  .header .new-static-menu .header-burger-dual-phones {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
  }

  .header .new-static-menu .header-burger-dual-phones__line {
    display: flex;
    flex-direction: column;
    gap: 9px;
    text-decoration: none;
    color: #fff;
  }

  .header .new-static-menu .header-burger-dual-phones__city {
    font-size: 14px;
    line-height: 1.2;
    color: #969696;
  }

  .header .new-static-menu .header-burger-dual-phones__number {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: 0.01em;
    color: #fff;
  }

  .header .new-static-menu .btns__modal .footer-modern__phone,
  .header .new-static-menu .btns__modal .footer-modern__phone[data-v-ff4f3948] {
    font-size: 38px;
    line-height: 1.2;
  }

  .header .new-static-menu .btns__modal .footer-modern__social,
  .header .new-static-menu .btns__modal .footer-modern__social[data-v-ff4f3948] {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    justify-content: flex-start !important;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
  }

  .header .new-static-menu .btns__modal .footer-modern__social .social__header,
  .header .new-static-menu .btns__modal .footer-modern__social .social__header[data-v-ff4f3948] {
    margin-bottom: 0;
    text-align: left !important;
  }

  /* +30% к базовому размеру из parity-sync (40px) */
  .header .new-static-menu .btns__modal .footer-modern__social > a,
  .header .new-static-menu .btns__modal .footer-modern__social > a[data-v-ff4f3948] {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    flex-basis: 52px;
  }

  .header .new-static-menu .btns__modal .footer-modern__social > a svg,
  .header .new-static-menu .btns__modal .footer-modern__social > a svg[data-v-ff4f3948] {
    width: 52px;
    height: 52px;
  }
}

@media screen and (max-width: 500px) {
  .header .new-static-menu .navigation-new,
  .header .new-static-menu .navigation-new[data-v-7050ddb2] {
    padding-top: calc(82px + env(safe-area-inset-top, 0px));
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  .header .new-static-menu .navigation-new__menu__list-wrapper,
  .header .new-static-menu .navigation-new__menu__list-wrapper[data-v-7050ddb2] {
    min-height: auto;
  }

  .header .new-static-menu .navigation-new__list,
  .header .new-static-menu .navigation-new__list[data-v-7050ddb2] {
    gap: 20px;
  }

  .header .new-static-menu .navigation-new__list a,
  .header .new-static-menu .navigation-new__list a[data-v-7050ddb2] {
    font-size: 40px;
    line-height: 1.08;
  }

  .header .new-static-menu .navigation-new__buttons,
  .header .new-static-menu .navigation-new__buttons[data-v-7050ddb2] {
    width: 100%;
    max-width: calc(100% - 28px);
    margin-top: 43px;
    margin-bottom: 33px;
  }

  .header .new-static-menu .navigation-new__button,
  .header .new-static-menu .navigation-new__button[data-v-7050ddb2] {
    min-height: 50px;
    border-radius: 24px !important;
  }

  .header .new-static-menu .header-burger-dual-phones__number {
    font-size: 26px;
    line-height: 1.17;
  }

  .header .new-static-menu .btns__modal .footer-modern__contacts,
  .header .new-static-menu .btns__modal .footer-modern__contacts[data-v-ff4f3948] {
    gap: 6px;
  }

  .header .new-static-menu .btns__modal .footer-modern__phone,
  .header .new-static-menu .btns__modal .footer-modern__phone[data-v-ff4f3948] {
    font-size: 36px;
  }

  /* +30% к 38px (ниже было в узком брейкпоинте) */
  .header .new-static-menu .btns__modal .footer-modern__social > a,
  .header .new-static-menu .btns__modal .footer-modern__social > a[data-v-ff4f3948] {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    flex-basis: 50px;
  }

  .header .new-static-menu .btns__modal .footer-modern__social > a svg,
  .header .new-static-menu .btns__modal .footer-modern__social > a svg[data-v-ff4f3948] {
    width: 50px;
    height: 50px;
  }
}

/* «Услуги» и «Блог»: одинаковый зазор заголовок → абзац (общая шапка .services__text + .isNewContent). */
@media screen and (max-width: 550px) {
  .services-section_main-structure .services__title[data-v-56f85d51],
  .isNewContent .services__title[data-v-56f85d51] {
    margin-bottom: 0 !important;
  }

  .services-section_main-structure .services__description[data-v-56f85d51],
  .isNewContent .services__description[data-v-56f85d51] {
    margin-top: 13px !important;
  }
}

/* «Наши клиенты»: +15px к верхнему отступу секции перед заголовком (мобильный скрин) */
@media screen and (max-width: 768px) {
  .clients-new-section.home-between[data-v-08586076],
  .clients-new-section.home-between {
    padding-top: calc(var(--home-between) + 15px) !important;
  }
}
