body, .body {
    margin: 0;
    font-family: 'Montserrat', 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    background: #BFBFBF;
}
/*
@font-face {
  font-family: "Balhattan";
  src: url("/static/fonts/balhattan-cufonfonts-webfont/Balhattan-8OxXz.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
*/
/* Шапка */

/* Основной баннер */
/* контейнер целиком */
.slider-container {
  position: relative;
  width: 100%;
  /* поддерживается в современных браузерах */
  aspect-ratio: 1920 / 670;
  overflow: hidden;
  background-color: #BFBFBF;
  margin-bottom: 50px;
}

/* сам ряд слайдов */
.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.slide {
  flex: 0 0 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* полностью показывает картинку */
  object-position: center;
  display: block;
}
/* стрелки */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;     /* как в макете */
  height: 60px;    /* как в макете */
  background: transparent;
  background-color: #6A6A6A;
  border-color: #6A6A6A;           /* рамка под дизайн из Figma */
  border-radius: 4px;
  font-size: 32px;                /* размер символа */
  line-height: 1;
  color: #000;                     /* цвет стрелки */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color .3s, color .3s, border-color .3s;
}

.slider-arrow:hover {
  background-color: #ff5a00;
  color: #fff;
  border-color: #ff5a00;
}

.slider-arrow-left  { left: 0px; }
.slider-arrow-right { right: 0px; }



/* Подвал */
.footer {
    margin-top: auto; /* Отступ сверху */
    padding: 20px;
    background: #222;
    color: #fff;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 40px;
    color: #333;
}

.catalog-section {
    margin-bottom: 50px;
    text-align: center;
}

.catalog-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.catalog {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Три карточки в ряд */
    gap: 30px; /* Расстояние между карточками */
    max-width: 1200px; /* Общая ширина секции */
    margin: 0 auto;
}

.catalog-item {
    background: #fff;
    border: 1px solid #ff5a00;
    border-radius: 10px 10px 0 0; /* Скругление только сверху */
    overflow: hidden;
    padding: 20px 20px 0; /* Убираем нижний внутренний отступ */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Убираем подчёркивание у всей карточки */
    color: inherit;
    position: relative;
    width: 300px; /* Задайте фиксированную ширину */
    height: 400px; /* Задайте фиксированную высоту */
}

.catalog-item:hover {
    transform: scale(1.05); /* Легкое увеличение карточки */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Тень при наведении */
}

.image-wrapper {
    width: 100%;
    height: 200px; /* Увеличенная высота изображения */
    object-fit: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9; /* Серый фон */
    border-radius: 8px;
    margin-bottom: 20px;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Сохранение пропорций */
}

.catalog-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.catalog-text h3 {
    margin: 10px 0;
    font-size: 20px; /* Увеличенный шрифт для заголовка */
    color: #002366; /* Темно-синий текст */
}

.button-more {
    background: #ff5a00;
    color: white;
    padding: 15px 25px; /* Увеличенные отступы */
    border-radius: 5px;
    font-size: 18px; /* Размер шрифта */
    margin-top: auto; /* Отодвигаем кнопку вниз */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}

.button-more:hover {
    background: #e64d00; /* Более темный оранжевый при наведении */
}



.button-more:hover {
    background: #e64d00; /* Более темный оранжевый при наведении */
}








.catalog-item:hover {
    transform: scale(1.05); /* Увеличение размера карточки */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Тень */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.footer-dark {
    background: #D9D9D9;
    padding: 0px 0px;
    color: #333;
    font-size: 16px;
    text-align: left; /* Выровнять текст по левому краю */
    flex-wrap: wrap; /* Учитывать перенос строк для адаптивности */
}

.footer-container {
    max-width: 3000px;
    margin: 0px 0px;
    justify-content: flex-start;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px; /* Добавление отступов между блоками */
}

.footer-section {
    flex: 1 1 200px; /* Равномерное распределение блоков */
    min-width: 100px;
    text-align: left; /* Текст в секциях выравнивается влево */
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    text-align: left; /* Выровнять заголовки влево */
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    text-align: left; /* Выровнять текст списка влево */
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff5a00;
}

.footer-button {
    display: inline-block;
    margin: 5px 0;
    padding: 10px 20px;
    background: #ff5a00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.footer-button:hover {
    background: #e64d00;
}


.footer-logo {
    margin-left: 20px;
}


.footer-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
    text-align: right;
}

