/* FONTS*/
@import url('https://fonts.googleapis.com/css?family=Merriweather:300,300i,400,400i,700,700i,900,900i|Lato:100,100i,300,300i,400,400i,700,700i,900,900i|Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&subset=cyrillic,cyrillic-ext,latin-ext');
@import '../fonts/fontawesome-free-5.6.1/css/all.min.css';
@import '../fonts/stroke/style.css';
@import '../fonts/elegant/style.css';
@import '../fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css';
@import '../fonts/simple-line-icons/css/simple-line-icons.css';
@import '../fonts/flaticon/font/flaticon.css';


/* PLUGIN CSS */

@import '../libs/bootstrap-4.1.3/bootstrap.css';                /* bootstrap */
@import '../plugins/headers/header.css';                /* header */
@import '../plugins/headers/yamm.css';                /* header */
@import '../plugins/slider-pro/slider-pro.css';         /* main slider */
@import '../plugins/slick/slick.css';         /* sliders */
@import '../plugins/slick/slick-theme.css';         /* sliders */
@import '../plugins/magnific-popup/magnific-popup.css';            /* modal */
@import '../plugins/animate/animate.css';                        /* animations */
@import '../plugins/flowplayer/skin/playful.css';          /* video-player */
@import '../plugins/noUiSlider/nouislider.css';          /* slider number */
@import '../plugins/bootstrap-select/css/bootstrap-select.min.css';                /* bootstrap-select */



/* MAIN CSS */

@import 'main.css';
@import 'color.css';
@import 'responsive.css';

/* ==========================
   БЛОК УСЛУГ НА ГЛАВНОЙ
========================== */

.services-banner-section {
    padding: 80px 0;
}
.max-icon-button, .tg-icon-button{
	color:#fff;
}
.section-title {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.section-title h2 {
    font-size: 42px;
    line-height: 1.2;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-title p {
    font-size: 18px;
    color: #666;
    line-height: 1.7;
}

/* Сетка */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* Карточка */

.service-banner {
    position: relative;

    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* Фото */

.service-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

/* Затемнение */

.service-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
           rgba(18, 24, 32, 0.85)  0%,
           rgba(18, 24, 32, 0.55) 45%,
           rgba(18, 24, 32, 0.1) 100%

        );
    z-index: 1;
}

/* Контент */

.service-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

.service-content h3 {
    color: #fff;
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-content p {
    color: rgba(255,255,255,.9);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.service-content span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffb400;
    font-weight: 600;
    font-size: 15px;
    transition: .3s;
}

/* Hover */

.service-banner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,.2);
}

.service-banner:hover img {
    transform: scale(1.08);
}

.service-banner:hover span {
    gap: 14px;
}

/* Большая карточка обслуживания */

.service-banner.featured {
    grid-column: span 2;
    min-height: 420px;
}

.service-banner.featured .service-content h3 {
    font-size: 36px;
}

.service-banner.featured .service-content p {
    max-width: 700px;
}

/* Мобильная версия */

@media (max-width: 991px) {

    .section-title h2 {
        font-size: 32px;
    }

    .service-banner.featured {
        grid-column: span 1;
    }

    .service-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {

    .services-banner-section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 16px;
    }

    .service-content {
        padding: 25px;
    }
}

.navbar-brand {
  margin: 10px 0;
}

/* --- Стили только для мобильных устройств (меньше 992px) --- */
@media (max-width: 991.98px) {
  
  /* Сайдбар по умолчанию скрыт за левой границей экрана */
  .mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* Ширина выезжающего меню */
    max-width: 85vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; /* Прокрутка, если меню длинное */
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    padding-bottom: 40px;
  }

  /* Класс, который добавляет JS для показа меню */
  .mobile-sidebar.is-open {
    transform: translateX(0);
  }

  /* Кнопка закрытия внутри меню */
  .mobile-menu-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    z-index: 10;
  }

  /* Плавающая кнопка внизу слева */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 0px;
    left: 20px;
    z-index: 9999;
    background-color: #007bff; /* Замените на ваш основной цвет */
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
	  height: 55px;
  line-height: 55px;
  }

  .mobile-menu-btn:active {
    transform: scale(0.95);
  }

  .mobile-menu-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Затемнение фона (Overlay) */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px); /* Легкое размытие фона */
  }

  .mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
}

/* --- Стили для десктопа (скрываем мобильные элементы) --- */
@media (min-width: 992px) {
  .mobile-menu-btn,
  .mobile-menu-overlay,
  .mobile-menu-close {
    display: none !important;
  }
  
  /* Возвращаем сайдбару обычное позиционирование */
  .mobile-sidebar {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    box-shadow: none;
    overflow-y: visible;
  }
}

.mobile-menu-trigger {
    display: none;
}

@media (max-width: 991px) {

    .mobile-menu-trigger {
        display: flex;
        align-items: center;
        position: absolute;
        right: 15px;
        top: 50px;
        transform: translateY(-50%);
        z-index: 9999;
    }

    .toggle-menu-button {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        position: relative;
    }

    .toggle-menu-button span {
        display: block;
        width: 28px;
        height: 3px;
        background: #d01818; 
        margin: 5px auto;
        border-radius: 3px;
        transition: all .3s ease;
    }

    /* Анимация крестика */

    .toggle-menu-button.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .toggle-menu-button.is-open span:nth-child(2) {
        opacity: 0;
    }

    .toggle-menu-button.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Скрываем кнопку на десктопе */
@media (min-width: 992px) {
    .mobile-menu-trigger {
        display: none !important;
    }
}