@media (max-width: 1250px) {
  .half-box-servis img{
    width: 120px;
    height: 120px;
  }
   .jumper { grid-template-columns: 1fr; }
   .half-box-servis {
    gap:36px;
    background: linear-gradient(
    to right,
    #CEDCFF 0%,     /* светло-фиолетовый */
    #e9edff 18%,    /* до 40% идёт фиолетовый */
    #ffffff 18%,    /* резкий переход */
    #ffffff 100%
  );
}
}


@media (max-width: 768px) {
  /* Десктопные элементы скрываем */
  .contact {
    display: none !important;
  }
  .mainmenu {
    display: none;
  }

  /* Бургер */
  .burger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
  }
  .burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #1D1D1F;
    border-radius: 2px;
    transition: 0.3s ease;
  }
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Выпадающее меню */
  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav.active {
    max-height: 500px;
    opacity: 1;
    padding: 20px;
  }

  /* Пункты меню */
  .main-nav.active .mainmenu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  /* Контакты внутри меню */
  .mobile-contact {
    display: none;
  }
  .main-nav.active .mobile-contact {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 35px;
  }
  .hero .container {
    flex-direction: column;
    padding-top: 36px;
  }
  .title-text {
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .sub-title {
    font-size: 16px;
  }
  .half-box-servis img{
    width: 100px;
    height: 100px;
}
 .grid4  { grid-template-columns: 1fr; } 
  qna .qna-question{ font-size:16px; }
  .faq-section-cover {grid-template-columns: 1fr;}
  .call-back {grid-template-columns: 1fr;}
   .footer-nav ul{
    display: flex;
    flex-direction: column;
  }
  .footer-top {justify-content: center; gap: 36px;}
/* Затемнение фона */
/* Затемнение фона */
.overlay {
  position: fixed;
  top: 60px; /* начинается под шапкой */
  left: 0;
  width: 100%;
  height: calc(100% - 60px); /* затемняет всё, кроме header */
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

/* Активное состояние overlay */
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Меню */
.main-nav {
  z-index: 1000;
  position: absolute;
  top: 60px; /* меню под шапкой */
  left: 0;
  right: 0;
  background: #fff;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 12px 12px;
}

/* Активное меню */
.main-nav.active {
  max-height: 500px;
  opacity: 1;
  padding: 20px;
}

/* Бургер */
.burger {
  position: relative;
  z-index: 1100; /* выше overlay */
}




}
@media (max-width: 520px) {
   .half-box-servis {
    gap:6px;
}
}
@media (prefers-reduced-motion: reduce){
  .qna .qna-answer{ transition:none; }
}