.footer-info-section p {
    margin: 0;
}

/* === Секция «выделенный» правый блок в футере (ПК) === */
.footer-highlight {
    /* оранжевый фон по макету */
    flex: 0 0 310px;
    background-color: #FF6600;
    /* жёсткая ширина согласно макету (≈310px) */
    width: 310px;
    /* отступы внутри блока */
    padding: 16px;
    /* box-model так, чтобы padding не «ломал» ширину */
    box-sizing: border-box;
    /* выравнивание текста и иконок внутри */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* чтобы все <p> внутри шли с одинаковым отступом и центрировались по иконке */
.footer-highlight p {
    margin: 0;
    display: flex;
    align-items: center;
    color: #333; /* цвет текста на оранжевом фоне */
}

.footer-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 8px;
}


.sitemap-link {
    color: #ff5a00;
    text-decoration: none;
    font-size: 16px;
    text-align: left; /* Выровнять ссылку карты сайта влево */
}

.sitemap-link:hover {
    text-decoration: underline;
}




.call-icon .circle {
    background: #0b2239;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.call-icon img {
    width: 30px;
    height: 30px;
}

.top-panel {
    width: 100%;           /* или auto, лишь бы блок тянулся на всю ширину */       /* чтобы центрировать сам .bottom-panel */
    position: relative;         /* Ограничиваем ширину контента */
    margin: 0 auto;
    background: url('/static/images/back_dark.png') no-repeat center center / cover;
    color: #BABABA;
    padding: 15px 30px; /* Увеличили отступы в 1.5 раза */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px; /* Увеличили шрифт в 1.5 раза */
}

.top-panel .contacts {
    text-align: center;
    display: flex;
    gap: 20px;
}

.top-panel .contact-item {
    display: flex;
    flex-direction: column;
}

.top-panel .contact-item span {
    font-size: 12px;
    color: #ddd;
}

.top-panel .search-bar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.top-panel .search-bar input {
    width: 50%;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
}

.top-panel .header-logo {
    max-width: 140px;
    max-height: 100px;
    height: auto;
    width: auto;
}

.top-panel .right-side {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 80px;

}

.top-panel .right-side a {
    color: white;
    text-decoration: none;
}

.top-panel .phone-number {
    font-weight: bold;
    color: #00FF8C;
}

.site-title {
    margin: 0;
    font-size: 1.0em; /* Увеличиваем шрифт в 1.5 раза */
    color: white;
    text-align: center;
}

.site-title .orange-text {
    color: #FFA500; /* Оранжевый цвет для 'Lightup' */
    font-weight: bold;
}

.site-title .white-text {
    color: #ffffff; /* Белый текст */
}

.logo-small img {
    max-width: 60px;
    height: auto;
    margin-right: 40px;
}

/* Нижняя панель */
.bottom-panel {
    top: 0; /* Подгоните это значение под высоту вашей тёмной панели */
    left: 0;
    background: #BFBFBF;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Balhattan', sans-serif;
    padding: 15px 30px; /* Увеличили отступы в 1.5 раза */
    font-size: 16px; /* Увеличили размер шрифта в 1.5 раза */
    width: 100%;           /* или auto, лишь бы блок тянулся на всю ширину */
    margin: 0 auto;        /* чтобы центрировать сам .bottom-panel */
    position: sticky;
    z-index: 1000;

}

.bottom-panel .logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Добавлен gap для разделения логотипа и текста */
}

.bottom-panel .logo img {
    width: 100px; /* Увеличен размер логотипа в 2 раза */
    height: auto;
}

.bottom-panel nav {
    display: flex;
    gap: 15px;
}

.bottom-panel nav a {
    color: #646465;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s;
}

.bottom-panel nav a:hover {
    background: #ff5a00;
    color: white;
}

.bottom-panel .contact-button {
  background-color: #ff5a00;  /* ярко-оранжевый фон */
  color: #000000;             /* белый текст */
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;          /* чуть больше, чем у обычных ссылок */
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}
.bottom-panel .contact-button:hover {
  background-color: #e64d00;  /* более тёмный оранжевый при наведении */
  transform: translateY(-1px);
}

