/* Мобильное меню (360) — выезжающая панель справа */

@media (max-width: 767px) {
  .main-layout--360 #tariffs,
  .main-layout--360 #support,
  .main-layout--360 #security,
  .main-layout--360 #faq {
    scroll-margin-top: 88px;
  }

  .mobile-header-bar {
    box-sizing: border-box;
    pointer-events: none;
  }

  .mobile-header-bar__logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  /* Прозрачная зона клика поверх иконки бургера в image.svg */
  .site-header__menu-btn.mobile-header-bar__burger,
  .site-header__menu-btn.mobile-menu-open-trigger {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
  }

  .site-header__menu-btn.mobile-header-bar__burger::before,
  .site-header__menu-btn.mobile-header-bar__burger::after,
  .site-header__menu-btn.mobile-menu-open-trigger::before,
  .site-header__menu-btn.mobile-menu-open-trigger::after {
    content: none;
    display: none;
  }

  .mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .mobile-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px 20px 30px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1003;
    width: min(292px, 88vw);
    max-height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: 0 9px 15.3px rgba(94, 76, 224, 0.15);
    border-radius: 10px 0 0 10px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .mobile-drawer.is-open {
    transform: translateX(0);
  }

  .mobile-drawer__close {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    align-self: stretch;
    padding: 8px;
    width: 100%;
    min-height: 20px;
    margin: 0 0 8px;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .mobile-drawer__close-icon {
    display: block;
    position: relative;
    width: 13.15px;
    height: 13.15px;
  }

  .mobile-drawer__close-icon::before,
  .mobile-drawer__close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13.15px;
    height: 2px;
    background: #000000;
    border-radius: 1px;
  }

  .mobile-drawer__close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .mobile-drawer__close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    max-width: 242px;
  }

  .mobile-drawer__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-family: "Manrope", Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    color: #000000;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
  }

  a.mobile-drawer__link:hover {
    color: #5e4ce0;
  }

  .mobile-drawer__section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .mobile-drawer__expand {
    justify-content: flex-start;
  }

  .mobile-drawer__sub {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0;
  }

  .mobile-drawer__section.is-expanded .mobile-drawer__sub {
    display: flex;
  }

  .mobile-drawer__sublink {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 0;
    font-family: "Manrope", Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    color: #424242;
    text-decoration: none;
    box-sizing: border-box;
  }

  .mobile-drawer__sublink:first-child {
    padding-top: 0;
    padding-bottom: 6px;
  }

  .mobile-drawer__sublink:last-child {
    padding-bottom: 0;
  }

  a.mobile-drawer__sublink:hover {
    color: #5e4ce0;
  }

  .mobile-drawer__sublink--static {
    cursor: default;
    pointer-events: none;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  /* Шапка поверх декоративных SVG в углу */
  .main-layout--360 .telegram .image,
  .main-layout--360 .element .image,
  .main-layout--360 .MAX .image,
  .main-layout--360 .mobile-header-bar {
    z-index: 5;
  }

  .main-layout--360 .element > img.vector,
  .main-layout--360 .element > img.img,
  .main-layout--360 .telegram .img {
    z-index: 0;
    pointer-events: none;
  }

  /* Hero: фон ниже контента; на главной .frame — сосед .view, не внутри */
  .main-layout--360 .element > .div > .view,
  .main-layout--360 .telegram > .view,
  .main-layout--360 .MAX > .view {
    z-index: 1;
    pointer-events: none;
  }

  .main-layout--360 .element > .div > .frame {
    z-index: 4;
  }

  .main-layout--360 .telegram .view-3,
  .main-layout--360 .element .view-3,
  .main-layout--360 .MAX .view-3 {
    z-index: 4;
  }

  .main-layout--360 .element > .div > .shadow {
    z-index: 2;
    pointer-events: none;
  }

  .main-layout--360 .telegram .group,
  .main-layout--360 .element .group,
  .main-layout--360 .MAX .hero-tagline {
    width: 100%;
    max-width: 320px;
    margin-right: 0;
  }

  .main-layout--360 .telegram .div-3,
  .main-layout--360 .MAX .hero-tagline__text {
    position: relative;
    left: 0;
    width: 100%;
    max-width: 320px;
  }

  .main-layout--360 .element .frame > .view-2 > .div-wrapper,
  .main-layout--360 .telegram .view-3 > .div-wrapper,
  .main-layout--360 .element .view-3 > .div-wrapper,
  .main-layout--360 .MAX .view-3 > .div-wrapper {
    background-color: #5e4ce0;
    cursor: pointer;
  }
}

@media (min-width: 768px) {
  .mobile-drawer,
  .mobile-drawer-overlay {
    display: none !important;
  }
}
