.wrapper  {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0; 
  box-sizing: border-box;
}

.breadcrumbs {
	margin-top:0;
	margin-bottom:0;
}


.header {
  height: auto;
  width: 100%;
}

.section {
  padding:0;
}

  .top-menu {
    gap: 12px;
    display: flex;
    width: auto;
    align-items: center;
    padding: 0;
    justify-content: inherit;
  }
  
   .top-menu a {
	text-decoration: none;
	color: #000;
    text-transform: lowercase;
    font-size: 15px;                
    line-height: 1.22;
    font-weight: 600;    
    letter-spacing: 0.02em; 
    padding: 8px 10px; 
    border-radius: 6px;
    transition: color .15s ease, background .15s ease;
  }
  .top-menu a:hover{
    background: rgba(0,0,0,.05);    
  } 
  
  .top-menu a::first-letter {
  text-transform: uppercase;
}

.header .top-row {
  height: 180px;
  align-items: center;  
}

.logo-block {
  height: 112px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* .basket-block {
 height: auto;
 margin-top: 0; 
 justify-content: inherit;
 align-items: center;
 width:auto;
}
 */
.first_h1 {
  font-size: 42px;   
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  padding-top: 0;  
  margin: 0;
}

.second_h1 {
  display: block;
  font-size: 16px;   
  font-style: normal;  
  text-transform: none;  
  letter-spacing: 0.02em;
  color: #222;
  margin-top: 4px;  
}



.search{ flex:1 1 680px; max-width:680px; }

  .social-block {  
    display:flex;
    gap:8px;
    width:auto; 
    justify-content:flex-start;
    align-items:center;
  }

  a.email, a.phones { 
    display:flex;
    align-items:center;
    gap:12px;
  }
  
  .search #search-form{ 
    display:flex;
    position:relative;
    width:100%;
    height:auto;
  }

.search  #search {
  width: 100%;
  position: relative;
  height:44px;
  font-size:14px;
  border:1px solid #DFE7EE;
  border-radius:24px;
  background:#F6FAFD;
  padding:0 110px 0 44px;
  color:#222;
}
.search  #search::placeholder{ color:#9aa7b3; }

 .search #ok {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 18px;
  background: #4A90E2;
  color: #fff;
  border: 0;
  width: 133px;
  cursor: pointer;
}
 .search #ok:hover{ filter:brightness(0.95); }

.social-block img{
  width:32px; height:32px;   
  object-fit:contain;
}
  .email, a.email{
    display:flex;
    align-items:center;
	font-size: 16px;
    gap:8px;
    font-size:16px;     
    font-weight:500;
    color:#111;
    text-decoration:none;
  }

  .phones{
	  display:flex;
	  align-items: center;
    margin-right:0;
    gap:18px;
  }

  .phones a{
    font-size:16px;
    font-weight:500;
    color:#111;
    text-decoration:none;
    white-space:nowrap;
  }
a.email img, .phones img {
  padding-right: 0;
  height: 20px;
}

/* .section h1, .catalog-index h2, .index-text h2, .item-index h2, .news-index h2, .brands-block h2 {
  height: auto;
  min-height: 38px;
  padding: 8px 24px;
  background-color: #4091D3;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  box-sizing: border-box;
} */

/* .catalog-index .wrapper{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;  
} */

.section h1, .catalog-index h2, .index-text h2, .item-index h2, .news-index h2, .brands-block h2 { 
    background: none !important; /* Убираем синий фон */
    color: #2C3E50 !important;   /* Глубокий дорогой темный цвет вместо белого */
    font-size: 26px !important;  /* Уменьшаем размер (было слишком крупно) */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;         /* Чуть-чуть раздвинем буквы для стиля */
    padding: 0 !important;       /* Убираем старые паддинги плашки */
    margin-bottom: 25px !important;
    text-align: left;            /* Выравнивание по левому краю */
    
    /* Деликатная синяя линия снизу заголовка для преемственности стиля */
    position: relative;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #4091D3; 
    display: inline-block; /* Линия будет только под текстом, а не на весь экран */
}

/* .catalog-index .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; 
    width: 100%;
} */
/* 
.catalog-index .item{
  width: auto; 
  position: relative;
  flex: 0 0 calc((100% - 4*24px)/5);
  box-sizing: border-box; 
  margin: 0;
  border: 1px solid rgba(20,41,61,.06);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  border-top: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease, filter 0.25s ease;
} */

/* @supports (flex-basis: calc(20% - 1px)) {
  .catalog-index .item{
    flex-basis: calc((100% - 4*24px)/5 - .5px);
  } 
}*/

/* .catalog-index .item { 
    width: calc((100% - 40px) / 3); 
    height: auto; 
    margin: 0 0 10px 0; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-index .item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64, 145, 211, 0.2);
}

.catalog-index .item .photo{ padding:0; aspect-ratio: 4/3; border-radius: 0 0 16px 16px; overflow: hidden; }
.catalog-index .item .photo .responsive{ width:100%; height:100%; object-fit:cover; display:block; }

.catalog-index .item::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:42%;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(255,255,255,.9) 70%);
  z-index:1;
  pointer-events:none;
}

.catalog-index .item .text{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:12px 14px 14px;
  text-align:center;
  color:#111;
  font-size:20px;
  font-weight:600;
  line-height:1.25;
  background:none;
  z-index:2;
  height: auto;
} */



/* .price-block .price {
  font-size: 21px;
} */

/* .name_item {
	display: block;
	font-size: 18px;
	color: #000;
} */

.price-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px; /* Немного уменьшим зазор, чтобы освободить место */
  width: 100%;
  box-sizing: border-box;
}

.price-block .prices {
  display: flex;
  flex-direction: column; /* Старая цена НАД новой — это экономит кучу места в ширину! */
  align-items: flex-start;
  flex: 1; /* Занимает всё свободное пространство */
  min-width: 0;
}

.price-block .price {
  font-size: 20px; /* 20px вполне достаточно для десктопа */
  font-weight: 700;
  color: #2C3E50;
  white-space: nowrap; /* Запрещаем перенос рубля на другую строку */
}

/* Красим и зачеркиваем старую цену правильно */
.price-block .old {
  font-size: 14px;
  color: #95A5A6; /* Мягкий серый цвет, чтобы не отвлекал */
  text-decoration: line-through; /* Зачеркивание */
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2px; /* Легкий отступ до текущей цены */
  white-space: nowrap;
}

.price-block .button.submit_basket {
    text-decoration: none;
    border: none;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 38px;
    padding: 0 20px;
    background-color: #4091D3;
    border-radius: 8px; 
    color: #FFFFFF;
    font-size: 20px; 
    font-weight: 500;
    line-height: 1;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-block .button.submit_basket:hover {
    background-color: #357ABD; 
    box-shadow: 0 4px 12px rgba(64, 145, 211, 0.25);
    transform: translateY(-1px);
}

.price-block .button.submit_basket:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(64, 145, 211, 0.2);
}


/* .item-catalog {
  margin-bottom: 30px !important;
}


.item-index .item-catalog {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 19%;
  height: 390px;  
  padding: 20px 15px 15px 15px; 
  box-sizing: border-box;
  position: relative;
  margin: 0 auto 0 0; 
  background-color: #fff;
  text-decoration: none;
  border-top: none;
  border-radius: 0 0 16px 16px; 
  box-shadow: 0 5px 17px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.item-index .item-catalog:hover {
  box-shadow: 0 8px 25px rgba(64, 145, 211, 0.4);
} */


/* Левая колонка */

.main-container {
    display: flex;
    align-items: flex-start;
    gap: 30px; 
}

.sidebar {
    width: 280px; 
    flex-shrink: 0;
    position: sticky; 
    top: 20px;
	z-index: 100;
}

.content {
    flex-grow: 1;
    min-width: 0; 
	margin-bottom: 50px;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
}