.bottom-panel .user-icon {
    width: 30px;
    height: 30px;
    border: 2px solid #ff5a00;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff5a00;
    font-weight: bold;
}



.catalog-button {
    position: relative;
    padding: 5px 10px;
    font-weight: bold;
    text-decoration: none;
    color: black;
}

.catalog-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: none;
    z-index: 20;
    width: max-content;
}

.catalog-dropdown-content {
    display: flex;
    justify-content: center; /* Центрируем содержимое */
    gap: 30px;
}

.catalog-dropdown .column {
    flex: 1;
    padding-right: 20px;
}

.catalog-dropdown .column h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}

.catalog-dropdown .column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-dropdown .column ul li {
    margin-bottom: 8px;
    font-size: 14px;
    list-style: none;
}

.catalog-dropdown .column ul li a {
    display: block;        /* Чтобы весь пункт кликабельный */
    font-family: 'Roboto', sans-serif; /* или ваш шрифт */
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    padding: 6px 8px;
}

.catalog-dropdown .column ul li a:hover {
    color: #ff5a00;
    background-color: #f2f2f2;
}

.catalog-button:hover + .catalog-dropdown,
.catalog-dropdown:hover {
    display: block; /* Показываем меню при наведении */
}

.add-model-container {
    display: flex;
    justify-content: center;  /* Центровка */
    margin-bottom: 20px;
}

.add-model-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.add-model-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}


.pagination-container {
    display: flex;
    justify-content: center;  /* Центровка */
    margin: 30px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a {
    padding: 10px 15px;
    border: 1px solid #ff5a00;
    background-color: white;
    color: #ff5a00;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #ff5a00;
    color: white;
}

.pagination a.active {
    background-color: #ff5a00;
    color: white;
    pointer-events: none;
}




/* ========== Бургер-меню (общий стиль) ========== */
.burger-menu {
    display: none;           /* По умолчанию скрыто (на десктопе) */
    flex-direction: column;  /* Для вертикальных полосок */
    justify-content: space-between;
    width: 25px;  /* ширина "бургера" */
    height: 20px; /* высота, где будут три полоски */
    cursor: pointer;
    margin-right: 15px; /* небольшой отступ справа (при необходимости) */
}

.burger-menu span {
    display: block;
    height: 3px;       /* толщина полоски */
    background-color: #333;  /* цвет полосок */
    border-radius: 2px;
}

/* ========== Мобильная навигация (выезжающее меню) ========== */
/* Выпадающее мобильное меню */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 3000;
    padding-top: 70px;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0 20px;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

.mobile-nav ul li a:hover {
    color: #ff5a00;
}

/* Затемнение фона */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    display: none;
}

.mobile-nav-overlay.open {
    display: block;
}

/* Меню каталога */
.catalog-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 3500;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
}

.catalog-menu.open {
    left: 0;
}

.catalog-menu ul {
    list-style: none;
    padding: 0 20px;
    margin: 0;
}

.catalog-menu ul li {
    margin-bottom: 15px;
}

.catalog-menu ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s;
    font-family: 'Roboto', sans-serif;
}

.catalog-menu ul li a:hover {
    color: #ff5a00;
}

/* Кнопка назад */
.back-button {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    width: 100%;
    color: #ff5a00;
}

.back-button:hover {
    background: #f0f0f0;
}

.no-scroll {
    overflow: hidden;
}


/* ========== Медиа-запросы для переключения (пример на 768px) ========== */
@media (max-width: 768px) {

    /* Скрываем десктопное меню */
    .desktop-nav {
        display: none !important;
    }

    /* Показываем бургер */
    .burger-menu {
        display: flex;
    }

    /* Логотип по центру (если нужно) */
    .logo {
        margin: 0 auto;
    }

    /* Можно уменьшить размеры .header-logo, если хотите */
    .header-logo {
        max-width: 100px;
        /* и т.д. */
    }

    /* При желании можно скорректировать стили .top-panel и .right-side */
    .top-panel .right-side {
        display: none !important;
        /* Например, скрыть телефоны на мобильном,
           или заменить их на ссылку "Позвонить" внутри бургер-меню */
    }
}


