/* ==============================
   KOZAKSEO Custom Mobile Menu
   Full replacement layer
   ============================== */

@media (max-width: 1024px) {

  /* ==== OFF-CANVAS WRAPPERS ==== */
  .ast-header-break-point .ast-mobile-popup-drawer,
  .ast-header-break-point .ast-mobile-popup-inner,
  .ast-header-break-point .ast-mobile-popup-content,
  .ast-header-break-point .ast-builder-menu-mobile,
  .ast-header-break-point .main-navigation {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #dfeefa !important;
  }

  .ast-header-break-point .ast-mobile-popup-drawer,
  .ast-header-break-point .ast-mobile-popup-drawer.active {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .ast-header-break-point .ast-mobile-popup-inner,
  .ast-header-break-point .ast-mobile-popup-content,
  .ast-header-break-point .ast-builder-menu-mobile,
  .ast-header-break-point .main-navigation,
  .ast-header-break-point .main-navigation > div,
  .ast-header-break-point .main-navigation > ul {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Ховаємо штатний header popup, але не видаляємо з DOM */
  .ast-header-break-point .ast-mobile-popup-header {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* ==== SOURCE MENU ==== */
  .ast-header-break-point .kozak-source-menu {
    display: none !important;
  }

  /* ==== CUSTOM APP ==== */
  .ast-header-break-point .kozak-mobile-menu-app {
    position: relative !important;
    min-height: 100vh !important;
    background: #dfeefa !important;
    overflow: hidden !important;
  }

  /* ==== TOPBAR ==== */
  .ast-header-break-point .kozak-mobile-menu-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 120 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    height: 74px !important;
    padding: 0 14px 0 16px !important;
    box-sizing: border-box !important;

    background: #ffffff !important;
    border-bottom: 1px solid rgba(36, 55, 70, 0.06) !important;
  }

  .ast-header-break-point .kozak-mobile-menu-brand {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: #0056B3 !important;
  }
  .kozak-mobile-menu-brand img {
  display: block !important;
  height: 60px !important;
  width: auto !important;
  max-width: 180px !important;
}

  .ast-header-break-point .kozak-mobile-menu-close {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  background: #dfeefa !important;
  border: 1px solid rgba(0, 86, 179, 0.18) !important;
  border-radius: 14px !important;

  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;

  position: relative !important;
}

  .ast-header-break-point .kozak-mobile-menu-close:hover,
  .ast-header-break-point .kozak-mobile-menu-close:focus {
    box-shadow: none !important;
    outline: none !important;
    background: #dfeefa !important;
  }

  .ast-header-break-point .kozak-mobile-menu-close::before,
.ast-header-break-point .kozak-mobile-menu-close::after {
  content: "" !important;
  position: absolute !important;

  width: 30px !important;
  height: 2px !important;

  background: #243746 !important;
  border-radius: 2px !important;
}

  .ast-header-break-point .kozak-mobile-menu-close::before {
    transform: rotate(45deg) !important;
  }

  .ast-header-break-point .kozak-mobile-menu-close::after {
    transform: rotate(-45deg) !important;
  }

  /* ==== PANELS WRAP ==== */
  .ast-header-break-point .kozak-mobile-menu-panels {
    position: relative !important;
    min-height: calc(100vh - 74px) !important;
    background: #dfeefa !important;
  }

  .ast-header-break-point .kozak-mobile-menu-panel {
    position: absolute !important;
    inset: 0 !important;
    background: #dfeefa !important;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.18s ease, visibility 0s linear 0.18s !important;
  }

  .ast-header-break-point .kozak-mobile-menu-panel.is-active {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform 0.18s ease, visibility 0s linear 0s !important;
  }

  /* ==== LIST ==== */
  .ast-header-break-point .kozak-mobile-menu-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: #dfeefa !important;
  }

  .ast-header-break-point .kozak-mobile-menu-item {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(36, 55, 70, 0.08) !important;
    background: transparent !important;
  }

  /* ==== ROWS ==== */
  .ast-header-break-point .kozak-mobile-menu-link,
  .ast-header-break-point .kozak-mobile-menu-open,
  .ast-header-break-point .kozak-mobile-menu-back {
    position: relative !important;
    width: 100% !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    padding: 0 56px 0 16px !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    color: #2b5a8a !important;
    text-align: left !important;
    text-decoration: none !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .ast-header-break-point .kozak-mobile-menu-open,
  .ast-header-break-point .kozak-mobile-menu-back {
    cursor: pointer !important;
  }

  .ast-header-break-point .kozak-mobile-menu-link:hover,
  .ast-header-break-point .kozak-mobile-menu-link:focus,
  .ast-header-break-point .kozak-mobile-menu-open:hover,
  .ast-header-break-point .kozak-mobile-menu-open:focus,
  .ast-header-break-point .kozak-mobile-menu-back:hover,
  .ast-header-break-point .kozak-mobile-menu-back:focus {
    background: rgba(0, 86, 179, 0.04) !important;
    color: #2b5a8a !important;
    text-decoration: none !important;
    outline: none !important;
  }

  /* ==== FORWARD ARROW ==== */
  .ast-header-break-point .kozak-mobile-menu-open::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    width: 12px !important;
    height: 12px !important;
    border-top: 2px solid #0056B3 !important;
    border-right: 2px solid #0056B3 !important;
    transform: translateY(-50%) rotate(45deg) !important;
  }

  /* ==== BACK BUTTON ==== */
  .ast-header-break-point .kozak-mobile-menu-back {
    padding-left: 16px !important;
  }

  .ast-header-break-point .kozak-mobile-menu-back::before {
    content: "" !important;
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    margin-right: 10px !important;
    border-left: 2px solid #0056B3 !important;
    border-bottom: 2px solid #0056B3 !important;
    transform: rotate(45deg) !important;
  }

  /* ==== TAP ==== */
  .ast-header-break-point .kozak-mobile-menu-link,
  .ast-header-break-point .kozak-mobile-menu-open,
  .ast-header-break-point .kozak-mobile-menu-back,
  .ast-header-break-point .kozak-mobile-menu-close {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
  }
}