.side-menu li {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.side-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.side-menu li:hover > a {
    background: #f9f9f9;
    color: #4091D3;
}

.side-menu ul ul {
    position: absolute;
    left: 100%;
    top: 0;
    width: 250px;
    visibility: hidden;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    border-left: 2px solid #4091D3;
}

.side-menu li:hover > ul {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.side-menu li:has(ul) > a::after {
    content: '›';
    float: right;
    font-size: 18px;
    line-height: 1;
}


/* На десктопе прячем мобильное меню */
.mobile_menu { display: none; }

@media (max-width: 1024px) {
    /* 1. Основной контейнер теперь не флекс, чтобы контент был на всю ширину */
    .main-container {
        display: block; 
    }

    /* 2. Прячем десктопный сайдбар, который в main-container */
    .main-container > .sidebar {
        display: none; 
    }

    /* 3. Оформляем мобильное меню как фулл-скрин шторку */
/*     .mobile_menu {
	  gap: 12px;
	  display: flex;
	  width: auto;
	  align-items: center;
	  padding: 0;
	  justify-content: inherit;
	  flex-direction: column;
	  margin-top: 60px;
	  border-top: 1px solid #fff;
	} */

    /* 4. Стилизуем каталог внутри мобилки */
/*     .mobile_menu .sidebar {
    width: 100%;
    margin-bottom: 30px;
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    box-sizing: border-box;
    position: relative;
  } */

/*     .mobile_menu .side-menu ul ul {
        position: static; 
        display: none;    
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        background: #f9f9f9;
        border-left: 1px solid #4091D3;
    }
 */
    /* Класс для открытия подуровней по клику */
/*     .mobile_menu .side-menu li.open > ul {
        display: block;
    } */
}

/* Контейнер для плиток (исходя из твоей разметки на скрине 1_5.jpg) */
.catalog-index .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Ставим в старт, чтобы gap работал ровно */
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Сама карточка-ссылка */
.catalog-index .item {
    /* На десктопе строим ровно в 3 колонки (2 ряда по 3 штуки) */
    width: calc((100% - 40px) / 3); 
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #ffffff;
    
    /* Скругление делаем для всей карточки, а не только для фото */
    border-radius: 12px; 
    overflow: hidden;
    box-sizing: border-box;
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-index .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(64, 145, 211, 0.2);
}

/* Блок с фото */
.catalog-index .item .photo {
    padding: 0;
    width: 100%;
    aspect-ratio: 4 / 3; /* Оставляем отличный пропорциональный формат */
    overflow: hidden;
    background-color: #f5f5f5; /* легкий фон на случай, если картинка долго грузится */
}

.catalog-index .item .photo .responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Старый псевдоэлемент с градиентом БОЛЬШЕ НЕ НУЖЕН — удаляем/обнуляем */
.catalog-index .item::after {
    display: none;
}

/* Текст теперь идет под картинкой в нормальном потоке */
.catalog-index .item .text {
    padding: 15px 14px;
    text-align: center;
    color: #2C3E50; /* приятный темный цвет вместо жесткого #111 */
    font-size: 16px; /* 20px для внутренней плитки было крупновато, 16-18px — топ */
    font-weight: 500;
    line-height: 1.3;
    background: none;
    box-sizing: border-box;
    
    /* Если заголовки разной длины, флекс выровняет их, но можно задать min-height */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Адаптив (Media Queries)
   ========================================================================== */

/* Планшеты (меньше 1024px) — перестраиваем в 2 колонки */
@media (max-width: 1024px) {
    .catalog-index .wrapper {
        gap: 15px;
    }
    
/*     .catalog-index .item {
        width: calc((100% - 15px) / 2); 
    }
    
    .catalog-index .item .text {
        font-size: 15px;
        padding: 12px 10px;
    } */
}

/* Мобилки (меньше 576px) — в 1 колонку, чтобы было удобно листать пальцем */
@media (max-width: 576px) {
    .catalog-index .wrapper {
        gap: 12px;
    }
    
    .catalog-index .item {
        width: 100%; /* на всю ширину экрана */
        border-radius: 8px;
    }
    
    .catalog-index .item .text {
        font-size: 14px;
        padding: 10px;
    }
}

.section.catalog-index {
    position: relative;
    z-index: 5; /* Вытаскиваем секцию над возможными слоями слайдера */
}



/* Контейнер для товаров (родитель) */
.item-index .wrapper, .category_catalog-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* строго в начало */
    gap: 20px;                   /* зазор между всеми карточками */
    width: 100%;
    box-sizing: border-box;
}

/* Карточка товара */
.item-index .item-catalog, .item-catalog {
  width: calc((100% - 60px) / 4) !important;
  
  /* УБИРАЕМ ЖЕСТКУЮ ВЫСОТУ */
  height: auto !important; 
  
  /* Вместо нее даем минимальную (чтобы карточки с короткими именами не сжались слишком сильно) */
  min-height: 380px; 
  
  /* ВКЛЮЧАЕМ ВНУТРЕННИЙ ФЛЕКС */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Это вытолкнет блок цены и кнопки в самый низ */
  
  padding: 20px 15px 15px 15px;
  box-sizing: border-box;
  margin: 0 !important;
  border-radius: 12px !important;
  background-color: #ffffff;
  border: 1px solid #eef2f5 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Корректируем ховер */
.item-index .item-catalog:hover, .item-catalog:hover {
  box-sizing: border-box;
  
  /* Меняем цвет уже существующей рамки на синий — ничего не дергается! */
  border-color: #4091D3 !important; 
  
  /* Делаем тень глубже и мягче */
  box-shadow: 0 12px 25px rgba(64, 145, 211, 0.2) !important;
  
  /* Аккуратный подъем вверх */
  transform: translateY(-5px);
}

.item-catalog .name_item {
    font-size: 14px;
    line-height: 1.3;
    color: #333;
    font-weight: 500;
    
    /* Фиксируем высоту под 3 строки, чтобы цены всегда стояли на одной линии */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* ограничиваем тремя строками */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 54px; /* 3 строки по ~18px */
    
    text-align: center; /* или left, как тебе больше нравится */
    margin-bottom: 10px;
}


/* ==========================================================================
   Адаптивность сетки и внутренностей карточки товара
   ========================================================================== */

/* 1. Крупные планшеты и небольшие ноутбуки (с левым меню им тесно) */
@media (max-width: 1300px) {
    .item-index .item-catalog, .item-catalog {
        /* Перестраиваем в 3 в ряд, чтобы контент не сжимался в микро-столбики */
        width: calc((100% - 40px) / 3) !important;
        height: 410px; /* чуть увеличим высоту под прыгающие строки */
    }
    
    .price-block .button.submit_basket {
        font-size: 16px; /* уменьшаем шрифт кнопки */
        padding: 0 15px;
        min-width: 90px;
    }
    
    .price-block .price {
        font-size: 18px; /* уменьшаем цену */
    }
    
    .price-block .old {
        font-size: 14px; /* старая цена не должна быть больше новой! */
    }
}

/* 2. Планшеты в режиме Desktop (левое меню еще есть, экрана уже мало) */
@media (max-width: 1120px) {
    .item-index .item-catalog, .item-catalog {
        padding: 15px 10px 15px 10px; /* поджимаем внутренние паддинги */
    }
    
    .price-block {
        gap: 8px; /* уменьшаем зазор между ценой и кнопкой */
    }
}

/* 3. Точка перелома: левая колонка пропала (1024px и ниже) */
@media (max-width: 1024px) {
    .item-index .wrapper, .category_catalog-items {
        gap: 15px; /* уменьшаем общий gap сетки */
    }

    .item-index .item-catalog, .item-catalog {
        /* Экран освободился от сайдбара, можно снова вернуть 3 или 4 в ряд. 
           Давай сделаем 3 в ряд, чтобы на планшетах всё смотрелось крупно и аккуратно */
        width: calc((100% - 30px) / 3) !important;
        height: 390px;
        padding: 15px;
    }

    /* Возвращаем читаемые размеры, места теперь много */
    .price-block .button.submit_basket {
        font-size: 18px;
        min-width: 100px;
    }
    .price-block .price {
        font-size: 20px;
    }
    .price-block .old {
        font-size: 15px;
    }
}

/* 4. Вертикальные планшеты и крупные мобилки (до 768px) */
@media (max-width: 768px) {
    .item-index .item-catalog, .item-catalog {
        /* Ровно 2 карточки в ряд */
        width: calc((100% - 15px) / 2) !important;
        height: auto; /* уходим от фиксированной высоты, пусть растет вниз сама */
        min-height: 360px;
    }
    
    /* Центрируем картинку, если она без кастомных классов */
    .item-catalog img {
        max-width: 100%;
        height: auto;
        max-height: 180px;
        object-fit: contain;
        margin: 0 auto display: block;
    }

    .price-block .button.submit_basket {
        font-size: 16px;
        height: 36px;
    }
}

/* 5. Маленькие мобилки (до 480px) */
@media (max-width: 480px) {
    .item-index .wrapper, .category_catalog-items {
        gap: 10px;
    }

    
    .price-block {
        width: 100%;
        justify-content: space-between;
    }
    
    .price-block .button.submit_basket {
        width: 50%; /* отдаем кнопке больше пространства */
        font-size: 16px;
    }
}


/* Перестраиваем общую секцию блока */
.section.item-index {
  display: flex;
  flex-direction: column; /* Элементы идут сверху вниз */
  position: relative;
  width: 100%;
}

/* Принудительно задаем порядок, чтобы ссылка улетела наверх */
.section.item-index h2 { order: 1; }
.section.item-index .to-more { order: 2; }
.section.item-index .wrapper { order: 3; }

/* Стилизуем саму ссылку в правом верхнем углу */
.section.item-index .to-more {
  align-self: flex-end; /* Выталкиваем строго вправо */
  margin-bottom: 25px;  /* Отступ до начала карточек товаров */
  
  display: inline-flex;
  align-items: center;
  gap: 6px;
  
  color: #4091D3;       /* Твой фирменный синий */
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* Добавляем изящную динамическую стрелочку через псевдоэлемент */
.section.item-index .to-more::after {
  content: "→";
  font-family: inherit;
  font-size: 16px;
  transition: transform 0.2s ease-in-out;
}

/* Эффект при наведении */
.section.item-index .to-more:hover {
  color: #2c3e50; /* Цвет меняется на благородный темный */
}

/* Стрелочка кокетливо двигается вправо при ховере */
.section.item-index .to-more:hover::after {
  transform: translateX(4px);
}


@media (max-width: 768px) {
  .section.item-index {
    /* Сбрасываем фокусы с порядком наверх */
    display: block; 
  }
  
  .section.item-index h2,
  .section.item-index .to-more,
  .section.item-index .wrapper {
    order: unset; 
  }
  
  .section.item-index .to-more {
    display: flex;
    justify-content: center; /* Центрируем кнопку на экране смартфона */
    margin: 20px auto 0 auto !important;
    padding: 10px 20px;
    border: 1px solid #4091D3; /* Делаем её полноценной легкой кнопкой */
    border-radius: 6px;
    width: fit-content;
    font-size: 14px;
  }
  
  .section.item-index .to-more:hover {
    background-color: #4091D3;
    color: #ffffff;
  }
}


/* ==========================================================================
   ФУТЕР (Desktop)
   ========================================================================== */
.footer {
  width: 100%;
  background-color: #2C3E50; /* Глубокий благородный темный цвет вместо ядовито-голубого */
  color: #FFFFFF;
  box-sizing: border-box;
  font-family: inherit;
  margin-top: 50px;
}

/* Верхняя часть с колонками */
.footer .top {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 40px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

/* Общие стили для колонок */
.footer .top > div {
  flex: 1;
  min-width: 220px; /* Чтобы колонки не сжимались в сопли */
  display: flex;
  flex-direction: column;
}

/* Четвертая колонка с контактами (делаем её чуть шире и ровняем по правому краю) */
.footer .top .right-2 {
  flex: 0 0 280px;
  align-items: flex-start;
}

/* Заголовки колонок */
.footer h3 {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

/* Ссылки внутри колонок */
.footer .top > div > a {
  display: block;
  color: #B0BEC5; /* Приятный блекло-серый, чтобы не резал глаза */
  font-size: 15px;
  text-decoration: none;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer .top > div > a:hover {
  color: #4091D3; /* Твой фирменный синий на ховер */
}

/* Блок контактов (4 колонка) */
.footer .phones {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.footer .phones img,
.footer .email img {
  width: 20px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.8;
}

.footer .phones_footer a {
  display: block;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 5px;
}

.footer .email {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #FFFFFF !important;
  font-size: 16px;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer .social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer .social a {
  display: block;
  transition: transform 0.2s ease;
}

.footer .social a:hover {
  transform: translateY(-3px);
}

.footer .social img {
  width: 32px;
  height: 32px;
}

/* Средняя плашка (Копирайт и разработчик) */
.footer .bottom {
  width: 100%;
  background-color: #1A252F; /* Еще темнее, разделяя зоны */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 15px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .bottom div,
.footer .bottom a {
  color: #78909C;
  font-size: 13px;
  text-decoration: none;
}

.footer .bottom a:hover {
  color: #4091D3;
}

/* Нижняя плашка (Дисклеймер ПД) */
.footer .footer__bottom_bottom {
  background-color: #1A252F;
  padding: 15px 40px 25px 40px;
  text-align: center;
  color: #546E7A;
  font-size: 12px;
  line-height: 1.6;
  box-sizing: border-box;
}

.footer .footer__bottom_bottom a {
  color: #78909C;
  text-decoration: underline;
}

.footer .footer__bottom_bottom a:hover {
  color: #4091D3;
}

/* ==========================================================================
   АДАПТИВ ФУТЕРА
   ========================================================================== */

/* Ноутбуки и планшеты в ландшафте */
@media (max-width: 1024px) {
  .footer .top {
    padding: 40px 20px;
  }
  .footer .top > div {
    /* Перестраиваем в сетку 2х2 */
    flex: 0 0 calc(50% - 20px);
    min-width: calc(50% - 20px);
  }
  .footer .bottom,
  .footer .footer__bottom_bottom {
    padding: 15px 20px;
  }
}

/* Мобилки и вертикальные планшеты */
@media (max-width: 768px) {
  .footer .bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px;
  }
}

/* Маленькие мобилки */
@media (max-width: 480px) {
  .footer .top {
    flex-direction: column;
    gap: 35px;
    padding: 40px 20px;
  }
  .footer .top > div {
    /* Все колонки встают в один аккуратный столбик */
    flex: 0 0 100%;
    width: 100%;
  }
  .footer h3 {
    margin-bottom: 15px;
  }
  .footer .top .right-2 {
    flex: 0 0 auto;
  }
}


/* ==========================================================================
   СТРАНИЦА КАТЕГОРИИ (Верхняя часть)
   ========================================================================== */

.category_catalog-wrapper {
	margin-top:0;
}

.top_category {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  margin-bottom:0;
  margin-top: 0;
}

/* Заголовок H1 (в стиле наших новых H2) */
.section.top_category h1 {
  font-size: 28px;
  font-weight: 600;
  color: #2C3E50;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 25px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #4091D3;
  display: inline-block;
  width: fit-content;
}

/* Блок с фото и описанием */
.category_info {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.category_photo {
  flex: 0 0 25%; /* Уменьшили до 25%, чтобы картинка не доминировала */
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.category_photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-text {
  flex: 1;
  color: #546E7A; /* Мягкий цвет для длинных текстов */
  font-size: 15px;
  line-height: 1.6;
}

.page-text p {
  margin: 0 0 15px 0;
}
.page-text p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   ПОДКАТЕГОРИИ (Облако тегов)
   -------------------------------------------------------------------------- */
.more_category-wrapper {
  width: 100%;
  margin-bottom: 25px;
}

.more_category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Небольшой зазор между тегами */
  width: 100%;
}

/* Превращаем старые огромные кирпичи в изящные теги */
.more_category-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Ширина и высота строятся от контента и паддингов */
  width: auto; 
  height: auto;
  padding: 8px 18px;
  
  background-color: #F4F7F9; /* Легкий нейтральный фон */
  border: 1px solid #E4EBF0;
  border-radius: 30px; /* Закругленные баблы */
  
  color: #2C3E50;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.more_category-links a:hover {
  background-color: #4091D3; /* Окрашивается в синий при ховере */
  border-color: #4091D3;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   БЛОК СОРТИРОВКИ
   -------------------------------------------------------------------------- */
.category_sort-wrapper {
  display: flex;
  width: 100%;
  justify-content: flex-start; /* Ровняем по левому краю перед товарами */
  border-bottom: 1px solid #EAEAEA;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.sort_price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #78909C;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.sort_price:hover {
  color: #4091D3;
}

.sort_price img {
  width: 12px;
  height: auto;
  transition: transform 0.2s ease;
}

/* ==========================================================================
   АДАПТИВ ДЛЯ СТРАНИЦЫ КАТЕГОРИИ
   ========================================================================== */

@media (max-width: 992px) {
  .category_info {
    flex-direction: column; /* Картинка встает над текстом */
    gap: 20px;
  }
  
  .category_photo {
    width: 100%;
    max-width: 100%; /* Картинка растягивается на мобильном */
  }
}

@media (max-width: 768px) {
  .section.top_category h1 {
    font-size: 24px;
  }

  .more_category-links a {
    padding: 6px 14px;
    font-size: 13px; /* Чуть уменьшаем теги на смартфонах */
  }
  
  /* Поведение для кнопки "Показать еще", если решишь оживить её на JS */
  .more_category-show {
    display: block;
    text-align: center;
    color: #4091D3;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
  }
}


/* ==========================================================================
   ПАГИНАЦИЯ (Десктоп)
   ========================================================================== */

.pagination-wrapper {
  display: flex;
  width: 100%;
  justify-content: center; /* Центрируем по центру страницы под товарами */
  margin: 40px auto;
  box-sizing: border-box;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Зазор между кнопочками */
  flex-wrap: wrap; /* Чтобы на мобилках красиво переносилось */
}

/* Обнуляем тег font, который движок вешает на активную страницу */
.pagination font {
  color: inherit !important;
}

/* Очищаем и стилизуем кнопки (и обычные, и активную, и "показать все") */
.pagination input[type="submit"].submit_stran,
.pagination input[type="submit"].submit_stran_enter,
.pagination input[type="submit"].submit_stran_all {
  /* Сброс дефолтной дичи браузера */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #E4EBF0;
  outline: none;
  background: #FFFFFF;
  box-sizing: border-box;
  cursor: pointer;
  
  /* Размеры и геометрия */
  height: 40px;
  min-width: 40px; /* Квадратные аккуратные кнопочки для цифр */
  padding: 0 12px;
  border-radius: 8px; /* Скругление в тему наших карточек */
  
  /* Шрифты */
  color: #2C3E50;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  
  /* Анимация */
  transition: all 0.2s ease-in-out;
}

/* Кнопки "назад", "вперед" и цифры при наведении */
.pagination a:hover input[type="submit"].submit_stran {
  border-color: #4091D3;
  color: #4091D3;
  background-color: #F4F7F9;
}

/* ТЕКУЩАЯ АКТИВНАЯ СТРАНИЦА (выделяем синим цветом полностью) */
.pagination input[type="submit"].submit_stran_enter {
  background-color: #4091D3 !important;
  border-color: #4091D3 !important;
  color: #FFFFFF !important;
  font-weight: 600;
  cursor: default; /* Убираем палец при наведении, это же не ссылка */
}

/* Кнопка "ПОКАЗАТЬ ВСЕ" (сделаем её чуть блеклой, чтобы не спорила с активной цифрой) */
.pagination input[type="submit"].submit_stran_all {
  background-color: #F4F7F9;
  border-color: #E4EBF0;
  color: #546E7A;
}

.pagination a:hover input[type="submit"].submit_stran_all {
  background-color: #4091D3;
  border-color: #4091D3;
  color: #FFFFFF;
}

/* ==========================================================================
   АДАПТИВ ДЛЯ ПАГИНАЦИИ
   ========================================================================== */

@media (max-width: 560px) {
  .pagination-wrapper {
    margin: 30px auto;
    padding: 0 15px;
  }
  
  .pagination {
    gap: 6px; /* Чуть прижимаем кнопки на мобилках */
    justify-content: center;
    width: 100%;
  }
  
  .pagination input[type="submit"].submit_stran,
  .pagination input[type="submit"].submit_stran_enter {
    height: 36px;
    min-width: 36px; /* На телефонах 36px — идеальный размер под палец */
    padding: 0 10px;
    font-size: 13px;
  }
  
  /* Кнопку "показать все" на мобилках выкидываем на вторую строку по центру */
  .pagination input[type="submit"].submit_stran_all {
    height: 36px;
    width: 100%; /* Растягиваем на всю ширину, так кликать в сто раз удобнее */
    margin-top: 5px;
  }
}


/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ (Desktop + Адаптив)
   ========================================================================== */

.breadcrumbs.section {
  display: flex;
  flex-wrap: wrap; /* Чтобы длинные цепочки на мобилках красиво переносились, а не ломали экран */
  align-items: center;
  gap: 6px; /* Зазор между элементами */
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  box-sizing: border-box;
}



/* Делаем "Главную" кликабельной (опционально, если обернуть весь блок в общую ссылку нельзя, 
   то при клике на само слово ничего не произойдет, но визуально оно будет полноценным пунктом) */
.breadcrumbs.section:hover::before {
  color: #4091D3;
}

/* Текст-разделитель (после Главной тоже симулируем разделитель) */
.breadcrumbs.section::after {
  /* Если нужно вставить разделитель сразу после Главной, но перед первой ссылкой PHP,
     мы делаем это через соседний селектор для первой ссылки, код ниже изящнее */
}

/* Добавляем разделитель после нашей искусственной "Главной" */
.breadcrumbs.section a:first-of-type::before {
  content: "/";
  margin-right: 6px;
  color: #CFD8DC;
  font-size: 12px;
}

/* Ссылки крошек */
.breadcrumbs.section a {
  font-size: 13px;
  color: #78909C; /* Приглушенный благородный цвет */
  text-decoration: none;
  font-weight: 400;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.breadcrumbs.section a:hover {
  color: #4091D3; /* Фирменный синий при наведении */
}

/* Скрываем старые дефисы из PHP и заменяем их на стильные косые черты */
.breadcrumbs.section span {
  font-size: 0; /* Полностью скрываем сам текстовый дефис */
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}

.breadcrumbs.section span::before {
  content: "/"; /* Вместо дефиса рисуем элегантный слэш */
  font-size: 12px;
  color: #CFD8DC; /* Очень нежный серый цвет для разделителей */
}

/* Последний элемент в крошках (текущая страница) делаем активным и некликабельным */
.breadcrumbs.section a:last-of-type {
  color: #2C3E50; /* Темный цвет, показывающий, где юзер находится */
  font-weight: 500;
  pointer-events: none; /* Отключаем ховер и клик для последней ссылки */
}

/* Корректировка под мобилки */
@media (max-width: 768px) {
  .breadcrumbs.section {
    padding: 10px 0;
    margin-bottom: 15px;
    gap: 4px; /* Чуть плотнее на мелких экранах */
  }
  
  .breadcrumbs.section a,
  .breadcrumbs.section::before,
  .breadcrumbs.section span::before {
    font-size: 12px; /* Немного уменьшаем шрифт на смартфонах */
  }
}


/* ==========================================================================
   БЛОК НОВОСТЕЙ НА ГЛАВНОЙ
   ========================================================================== */

.section.news-index {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  margin-top: 40px;
}

/* Выстраиваем заголовок и ссылку "Все новости" в один ряд, как у товаров */
.section.news-index h2 { order: 1; }
.section.news-index .to-more 
{ order: 2; margin-bottom: 25px; 
align-self: flex-end;
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4091D3;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}


.section.news-index .to-more::after {
  content: "→";
  font-family: inherit;
  font-size: 16px;
  transition: transform 0.2s ease-in-out;

}

.section.news-index .news-item { order: 3; }

/* Обёртка для самой новости */
.news-index .news-item {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #eef2f5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  padding: 30px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.news-index .news-item .text {
  width: 100%;
  padding: 0; /* Сбрасываем старые кривые паддинги */
}

/* Заголовок конкретной новости */
.news-index .news-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2C3E50;
  margin: 0 0 20px 0;
  line-height: 1.4;
}



/* Контейнер с текстом и картинкой */
.news-index .news-item .text p {
  display: flex;
  flex-direction: row-reverse; /* Картинка будет справа, текст слева */
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  
  color: #546E7A;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Жестко укрощаем картинку, внедренную через админку */
.news-index .news-item .text img {
  /* Убиваем inline-флоаты из админки */
  float: none !important; 
  
  /* Задаем аккуратные пропорции превью */
  flex: 0 0 35%;
  max-width: 380px;
  width: 35% !important; /* перебиваем inline-width если будет */
  height: auto !important;
  
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  object-fit: cover;
}

/* ==========================================================================
   АДАПТИВ ДЛЯ НОВОСТЕЙ
   ========================================================================== */

@media (max-width: 992px) {
  .news-index .news-item {
    padding: 20px;
  }
  
  .news-index .news-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  /* На планшетах переворачиваем флекс: картинка падает НАД текстом */
  .news-index .news-item .text p {
    flex-direction: column; 
    gap: 15px;
  }
  
  .news-index .news-item .text img {
    width: 100% !important;
    max-width: 100%;
    flex: none;
  }
}

@media (max-width: 768px) {
  /* Ссылка "Все новости" падает вниз кнопкой, дублируя поведение из товаров */
  .section.news-index {
    display: block;
  }
  .section.news-index h2,
  .section.news-index .to-more,
  .section.news-index .news-item {
    order: unset;
  }
  
  .section.news-index .to-more {
    display: flex;
    justify-content: center;
    margin: 20px auto 0 auto !important;
    padding: 10px 20px;
    border: 1px solid #4091D3;
    border-radius: 6px;
    width: fit-content;
    font-size: 14px;
  }
  
  .section.news-index .to-more:hover {
    background-color: #4091D3;
    color: #ffffff;
  }
}


/* ==========================================================================
   СТРАНИЦА: ВСЕ НОВОСТИ (Архив)
   ========================================================================== */

.text_page-section.news-archive-page {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 50px;
}

/* Главный заголовок страницы */
.text_page-section.news-archive-page h1,
.section.catalog-page h1 {
  font-size: 28px;
  font-weight: 600;
  color: #2C3E50;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 30px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #4091D3;
  display: inline-block;
  width: fit-content;
}

/* Контейнер для списка */
.news-archive-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #eef2f5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  overflow: hidden; /* Чтобы скругления не резались */
}

/* Строка одной новости в архиве */
.news-archive-list .archive-item {
  border-bottom: 1px solid #eef2f5;
  transition: background-color 0.2s ease;
}

.news-archive-list .archive-item:last-child {
  border-bottom: none; /* Убираем последнюю полосу */
}

/* Ссылка-строка */
.news-archive-list .archive-item-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  text-decoration: none;
  color: #2C3E50;
  font-size: 16px;
  font-weight: 500;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

/* Ховер на строку архива */
.news-archive-list .archive-item:hover {
  background-color: #F8FAFC;
}

.news-archive-list .archive-item:hover .archive-item-link {
  color: #4091D3;
  padding-left: 30px; /* Эффект легкого сдвига вправо */
}

.news-archive-list .archive-arrow {
  color: #CFD8DC;
  font-size: 18px;
  transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

.news-archive-list .archive-item:hover .archive-arrow {
  color: #4091D3;
  transform: translateX(5px);
}

/* ==========================================================================
   СТРАНИЦА: ОДНА НОВОСТЬ ВНУТРИ
   ========================================================================== */

.section.catalog-page {
  width: 100%;
  box-sizing: border-box;
  margin-top:0;
}

.catalog-page .news-item {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #eef2f5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  padding: 35px;
  box-sizing: border-box;
  margin-bottom: 30px;
}

/* Текст новости */
.catalog-page .news-item p {
  color: #546E7A;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}
.catalog-page .news-item p:last-of-type {
  margin-bottom: 0;
}

/* Укрощаем картинку, вставленную в текст (особенно с жесткими инлайн-стилями) */
.catalog-page .news-item img {
  max-width: 100% !important;
  height: auto !important; /* Перебивает жесткие height:448px из админки */
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Кнопка "Назад в новости" */
.catalog-page .to-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4091D3;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-bottom: 40px;
}

.catalog-page .to-more::before {
  content: "←";
  font-size: 16px;
  transition: transform 0.2s ease;
}

.catalog-page .to-more:hover {
  color: #2C3E50;
}

.catalog-page .to-more:hover::before {
  transform: translateX(-4px); /* Стрелочка двигается влево */
}

/* ==========================================================================
   АДАПТИВ (Обе страницы)
   ========================================================================== */

@media (max-width: 768px) {
  .news-archive-list .archive-item-link {
    padding: 14px 15px;
    font-size: 14px;
  }
  
  .catalog-page .news-item {
    padding: 20px;
  }
  
  .catalog-page .news-item p {
    font-size: 14px;
  }
  
  /* Контурная кнопка возврата на мобилках */
  .catalog-page .to-more {
    display: flex;
    justify-content: center;
    margin: 20px auto 0 auto !important;
    padding: 10px 20px;
    border: 1px solid #4091D3;
    border-radius: 6px;
    width: fit-content;
  }
  
  .catalog-page .to-more:hover {
    background-color: #4091D3;
    color: #ffffff;
  }
}

/* Базовые общие стили для кнопок-ссылок в новостях */
.catalog-page .to-more,
.text_page-section .to-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4091D3;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: 15px;
}

/* СЦЕНАРИЙ ДЛЯ КНОПКИ "НАЗАД В НОВОСТИ" */
.catalog-page .to-more::before {
  content: "←"; /* Смотрит влево */
  font-size: 16px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.catalog-page .to-more:hover::before {
  transform: translateX(-4px); /* Двигается влево */
}


/* --------------------------------------------------------------------------
   НОВЫЙ СЕЛЕКТОР: СЦЕНАРИЙ ДЛЯ "ЧИТАТЬ ЦЕЛИКОМ"
   -------------------------------------------------------------------------- */
.text_page-section .to-more.read-full::after {
  content: "→"; /* Рисуем стрелку справа от текста */
  font-size: 16px;
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Полностью очищаем ::before для этой кнопки, чтобы ничего не дублировалось */
.text_page-section .to-more.read-full::before {
  content: "" !important;
  display: none !important;
}

.text_page-section .to-more.read-full:hover::after {
  transform: translateX(4px); /* Стрелка плавно улетает вправо */
}


/* Общий ховер для текста */
.to-more:hover {
  color: #2C3E50;
}


/* ==========================================================================
   ТЕКСТОВЫЕ СТРАНИЦЫ ИЗ АДМИНКИ (WYSIWYG)
   ========================================================================== */

/* Задаем базовый шрифт и дефолтный цвет для всей текстовой страницы целиком */
.page_text-wrapper {
  min-height: 500px;
  padding: 30px 0;
  font-family: "Inter", sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  color: #546E7A; /* Базовый серый цвет. Наследуется всеми внутри! */
  box-sizing: border-box;
}

/* Принудительный сброс ТОЛЬКО для шрифтов и размеров, если нужно вычистить Ворд, 
   но цвет здесь НЕ ПИШЕМ, чтобы не спорить с админкой */
.page_text-wrapper p, 
.page_text-wrapper span, 
.page_text-wrapper div {
  font-family: "Inter", sans-serif !important;
  font-size: 16px !important; /* Если размеры из админки тоже нужно разрешить менять, убери !important или вообще эту строку */
  line-height: 1.6 !important;
}

.page_text-wrapper p {
  margin: 0 0 16px 0;
  padding: 0;
}

.page_text-wrapper p {
  margin: 0 0 16px 0; /* Правильные вертикальные отступы вместо padding: 7px */
  padding: 0;
}
.page_text-wrapper p:last-child {
  margin-bottom: 0;
}

/* Оформление жирного текста */
.page_text-wrapper strong, 
.page_text-wrapper b {
  font-weight: 600 !important;
}

/* Заголовки внутри текста (если менеджер выберет H2, H3, H4 в редакторе) */
.page_text-wrapper h2, 
.page_text-wrapper h3, 
.page_text-wrapper h4 {
  color: #2C3E50;
  font-weight: 600;
  line-height: 1.3;
  margin: 35px 0 15px 0;
}

.page_text-wrapper h2 { font-size: 24px; }
.page_text-wrapper h3 { font-size: 20px; }
.page_text-wrapper h4 { font-size: 18px; }

/* --------------------------------------------------------------------------
   СПИСКИ (Маркированные и нумерованные)
   -------------------------------------------------------------------------- */
.page_text-wrapper ul, 
.page_text-wrapper ol {
  margin: 0 0 20px 0;
  padding-left: 25px;
}

.page_text-wrapper li {
  font-size: 16px;
  line-height: 1.6;
  color: #546E7A;
  margin-bottom: 8px;
  padding-left: 5px;
}

.page_text-wrapper ul li {
  list-style-type: disc;
}

.page_text-wrapper ol li {
  list-style-type: decimal;
}

/* Ссылки внутри текста */
.page_text-wrapper a {
  color: #4091D3;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.page_text-wrapper a:hover {
  color: #2C3E50;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   ЖЕЛЕЗОБЕТОННЫЙ АДАПТИВ ДЛЯ МЕДИА И ТАБЛИЦ
   -------------------------------------------------------------------------- */

/* Укрощаем любые картинки, вставленные контентщиками */
.page_text-wrapper img {
  max-width: 100% !important;
  height: auto !important; /* Убивает жесткую высоту width/height из админки */
  border-radius: 8px;
  margin: 15px auto;
}

/* Если картинку прижали влево/вправо через флоаты, на десктопе даем аккуратные отступы */
.page_text-wrapper img[style*="float: left"],
.page_text-wrapper img[style*="float:left"] {
  margin: 5px 20px 20px 0 !important;
}

.page_text-wrapper img[style*="float: right"],
.page_text-wrapper img[style*="float:right"] {
  margin: 5px 0 20px 20px !important;
}

/* Карты (Яндекс, Гугл) и видео с YouTube через iframe */
.page_text-wrapper iframe {
  max-width: 100% !important;
  border: none !important;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  margin: 20px 0;
}

/* Адаптив для таблиц (хак, чтобы таблицы не разрывали экран смартфона) */
.page_text-wrapper table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  margin: 20px 0;
  display: block; /* Превращаем таблицу в блочный элемент на случай переполнения */
  overflow-x: auto; /* Включает горизонтальный скролл внутри таблицы, если она не лезет */
  -webkit-overflow-scrolling: touch;
}

.page_text-wrapper th, 
.page_text-wrapper td {
  padding: 12px 15px;
  border: 1px solid #E4EBF0;
  font-size: 15px;
  text-align: left;
}

.page_text-wrapper th {
  background-color: #F4F7F9;
  font-weight: 600;
  color: #2C3E50;
}



/* ==========================================================================
   МЕДИА-ЗАПРОСЫ
   ========================================================================== */

@media (max-width: 768px) {
  .page_text-wrapper {
    padding: 20px 0;
  }
  
  .page_text-wrapper p, 
  .page_text-wrapper span, 
  .page_text-wrapper li {
    font-size: 15px !important; /* Чуть поджимаем текст на мобилках */
  }
  
  .page_text-wrapper h2 { font-size: 20px; margin: 25px 0 10px 0; }
  .page_text-wrapper h3 { font-size: 18px; }
  
  /* УБИВАЕМ флоаты у картинок на мобилках, чтобы текст не сжимался в микро-столбики */
  .page_text-wrapper img {
    float: none !important;
    display: block !important;
    margin: 15px auto !important;
    width: 100% !important;
  }
  
  /* Заставляем iframe (карты/видео) растягиваться на весь экран смартфона */
  .page_text-wrapper iframe {
    width: 100% !important;
    height: 250px !important; /* Оптимальная высота для карты на мобилке */
  }
}



/* ==========================================================================
   КАРТОЧКА ТОВАРА (Desktop)
   ========================================================================== */

/* Общая обёртка карточки */
.item_info-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 30px auto;
  padding: 0; /* Убираем жесткие боковые паддинги */
  box-sizing: border-box;
  max-width: 100%;
  gap: 40px; /* Фиксированный зазор между фото и описанием */
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   БЛОК ФОТОГАЛЕРЕИ (Левая часть)
   -------------------------------------------------------------------------- */
.item_photo-wrapper {
  display: flex;
  flex: 0 0 45%; /* Выделяем под фото 45% ширины контента */
  max-width: 600px;
  height: auto;
  align-items: flex-start;
  gap: 15px;
  position: relative;
}

/* Контейнер главного изображения */
.main_photo {
  flex: 1;
  width: 100%;
  height: 480px; /* Комфортная высота для десктопа */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E4EBF0;
  border-radius: 12px;
  background-color: #FFFFFF;
  overflow: hidden;
  cursor: pointer;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.main_photo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Картинка никогда не обрежется */
  transition: opacity 0.3s ease-in-out;
}

/* Вертикальная галерея миниатюр слева/справа */
.small_gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  max-height: 480px; /* Строго равна высоте главного фото */
  overflow: hidden;
  position: relative;
  width: 80px;
  flex-shrink: 0;
}

.small_items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  max-height: 100%;
}

/* Миниатюры */
.small_item {
  width: 76px;
  height: 76px;
  border: 1px solid #E4EBF0;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 4px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.small_item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.small_item:hover, 
.small_item.active {
  border-color: #4091D3;
  box-shadow: 0 0 0 1px #4091D3;
}

/* Стрелочки листалщика */
#arrow_top, #arrow_bottom {
  cursor: pointer;
  font-size: 14px;
  color: #78909C;
  padding: 2px;
  user-select: none;
}
#arrow_top:hover, #arrow_bottom:hover { color: #4091D3; }

/* --------------------------------------------------------------------------
   ИНФО-БЛОК ТОВАРА (Правая часть)
   -------------------------------------------------------------------------- */
.item_info {
  flex: 0 0 50%; /* Под информацию отдаем 55% */
  width: auto;
  box-sizing: border-box;
  padding-left: 0; /* Больше не сдвигаем жестко пикселями */
}

.item_info h1 {
  font-size: 26px;
  font-weight: 600;
  color: #2C3E50;
  line-height: 1.3;
  margin: 0 0 25px 0;
}

/* Блоки выбора параметров (Цвета, Размеры) */
.color_block, 
.size_block {
  margin-top: 20px;
  display: flex;
  flex-direction: column; /* Элементы выбора под заголовком */
  gap: 10px;
}

.color_name, 
.size_block > .color {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #78909C;
}

#color_var {
  color: #2C3E50;
  margin-left: 5px;
}

/* Сетка миниатюр цветов */
.color_photo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.small_color {
  display: block;
  width: 60px;
  height: 60px;
  border: 1px solid #E4EBF0;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  padding: 3px;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.small_color img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.small_color:hover, 
.small_color.active {
  border-color: #4091D3;
  box-shadow: 0 0 0 1px #4091D3;
}

/* Кнопки размеров */
.size_wrapp {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 0; /* Обнуляем старый кривой маржин */
}

.size_name {
  min-width: 50px;
  height: 40px;
  padding: 0 15px;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid #E4EBF0;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #2C3E50;
  transition: all 0.2s ease;
  margin: 0;
}

.size_name:hover, 
.size_name.active {
  border-color: #4091D3;
  background-color: #F4F7F9;
  color: #4091D3;
}

/* Наличие на складе */
.quantity_in_stock {
  margin: 20px 0;
  color: #546E7A;
  font-size: 14px;
}
#stock_qty {
  font-weight: 600;
  color: #2C3E50;
}

/* Блок цены и покупки */
.item_info .price-block {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #F8FAFC; /* Легкая подложка под цену и кнопку купли */
  padding: 20px;
  border-radius: 12px;
  margin-top: 25px;
  width: 100%;
  box-sizing: border-box;
}

.item_info .price-block .price_wrapper {
  display: flex;
  flex-direction: column; /* "Цена" над самой цифрой */
  font-size: 13px;
  color: #78909C;
  font-weight: 500;
  text-transform: uppercase;
}

.item_info .price-block .price_wrapper .price {
  font-size: 28px;
  font-weight: 700;
  color: #E90000; /* Яркая акцентная цена */
  margin-left: 0;
  line-height: 1.2;
}

.item_info .to_cart_block {
  margin-left: auto; /* Выталкивает кнопку "Купить" в крайний правый угол плашки */
}

.item_info .submit_basket {
  width: 200px;
  height: 50px;
  border: none;
  background-color: #4091D3;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.item_info .submit_basket:hover { background-color: #2C3E50; }

/* Состояние: нет в наличии */
.price-block .submit_basket.out-of-stock,
.item_info .submit_basket.disabled,
.item_info .disabled {
  background-color: #B0BEC5 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Всплывашка "Товар добавлен" */
.in-cart {
  background-color: #E0f1FF; 
  color: #005B9F; 
  border: 1px solid #B3DFFF;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  position: absolute;
  top: -45px;
  right: 0;
  box-shadow: 0 4px 12px rgba(64,145,211,0.15);
}

/* Описание под фотками */
.text_item {
  width: 100%;
  clear: both;
}

.item_info .text_item {
  display: none; /* На всякий случай, если в старых шаблонах застрянет */
}

/* Новый контейнер для полноширинного описания */
.item-description-full {
  width: 100%;
  margin: 50px 0;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid #EEF2F5;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* Красивый заголовок в стиле Foli */
.item-description-full h2 {
  font-size: 22px;
  font-weight: 600;
  color: #2C3E50;
  margin: 0 0 25px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #4091D3;
  display: inline-block;
}

/* Сам текст из админки на всю ширину */
.item-description-full .text_item {
  font-size: 16px;
  line-height: 1.7;
  color: #546E7A;
}

/* Если в тексте есть таблицы параметров — они теперь тоже будут на всю ширину и выглядеть топ */
.item-description-full .text_item table {
  width: 100% !important;
  margin: 20px 0;
  border-collapse: collapse;
}

.item-description-full .text_item td {
  padding: 12px 15px;
  border: 1px solid #E4EBF0;
  font-size: 15px;
}

.sertificat_block {
  margin: 30px auto;
  width: 100%;
}
.sertificat_block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ==========================================================================
   АДАПТИВНОСТЬ КАРТОЧКИ ТОВАРА
   ========================================================================== */

/* Ноутбуки и мелкие мониторы (зажимаем шрифты и высоты) */
@media (max-width: 1280px) {
  .item_info-wrapper { gap: 25px; }
  .main_photo { height: 400px; }
  .small_gallery-wrapper { max-height: 400px; }
  .item_info h1 { font-size: 22px; }
  .item_info .price-block .price_wrapper .price { font-size: 24px; }
  .item_info .submit_basket { width: 160px; height: 46px; font-size: 15px; }
}

/* Планшеты (перестраиваем карточку в один вертикальный столб) */
@media (max-width: 992px) {
  .item_info-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .item_photo-wrapper, 
  .item_info {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  .main_photo { height: 450px; }
  .small_gallery-wrapper { max-height: 450px; }
}

/* Вертикальные планшеты и смартфоны */
@media (max-width: 600px) {
  /* Переворачиваем галерею: миниатюры падают ПОД главное фото */
  .item_photo-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  .main_photo {
    height: 320px;
    padding: 10px;
  }
  .small_gallery-wrapper {
    flex-direction: row; /* Строка вместо колонки */
    width: 100%;
    height: 70px;
    max-height: 70px;
    justify-content: center;
  }
  .small_items-wrapper {
    flex-direction: row;
  }
  .small_item {
    width: 66px;
    height: 66px;
  }
  #arrow_top, #arrow_bottom { display: none !important; } /* Скрываем стрелки за ненадобностью */

  /* Блок покупки на весь экран смартфона */
  .item_info .price-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
  }
  .item_info .to_cart_block {
    width: 100%;
  }
  .item_info .submit_basket {
    width: 100%;
    height: 48px;
  }
  .in-cart {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    top: -50px;
  }
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
  .item-description-full {
    padding: 20px;
    margin: 30px 0;
  }
  
  .item-description-full h2 {
    font-size: 18px;
  }
  
  .item-description-full .text_item {
    font-size: 14px;
  }
}


/* ==========================================================================
   МОБИЛЬНЫЕ ОТСТУПЫ ДЛЯ КАРТОЧКИ ТОВАРА
   ========================================================================== */

@media (max-width: 992px) {
  /* Задаем аккуратные боковые отступы для всего блока информации на смартфонах и планшетах */

  
  /* Блок с полноширинным описанием тоже подгоняем под эти отступы, если вынесли его */
  .item-description-full {
    margin: 30px 15px;
    width: calc(100% - 30px);
  }
}

/* ==========================================================================
   ПОЛНОШИРИННЫЕ БЛОКИ ПРЕИМУЩЕСТВ (SVG)
   ========================================================================== */

.product-delivery-benefits {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
  box-sizing: border-box;
}

/* Карточка одного преимущества */
.product-delivery-benefits .benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1 1 calc(25% - 20px); /* 4 штуки ровно в ряд */
  min-width: 240px;
  background: #F8FAFC; /* Красивый легкий серо-синий фон в тон Foli */
  border: 1px solid #EEF2F5;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-delivery-benefits .benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(64, 145, 211, 0.05);
}

/* Контейнер для SVG-иконки */
.product-delivery-benefits .benefit-icon {
  width: 44px;
  height: 44px;
  background: #E0F1FF; /* Мягкая голубая подложка под иконку */
  color: #4091D3; /* Фирменный синий цвет для самих линий SVG */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Сами SVG */
.product-delivery-benefits .benefit-icon svg {
  width: 22px;
  height: 22px;
}

/* Текст внутри карточки */
.product-delivery-benefits .benefit-text p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #546E7A;
}

/* Акценты в тексте */
.product-delivery-benefits .benefit-text strong {
  color: #2C3E50;
  font-weight: 600;
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */

@media (max-width: 1200px) {
  .product-delivery-benefits .benefit-item {
    flex: 1 1 calc(50% - 20px); /* По 2 штуки в ряд на планшетах */
  }
}

@media (max-width: 768px) {
  /* Паддинги, чтобы на мобилках блоки не липли к краям экрана */
  .product-delivery-benefits {
    padding: 0 15px;
    width: 100%;
    gap: 12px;
    margin: 30px 0;
  }
  
  .product-delivery-benefits .benefit-item {
    flex: 1 1 100%; /* На смартфонах карточки встают на 100% ширины экрана */
    padding: 15px;
  }
}

/* ==========================================================================
   СИСТЕМА МЯГКИХ УВЕДОМЛЕНИЙ (TOASTS)
   ========================================================================== */

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* Пропускает клики сквозь контейнер, если он пустой */
}

.toast-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  background: #FFFFFF;
  border-left: 4px solid #4091D3; /* Фирменная синяя полоска Foli */
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  pointer-events: auto; /* Возвращаем кликабельность плашке */
  
  /* Начальное состояние для анимации (смещено вправо и прозрачно) */
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* Состояние при показе */
.toast-item.show {
  transform: translateX(0);
  opacity: 1;
}

/* Иконка галочки */
.toast-item .toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #E0F1FF;
  color: #4091D3;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

/* Текст внутри */
.toast-item .toast-message {
  font-size: 14px;
  line-height: 1.4;
  color: #2C3E50;
  font-weight: 500;
}

/* Вариант сообщения об ошибке */
.toast-item.error {
  border-left-color: #E90000;
}
.toast-item.error .toast-icon {
  background-color: #FFEAEA;
  color: #E90000;
}

/* Анимация пульсации для корзины в шапке при добавлении */
.pulse-animation {
  animation: badgePulse 0.4s ease-out;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); background-color: #4091D3; color: #FFFFFF; }
  100% { transform: scale(1); }
}

/* Мобильная адаптация уведомлений */
@media (max-width: 480px) {
  #toast-container {
    top: auto;
    bottom: 20px; /* На смартфонах пусть всплывает снизу, так удобнее руке */
    left: 20px;
    right: 20px;
  }
  .toast-item {
    max-width: 100%;
    min-width: 0;
    transform: translateY(120%); /* Вылетает снизу вверх */
  }
  .toast-item.show {
    transform: translateY(0);
  }
}


/* ==========================================================================
   БЛОК ФОРМЫ (Задать вопрос / Отзывы / Авторизация)
   ========================================================================== */

.section.login_registration, 
.section.fast_order_basket {
  width: 100%;
  margin: 50px auto;
  box-sizing: border-box;
}

/* Причесываем заголовки секций в единый стиль сайта */
.section.login_registration h2, 
.section.fast_order_basket h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2C3E50;
  text-align: left; /* Убираем центрирование, выравниваем по левому краю */
  margin: 0 0 30px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #4091D3;
  display: inline-block;
  width: fit-content;
}

/* Общая обёртка для полей */
.reg-wrapper,
.login_reg-wrapper {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #EEF2F5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

/* Укрощаем саму форму, чтобы она не разъезжалась */
.registration_form_form,
.login_form, 
.registration_form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 580px; /* Идеальная эргономичная ширина для чтения и заполнения */
  padding: 40px;
  box-sizing: border-box;
}

/* Стилизация подписей и контейнеров полей */
label.label,
.login_form label,
.registration_form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #78909C;
  margin-top: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Унифицированные текстовые поля (Инпуты и Текстареа) */
input.submit3.reg_input,
.login_form input.submit3,
textarea.submit3.reg_input {
  display: block;
  height: 46px;
  width: 100%;
  border-radius: 8px;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 15px;
  font-family: inherit;
  color: #2C3E50;
  border: 1px solid #E4EBF0;
  background: #F8FAFC;
  transition: all 0.2s ease-in-out;
  margin-top: 0; /* Убираем старый маржин */
}

/* Если поле "Сообщение" сделаешь или уже сделала тегом textarea */
textarea.submit3.reg_input {
  height: 120px;
  padding: 12px 16px;
  resize: vertical; /* Разрешаем растягивать только по высоте */
}

.submit3.reg_input.textarea {
    height: auto !important;
    min-height: 120px !important; /* Удобная высота для ввода отзыва/сообщения */
    padding: 12px 16px !important; /* Освежаем паддинги для многострочного текста */
  }

/* Эффекты при наведении и фокусе */
input.submit3.reg_input:hover,
.login_form input.submit3:hover,
textarea.submit3.reg_input:hover {
  border-color: #CFD8DC;
}

input.submit3.reg_input:focus,
.login_form input.submit3:focus,
textarea.submit3.reg_input:focus {
  border-color: #4091D3;
  background: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 145, 211, 0.1);
}

/* --------------------------------------------------------------------------
   БЛОК КАПЧИ
   -------------------------------------------------------------------------- */
.registration_form_form .captcha {
  display: flex;
  align-items: flex-end;
  gap: 20px; /* Фиксированный зазор между инпутом и картинкой цифр */
  margin: 10px 0 25px 0;
  width: 100%;
}

.registration_form_form .captcha label {
  margin-bottom: 0;
  flex-grow: 1;
  max-width: 160px;
}

.registration_form_form .captcha input {
  display: block;
  height: 46px;
  width: 100%;
  border-radius: 8px;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #2C3E50;
  border: 1px solid #E4EBF0;
  background: #F8FAFC;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.registration_form_form .captcha input:focus {
  border-color: #4091D3;
  background: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 145, 211, 0.1);
}

/* Картинка капчи из генератора */
.registration_form_form .captcha_image {
  height: 46px;
  width: auto;
  border-radius: 8px;
  border: 1px solid #E4EBF0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   ГАЛОЧКА ПЕРСОНАЛЬНЫХ ДАННЫХ (Согласие)
   -------------------------------------------------------------------------- */
.registration_form_form .text {
  margin-top: 25px;
  margin-bottom: 25px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.registration_form_form .text label {
  display: block !important; /* Убиваем флексы, возвращаем блочно-инлайновый поток */
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #546E7A !important;
  cursor: pointer;
  user-select: none;
  text-transform: none !important; /* Убираем капс, если он наследовался */
  letter-spacing: normal !important;
}

.registration_form_form .text input[type="checkbox"] {
  display: inline-block !important;
  vertical-align: middle; /* Выравниваем по центру относительно первой строки текста */
  position: relative;
  top: -2px; /* Легкая микро-корректировка высоты под прыгающий шрифт */
  margin-right: 10px !important;
  margin-left: 0 !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer;
}

.registration_form_form .text label a {
  display: inline !important; /* Гарантируем, что ссылки не станут блоками и не упадут на новую строку */
  color: #4091D3 !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.registration_form_form .text label a:hover {
  color: #2C3E50 !important;
  text-decoration: none !important;
}

/* Картинка капчи из генератора */
.registration_form_form .captcha_image {
  height: 46px !important;
  width: 150px !important; /* Жестко задаем ширину под новые пропорции PHP */
  border-radius: 8px;
  box-sizing: border-box;
  
  /* запрещаем браузерам размывать пиксели при рендере */
  image-rendering: -moz-crisp-edges;         /* Firefox */
  image-rendering: -o-crisp-edges;           /* Opera */
  image-rendering: -webkit-optimize-contrast; /* Webkit (Safari, Chrome) */
  image-rendering: crisp-edges;
  image-rendering: pixelated;                 /* Современные стандарты */
}

/* --------------------------------------------------------------------------
   КНОПКА ОТПРАВКИ (SUBMIT)
   -------------------------------------------------------------------------- */
input.button,
.login_form input.submit4,
.registration_form input.submit4 {
  -webkit-appearance: none;
  appearance: none;
  background-color: #4091D3;
  color: #FFFFFF;
  height: 50px;
  width: 100%; /* На мобилках на всю ширину, на десктопе ограничиваем */
  max-width: 240px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  padding: 0 24px;
  transition: background-color 0.2s ease-in-out;
  margin-top: 0;
  text-transform: none; /* Убираем старый кривой капс */
}

input.button:hover,
.login_form input.submit4:hover,
.registration_form input.submit4:hover {
  background-color: #2C3E50; /* Фирменный темный ховер */
}

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛОК
   ========================================================================== */

@media (max-width: 768px) {
  /* Паддинги по краям карточки формы, чтобы не липло к дисплею */
  .reg-wrapper,
  .login_reg-wrapper {
    margin: 0 15px;
    width: calc(100% - 30px);
  }
  
  .registration_form_form,
  .login_form, 
  .registration_form {
    padding: 25px 20px;
  }
  
  label.label,
  .login_form label,
  .registration_form label {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  input.submit3.reg_input,
  .login_form input.submit3,
  textarea.submit3.reg_input {
    height: 42px;
    font-size: 14px;
  }
  
  .registration_form_form .captcha {
    flex-direction: column; /* На мелких экранах капча падает под инпут */
    align-items: flex-start;
    gap: 10px;
  }
  
  .registration_form_form .captcha label {
    max-width: 100%;
  }
  
  .registration_form_form .captcha_image {
    width: 120px; /* Фиксируем ширину картинки на мобилке */
  }
  
  input.button,
  .login_form input.submit4,
  .registration_form input.submit4 {
    max-width: 100%; /* Кнопка на мобильном становится сочной, на весь экран */
    height: 46px;
    font-size: 15px;
  }
}


/* ==========================================================================
   ДВУХКОЛОНОЧНЫЙ МАКЕТ: ВХОД И РЕГИСТРАЦИЯ
   ========================================================================== */

/* Общая подложка для обеих форм */
.login_reg-wrapper {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid #EEF2F5;
  border-radius: 12px;
  padding: 0; /* Обнуляем, паддинги дадим формам */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  margin-top: 20px;
}

/* Распределяем формы 50/50 */
.login_form, 
.registration_form {
  flex: 1 1 50%;
  width: 50%;
  padding: 45px 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Делаем аккуратную вертикальную разделительную линию между формами на десктопе */
.login_form {
  border-right: 1px solid #EEF2F5;
}

/* Заголовки внутри форм (H3) */
.login_reg-wrapper h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2C3E50;
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 1.3;
}

/* Ссылка "Забыли пароль?" */
.login_form a {
  font-size: 13px;
  color: #4091D3;
  text-decoration: underline;
  margin-top: -5px;
  margin-bottom: 25px;
  align-self: flex-start; /* Прижимаем влево, а не на всю ширину */
  font-weight: 500;
}

.login_form a:hover {
  color: #2C3E50;
  text-decoration: none;
}

/* Ограничиваем кнопки, чтобы они не растягивались на пол-экрана */
.login_form .submit4,
.registration_form .submit4 {
  max-width: 280px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   ИСПРАВЛЕНИЕ РАДИОКНОПОК (Физ. / Юр. лицо)
   -------------------------------------------------------------------------- */

/* Перебиваем старый вертикальный label, превращая выбор лица в красивую строку */
.registration_form label {
  display: inline-flex !important;
  flex-direction: row !important; /* Кругляшок слева, текст справа */
  align-items: center !important;
  gap: 10px;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #546E7A !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
  margin-bottom: 18px;
  width: fit-content;
}

/* Сами точки выбора */
.registration_form input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
}

/* Делаем небольшой отступ перед кнопкой регистрации, чтобы отделить от радиокнопок */
.registration_form .submit4 {
  margin-top: 15px;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */

@media (max-width: 868px) {
  /* На планшетах и мобилках схлопываем колонки обратно в один вертикальный ряд */
  .login_reg-wrapper {
    flex-direction: column;
    margin: 0 15px;
    width: calc(100% - 30px);
  }
  
  .login_form, 
  .registration_form {
    flex: 1 1 100%;
    width: 100%;
    padding: 35px 25px;
  }
  
  /* Убираем правый бордюр, делаем нижний разделитель */
  .login_form {
    border-right: none;
    border-bottom: 1px solid #EEF2F5;
  }
  
  .login_form .submit4,
  .registration_form .submit4 {
    max-width: 100%; /* На телефонах кнопки на всю ширину для удобства пальца */
  }
}


/* ==========================================================================
   СТИЛИЗАЦИЯ ВЫПАДАЮЩИХ СПИСКОВ (SELECT)
   ========================================================================== */

select.submit3 {
  display: block;
  width: 100%;
  max-width: 600px; /* Ограничиваем по ширине текстовых полей */
  height: 46px;
  border-radius: 8px;
  padding: 0 36px 0 16px; /* Большой правый паддинг, чтобы текст не налезал на стрелочку */
  box-sizing: border-box;
  font-size: 15px;
  font-family: inherit;
  color: #2C3E50;
  border: 1px solid #E4EBF0;
  background-color: #F8FAFC;
  cursor: pointer;
  
  /* Сбрасываем дефолтную системную стрелку браузера */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  
  /* Рисуем свою аккуратную минималистичную стрелочку через SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378909C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  
  transition: all 0.2s ease-in-out;
}

/* Для Firefox убираем дефолтную обводку фокуса вокруг текста */
select.submit3::-ms-expand {
  display: none; /* Убираем стрелку в IE/Edge */
}

/* Ховер и Фокус */
select.submit3:hover {
  border-color: #CFD8DC;
}

select.submit3:focus {
  border-color: #4091D3;
  background-color: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 145, 211, 0.1);
}

/* Фикс для мобилок: поджимаем высоту */
@media (max-width: 768px) {
  select.submit3 {
    height: 42px;
    font-size: 14px;
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   ЖЕСТКИЙ ФИКС ЖЕЛТОГО АВТОЗАПОЛНЕНИЯ БРАУЗЕРА (Chrome / Safari)
   -------------------------------------------------------------------------- */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border: 1px solid #E4EBF0;
  -webkit-text-fill-color: #2C3E50 !important;
  /* Заменяем желтый цвет браузера на наш нежный #F8FAFC */
  -webkit-box-shadow: 0 0 0px 1000px #F8FAFC inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   СТРАНИЦА КОРЗИНЫ (Basket Page)
   ========================================================================== */

.section.basket-page {
  width: 100%;
  margin: 30px auto;
  box-sizing: border-box;
}

/* Заголовок страницы */
.section.basket-page h1 {
  font-size: 26px;
  font-weight: 600;
  color: #2C3E50;
  margin: 0 0 35px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #4091D3;
  display: inline-block;
  width: fit-content;
}

.basket_wrapper {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #EEF2F5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  margin-bottom: 40px;
  padding-bottom: 25px;
}

/* --------------------------------------------------------------------------
   СТРОКА ТОВАРА (Табличный вид на десктопе)
   -------------------------------------------------------------------------- */
.basket_row {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  border-bottom: 1px solid #EEF2F5;
  box-sizing: border-box;
  padding: 20px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #FFFFFF;
  transition: background-color 0.2s ease;
}

.basket_row:last-of-type {
  border-bottom: none; /* Убираем черту под последним товаром перед итогом */
}

.basket_row:hover {
  background-color: #F8FAFC; /* Мягкая подсветка строки при наведении */
}

/* Фото товара */
.basket_row-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E4EBF0;
  border-radius: 8px;
  padding: 5px;
  background: #FFFFFF;
  flex-shrink: 0;
}

.basket_row-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Блок названия и опций */
.basket_row-name {
  flex: 1 1 auto;
  max-width: 450px;
}

.basket_row-name a {
  text-decoration: none;
  color: #2C3E50;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.basket_row-name a:hover {
  color: #4091D3;
}

/* Вывод цвета и размера под названием */
.basket_row-color {
  font-size: 13px;
  color: #78909C;
  margin-top: 5px;
}

/* Блок количества */
.basket_row-quan {
  width: 110px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #546E7A;
  font-weight: 500;
  flex-shrink: 0;
}

.basket_row-quan input.submit3 {
  width: 50px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #E4EBF0;
  background: #F8FAFC;
  font-size: 15px;
  font-weight: 600;
  color: #2C3E50;
  text-align: center;
  padding: 0;
  margin: 0;
}

.basket_row-quan input.submit3:focus {
  border-color: #4091D3;
  background: #FFFFFF;
  outline: none;
}

/* Цены (Одиночная и Общая) */
.basket_row-price, 
.basket_row-total {
  width: 110px;
  font-size: 16px;
  font-weight: 600;
  color: #2C3E50;
  text-align: right;
  flex-shrink: 0;
}

.basket_row-total {
  font-size: 18px;
  font-weight: 700;
  color: #2C3E50; /* Сумма строки */
}

/* Чекбокс удаления (Стилизуем под опасную зону) */
.basket_row-delete {
  width: 40px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.basket_row-delete input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #E90000; /* Делаем чекбокс удаления красным в современных браузерах */
}

/* --------------------------------------------------------------------------
   ПЛАШКА ИТОГО (Total)
   -------------------------------------------------------------------------- */
.basket_wrapper .total {
  width: 100%;
  background: #F8FAFC;
  border-top: 1px solid #EEF2F5;
  padding: 25px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row-reverse; /* Сумма правее, количество левее */
  justify-content: flex-start;
  gap: 40px;
  font-size: 16px;
  color: #546E7A;
  font-weight: 500;
}

.basket_wrapper .total div:first-child {
  font-size: 22px;
  font-weight: 700;
  color: #E90000; /* Выделяем итоговую сумму красным */
}

.basket_wrapper .total div:first-child::before {
  content: "Итого: ";
  color: #2C3E50;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   КНОПКИ УПРАВЛЕНИЯ КОРЗИНОЙ
   ----------------========================================================== */
.basket_button-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
  justify-content: flex-end;
  width: 100%;
  box-sizing: border-box;
}

.basket_button-checkout, 
.basket_button-continue,
.basket_button-all_delete {
  margin: 0 !important; /* Сносим старые кривые отступы */
}

/* Базовый стиль служебных кнопок (Пересчитать, Продолжить, Очистить) */
.basket_button-continue input, 
.basket_button-all_delete input {
  -webkit-appearance: none;
  appearance: none;
  background-color: #F4F7F9;
  color: #546E7A;
  height: 46px;
  border: 1px solid #E4EBF0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;  
  border-radius: 8px;
  padding: 0 20px;
  transition: all 0.2s ease;
}

.basket_button-continue input:hover, 
.basket_button-all_delete input:hover {
  background-color: #EEF2F5;
  color: #2C3E50;
  border-color: #CFD8DC;
}

/* Главная кнопка "Оформить заказ" */
.basket_button-checkout input,
.submit41 {
  -webkit-appearance: none;
  appearance: none;
  background-color: #4091D3;
  color: #FFFFFF;
  height: 46px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  padding: 0 25px;
  transition: background-color 0.2s ease;
}

.basket_button-checkout input:hover,
.submit41:hover {
  background-color: #2C3E50;
}

/* Кнопка "Очистить корзину" (Делаем деликатной) */
.basket_button-all_delete input {
  background-color: #FFFFFF;
  color: #E90000;
  border-color: #FFEAEA;
}
.basket_button-all_delete input:hover {
  background-color: #FFEAEA;
  color: #E90000;
  border-color: #E90000;
}

/* --------------------------------------------------------------------------
   ФОРМА: БЫСТРОЕ ОФОРМЛЕНИЕ ЗАКАЗА (Fast Order)
   ========================================================================== */
.section.fast_order_basket {
  margin-top: 60px;
}

/* Причесываем блок ввода под нашу карточку */
.fast_order_basket-inputs {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 580px; /* Сужаем форму до эргономичных размеров */
  background: #FFFFFF;
  border: 1px solid #EEF2F5;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.fast_order_basket-inputs label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #78909C;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fast_order_basket-inputs input[type="text"], 
.fast_order_basket-inputs input[type="email"], 
.fast_order_basket-inputs textarea {
  display: block;
  height: 46px;
  width: 100% !important;
  border-radius: 8px;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 15px;
  font-family: inherit;
  color: #2C3E50;
  border: 1px solid #E4EBF0;
  background: #F8FAFC;
  transition: all 0.2s ease;
  margin-top: 0;
}

.fast_order_basket-inputs textarea {
  height: auto;
  min-height: 90px;
  padding: 12px 16px;
  resize: vertical;
}

.fast_order_basket-inputs input[type="text"]:focus, 
.fast_order_basket-inputs input[type="email"]:focus, 
.fast_order_basket-inputs textarea:focus {
  border-color: #64748b;
  background: #ffffff;
  outline: none;
}

/* Возвращаем лейблу нормальный текстовый поток */
.fast_order_basket-inputs .text label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #64748B !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-align: left !important;
  cursor: pointer;
  margin-bottom: 20px !important;
}

/* Выравниваем сам квадратик чекбокса внутри текста */
.fast_order_basket-inputs .text label input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 10px 0 0 !important; /* Отступ справа от квадратика до текста */
  vertical-align: middle !important; /* Выравнивание по центру строки */
  position: relative;
  top: -1px; /* Микро-корректировка, если текст съезжает */
  cursor: pointer;
}

.fast_order_basket-inputs .text {
  font-size: 14px;
  line-height: 1.5;
  color: #546E7A;
  margin: 5px 0 20px 0;
}

/* Кнопка отправки быстрого заказа */
.fast_order_basket-button {
  margin-top: 10px;
}
.fast_order_basket-button input {
  width: 100%;
  max-width: 240px;
  height: 50px;
  font-size: 16px;
}

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНОЙ КОРЗИНЫ
   ========================================================================== */

@media (max-width: 992px) {
  .section.basket-page {
    padding: 0 15px;
    width: 100%;
  }
  
  /* Перестраиваем строки корзины в независимые вертикальные карточки */
  .basket_row {
    flex-wrap: wrap;
    position: relative;
    padding: 20px;
    gap: 15px;
  }
  
  .basket_row-image {
    width: 64px;
    height: 64px;
  }
  
  .basket_row-name {
    width: calc(100% - 100px);
  }
  
  .basket_row-name a {
    font-size: 14px;
  }
  
  /* Цены и количество выстраиваем в одну горизонтальную линию внизу карточки */
  .basket_row-quan, 
  .basket_row-price, 
  .basket_row-total {
    width: auto;
    flex: 1 1 auto;
    text-align: left;
    margin-top: 5px;
  }
  
  .basket_row-price {
    display: none; /* Одиночную цену на мобилке скрываем для экономии места */
  }
  
  .basket_row-total {
    text-align: right;
    font-size: 16px;
  }
  
  /* Чекбокс удаления уносим в правый верхний угол карточки */
  .basket_row-delete {
    position: absolute;
    top: 15px;
    right: 15px;
    width: auto;
  }
  
  /* Кнопки действий растягиваем на весь экран */
  .basket_button-wrapper {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #F8FAFC;
  }
  
  .basket_button-checkout, 
  .basket_button-continue, 
  .basket_button-all_delete,
  .basket_button-checkout form,
  .basket_button-continue form,
  .basket_button-all_delete form,
  .basket_button-checkout input, 
  .basket_button-continue input, 
  .basket_button-all_delete input {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Блок плашки итого */
  .basket_wrapper .total {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    text-align: right;
  }
  
  .basket_wrapper .total div:first-child {
    font-size: 20px;
  }
  
  /* Форма быстрого заказа */
  .fast_order_basket-inputs {
    padding: 25px 20px;
  }
  .fast_order_basket-button input {
    max-width: 100%;
  }
}



/* Кастомный крестик удаления вместо чекбокса */
.basket_row-delete {
  position: relative;
}

/* Намертво прячем стандартный квадрат чекбокса */
.delete-trigger input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Стилизуем наш новый крестик */
.delete-icon {
  font-size: 28px;
  color: #B0BEC5;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  line-height: 1;
  user-select: none;
}

/* Эффект ховера: крестик наливается красным */
.delete-trigger:hover .delete-icon {
  color: #E90000;
  transform: scale(1.2);
}


/* ==========================================================================
   СТИЛИЗАЦИЯ ПУСТЫХ СТРАНИЦ И ПРЕДУПРЕЖДЕНИЙ (.empty)
   ========================================================================== */

.basket_wrapper .empty {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  box-sizing: border-box;
  text-align: center;
  background: #FFFFFF;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: #546E7A;
  font-weight: 500;
}

/* Иконка восклицательного знака */
.basket_wrapper .empty::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background-color: #FFF3E0;
  color: #FFA000;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Фикс старых тегов font внутри */
.basket_wrapper .empty font.textcen,
.basket_wrapper .empty font.textcen2,
.basket_wrapper .empty strong {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #2C3E50 !important;
  font-family: inherit !important;
}

/* НАСТОЯЩАЯ КНОПКА-ССЫЛКА */
.basket_wrapper .empty .empty-btn {
  display: inline-block;
  margin-top: 25px;
  background-color: #4091D3;
  color: #FFFFFF !important; /* Перебиваем глобальные стили ссылок */
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

/* Ховер на реальную кнопку */
.basket_wrapper .empty .empty-btn:hover {
  background-color: #2C3E50;
  transform: translateY(-1px);
}

/* Адаптив под мобилки */
@media (max-width: 768px) {
  .basket_wrapper .empty {
    min-height: 240px;
    padding: 30px 20px;
    font-size: 14px;
  }
  
  .basket_wrapper .empty::before {
    width: 46px;
    height: 46px;
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .basket_wrapper .empty .empty-btn {
    margin-top: 20px;
    padding: 12px 22px;
    width: 100%; /* На смартфонах кнопка растягивается на всю ширину плашки */
    max-width: 280px; /* Но не даем ей стать бесконечно огромной */
  }
}

/* ==========================================================================
   СТРАНИЦА ОШИБКИ 404 (.page-404)
   ========================================================================== */

.category_catalog-wrapper.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 20px;
  box-sizing: border-box;
  width: 100%;
}

.page-404 .error-container {
  text-align: center;
  max-width: 500px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

/* Гигантские стильные цифры 404 */
.page-404 .error-code {
  font-size: 110px;
  font-weight: 800;
  color: #4091D3; /* Наш фирменный синий */
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 15px;
  user-select: none;
  background: linear-gradient(135deg, #4091D3 0%, #2C3E50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Заголовок ошибки */
.page-404 .error-container h1 {
  font-size: 24px;
  font-weight: 600;
  color: #2C3E50;
  margin: 0 0 15px 0;
  padding: 0;
  border: none; /* Убираем полоску под h1, если она наследовалась */
}

/* Пояснительный текст */
.page-404 .error-text {
  font-size: 15px;
  line-height: 1.6;
  color: #546E7A;
  margin: 0 0 35px 0;
}

/* Блок с кнопками */
.page-404 .error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Оформляем ссылки как кнопки (наследуем классы корзины, но фиксим адаптив) */
.page-404 .error-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  height: 46px;
  padding: 0 25px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

/* Стиль для второстепенной кнопки (На главную) */
.page-404 .error-actions a.submit4 {
  background-color: #F4F7F9;
  color: #546E7A;
  border: 1px solid #E4EBF0;
}

.page-404 .error-actions a.submit4:hover {
  background-color: #EEF2F5;
  color: #2C3E50;
  border-color: #CFD8DC;
}

/* Адаптив для мобилок */
@media (max-width: 560px) {
  .page-404 .error-container {
    padding: 35px 20px;
  }
  
  .page-404 .error-code {
    font-size: 80px;
  }
  
  .page-404 .error-container h1 {
    font-size: 20px;
  }
  
  .page-404 .error-text {
    font-size: 14px;
    margin-bottom: 25px;
  }
  
  /* На смартфонах ставим кнопки друг под друга */
  .page-404 .error-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-404 .error-actions a {
    width: 100%;
  }
}


/* ==========================================================================
   СТРАНИЦА КАТАЛОГА (Главные категории)
   ========================================================================== */

.section.catalog-page {
  width: 100%;
  margin: 30px auto;
  box-sizing: border-box;
}

/* Оформляем заголовок «Каталог» */
.section.catalog-page h1 {
  font-size: 26px;
  font-weight: 600;
  color: #2C3E50;
  margin: 0 0 35px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #4091D3;
  display: inline-block;
  width: fit-content;
}

/* Перестраиваем обертку на современную адаптивную Grid-сетку */
.catalog-page .wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* По умолчанию 3 колонки */
  gap: 30px; /* Идеальные фиксированные зазоры между карточками */
  width: 100%;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   КАРТОЧКА КАТЕГОРИИ
   ========================================================================== */
.catalog-page .item {
  display: flex;
  flex-direction: column;
  width: 100% !important; /* Убираем фиксированные 352px, карточка резиновая внутри грида */
  background: #FFFFFF;
  border: 1px solid #EEF2F5;
  border-radius: 12px; /* Закругляем все 4 угла равномерно */
  overflow: hidden; /* Маскируем картинку под скругление углов */
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); /* Убираем тяжелую черную тень */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding-bottom: 25px;
  margin: 0 !important; /* Намертво сносим кривые маржины */
}

/* Эффект аккуратного всплытия карточки при наведении */
.catalog-page .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(64, 145, 211, 0.08);
  border-color: #4091D3;
}

/* Блок с фотографией категории */
.catalog-page .item .photo {
  width: 100%;
  height: 240px; /* Фиксированная комфортная высота для одинаковых карточек */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 15px;
  box-sizing: border-box;
  overflow: hidden;
}

.catalog-page .item .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Картинка масштабируется без обрезки и искажений */
  transition: transform 0.3s ease;
}

/* Легкий зум картинки при наведении на карточку */
.catalog-page .item:hover .photo img {
  transform: scale(1.03);
}

/* Название категории */
.catalog-page .item .text {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
  margin-top: 15px;
}

.catalog-page .item .text h3 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.catalog-page .item .text h3 a {
  color: #2C3E50;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

/* При ховере подсвечиваем ссылку фирменным синим */
.catalog-page .item:hover .text h3 a {
  color: #4091D3;
}

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ СЕТКИ КАТАЛОГА
   ========================================================================== */

/* Для больших мониторов можно сделать по 4 в ряд, если категорий станет больше */
@media (min-width: 1600px) {
  .catalog-page .wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ноутбуки и планшеты в горизонтальном режиме */
@media (max-width: 1200px) {
  .catalog-page .wrapper {
    gap: 20px;
  }
  .catalog-page .item .photo {
    height: 200px;
  }
}

/* Планшеты (перестраиваем сетку по 2 карточки в ряд) */
@media (max-width: 992px) {
  .catalog-page .wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .section.catalog-page {
    padding: 0 15px; /* Боковые отступы, чтобы сетка не липла к краям экрана */
    width: 100%;
  }
}

/* Смартфоны (схлопываем в 1 колонку на всю ширину экрана) */
@media (max-width: 560px) {
  .catalog-page .wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }
  .catalog-page .item .photo {
    height: 180px; /* Чуть поджимаем высоту фото на телефонах */
  }
  .catalog-page .item .text h3 {
    font-size: 15px;
  }
}


/* ==========================================================================
   СТРАНИЦЫ ОШИБОК ОФОРМЛЕНИЯ (Капча и Недопустимые символы)
   ========================================================================== */

.login_registration.page-captcha-error,
.login_registration.page-validation-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  padding: 50px 20px;
  box-sizing: border-box;
  width: 100%;
}

.page-captcha-error .error-container,
.page-validation-error .error-container {
  text-align: center;
  max-width: 450px;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #FEE2E2;
  border-radius: 16px;
  padding: 45px 35px;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.03);
  box-sizing: border-box;
}

/* Круглая иконка ошибки */
.page-captcha-error .error-icon,
.page-validation-error .error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background-color: #FEF2F2;
  color: #EF4444;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  user-select: none;
}

/* Заголовки */
.page-captcha-error .error-container h2,
.page-validation-error .error-container h2 {
  font-size: 22px;
  font-weight: 600;
  color: #2C3E50;
  margin: 0 0 12px 0;
  padding: 0;
}

/* Текст ошибки */
.page-captcha-error .error-text,
.page-validation-error .error-text {
  font-size: 15px;
  line-height: 1.6;
  color: #546E7A;
  margin: 0 0 30px 0;
}

/* Кнопка возврата */
.page-captcha-error .error-actions a.submit41,
.page-validation-error .error-actions a.submit41 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  height: 46px;
  padding: 0 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF !important;
  background-color: #4091D3;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
  width: auto;
}

.page-captcha-error .error-actions a.submit41:hover,
.page-validation-error .error-actions a.submit41:hover {
  background-color: #2C3E50;
}

/* Мобильная адаптивность */
@media (max-width: 480px) {
  .page-captcha-error .error-container,
  .page-validation-error .error-container {
    padding: 35px 20px;
  }
  .page-captcha-error .error-actions a.submit41,
  .page-validation-error .error-actions a.submit41 {
    width: 100%;
  }
}

/* ==========================================================================
   ФОРМА ПОДТВЕРЖДЕНИЯ АДРЕСА (.step-confirm-address)
   ========================================================================== */

form.registration_form_form.step-confirm-address {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 580px; /* Делаем форму такой же ширины, как быстрый заказ */
  background: #FFFFFF;
  border: 1px solid #EEF2F5;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  margin: 30px 0;
}

/* Стилизуем подпись поля */
form.step-confirm-address .label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 25px;
}

form.step-confirm-address .label span {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #78909C;
}

/* Текстовое поле адреса */
form.step-confirm-address textarea.reg_input {
  display: block;
  height: 100px;
  width: 100%;
  border-radius: 8px;
  padding: 12px 16px;
  box-sizing: border-box;
  font-size: 15px;
  font-family: inherit;
  color: #2C3E50;
  border: 1px solid #E4EBF0;
  background: #F8FAFC;
  transition: all 0.2s ease;
  resize: vertical; /* Разрешаем менять высоту только по вертикали */
}

form.step-confirm-address textarea.reg_input:focus {
  border-color: #4091D3;
  background: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 145, 211, 0.1);
}

/* Блок кнопки */
form.step-confirm-address .form-actions {
  display: flex;
  justify-content: flex-start;
}

/* Кнопка "Продолжить" */
form.step-confirm-address .submit41.button {
  -webkit-appearance: none;
  appearance: none;
  background-color: #4091D3;
  color: #FFFFFF;
  height: 48px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  padding: 0 35px;
  transition: background-color 0.2s ease;
  width: auto;
}

form.step-confirm-address .submit41.button:hover {
  background-color: #2C3E50;
}

/* Мобильный адаптив */
@media (max-width: 560px) {
  form.registration_form_form.step-confirm-address {
    padding: 25px 20px;
  }
  
  form.step-confirm-address .submit41.button {
    width: 100%; /* На смартфонах кнопка растягивается */
  }
}

/* Зеленая иконка для успешного заказа */
.page-success-order .error-icon {
  background-color: #E8F5E9; /* Мягкий зеленый пастельный фон */
  color: #4CAF50; /* Насыщенный зеленый чекбокс */
}


/* Блок с данными покупателя */
.checkout-customer-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}
.checkout-customer-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #1e293b;
}
.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    font-size: 14px;
    color: #475569;
}

/* Стилизация вывода количества в строке */
.basket_row-quan {
    font-weight: 500;
    color: #475569;
}
.basket_row-quan span {
    display: inline-block;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    color: #0f172a;
    font-weight: 600;
    margin-right: 3px;
}

/* Модернизация блока Итого */
.basket_wrapper .total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    background: #f8fafc;
    padding: 15px 25px;
    border-radius: 8px;
    margin: 20px 0 40px 0;
    border: 1px solid #e2e8f0;
}
.total-items {
    font-size: 15px;
    color: #64748b;
}
.total-price {
    font-size: 18px;
    color: #0f172a;
}
.total-price span {
    font-weight: 700;
    color: #b45309; /* Фирменный красный/оранжевый акцент */
    font-size: 22px;
}

/* Блок формы Оплаты и Доставки */
.checkout-shipping-payment {
    margin-top: 30px;
    background: #ffffff;
}
.checkout-form-group {
    margin-bottom: 20px;
}
.checkout-form-group .label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.checkout-form-group select.submit3,
.checkout-form-group textarea.submit3 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 15px;
    color: #334155;
    background-color: #fbfcfd;
    transition: border-color 0.2s;
}
.checkout-form-group select.submit3:focus,
.checkout-form-group textarea.submit3:focus {
    border-color: #64748b;
    outline: none;
}
.checkout-form-group textarea.submit3 {
    min-height: 90px;
    resize: vertical;
}

/* Уведомление */
.checkout-notification {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #b45309;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Чекбокс согласия */
.privacy-checkbox {
    margin-bottom: 25px;
}
.privacy-checkbox label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}
.privacy-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

/* Кнопка отправки */
.submit-wrapper {
    display: flex;
    justify-content: flex-start;
}
.submit-wrapper .submit41.button {
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.checkout-total-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #F8FAFC;
  border: 1px solid #E4EBF0;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 25px 0;
  box-sizing: border-box;
  width: 100%;
}

.checkout-total-block .total-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
  font-size: 15px;
  color: #475569;
}

.checkout-total-block .total-label {
  margin-right: 15px;
  text-align: right;
}

.checkout-total-block .total-value {
  font-weight: 600;
  color: #1E293B;
  min-width: 120px;
  text-align: right;
}

/* Строка доставки (если бесплатная или платная) */
.checkout-total-block .delivery-row {
  font-size: 14px;
  color: #64748B;
  border-bottom: 1px dashed #E2E8F0;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

/* Финальная цена */
.checkout-total-block .final-row {
  margin-bottom: 0;
  margin-top: 4px;
}

.checkout-total-block .final-row .total-label {
  font-size: 16px;
  font-weight: 600;
  color: #0F172A;
}

.checkout-total-block .main-price {
  font-size: 22px;
  font-weight: 700;
  color: #B45309; /* Фирменный цвет итоговой суммы */
}

/* Стилизация кнопок под блоком */
.fast_order_basket-button {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 20px;
}

.delivery-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.delivery-radio-group .radio-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    cursor: pointer;
    font-size: 15px !important;
    color: #2C3E50 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    background: #F8FAFC;
    border: 1px solid #E4EBF0;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.delivery-radio-group .radio-label:hover {
    background: #F1F5F9;
}

.delivery-radio-group input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}

.sitemap-clean {
    padding: 24px;
    background: #ffffff;
    border-radius: 8px;
    font-family: inherit;
}

.sitemap-clean h1 {
    font-size: 24px;
    color: #1E293B;
    margin-bottom: 20px;
}

.sitemap-section {
  margin-bottom: 50px;
}

.sitemap-section h3 {
    font-size: 18px;
    color: #475569;
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.sitemap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #F8FAFC;
    border: 1px solid #E4EBF0;
    border-radius: 8px;
    text-decoration: none !important;
    color: #2C3E50 !important;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sitemap-item:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sitemap-item .sitemap-icon {
    color: #B45309; 
    font-weight: bold;
    transition: transform 0.2s ease;
}

.sitemap-item:hover .sitemap-icon {
    transform: translateX(3px); 
}

.sitemap-item .sitemap-text {
    line-height: 1.3;
}
.sitemap-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #FFF;
    border: 1px solid #B45309;
    color: #B45309 !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.sitemap-more-btn:hover {
    background: #B45309;
    color: #FFF !important;
}


