:root {
    --arm-orange: #d62902; /* обновлённый оттенок */
    --arm-black:  #1F1F1F;
    --arm-grey:   #e6e6e6;
    --arm-white:  #ffffff;

    --radius: 10px;
    --shadow: 0 4px 10px rgba(0,0,0,0.08);
    --page-width: 80%;
}

/* Общий контейнер сайта */
.wrapper,
.container,
.page {
    width: var(--page-width);
    margin: 0 auto;
}

/* ===========================
   ЭЛЕМЕНТЫ
   =========================== */

/* ----------- Кнопки ----------- */
.btn {
    background-color: var(--arm-orange);
    border: none;
    padding: 10px 20px;
    color: var(--arm-white);
    font-weight: bold;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s, transform .15s;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: #e66000;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}
/* Кнопка "Новости магазина" с !important */
a[href="/news"] {
    display: inline-block;
    background-color: var(--arm-orange) !important; /* важно, чтобы перекрыло inline */
    color: var(--arm-white) !important;
    font-weight: bold;
    border-radius: var(--radius);
    padding: 10px 20px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

a[href="/news"]:hover {
    background-color: #b52202 !important; /* hover фон */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    a[href="/news"] {
        display: none !important;
        width: 90% !important;
        margin: 10px auto;
        text-align: center;
        padding: 12px 0 !important;
    }
}



/* ----------- Поля ввода ----------- */

select.form-control {
    width: 100%;
    height: 42px;
    min-width: 200px;     /* можно увеличить при необходимости */
    padding-right: 35px;  /* если справа появляется стрелка */
    box-sizing: border-box;
    overflow: visible !important;    /* чтобы не обрезало текст */
    white-space: nowrap;  /* чтобы строка не переносилась */
}

.form-control,
input[type="text"],
input[type="password"],
select {
    padding: 10px;
    width: 100%;
    border: 2px solid var(--arm-grey);
    border-radius: var(--radius);
    background: var(--arm-white);
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus,
input:focus,
select:focus {
    border-color: var(--arm-orange);
    box-shadow: 0 0 0 4px rgba(255,110,0,0.2);
    outline: none;
}

/* ----------- Хедер ----------- */
.header {
    background: var(--arm-black);
    padding: 15px 20px;
    color: var(--arm-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header a {
    color: var(--arm-white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: opacity .2s;
}

.header a:hover {
    opacity: 0.7;
}

/* ----------- Карточки ----------- */
.card {
    background: var(--arm-white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* ----------- Список -------------- */
.list-item {
    background: var(--arm-white);
    padding: 15px;
    border-radius: var(--radius);
    border-left: 4px solid var(--arm-orange);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

/* ----------- Сообщения, ошибки ----------- */
.error {
    background-color: #ffe1d6;
    border-left: 4px solid #ff3b00;
    padding: 10px;
    border-radius: var(--radius);
    color: #7a0f00;
}

.success {
    background-color: #e3ffe1;
    border-left: 4px solid #33cc33;
    padding: 10px;
    border-radius: var(--radius);
    color: #1a7a1a;
}

/* ----------- Таблицы ----------- */
table {
    width: 90%;
    border-collapse: collapse;
    background: var(--arm-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

th {
    background: white;
    color: #d62902;
    padding: 12px;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--arm-grey);
}

tr:hover {
    background: #fafafa;
}

/* ----------- Адаптив ----------- */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header a {
        margin: 10px 0 0 0;
    }
}
/* ===========================
   БЛОК МЕНЮ
   =========================== */

.menu {
    display: block;
    width: 100%;
    background: var(--arm-black);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

/* Горизонтальная линия меню */
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0 20px;

    display: flex;
    flex-direction: row;       /* ВСЕГДА горизонтально */
    justify-content: flex-start;
    align-items: center;
    gap: 25px;

    overflow-x: auto;          /* прокрутка для мобилок */
    white-space: nowrap;       
    scrollbar-width: none;     /* скрытие скролла */
}

/* скрытие скролла в Chrome/Safari */
.menu ul::-webkit-scrollbar {
    display: none;
}

.menu li {
    display: inline-block; /* гарантия горизонтального расположения */
}

.menu a {
    color: #1F1F1F;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 14px;
    border-radius: var(--radius);
    transition: background .2s, opacity .2s;
    display: inline-block;
}

.menu a:hover {
    background: var(--arm-orange);
    opacity: 0.85;
}

/* ===========================
   ОБНОВЛЕНИЕ КНОПОК И ВЫДЕЛЕНИЙ
   =========================== */

.btn {
    background-color: var(--arm-orange);
}

.btn:hover {
    background-color: #b52202;
}

/* Фокус для полей */
input:focus, select:focus, textarea:focus {
    border-color: var(--arm-orange);
    box-shadow: 0 0 0 4px rgba(214,41,2,0.25);
}

/* Левый акцент у карточек */
.list-item {
    border-right: 4px solid var(--arm-orange);
}

.saplab {max-width: 1270px;background: #fff url(/static/image/back.png);}
@media (max-width: 767px) {
 .logocenter, .telephone, .topline {text-align:center!important;}
 .slick  {display:none!important;}
 .topline a {font-size:12px;}
 
}
/* ===========================
   АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ
   =========================== */
@media (max-width: 992px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  
  .logo img {
    max-width: 1000px;
  }

  .header-contacts {
    gap: 14px;
  }
}
  .menu-scroll {
    display: none;
  }

/* --- Каталог адаптив --- */
@media (max-width: 1024px) {
  .catalog {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .catalog {
    grid-template-columns: 1fr;
  }
  
  .logo img {
    max-width: 310px;
  }
}
/* ------------------------
   Плавающие кнопки
   ------------------------ */
.callback-bt {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}

/* Общий вид кнопки */
.callback-bt .text-call {
    height: 68px;
    width: 68px;
    border-radius: 50%;
    background-color: var(--arm-orange);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: background .2s, transform .2s;
}

.callback-bt .text-call i {
    font-size: 20px;
    margin-bottom: 4px;
}

.callback-bt:hover .text-call {
    transform: translateY(-5px);
}

/* Telegram кнопка */
.tg-bt {
    right: 100px; /* смещаем влево от правого края */
}

.tg-bt .text-call {
    background-color: #0088cc;
}

.tg-bt .text-call:hover {
    background-color: #006699;
}

/* Заказать звонок кнопка */
.callback-bt:not(.tg-bt) {
    right: 100px;
}

.callback-bt:not(.tg-bt) .text-call {
    background-color: #006699;
}

.callback-bt:not(.tg-bt) .text-call:hover {
    background-color: #0088cc;
}

/* Адаптация под мобильные экраны */
@media (max-width: 768px) {
    .callback-bt {
        bottom: 15px;
    }

    .callback-bt .text-call {
        width: 50px;
        height: 50px;
        font-size: 10px;
    }

    .callback-bt .text-call i {
        font-size: 16px;
        margin-bottom: 2px;
    }

    /* На мобильных обе кнопки рядом снизу */
    .callback-bt:not(.tg-bt) {
        right: 100px;
    }

    .tg-bt {
        right: 200px; /* немного смещаем влево */
    }
}

/* Плавное появление при загрузке */
.callback-bt {
    opacity: 0;
    transform: translateY(50px);
    animation: floatIn 0.5s forwards;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Адаптация под мобильные */
@media (max-width: 768px) {
    .header::after {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 10px;
        width: 100%;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .header::after::before,
    .header::after::after {
        width: 48%; /* почти половина ширины экрана */
        text-align: center;
        padding: 10px 0;
    }
}
@media (max-width: 768px) {
    .footer {
        display: none;
    }
}

/* Мобильная версия — логотип на всю ширину */
@media (max-width: 768px) {
    .header .logo img {
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto; /* центрирование */
    }
    
    /* Если нужно, чтобы шапка подстраивалась */
    .header {
        justify-content: center; /* центрирование всего контента */
    }
}
/* ------------------------------
   Скрываем бургер на десктопе
   ------------------------------ */
@media (min-width: 769px) {
    #touch-menu {
        display: none; /* скрываем кнопку бургер на десктопе */
    }
}

/* ------------------------------
   Мобильная версия
   ------------------------------ */
@media (max-width: 768px) {
    /* Скрываем меню по умолчанию */
    .menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: var(--arm-black);
        padding: 10px 20px;
        position: absolute;
        top: 450px;  /* под шапкой */
        right: 0;
        width: 100%;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    /* Когда меню активно */
    .menu.active {
        display: flex;
    }
}
@media (max-width: 768px) {

    /* Делаем меню вертикальным */
    .navbar-nav {
        float: none !important;
        width: 100%;
        background: var(--arm-black)!important;
    }

    .navbar-nav > li {
        float: none;
        width: 100%;
        border-bottom: 1px solid var(--arm-black);
    }

    .navbar-nav > li > a {
        display: block;
        width: 100%;
        padding: 12px 15px;
    }

    /* Выпадающий список на мобилках — на всю ширину */
    .dropdown-menu {
        position: relative;
        width: 100%;
        border: none;
        box-shadow: var(--shadow);
    }

    .dropdown-menu > li > a {
        padding-left: 25px;
        border-radius: 6px;
    }
    .dropdown-menu > li > a {
        background: var(--arm-white) !important;
        box-shadow: var(--shadow);
    }    
    /* Убираем иконку стрелки на мобильных */
    .navbar-nav .fa-chevron-down {
        display: none;
    }
}

