/* =========================================================
   Mobile shell (<=880px): header, bottom nav, home hero
   ========================================================= */

/* base */
.m-menu-row{ display:none; }
.brand-vb76{ display:none; }
.promo-mobile{ display:none; }
.promo-mobile-section{ display:none; }

/* новый мобильный герой — по умолчанию скрыт */
.hero-mobile-v2{ display:none; }

/* старый герой — по умолчанию виден */
.hero{ display:block; }

@media (max-width: 880px){

  /* ---------- Global layout fixes ---------- */
  body{
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  /* ---------- Header ---------- */
  .topbar{ display:none !important; }

  .site-header .header-main{
    background: linear-gradient(180deg, #395E2C 0%, #274620 100%) !important;
    border-bottom: 0 !important;
  }

  .site-header .header-row{
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px 12px;
    min-height: 47px;
  }

  .brand-logo{ display:block !important; height:32px; width:auto; }
  .brand-text{ display:none !important; }

  .brand-vb76{ display:none !important; }

  .brand{ order: 1; }
  .m-header-contacts{ order: 2; margin-left: auto; }

  .header-search{ display:none !important; }
  .header-actions{ display:none !important; }

  .m-header-contacts{
    display:flex;
    align-items:center;
    gap: 10px;
    margin-left: auto;
    color: #fff;
  }
  .m-header-contacts a{
    color:#fff !important;
    text-decoration:none;
    opacity:.95;
  }
  .m-header-phone{
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
    white-space: nowrap;
  }
  
  .m-header-max{
  min-width: 46px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
  border: 0;
  box-shadow: none;
  color: #fff;
}

.m-header-max-logo{
  width: 30px;
  height: auto;
  display: block;
}

  /* ---------- Menu row ---------- */
  .m-menu-row{
    display:block;
    background: #F2F5F8;
    box-shadow: inset 0 -1px 0 rgba(15,23,42,.08);
  }
  .m-menu-row .container{
    padding: 8px 12px;
    display:flex;
    justify-content:flex-start;
  }

  .burger-menu{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 9px !important;
    flex-direction: row !important;
    gap: 9px !important;
    background: #F4B400 !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .burger-menu .burger-icon{
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 18px !important;
    height: 14px !important;
    flex: 0 0 18px !important;
    background: none !important;
    margin: 0 !important;
  }

  .burger-menu .burger-icon > span{
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    background: currentColor !important;
    border-radius: 999px !important;
  }

  .burger-menu .burger-text{
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: .2px !important;
    color: #111827 !important;
    line-height: 1 !important;
  }

  .burger-menu .burger-caret{
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 7px solid #111827 !important;
    margin-left: 1px !important;
    opacity: 1 !important;
    transform: translateY(1px) !important;
  }

  /* ---------- Hero switching ---------- */
  .hero{
    display:none !important;
  }

  .hero-mobile-v2{
    display:block;
    position: relative;
    overflow: hidden;
    min-height: auto;
    padding: 0;
  }

  .hero-mobile-v2__bg{
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
      url('/assets/img/mobile/hero-mobile-bg-v2.webp') center center / cover no-repeat;
    z-index: 0;
  }
  
  .hero-mobile-v2::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.88) 0%,
    rgba(255,255,255,0.76) 34%,
    rgba(255,255,255,0.38) 58%,
    rgba(255,255,255,0.10) 78%,
    rgba(255,255,255,0.00) 100%
  );
}

  .hero-mobile-v2__card{
    position: relative;
    z-index: 2;
    margin: 14px 16px 0;
    padding: 16px 16px 96px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero-mobile-v2__title{
    margin: 0 0 12px;
    text-align: left;
    font-size: 24px;
    line-height: 1.12;
    font-weight: 800;
    color: #173a74;
    letter-spacing: -.02em;
  }

  .hero-mobile-v2__title span{
    color: #ef3340;
  }

  .hero-mobile-v2__benefits{
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    max-width: 185px;
  }

  .hero-mobile-v2__benefits li{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.3;
    color: #24344f;
  }

  .hero-mobile-v2__benefits img{
    flex: 0 0 18px;
    margin-top: 1px;
  }

  .hero-mobile-v2__cta{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    color: #fff !important;
    background: linear-gradient(180deg, #ff4a4f 0%, #eb2435 100%);
    box-shadow: 0 10px 22px rgba(235, 36, 53, .28);
    position: absolute;
    left: 16px;
    bottom: 24px;
    z-index: 3;
  }

  .hero-mobile-v2__cta span{
    font-size: 22px;
    line-height: 1;
    transform: translateY(-1px);
  }

 

  /* ---------- Promo ---------- */
  .timer-section{
    padding: 10px 0 0;
  }

  .timer-section .promo-desktop{
    display:none !important;
  }

  .promo-mobile-section{
    display:block;
    padding: 10px 16px 0;
    background: #f3f4f6;
  }

  .promo-mobile{
    display:block !important;
  }

  .promo-mobile-card{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(57,94,44,.10);
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
  background: linear-gradient(180deg, #F8F5EE 0%, #F4EFE4 100%);
  padding: 16px 16px 18px;
}

  .promo-mobile-card::before{
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    bottom: -34px;
    height: 88px;
    background:
      radial-gradient(circle at 15% 50%, rgba(26,77,154,.08) 0 34px, transparent 35px),
      radial-gradient(circle at 50% 50%, rgba(26,77,154,.06) 0 34px, transparent 35px),
      radial-gradient(circle at 85% 50%, rgba(26,77,154,.08) 0 34px, transparent 35px);
    pointer-events: none;
  }

  .promo-m-top{
    position: relative;
    z-index: 2;
    text-align: left;
  }

  .promo-m-kicker{
  display:flex;
  align-items:center;
  gap: 8px;
  color: #35552B;
  font-weight: 900;
  font-size: 13px;
}

  .promo-m-gift{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff7da 0%, #ffe9a6 100%);
    box-shadow: 0 4px 10px rgba(245, 158, 11, .18);
    font-size: 16px;
    flex: 0 0 28px;
  }

  .promo-m-kicker-text{
    display:block;
  }

  .promo-m-title{
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
  color: #26461F;
  text-align: left;
}

 .promo-m-sub{
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(38,70,31,.86);
  text-align: left;
}

.promo-m-pill{
  display:inline-flex;
  margin: 12px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #EEE8DB;
  border: 1px solid rgba(57,94,44,.12);
  color: #4C5B42;
  font-weight: 800;
  font-size: 12px;
}

  .promo-m-timer{
    position: relative;
    z-index: 2;
    margin-top: 14px;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    gap: 8px;
  }

 .promo-m-box{
  width: 86px;
  border-radius: 14px;
  background: linear-gradient(180deg, #395E2C 0%, #274620 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 20px rgba(39,70,32,.18);
  padding: 10px 8px;
  text-align:center;
}

.promo-m-num{
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .6px;
  color: #FFFFFF;
  line-height: 1;
}

.promo-m-lbl{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.82);
}

  .promo-m-sep{
    padding-top: 10px;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    color: #173a74;
  }

 .promo-m-btn{
  margin-top: 14px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(180deg, #F3B521 0%, #D99600 100%);
  box-shadow: 0 14px 26px rgba(217,150,0,.24);
}

  .promo-m-btn:active{
    transform: translateY(1px);
  }

  /* ---------- Bottom tab bar ---------- */
  .m-bottom-nav{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.96);
    border-top: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 -14px 34px rgba(15,23,42,.12);
    display: flex;
    align-items: stretch;
  }

  .m-bottom-nav a{
    flex: 1 1 25%;
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    text-decoration:none;
    color: rgba(15,23,42,.70);
    font-size: 11px;
    font-weight: 800;
  }

  .m-bottom-nav svg{
    width: 22px;
    height: 22px;
    display:block;
  }

  .m-bottom-nav a:active{
    transform: translateY(1px);
  }

  .m-bottom-nav a.is-active{
    color: rgba(15,23,42,.92);
  }
}

@media (min-width: 881px){
  .m-header-contacts{ display:none !important; }
  .m-bottom-nav{ display:none !important; }
  .burger-text,
  .burger-caret,
  .burger-icon{ display:none; }
}