/* ==========================================================================
   АДАПТИВНЫЕ СТРЕЛКИ СЛАЙДЕРА (OWL-NAV) ПОД БЕЛЫЕ SVG
   ========================================================================== */

.owl-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    pointer-events: none;
    z-index: 10;
    padding: 0 10px;
    box-sizing: border-box;
}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    padding: 0 !important;
    margin: 0 !important;    
    background: rgba(30, 41, 59, 0.6) !important; 
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 40px !important;
    height: 40px !important;
}

.owl-nav button img {
    width: 16px !important; 
    height: 16px !important;
    transition: transform 0.2s ease;
    filter: none !important; 
}

.owl-nav button:hover {
    background: #B45309 !important; 
    border-color: #B45309 !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}

.owl-nav button.owl-prev:hover img {
    transform: translateX(-2px);
}
.owl-nav button.owl-next:hover img {
    transform: translateX(2px);
}

@media screen and (min-width: 768px) {
    .owl-nav button.owl-prev,
    .owl-nav button.owl-next {
        width: 46px !important;
        height: 46px !important;
    }
    .owl-nav button img {
        width: 18px !important;
        height: 18px !important;
    }
}

@media screen and (min-width: 1025px) {
    .owl-nav {
        padding: 0 20px;
    }
    .owl-nav button.owl-prev,
    .owl-nav button.owl-next {
        width: 44px !important;
        height: 44px !important;
    }
    .owl-nav button img {
        width: 18px !important;
        height: 18px !important;
    }
}

/*============================= ПРОЧИЕ МЕДИАСТИЛИ ============================= */

@media (max-width: 1440px) {	

	.first_h1 {
	  font-size: 34px;
	}
	.second_h1 {
	  font-size: 16px;
	}

.section h1 {
    font-size: 24px;
    height: 35px;
    padding-top: 2px;
  }	

  .catalog-index .item .text {
    bottom: 20px;
  }	

  section,
  .section.catalog-index,
  .section.news-index,
  .section.brands-block,
  .section.item-index,
  .section.index-text {
    padding: 0 20px ; 
	box-sizing:border-box;
  }
  
  .price-block .button.submit_basket {
    font-size: 16px !important; 
    padding: 0 12px !important;
    min-width: 85px !important;
    height: 36px !important;
  }

  

} /* 1337 - 1440 */	


@media (max-width: 1336px) {
	
.header .top-row {
  padding: 10px 20px;
  flex-wrap: wrap;
}

  .logo img {
    width: 80px;
  }

  .logo-block h1 {
    margin-top: 0px;
  }  
	
  .first_h1 {
	font-size: 23px;
  }
  .second_h1 {
	font-size: 14px;
  }

  .logo img {
	  width: 80px;
  }
  
  .basket-block {
	  gap:10px;
   }

   .basket-block a.compare {
	  width: auto;
	}

	.compare img, .basket img {
	  width: 18px;
	}


} /* 1025 - 1336 */ 


@media (max-width: 1024px) {
  .catalog-page .item {
    width: 48%;
  }

  section h2,
  .catalog-index h2,
  .index-text h2,
  .item-index h2,
  .news-index h2,
  .brands-block h2 {
    min-height: 40px;
    padding: 6px 18px;
    font-size: 20px;
  }	
  
 .mobile_hidden {display:none;}	
.xs-visible {
	display:block;
}
  .logo-block {
    width: 230px;
    height: auto;
  }
 .logo img {
    width: 70px;
  }	
  .logo-block h1 {
    margin-top: 21px;
  }	
 .first_h1 {
    font-size: 18px;
  }	
  .second_h1 {
    font-size: 12px;
    text-transform: none;
  }	

#open_menu {
    width: 50px;
    height: 50px;
  }	

 .top-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  background-color: #89C0E9;
  background-image: url(img/background_header.png);
  background-repeat: no-repeat;
  background-position-x: right;
  position: relative;
  background-size: contain;
  height: 116px;
} 	
	
  .compare img, .basket img {
    width: 30px;
  }	
	
  .basket-block a span {
    font-size: 12px;
  }	

	

	
