
@media (max-width: 768px) {


/* ========== АДАПТИВНОЕ МЕНЮ ========== */

/* Обертка меню */
.top_menu_wrapp {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Основной блок меню */
.top_menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Десктопное меню (горизонтальное) */
.desktop_menu {
    display: flex;
    list-style: none;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    margin: 0;
    padding: 0;
}

.desktop_menu li {
    position: relative;
}

.desktop_menu a {
    color: #eea4f5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.desktop_menu a:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    transform: translateY(-2px);
}

.desktop_menu a.none {
    background: #e74c3c;
    color: white;
}

.desktop_menu a.none:hover {
    background: #c0392b;
}

/* Логотип для мобильных (скрыт на ПК) */
.menu_logo {
    display: none;
}

/* Гамбургер-иконка положение (скрыта на ПК) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 45px;
    position: absolute;
    top: 15px;
    right: 0px;
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #5e077b;   /* цвет гамбургер-иконки (скрыта на ПК) */
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Мобильное меню (скрыто на ПК) */
.mobile_menu {
    display: none;
}

.menu_overlay {
    display: none;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ (меньше 992px) ========== */
@media (max-width: 992px) {
    .top_menu {
        padding: 0;
    }
    
    /* Скрываем десктопное меню */
    .desktop_menu {
        display: none;
    }
    
    /* Показываем логотип */
    .menu_logo {
        display: block;
        color: #ecf0f1;
        font-size: 22px;
        font-weight: 700;
        padding: 20px;
        text-align: center;
        letter-spacing: 1px;
        text-transform: uppercase;
        background: rgba(0, 0, 0, 0.2);
    }
    
    /* Показываем гамбургер */
    .hamburger {
        display: flex;
    }
    
    /* Мобильное меню */
    .mobile_menu {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, #2c3e50 0%, #6b0688 100%);     /* Фон меню градиент */
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    .mobile_menu.active {
        left: 0;
    }
    
    .mobile_menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile_menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile_menu a {
        display: block;
        color: #ecf0f1;
        text-decoration: none;
        padding: 20px 30px;
        font-size: 18px;
        font-weight: 500;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .mobile_menu a:hover {
        background: rgba(52, 152, 219, 0.2);
        color: #3498db;
        padding-left: 40px;
    }
    
    .mobile_menu a.none {
        background: #e74c3c;
        color: white;
    }
    
    .mobile_menu a.none:hover {
        background: #c0392b;
    }
    
    /* Оверлей */
    .menu_overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .menu_overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Анимация гамбургера в крестик */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .menu_logo {
        font-size: 18px;
        padding: 20px 15px;
    }
    
    .mobile_menu {
        width: 90%;
    }
    
    .mobile_menu a {
        padding: 18px 25px;
        font-size: 16px;
    }
}

/* Добавьте этот отступ для body, чтобы контент не заезжал под фиксированное меню */
body {
    padding-top: 70px;
}

}
/* -----------------------------------------------------------------------------------------  */



@media (max-width: 768px) {

  /* Slider */
  #slider_bl img {
    width: 100%;
    height: auto;
  }
  .slider-prev-next-control,
  .slider-dot-control {
    display: none;
  }

  /* Forms */
  .forms .form2 input,
  .forms .form2 textarea {
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
    padding: 10px;
  }
  .forms .form2 input[type=submit] {
    width: 100%;
    font-size: 18px;
    padding: 12px;
  }

  /* Recent works / Portfolio */
  .recent-works .row [class*='col-'] {
    width: 100%;
    margin-bottom: 15px;
  }

  /* Services & Poligraphy & Equipment */
  .bl_href ul li {
    width: 48%;
    margin: 1%;
    text-align: center;
  }
  .bl_href ul li p {
    font-size: 14px;
  }
  .bl_href ul li img {
    max-width: 80px;
    height: auto;
    margin-bottom: 5px;
  }

  /* Boxes / Benefits */
  .prem-prof .box {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }
  .prem-prof .box img {
    max-width: 100%;
    height: auto;
  }

  /* Contact info */
  #contact-info .map-content ul {
    flex-direction: column;
  }
  #contact-info .map-content li {
    width: 100%;
    margin-bottom: 15px;
  }

  /* Footer */
  footer #footer .container {
    padding: 15px;
  }
  footer #footer .logo img {
    max-width: 120px;
  }
  footer .text-seo h2 {
    font-size: 18px;
  }
  footer .text-seo p {
    font-size: 14px;
  }

  /* Mobile call button */
  .mobile-call {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9999;
    background: #e60000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  }
  
  /* Popup forms */
  .popup {
    width: 90%;
    max-width: 400px;
    padding: 20px;
  }
  .popup .h1 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .popup input[type=text], .popup input[type=submit] {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Misc */
  h1, h2, h5 {
    font-size: 18px;
  }
  p {
    font-size: 14px;
  }
}

 /* Скрываем слайдер */
@media screen and (max-width: 768px) {
    #slider_bl {
        display: none;
    }
}

/* Контакты — отступы и адаптивность */
/* ===================== */
/* Контакты */
/* ===================== */
#contact-info {
    padding: 40px 20px;
    background: #f8f8f8;
    box-sizing: border-box;
    font-size: 18px; /* увеличиваем базовый размер шрифта */
    line-height: 1.6;
}

#contact-info .container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

#contact-info .map-content {
    padding: 20px;
    box-sizing: border-box;
}

#contact-info ul.row li {
    padding: 15px;
}

/* Заголовки внутри контактов */
#contact-info h5 {
    font-size: 18px; /* чуть крупнее */
    margin-bottom: 8px;
    font-weight: 600;
}

/* Адаптивные отступы на мобильных */
@media (max-width: 768px) {
    #contact-info {
        padding: 30px 15px;
        font-size: 15px; /*  чуть меньше, но все равно больше, чем раньше */
    }

    #contact-info .container {
        padding: 15px;
    }

    #contact-info .map-content {
        padding: 10px;
    }

    #contact-info ul.row li {
        padding-bottom: 20px;
    }

    #contact-info h5 {
        font-size: 17px;
    }
}

/* Стрелка скрыта по умолчанию */
#scrollToTop {
    display: none; /* по умолчанию скрыта */
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    #scrollToTop {
        display: block; /* появляется на мобилках */
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        background: rgba(0,0,0,0.5);
        color: white;
        font-size: 24px;
        text-align: center;
        line-height: 50px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1000;
        transition: background 0.3s, opacity 0.3s;
        opacity: 0.7;
        text-decoration: none;
    }

    #scrollToTop:hover {
        background: rgba(0,0,0,0.8);
        opacity: 1;
    }
}