@media (max-width: 768px) {
    /* Чтобы элементы внутри bottom-panel
       располагались по всей ширине с бургером слева,
       логотипом в центре, и т.д. */

    /* Если нужно, чтобы бургер был слева, а логотип
       строго по центру, можно сделать так: */
    .burger-menu {
      display:flex;
      flex-direction:column;
      justify-content:center;
      align-items:center;

      width:40px;       /* широкая зона клика */
      height:40px;
      position:relative;
      z-index:4000;     /* выше всей шапки */
      pointer-events:auto; /* «Отодвигаем» бургер влево */
    }

    .burger-menu span{
      width:26px;height:3px;
      background:#000;border-radius:2px;
      margin:3px 0;
    }
    .logo {
      margin: 0 auto;     /* Логотип уедет в центр */
    }

    /* Если у вас ещё есть .logo-small или другие элементы,
       можно спрятать их или перенести. Например: */
    .logo-small {
      display: none; /* Скрыть на мобильном, если не нужно */
    }
}


  @media (max-width: 768px) {

    /* 1) Убираем лишние отступы у .right-side (если margin-right: 80px мешает) */
    .top-panel .right-side {
        margin-right: 0 !important;
        display: none !important;
    }

    /* 2) Корректируем расположение элементов в bottom-panel */
    .bottom-panel {
        /* Если хотите, чтобы бургер был слева,
           логотип по центру, а остальное скрыть — см. ниже */
        align-items: center;
        justify-content: space-between; /* или space-between, смотря что нужно */
        width: 100vw;
        margin: 0;
        padding: 10px 0;
    }

    .footer-logo {
        margin: auto;
    }

    /* 3) Бургер-иконку двигаем влево */
    .burger-menu {
        margin-right: auto; /* Бургер уезжает влево */
        margin-left: 15px;
    }

    /* 4) Центрируем логотип */
    .bottom-panel .logo {
        margin: auto; /* Логотип в центре */
        transform: translateX(-50%);
    }

    /* 5) Если нужно скрыть маленький логотип справа */
    .logo-small {
        display: none;
    }

    /* 6) Если хотите уменьшить логотип (верхний) на мобильном */
    .top-panel .header-logo {
        max-width: 100px;
        display: none !important;
        /* и т.д. */
    }


    .top-panel {
       display: none;
    }

    /* 8) Если нужно убрать/уменьшить шрифт */
    .bottom-panel {
        font-size: 12px; /* Пример: уменьшаем шрифт на мобильном */
    }
}

@media (max-width: 768px) {
    .catalog {
        display: flex;
        flex-direction: column; /* Располагаем карточки вертикально */
        align-items: center; /* Центрируем карточки */
    }

    .catalog-item {
        width: 90%; /* Растягиваем карточку почти на всю ширину экрана */
        max-width: 300px; /* Ограничиваем максимальную ширину */
    }
}

@media (max-width: 768px) {
  /* сам футер чуть подороже: внутри отступы горизонтальные */
  .footer-dark {
    padding: 0px 0px;
  }

  /* контейнер: 3 колонки в одну строку */
  footer.footer-dark .footer-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }

  /* 1) Логотип по контенту, в самый левый край */
  .footer-logo-section {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  .footer-logo {
    max-height: 40px !important;
    max-width: 80px !important;
    height: auto !important;
  }

  /* 2) Средний блок — занимает всё оставшееся место, текст центрируем */
  .footer-info-section {
    flex: 1 1 auto !important;
    text-align: right !important;
    font-size: 6px !important;
    line-height: 1.4 !important;
    margin: 0 10px !important;
  }
  .footer-info-section p {
    margin: 0 !important;
  }

  /* 3) Оранжевый блок вправо, по контенту */
  .footer-highlight {
    display: flex;
    flex: 0 0 40px !important;
    width: 40px !important;
    padding: 6px !important;
    box-sizing: border-box;
    font-size: 6px !important;
    margin: 0px 0px !important;
  }

  /* иконки 20×20 */
  .footer-icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 6px !important;
  }
}