#hidden_menu {
  width: 50px;
  height: 50px;
  text-align: right;
  position: absolute;
  right: 25px;
}	

	
.phones {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  border-top: 1px solid #fff;
  padding-top: 20px;
}
	

	
.basket_row {
  padding: 15px 10px;
}
	
  .basket_row-image {
    width: 80px;
    height: 80px;
  }
	
  .basket_row-name a {
    font-size: 12px;
	font-weight:600;   
  }	
	
 .basket_row-name {
    width: 260px;
  }
	
  .basket_row-price, .basket_row-total {
    font-size: 14px;
    width: 75px;
  }
	
.basket_row-quan {
  width: 90px;
}	
	
.fast_order_basket-button input {
  width: 200px;
}
	
.fast_order_basket-inputs label {
  font-size: 10px;
}	
	
  .basket_wrapper .total {
    font-size: 14px;
  }	

.login_reg-wrapper {
  padding: 40px 20px;
}	
	
 .section h1, .catalog-index h2, .index-text h2, .item-index h2, .news-index h2, .brands-block h2 {
    height: 30px;
    font-size: 18px;
    padding-top: 3px;
  }	
  
/* Новые стили */
  .bottom-block {
    width: 100% !important;
    height: auto !important; 
    display: flex !important;
    flex-wrap: wrap !important; 
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important; 
    padding: 10px 20px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-bottom: 1px solid #E4EBF0 !important;
  }	


  .bottom-block .search {
    flex: 1 1 350px !important; 
    max-width: 500px !important;
    position: relative !important;
  }

  #search-form_m {
    display: flex !important;
    width: 100% !important;
    height: 36px !important; 
    align-items: center !important;
    position: relative !important;
  }


  .search #search_m {
    flex-grow: 1 !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px 0 0 8px !important; 
    padding: 0 15px 0 38px !important; 
    color: #1E293B !important;
    font-size: 14px !important; 
    background-image: url("img/search-icon.svg") !important;
    background-size: 16px !important;	
    background-repeat: no-repeat !important;
    background-position: 12px center !important; 
  }

  .search #search_m:focus {
    border-color: #4091D3 !important;
    outline: none !important;
  }

  .search #ok_m {
    position: static !important; 
    width: auto !important;
    height: 100% !important;
    padding: 0 16px !important;
    border-radius: 0 8px 8px 0 !important; 
    background-color: #4091D3 !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
  }

  .search #ok_m:hover {
    background-color: #2563EB !important; 
  }  
  

  .item-index h2, 
  .category_catalog-wrapper h1 {
    font-size: 24px !important;
    margin-bottom: 20px !important;
    padding: 0 10px;
  }

  .item-catalog {
    padding: 12px !important;
  }

  .price-block .button.submit_basket,
  .price-block input.submit_basket {
    height: 36px !important;
    font-size: 15px !important; 
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 0 12px !important;
    width: 100% !important; 
  }

  .price-block .prices {
    margin-bottom: 10px !important;
  }
  .price-block .price {
    font-size: 18px !important; 
  }
  
  .bottom-block .m-contacts {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
  }

  .bottom-block .m-socials {
    display: flex !important;
    gap: 8px !important;
  }
  .bottom-block .m-socials a {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
  }
  .bottom-block .m-socials img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .bottom-block .m-phone {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  .bottom-block .m-phone img {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
  }

  .bottom-block .m-phone a {
    color: #1E293B !important;     
    text-decoration: none !important; 
    font-size: 14px !important;      
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
  }

  .bottom-block .m-phone span {
    color: #1E293B !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  .bottom-block .m-phone a:hover,
  .bottom-block .m-phone a:focus {
    color: #4091D3 !important;      
  }
  

/* Базовая шторка меню */
  .mobile_menu {
    display: flex;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    background-color: #F8FAFC !important; /* Мягкий, ультра-светлый серый фон вместо стерильно-белого */
    z-index: 9999 !important;
    padding: 70px 24px 40px 24px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
  }

  /* Красивая кнопка закрытия */
  #hidden_menu {
    position: absolute !important;
    top: 20px !important;
    right: 24px !important;
    width: 44px !important;
    height: 44px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #FFFFFF !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.2s ease !important;
  }
  #hidden_menu:active {
    transform: scale(0.9) !important;
  }
  #hidden_menu img {
    width: 18px !important;
    height: 18px !important;
  }

  /* Общая обертка меню */
  .mobile_menu .top-menu {
    display: flex;
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px !important; /* Делаем зазор между блоком каталога и инфо-ссылками */
    margin-bottom: 30px !important;
  }

  /* --- БЛОК КАТАЛОГА (Верхняя часть) --- */
  .mobile_menu .top-menu .side-menu,
  .mobile_menu .top-menu aside.sidebar {
    width: 100% !important;
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 6px 16px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
	position: relative !important;
  }

  /* Ссылки внутри каталога (с инлайн-стрелочками) */
  .mobile_menu .top-menu .side-menu ul li a,
  .mobile_menu .top-menu .side-menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 14px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1E293B !important;
    text-decoration: none !important;
    border-bottom: 1px solid #F1F5F9 !important;
  }
  .mobile_menu .top-menu .side-menu ul li:last-child a,
  .mobile_menu .top-menu .side-menu a:last-child {
    border-bottom: none !important; /* Убираем последнюю полосу в блоке */
  }

  /* --- ИНФО-ССЫЛКИ (Нижняя часть: Каталог, Новинки, Распродажа...) --- */
  /* Оформляем их как чистые аккуратные строки с иконкой "шеврон" слева */
  .mobile_menu .top-menu > a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    text-decoration: none !important;
    background: #FFFFFF !important;
    border-radius: 8px !important;
    border: 1px solid #E2E8F0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    margin-bottom: -12px !important; /* Сжимаем плотнее друг к другу */
  }

  /* Эффект при нажатии на пункт */
  .mobile_menu .top-menu > a:active,
  .mobile_menu .top-menu .side-menu ul li a:active {
    background-color: #F1F5F9 !important;
    color: #4091D3 !important;
  }

  /* Выделяем пункт "Распродажа" цветом бренда */
  .mobile_menu .top-menu > a[href*="pred"]:style, 
  .mobile_menu .top-menu > a[title*="Распродажа"] {
    color: #B45309 !important; /* Фирменный рыжий/акцентный */
    font-weight: 600 !important;
  }

  /* --- ПОДВАЛ МЕНЮ (Контакты) --- */
  .mobile_menu .social-block {
    display: flex !important;
    gap: 16px !important;
    margin-top: 20px !important;
    padding-top: 24px !important;
    border-top: 1px solid #E2E8F0 !important; /* Отделяем контакты полосой */
    margin-bottom: 20px !important;
  }
  .mobile_menu .social-block a img {
    width: 38px !important;
    height: 38px !important;
    transition: transform 0.2s ease !important;
  }
  .mobile_menu .social-block a:active img {
    transform: scale(0.9) !important;
  }

  .mobile_menu .email,
  .mobile_menu .phones {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    margin-bottom: 14px !important;
  }
  .mobile_menu .email img,
  .mobile_menu .phones img {
    width: 20px !important;
    height: 20px !important;
    opacity: 0.8 !important;
  }
  
  
  /* Обнуляем абсолюты и позиционирование списков */
  .mobile_menu .side-menu ul.menu-level-1,
  .mobile_menu .side-menu ul.menu-level-2,
  .mobile_menu .side-menu ul.menu-level-3 {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    float: none !important;
  }

  /* Скрываем подменю по дефолту. Они будут видны, только если у родительского li есть класс .open */
  .mobile_menu .side-menu ul.menu-level-2,
  .mobile_menu .side-menu ul.menu-level-3 {
    display: none !important;
  }

  /* Когда на li нажали (появился класс .open), раскрываем подменю строго вниз */
  .mobile_menu .side-menu li.open > ul.menu-level-2,
  .mobile_menu .side-menu li.open > ul.menu-level-3 {
    display: block !important;
  }

  /* --- СТИЛИЗАЦИЯ 2-ГО УРОВНЯ (Бриджи, Куртки...) --- */
  .mobile_menu .side-menu ul.menu-level-2 {
    background-color: #F8FAFC !important; /* Делаем легкую подложку для вложенных пунктов */
    padding-left: 16px !important;         /* Сдвигаем вправо, имитируя вложенность */
    border-left: 2px solid #E2E8F0 !important; /* Вертикальная линия-ориентир для глаза */
    margin: 4px 0 8px 0 !important;
  }

  .mobile_menu .side-menu ul.menu-level-2 li a {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    padding: 10px 0 !important;
    border-bottom: 1px dashed #E2E8F0 !important; /* Пунктирный разделитель */
  }

  /* --- СТИЛИЗАЦИЯ 3-ГО УРОВНЯ (Бриджи детские, женские...) --- */
  .mobile_menu .side-menu ul.menu-level-3 {
    padding-left: 12px !important;
    margin: 4px 0 !important;
  }

  .mobile_menu .side-menu ul.menu-level-3 li a {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #64748B !important; /* Чуть бледнее, чтобы не спорить со 2-м уровнем */
    padding: 8px 0 !important;
    border-bottom: none !important; /* В самом низу разделители уже не нужны */
  }

  /* Убираем десктопные стрелочки у ссылок, если они были добавлены через :after */
  .mobile_menu .side-menu a:after {
    display: none !important;
  }
  
  /* 1. Ограничиваем высоту самого слайдера */
/*   .slider, 
  .slider .owl-carousel, 
  .slider .owl-stage-outer, 
  .slider .owl-item {
    height: 320px !important; 
  } */

  /* 2. Заставляем картинки заполнять эту высоту без деформации */
  .slider .owl-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Картинка масштабируется как фоновое изображение, не сжимаясь в кашу */
    object-position: center !important; /* Центрируем самое важное на баннере */
  }
  
  /* Обертка (родитель) — задаем флекс и отступы, чтобы элементы не слипались */
  .catalog-index .wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important; /* Делаем аккуратный зазор между плитками */
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }

  /* Сами плитки — заставляем их вставать ровно по 3 в ряд с учетом зазоров */
  .catalog-index .item {
    width: calc((100% - 30px) / 3) !important; /* Ровные 3 колонки! */
    margin: 0 !important; /* Обнуляем старые десктопные маржины, если они были */
  }

  /* Текст подписи */
  .catalog-index .item .text {
    font-size: 14px !important; /* Слегка приглушаем размер подписи для узких плиток */
    padding: 12px 8px !important;
    font-weight: 600 !important;
  }
  

.price-block {
	flex-wrap:wrap;
}


/* .main-container .content {
  flex-direction: column;
} */

.item_photo-wrapper {
  display: flex !important;
  flex-direction: column-reverse !important;
  width: 100% !important;
  gap: 15px !important;
}

.main_photo {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.main_photo img {
  max-height: 450px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.small_gallery-wrapper {
    width: 100% !important;
    max-height: none !important; /* Сбрасываем десктопные 1267px */
    padding: 0 !important;
    margin: 0 !important;
  }
  
.small_gallery-wrapper .gallery-arrow {
    display: none !important;
  }

.small_items-wrapper {
    display: flex !important;
    flex-direction: row !important; /* Выстраиваем в ряд */
    justify-content: flex-start !important; /* Начинаем слева */
    gap: 10px !important; /* Расстояние между превьюшками */
    width: 100% !important;
    overflow-x: auto !important; /* Магия: если не влезут, будут листаться пальцем вбок */
    overflow-y: hidden !important;
    padding: 5px 0 !important; /* Легкий отступ, чтобы тень или границы не резались */
    box-sizing: border-box !important;
    
    /* Плавный скролл под iOS и скрытие дефолтных уродливых полос прокрутки */
    -webkit-overflow-scrolling: touch !important;
  }
  
  .small_items-wrapper::-webkit-scrollbar {
    display: none !important; /* Прячем системный скроллбар, чтобы было чисто */
  }

  /* 5. Сами мелкие карточки-ссылки */
  .small_items-wrapper .small_item {
    width: 65px !important; /* Комфортный размер для тача пальцем */
    height: 65px !important;
    flex-shrink: 0 !important; /* Жестко запрещаем им сжиматься в кашу */
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #FFFFFF !important;
  }

  .small_items-wrapper .small_item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Картинка заполнит квадратик без искажений */
  }  
  
  /* 1. Блок информации о товаре целиком */
  .item_info {
    /* Насильно заставляем флекс-элемент занять 100% ширины родителя */
    flex: 0 0 100% !important; 
    max-width: 100% !important;
    width: 100% !important;
    
    /* Оставляем его флекс-природу десктопной, чтобы он не схлопывался */
    display: flex !important; 
    flex-direction: column !important; /* Внутри него контент пойдет сверху вниз */
    box-sizing: border-box !important;
    margin-top: 20px !important; /* Даем отступ от галереи сверху */
  }

  /* 2. Заголовок товара на планшете */
  .item_info h1 {
    font-size: 22px !important;
    margin: 15px 0 20px 0 !important;
  }

  /* 3. Обертка цены и кнопки в карточке товара */
  .item_info .price-block {
    display: flex !important;
    flex-direction: row !important; /* На планшете пусть цена и кнопка идут в ряд */
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* Не даем им разлетаться на две строчки */
    background: #F8FAFC !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin-top: 25px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Блок с ценой */
  .item_info .price-block .prices {
    margin-bottom: 0 !important; /* Обнуляем мобильный отступ каталога */
    flex: 0 1 auto !important;
  }

  .item_info .price-block .price_wrapper .price {
    font-size: 26px !important; /* Хорошая крупная цена */
  }

  /* Контейнер кнопки */
  .item_info .to_cart_block {
    margin-left: auto !important;
    flex: 0 1 200px !important; /* Задаем кнопке комфортную фиксированную ширину */
    width: 200px !important;
  }

  /* Кнопка "Купить" конкретно внутри карточки товара */
  .item_info .price-block .submit_basket,
  .item_info .price-block #add {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 46px !important; /* Делаем её повыше десктопной — под палец */
    width: 100% !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background-color: #4091D3 !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
  }
  
   .item_info-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px !important;
  } 
  
  .section.login_registration, .section.fast_order_basket {
	  padding: 0 20px;
  }
  
  .top_category, .category_catalog-wrapper {
  padding: 0 20px;
}
  
	
 }  /* 769 - 1024 */

@media (max-width: 480px) { 
.search #ok_m {
    position: static !important;
    /* Делаем кнопку компактным квадратом, чтобы освободить место для текста */
    width: 44px !important; 
    height: 100% !important;
    padding: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    background-color: #4091D3 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;

    /* Прячем текст "Найти" */
    color: transparent !important;
    font-size: 0 !important;

    /* Вставляем SVG-лупу как фоновую картинку */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important; /* Размер лупы внутри кнопки */
  }

  .search #ok_m:hover {
    background-color: #2563EB !important;
  }
  
    .bottom-block {
	 padding: 10px 10px !important;
  }

.item_photo-wrapper .main_photo {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important; /* На всякий пожарный */
  }

  /* Сама картинка внутри обертки */
  .item_photo-wrapper #main_photo_img,
  .item_photo-wrapper .main_photo img {
    width: 100% !important;      /* Занимает всю доступную ширину */
    max-width: 100% !important;  /* Не дает ей стать шире экрана */
    height: auto !important;      /* Высота подстраивается пропорционально */
    max-height: 400px !important; /* Ограничиваем по вертикали, чтобы не заняла весь экран */
    object-fit: contain !important; /* Магия: вписывает картинку целиком без обрезки */
  }
  
   .section.basket-page {
    padding: 0 12px;
  }
  
  .section.fast_order_basket, .catalog-index .wrapper {
    padding: 0;
  }
  
    .catalog-index .item {
    width: calc((100% - 15px) / 2) !important;
    margin: 0 !important;
  }
  
    section, .section.catalog-index, .section.news-index, .section.brands-block, .section.item-index, .section.index-text {
    padding: 0 10px;
  }
  
 }  /* до 391 */  

@media (max-width: 390px) { 

.top-row {
	padding: 20px 5px;
}

.compare span {
	display: none;
}

.logo-block {
   width: auto;
   align-items: flex-start;   
}

  #open_menu {
    width: 43px;
    height: 43px;
  }
  
/* Центруем весь блок контактов на мобилке */
  .bottom-block .m-contacts {
    flex-direction: column !important; /* Ставим мессенджеры над телефонами или в ряд, но с центровкой */
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* Выравниваем мессенджеры по центру */
  .bottom-block .m-socials {
    justify-content: center !important;
    width: 100% !important;
  }

  /* Перестраиваем телефоны вертикально друг под другом */
  .bottom-block .m-phone {
    justify-content: center !important;
    width: 100% !important;
  }

  .bottom-block .m-phone span {
    display: flex !important;
    flex-direction: column !important; /* Номера встают один под другим */
    align-items: center !important;    /* Центрируем сами номера */
    gap: 4px !important;
    white-space: normal !important;    /* Разрешаем перенос */
  }

  /* Убираем запятую визуально, так как номера теперь на разных строках */
  .bottom-block .m-phone a {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  /* Прячем десктопную запятую у первого телефона махинацией с цветом или шрифтом */
  .bottom-block .m-phone span {
    color: transparent !important; /* Делаем текст внутри span (запятую и пробелы) невидимым */
    font-size: 0px !important;
  }

  /* А самим ссылкам-номерам возвращаем нормальный цвет и размер */
  .bottom-block .m-phone a {
    color: #1E293B !important;
    font-size: 14px !important;
  }
  
  .breadcrumbs.section {
    padding: 10px;
  }
  
  .section h1, .catalog-index h2, .index-text h2, .item-index h2, .news-index h2, .brands-block h2 {
	  font-size: 22px !important;
  }
  
  .top_category, .category_catalog-wrapper {
    padding: 0 12px;
  }
  


 }  /* до 390 */