/* ========== ИМПОРТ ШРИФТА ========== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  background: #f6f5f4;
  color: #4D4D4D;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* СЕТКА-ФОН (этот фон остаётся на всю ширину, он декоративный) */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(48, 186, 14, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 186, 14, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.glow-orb.glow-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(48, 186, 14, 0.25) 0%, rgba(48, 186, 14, 0) 70%);
  top: 20%;
  right: -100px;
}

.glow-orb.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11, 94, 126, 0.15) 0%, rgba(11, 94, 126, 0) 70%);
  bottom: 10%;
  left: -150px;
}

/* ========== ТОП-БАР ========== */

.topbar {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  background: #f5f5f6;
  color: #191919;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16.5px;
  position: relative;
  z-index: 100;
  flex-wrap: wrap;
  gap: 10px;
  /* ГЕОМЕТРИЯ: ограничиваем фон и содержимое */
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  border-bottom: 2px solid #30ba0e;
}

.topbar-tagline {
  color: #191919;
  font-size: 16.5px;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.topbar-contacts {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-contacts a {
  color: #000000;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-contacts a:hover {
  color: #30ba0e;
}

.topbar-contacts a:focus-visible {
  outline: 2px solid #30ba0e;
  outline-offset: 2px;
  border-radius: 20px;
}

.topbar-contacts a.topbar-login {
  color: #ffffff;   /* переопределяем цвет */
  background: #30ba0e;
  transition: color 0.2s;
}

.topbar-contacts a.topbar-login:hover {
  color: #000000;
}

.sep {
  color: #444;
}

.topbar-login {
  background: #30BA0E; 
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}





/* 1. Прячем разделители на мобильных, чтобы не оставались сиротами */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    text-align: center;
    padding: 10px 20px;
  }
  .sep {
    display: none;
  }
  .topbar-contacts {
    justify-content: center;
    gap: 12px;
  }
}







/* ========== ХЕДЕР ========== */
.header {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  max-width: 1400px;      /* желаемая ширина */
  margin: 0 auto;         /* центрирование */
  background: #f5f5f6;      /* фон будет только на этой ширине */
  padding: 20px 40px;
  border-bottom: 2px solid #30ba0e;
  position: relative;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 50px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-size: 18.5px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.5px;
}
.logo-sub {
  font-size: 10px;
  color: #4D4D4D;
  letter-spacing: 1px;
}
.nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: #191919;
  font-weight: 500;
  font-size: 18.5px;
  transition: color 0.2s;
}
.nav a:hover {
  color: #30ba0e;
}
.header-actions {
  display: flex;
  gap: 15px;
}
.btn-icon {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
  padding: 5px;
}
.btn-icon:hover {
  transform: scale(1.05);
}
.cart-btn {
  position: relative;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #30ba0e;
  color: white;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== ХЕДЕР — ТРЁХКОЛОНОЧНАЯ СЕТКА ========== */
.header {
  background: #f5f5f6;
  border-bottom: 2px solid #30ba0e;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;  /* логотип | меню (растягивается) | корзина */
  align-items: center;
  gap: 30px;
}

/* Логотип — фиксированная ширина по содержимому, не сжимается */
.logo {
  flex-shrink: 0;
  text-decoration: none;
}

/* Навигация — центрируется внутри своей колонки, кнопки переносятся при необходимости */
.nav {
  justify-self: center;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* скрываем скролл, если кнопки не помещаются (но лучше перенос) */
}
.nav::-webkit-scrollbar {
  display: none;
}

.nav__link {
  white-space: nowrap;
  font-size: 16px;
  text-decoration: none;
  color: #191919;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover {
  color: #30ba0e;
  transform: translateY(-2px) !important; /* лёгкий подъём */
  text-shadow: 0 0 4px rgba(48, 186, 14, 0.2) !important; /* мягкое свечение */
}

/* Корзина — прижата к правому краю, не сжимается */
.cart {
  justify-self: end;
  flex-shrink: 0;
}
.cart__btn {
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
  font-size: 30px;
  padding: 5px;
}
.cart__count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #30ba0e;
  color: white;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ========== АДАПТИВ ========== */
/* Планшеты (уменьшаем отступы и шрифты) */
@media (max-width: 1200px) {
  .header__container {
    gap: 20px;
    padding: 15px 20px;
  }
  .nav__list {
    gap: 16px;
  }
  .nav__link {
    font-size: 14px;
  }
}





/* Навигация — две строки, центрирована */
.nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: center;
}

.nav__row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 100px;
}

}

/* ========== ДВЕ СТРОКИ В НАВИГАЦИИ ========== */
.nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-self: center;
}

.nav__row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 100px;           /* увеличенные отступы между кнопками */
}

.nav__link {
  white-space: nowrap;
  font-size: 16px;
  text-decoration: none;
  color: #191919;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover {
  color: #30ba0e;
}

/* Адаптация без бургера – просто переносим ссылки */
@media (max-width: 1024px) {
  .header__container {
    gap: 20px;
    padding: 15px 20px;
  }
  .nav__row {
    gap: 24px;
  }
  .nav__link {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .header__container {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .nav {
    gap: 12px;
  }
  .nav__row {
    gap: 16px;
  }
  .nav__link {
    white-space: normal;
    font-size: 14px;
  }
  .cart {
    justify-self: center;
  }
}
/* Отключаем фиксацию хедера на мобильных */
@media (max-width: 768px) {
  .header {
    position: relative !important;  /* или static, sticky убираем */
  }
}


/* ========== КАТАЛОГ + ПОИСК ========== */
.catalog-bar {
  background: #30ba0e;
  position: relative;
  z-index: 98;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* ГЕОМЕТРИЯ: ограничиваем фон и содержимое */
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}
.catalog-bar-inner {
  padding: 12px 40px;
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}
.catalog-toggle {
display: none !important;
  background: #191919;
  border: none;
  color: white;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.catalog-toggle:hover {
  background: #0b5e7e;
}
.search-wrap {
  flex: 1;
  display: flex;
  gap: 12px;
  min-width: 250px;
}
.search-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 40px;
  font-size: 18.5px;
  outline: none;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
}
.search-input:focus {
  box-shadow: 0 0 0 2px rgba(11, 94, 126, 0.2);
}
.search-btn {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  background: #ffffff;        /* цвет как у кнопки «Вход / Регистрация» */
  color: #000000;              /* чёрный цвет текста */
  border: 1px solid #cccccc;   /* контур линией (можно поменять цвет) */
  border-radius: 40px;         /* скругление, как у кнопки входа */
  padding: 0 24px;             /* отступы слева/справа (высота задаётся полем ввода) */
  height: 40px;                /* выравнивание по высоте с полем ввода */
  font-weight: bold;
  font-size: 18.5px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  margin-left: 12px;           /* отступ от поля поиска */
  transition: color 0.2s;
}
.search-btn:hover {
  color: #30ba0e;
}


/* ========== АДАПТАЦИЯ ПОИСКА ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
  .catalog-bar {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }
  .catalog-bar-inner {
    flex-direction: column;
    padding: 12px 20px;
    gap: 12px;
  }
  .search-wrap {
    width: 100%;
    gap: 8px;
  }
  .search-input {
    font-size: 16px; /* предотвращает автоматический зум на iOS */
    padding: 12px 16px;
  }
  .search-btn {
    white-space: nowrap;
    font-size: 16px;
    padding: 12px 20px;
    height: auto;
    margin-left: 0;
  }
}

/* Для очень узких экранов (≤ 480px) – кнопка под полем (опционально) */
@media (max-width: 480px) {
  .search-wrap {
    flex-direction: column;
  }
  .search-btn {
    width: 100%;
    justify-content: center;
  }
}






/* ========== MAIN LAYOUT ========== */
.main-layout {
  background: white;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 5;
}
.sidebar {
  width: 300px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}
.sidebar-title {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: bold;
  color: #191919;
  font-size: 18.5px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #30ba0e;
}
.sidebar-menu {
  list-style: none;
}
.sidebar-menu li {
  margin-bottom: 8px;
}
.sidebar-menu li a {
  text-decoration: none;
  color: #191919;
  font-size: 18.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s;
}
.sidebar-menu li a:hover {
  background: #30ba0e;
  color: white;
  font-weight: 500;
}
.sidebar-menu li a.active {
  background: #30ba0e;
  color: white; 
}
.cat-icon {
  font-size: 30px;
  min-width: 40px;
}
.sidebar-menu .show-all {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid #30ba0e;
}
.sidebar-menu .show-all a {
  color: #30ba0e;
  font-weight: 600;
}
.content {
  flex: 1;
  min-width: 0;
}



/* ========== СЛАЙДЕР ========== */
.hero-slider {
  position: relative;
  background: linear-gradient(135deg, #0a2a0a 0%, #1a3a1a 100%);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 48px;
  min-height: 400px;
}
.slides {
  display: flex;
  transition: transform 0.5s ease;
}
.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide-content {
  flex: 1;
  color: white;
}
.slide-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.slide-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white;
}
.slide-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
  color: #f0f0f0;
}
.btn-primary {
  background: linear-gradient(135deg, #30ba0e, #0b5e7e);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0b5e7e, #30ba0e);
  transform: translateY(-2px);
}
.slide-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.circuit-anim {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(48, 186, 14, 0.3) 0%, rgba(48, 186, 14, 0) 70%);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: white;
  transition: all 0.2s;
  z-index: 10;
}
.slider-btn:hover {
  background: #0b5e7e;
}
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.dot.active {
  background: #30ba0e;
  width: 30px;
  border-radius: 10px;
}

/* ========== БАННЕРЫ ВИДОВ ДЕЯТЕЛЬНОСТИ ========== */

/* ========== УСЛУГИ / КАТЕГОРИИ ПЛИТКИ (три блока) ========== */
.category-tiles {
  margin: 48px 0;
}

.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.category-tile {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;

  aspect-ratio: 257 / 250;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);  /* как у sidebar */
  border: 1px solid #e0e0e0;                 /* рамка */
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.category-tile-image {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-tile-image span {
  font-size: 84px;
}

.category-tile-title {
  position: absolute;
  bottom: 15px;
  left: 5%;                     /* отступ слева 5% */
  width: 90%;                   /* ширина 90% от родителя */
  background: white;               /* белый фон */
  color: #191919;                  /* тёмный текст */
  font-weight: 500;
  font-size: 18.5px;
  padding: 12px 10px;
  text-align: center;
  border-top: 2px solid #30ba0e;  /* зелёная полоса сверху */
  border-radius: 16px;          /* скругление углов */
  box-sizing: border-box;
  transition: all 0.2s;
}
.category-tile:hover .category-tile-title {
  background: #30ba0e;            /* светло-зелёный, как при hover в sidebar */
  color: white; 
  font-weight: 500;                /* тёмно-синий текст, как в sidebar */
  border-top-color: #30ba0e;      /* можно изменить и цвет полосы */
}

/* Адаптив */
@media (max-width: 1024px) {
  .category-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .category-tiles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}



/* ========== СТАТИСТИКА ========== */
.stats-bar {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  margin-bottom: 48px;
  text-align: center;
  
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);  /* как у sidebar */
  border: 1px solid #e0e0e0;                 /* рамка */
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;

}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #30ba0e;
  display: block;
}
.stat-label {
  font-size: 16px;
  color: #191919;
  margin-top: 8px;
}


/* ========== КАТЕГОРИИ ПЛИТКИ (257x250) ========== */
.category-tiles {
  margin: 48px 0;
}
.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.category-tile {
  aspect-ratio: 257 / 250; /* сохраняем пропорции 257x250 */
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}
.category-tile-image {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-tile-image span {
  font-size: 84px;
}


.category-tile-title {
  position: absolute;
  bottom: 15px;
  left: 5%;                     /* отступ слева 5% */
  width: 90%;                   /* ширина 90% от родителя */
  background: white;               /* белый фон */
  color: #191919;                  /* тёмный текст */
  font-weight: 500;
  font-size: 18.5px;
  padding: 12px 10px;
  text-align: center;
  border-top: 2px solid #30ba0e;  /* зелёная полоса сверху */
  border-radius: 16px;          /* скругление углов */
  box-sizing: border-box;
  transition: all 0.2s;
}
.category-tile:hover .category-tile-title {
  background: #30ba0e;            /* светло-зелёный, как при hover в sidebar */
  color: white; 
  font-weight: 500;                /* тёмно-синий текст, как в sidebar */
  border-top-color: #30ba0e;      /* можно изменить и цвет полосы */
}


/* Если вам нужно фиксировать размер 257x250 именно, то при больших экранах не растягивается */
@media (max-width: 1024px) {
  .category-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .category-tiles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}




/* ========== ПРОДУКТЫ (карточки) ========== */
.products-section {
  margin-bottom: 48px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}
.see-all {
  color: #30ba0e;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}
.see-all:hover {
  color: #0b5e7e;
  text-decoration: underline;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.product-img-wrap {
  height: 180px;
  background: #f5f5f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-placeholder {
  font-size: 48px;
  color: #ccc;
}
.product-brand {
  padding: 12px 16px 0;
  font-size: 11px;
  text-transform: uppercase;
  color: #30ba0e;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.product-name {
  padding: 6px 16px;
  font-weight: 600;
  font-size: 15px;
  color: #000000;
  line-height: 1.4;

}
.product-footer {
  padding: 12px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.product-price-wrap {
  text-align: left;
}
.product-old-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}
.product-price {
  font-size: 20px;
  font-weight: 800;
  color: #30ba0e;
}
.product-stock {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.product-stock.in {
  background: #e8f5e9;
  color: #30ba0e;
}
.product-stock.out {
  background: #ffebee;
  color: #f44336;
}
.add-to-cart-btn {
  background: linear-gradient(135deg, #30ba0e, #0b5e7e);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #0b5e7e, #30ba0e);
  transform: scale(1.02);
}

.product-attributes {
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.4;
  border-top: 1px dashed #eef2f0;
  padding-top: 10px;
}
.product-attributes .attr {
  margin-bottom: 6px;
}
.product-attributes strong {
  font-weight: 600;
  color: #191919;
}


/* ========== БРЕНДЫ – ПЛИТКИ 3x2 ========== */
.brands-section {
  margin-top: 48px;
}

.brands-section h2 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #000000;
}

/* Сетка 3 колонки на десктопе, 2 на планшете, 1 на телефоне */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Карточка бренда */
.brand-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 0.9; /* примерно как 257/250 */
  position: relative;
  cursor: pointer;
border-top: 2px solid #30ba0e;  /* зелёная полоса сверху */
  border-radius: 16px;          /* скругление углов */
  box-sizing: border-box;
  transition: all 0.2s;

}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}


/* Контейнер для логотипа / эмодзи */
.brand-logo {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.brand-logo img {
  max-width: 80px;
  max-height: 60px;
  object-fit: contain;
}

/* Название бренда */
.brand-name {
  font-weight: 600;
  font-size: 16px;
  color: #191919;
  margin-bottom: 4px;
}

/* Количество товаров */
.brand-count {
  font-size: 12px;
  color: #30ba0e;
}

/* Зелёная полоса снизу (как у плиток услуг) */
.brand-card::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 15%;
  width: 70%;
  height: 3px;
  background: #30ba0e;
  border-radius: 2px;
  transition: width 0.2s, background 0.2s;
}

.brand-card:hover::after {
  width: 80%;
  background: #0b5e7e;
}

/* Заглушка загрузки */
.loading {
  text-align: center;
  padding: 40px;
  font-size: 14px;
  color: #666;
}

/* Ссылка «Все бренды →» */
.brands-footer {
  text-align: center;
  margin-top: 32px;
}
.see-all {
  color: #30ba0e;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 14px;
}
.see-all:hover {
  color: #0b5e7e;
  text-decoration: underline;
}

/* Адаптив */
@media (max-width: 1024px) {
  .brands-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }
  .brand-card {
    aspect-ratio: auto;
    padding: 16px;
  }
  .brand-logo {
    height: 60px;
  }
}








/* ========== ФУТЕР ========== */
.footer {
  background: #E8E8E8;
  color: #a0a0a0;
  margin-top: 60px;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

/* Делает сетку на фоне футера */
/*.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(48, 186, 14, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 186, 14, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}*/

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
  border-bottom: 2px solid #30ba0e;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo span {
  font-size: 20px;
  font-weight: 700;
  color: #30ba0e;
}
.footer-desc {
  font-size: 9px;
  line-height: 1;
  color: #a0a0a0;
}
.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  color: #000000;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 18.5px;
}
.footer-col a {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  display: block;
  color: #191919;
  text-decoration: none;
  font-size: 18.5px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #30ba0e;
}
.footer-col p {
  font-size: 18.5px;
  margin-top: 10px;
  line-height: 1.5;
  color: #191919;
}
.footer-social {
  display: flex;
  align-items: center;     /* вертикальное выравнивание по центру */
  gap: 30px;               /* расстояние между иконками */
  margin-top: 15px;
}
.social-btn {
  background: transparent;
  color: #a0a0a0;
  display: inline-block;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;     /* сброс */
}

.social-btn img {
  display: block;     /* убирает лишние отступы */
  vertical-align: middle;
}

.social-btn:hover {
  background: #a0a0a0;
}

.footer-services {
  list-style: disc;
  padding-left: 0;
  margin: 10px 0 20px;
}
.footer-services li {
  font-size: 18.5px;
  line-height: 2;
  margin-bottom: 6px;
  color: #191919;
}
.footer-logo-bottom {
  margin-top: 20px;
}
.footer-chz-bottom img {
  height: 40px;
  width: auto;
}

.footer-honest {
  margin-top: 20px;
  text-align: left; /* или center, если хотите по центру */
}
.footer-honest img {
  max-width: 150px;   /* максимальная ширина – подберите по необходимости */
  height: auto;       /* высота автоматически пропорциональна */
  display: block;
}

.phone-link,
.email-link {
  color: #000000 !important;
  font-weight: bold;
}
.phone-link:hover,
.email-link:hover {
  color: #30ba0e;
}

/* Базовые стили для иконки Ozon (если не заданы) */
.social-btn.ozon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #2a2a2a;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-btn.ozon-link img {
  
  width: 24px;
  height: 24px;
  transition: transform 0.6s;
}


.social-btn.ozon-link img {
  width: 64px;
  height: auto; /* сохраняет пропорции */
}


/* ========== АДАПТАЦИЯ ФУТЕРА ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ ========== */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
    text-align: center;
  }
  .footer-col {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-honest {
    text-align: center;
  }
  .footer-honest img {
    margin: 0 auto;
  }
  .footer-services {
    text-align: center;
    list-style: none;
    padding-left: 0;
  }
  .footer-services li {
    display: inline-block;
    margin: 0 10px;
  }
}

/* Улучшение доступности: фокус на ссылках */
.footer-col a:focus-visible,
.footer-services li:focus-visible,
.social-btn:focus-visible {
  outline: 2px solid #30ba0e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Исправление дублирования стилей для Ozon */
.social-btn.ozon-link {
  background: #2a2a2a;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: auto;
  height: auto;
  padding: 8px;
}
.social-btn.ozon-link img {
  width: 32px;
  height: 32px;
  display: block;
}
.social-btn.ozon-link:hover {
  background: #30ba0e;
}

/* ========== ВОССТАНОВЛЕНИЕ СТАРОГО ВИДА ЛОГОТИПА OZON ========== */
.social-btn.ozon-link {
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.social-btn.ozon-link img {
  width: 64px !important;
  height: auto !important;
  transition: none !important;
}

.social-btn.ozon-link:hover {
  background: transparent !important;
}





/* ========== ФУТЕР-НИЗ ========== */

.footer-bottom {
  flex-direction: row !important;
  border-top: none;
  background: #f5f5f6;
  color: black;
  font-weight: bold;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 16.5px;
  position: relative;
  z-index: 1;
}

.footer-bottom-links {
  flex-wrap: wrap;
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #4D4D4D;
  font-weight: none;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #30ba0e;
}

.footer-bottom-links a:focus-visible {
  outline: 2px solid #30ba0e;
  outline-offset: 2px;
  border-radius: 4px;
}

.footer {
  max-width: 1400px;   /* желаемая ширина контента */
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px 24px 0 0;  /* скругление только сверху */
  overflow: hidden;               /* чтобы содержимое не вылезало за скругления */
  box-sizing: border-box;
}

.footer-bottom {
  max-width: 1400px;   /* желаемая ширина контента */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
}


/* 3. Адаптация для мобильных (≤ 768px) – столбиком, центрируем */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column !important; /* убираем !important, если не нужно */
    text-align: center;
    padding: 15px 20px;
    gap: 12px;
  }
  .footer-bottom-links {
    justify-content: center;
    gap: 16px;
  }
  .footer-bottom span {
    font-size: 14px;
  }
}



/* ========== МОДАЛЬНОЕ ОКНО (ДЕТАЛИ ТОВАРА) ========== */
.modal-product {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10001;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}
.modal-product.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  max-width: 1000px;
  width: 90%;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: white;
  background: rgba(0,0,0,0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal-gallery {
  flex: 1;
  min-width: 250px;
  background: #f5f5f6;
  position: relative;
}
.modal-slider {
  position: relative;
  overflow: hidden;
}
.modal-slides {
  display: flex;
  transition: transform 0.3s;
}
.modal-slide {
  min-width: 100%;
  text-align: center;
  padding: 20px;
}
.modal-slide img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  cursor: zoom-in;
}
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.modal-info {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  max-height: 80vh;
}
.modal-info h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #000000;
}
.modal-info .quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}
.modal-info .quantity-selector button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  font-size: 20px;
  cursor: pointer;
}
.add-to-cart-modal {
  background: linear-gradient(135deg, #30ba0e, #0b5e7e);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}
.add-to-cart-modal:hover {
  background: linear-gradient(135deg, #0b5e7e, #30ba0e);
}

/* ========== ПОЛЬЗ. СОГЛАШЕНИЕ ========== */

.legal-page {
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
	color: #191919;
	font-size: 18.5px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	max-width: 1400px; 
	margin: 40px auto; 
	padding: 40px; 
	background: white; 
	border-radius: 12px; 
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border: 2px solid #e0e0e0;
	transition: transform 0.2s, box-shadow 0.2s;
	position: relative;

}
h1 { 
font-size: 32px; 
margin-bottom: 20px; 
}
h2 { 
font-size: 22px; 
margin: 25px 0 10px; 
color: #191919; 
}
h3 { 
font-size: 18px; 
margin: 15px 0 10px; 
}
p, li {
font-family: 'Montserrat', sans-serif;
font-style: normal; 
line-height: 1.5; 
color: #191919; 
}
ul { 
margin: 10px 0 20px 20px; 
}
.back-link { 
display: inline-block; 
margin-top: 30px; 
color: #30ba0e; 
text-decoration: none; 
}
@media (max-width: 768px) { 
.legal-page { 
padding: 20px; 
} 
}







 /* Дополнительные стили для страницы корзины */
    .cart-page {
      max-width: 1400px;
      margin: 0 auto;
      padding: 40px 20px;
      min-height: 60vh;
    }
    .cart-header h1 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 30px;
    }
    .cart-grid {
      display: grid;
      grid-template-columns: 1fr 350px;
      gap: 40px;
    }
    .cart-items {
      background: white;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .cart-item {
      display: grid;
      grid-template-columns: 80px 1fr auto auto auto;
      gap: 20px;
      padding: 20px;
      border-bottom: 1px solid #eef2f0;
      align-items: center;
    }
    .cart-item:last-child {
      border-bottom: none;
    }
    .cart-item-image {
      width: 70px;
      height: 70px;
      background: #f5f5f6;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
    }
    .cart-item-info h3 {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 5px;
    }
    .cart-item-brand {
      font-size: 12px;
      color: #30ba0e;
      margin-bottom: 5px;
    }
    .cart-item-article {
      font-size: 11px;
      color: #999;
      font-family: monospace;
    }
    .cart-item-price {
      font-weight: 700;
      font-size: 18px;
      color: #30ba0e;
    }
    .cart-item-quantity {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .cart-item-quantity button {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      border: 1px solid #e0e0e0;
      background: white;
      cursor: pointer;
      font-size: 18px;
      transition: all 0.2s;
    }
    .cart-item-quantity button:hover {
      background: #30ba0e;
      color: white;
      border-color: #30ba0e;
    }
    .cart-item-quantity span {
      min-width: 30px;
      text-align: center;
      font-weight: 500;
    }
    .cart-item-remove {
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: #999;
      transition: color 0.2s;
    }
    .cart-item-remove:hover {
      color: #f44336;
    }
    .cart-summary {
      background: white;
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      position: sticky;
      top: 20px;
    }
    .cart-summary h3 {
      font-size: 20px;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 2px solid #30ba0e;
    }
    .summary-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 15px;
      font-size: 14px;
    }
    .summary-total {
      display: flex;
      justify-content: space-between;
      margin-top: 15px;
      padding-top: 15px;
      border-top: 2px solid #eef2f0;
      font-weight: 700;
      font-size: 20px;
    }
    .checkout-btn {
      width: 100%;
      background: #30ba0e;
      color: white;
      border: none;
      padding: 14px;
      border-radius: 40px;
      font-weight: 600;
      font-size: 16px;
      cursor: pointer;
      margin-top: 20px;
      transition: background 0.2s;
    }
    .checkout-btn:hover {
      background: #269e0b;
    }
    .empty-cart {
      text-align: center;
      padding: 60px 20px;
      background: white;
      border-radius: 20px;
    }
    .empty-cart .icon {
      font-size: 64px;
      margin-bottom: 20px;
    }
    .empty-cart .continue-btn {
      display: inline-block;
      background: #30ba0e;
      color: white;
      padding: 12px 30px;
      border-radius: 40px;
      text-decoration: none;
      margin-top: 20px;
    }
    @media (max-width: 768px) {
      .cart-grid {
        grid-template-columns: 1fr;
      }
      .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas: 
          "image info"
          "image price"
          "quantity remove";
        gap: 10px;
      }
      .cart-item-image {
        grid-area: image;
      }
      .cart-item-info {
        grid-area: info;
      }
      .cart-item-price {
        grid-area: price;
      }
      .cart-item-quantity {
        grid-area: quantity;
      }
      .cart-item-remove {
        grid-area: remove;
        justify-self: end;
      }
    }

/* Обёртка карточки */
.product-card-wrapper {
  position: relative;
  transition: box-shadow 0.3s ease;
}

/* Основное содержимое карточки */
.product-card-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Всплывающее меню (скрыто по умолчанию) */
.product-card-popup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  z-index: 2;
}

/* Показываем меню при наведении */
.product-card-wrapper:hover .product-card-popup {
  opacity: 1;
  visibility: visible;
}

/* Кнопки в меню */
.popup-btn {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 180px;
}
.popup-btn:hover {
  background: #30ba0e;
  border-color: #30ba0e;
  color: white;
}

/* Артикул и описание */
.popup-article,
.popup-description {
  font-size: 12px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}
.popup-article {
  font-weight: 600;
  margin-top: 8px;
}
.popup-description {
  font-size: 11px;
  max-height: 60px;
  overflow: hidden;
}








/* админка - заказы */

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'Inter', sans-serif; background: #f5f5f6; padding: 20px; }
    .container { max-width: 1400px; margin: 0 auto; background: white; border-radius: 20px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
    h1 { margin-bottom: 20px; color: #191919; }
    .filters { display: none !important; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
    .filters select, .filters input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
    .orders-table { width: 100%; border-collapse: collapse; }
    .orders-table th, .orders-table td { border: 1px solid #e0e0e0; padding: 12px; text-align: left; vertical-align: top; }
    .orders-table th { background: #f0f0f0; font-weight: 600; }
    .status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
    .status-new { background: #e3f2fd; color: #1976d2; }
    .status-processing { background: #fff3e0; color: #f57c00; }
    .status-shipped { background: #e8f5e9; color: #388e3c; }
    .status-completed { background: #e0f2f1; color: #00796b; }
    .status-cancelled { background: #ffebee; color: #d32f2f; }
    select.status-select { padding: 4px 8px; border-radius: 8px; font-size: 12px; }
    .order-details { display: none; background: #f9f9f9; padding: 10px; margin-top: 10px; border-radius: 8px; }
    .order-details.show { display: block; }
    .btn-details { background: none; border: none; color: #30ba0e; cursor: pointer; font-size: 12px; text-decoration: underline; }
    .loading { text-align: center; padding: 40px; }
    @media (max-width: 768px) {
      .orders-table th, .orders-table td { font-size: 12px; padding: 8px; }
    }

/* Стили для страницы брендов */
    .brands-page {
      max-width: 1400px;
      margin: 0 auto;
      padding: 40px;
    }
    .brands-header {
      text-align: center;
      margin-bottom: 48px;
    }
    .brands-header h1 {
      font-size: 42px;
      font-weight: 700;
      margin-bottom: 16px;
      background: linear-gradient(135deg, #191919 0%, #30ba0e 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .brands-header p {
      color: #666;
      font-size: 18px;
    }
    .brands-stats {
      text-align: center;
      margin-bottom: 40px;
      font-size: 14px;
      color: #666;
    }
    .brands-stats span {
      color: #30ba0e;
      font-weight: 700;
      font-size: 18px;
    }
    .brands-filter {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-bottom: 48px;
      flex-wrap: wrap;
    }
    .filter-btn {
      background: white;
      border: 1px solid #e0e0e0;
      padding: 10px 24px;
      border-radius: 40px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      color: #191919;
    }
    .filter-btn:hover, .filter-btn.active {
      background: #30ba0e;
      border-color: #30ba0e;
      color: white;
    }
    .brands-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 30px;
      margin-bottom: 60px;
    }
    .brand-card-large {
      background: white;
      border-radius: 20px;
      padding: 30px 20px;
      text-align: center;
      text-decoration: none;
      transition: all 0.3s;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      cursor: pointer;
    }
    .brand-card-large:hover {
      transform: translateY(-8px);
      box-shadow: 0 15px 35px rgba(48,186,14,0.15);
    }
    .brand-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100px;
      height: 100px;
      margin: 0 auto 20px;
      background: #f5f5f6;
      border-radius: 50%;
      overflow: hidden;
    }
    .brand-name {
      font-size: 18px;
      font-weight: 600;
      color: #191919;
      margin-bottom: 8px;
    }
    .brand-products-count {
      font-size: 12px;
      color: #30ba0e;
      font-weight: 500;
    }
    .show-all-section {
      text-align: center;
      padding: 40px;
      background: white;
      border-radius: 20px;
      margin-top: 20px;
    }
    .show-all-btn {
      background: #191919;
      color: white;
      border: none;
      padding: 14px 40px;
      border-radius: 40px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
    }
    .show-all-btn:hover {
      background: #30ba0e;
    }
    @media (max-width: 768px) {
      .brands-page { padding: 20px; }
      .brands-header h1 { font-size: 28px; }
      .brands-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
      .brand-logo { width: 70px; height: 70px; }
      .brand-name { font-size: 14px; }
    }




/* стили каталога */

.catalog-container {display: block !important; max-width: 1400px; margin: 0 auto; padding: 40px 20px; gap: 40px;padding: 0 20px;
  width: 100%;
  box-sizing: border-box; }

    .filters { width: 280px; flex-shrink: 0; }

    .products {width: 100%;
  max-width: 100%;
  box-sizing: border-box;}


    .filter-card { background: white; border-radius: 20px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }
    .filter-title { font-weight: 700; font-size: 18px; margin-bottom: 20px; }
    .filter-group { margin-bottom: 20px; }
    .filter-group label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 8px; }
    .filter-group input, .filter-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 12px; }

* Блок сортировки — занимает всю ширину, элементы выравниваем как надо */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; /* или flex-start, если хотите всё слева */
  gap: 20px;
  width: 100%;
  margin: 20px 0 30px;
  box-sizing: border-box;
}

/* Если внутри .catalog-controls что-то уплывает вправо — принудительно фиксируем */
.sort-group,
.limit-group,
.view-toggle {
  flex-shrink: 0;
}



    .price-range { display: flex; gap: 10px; }
    .price-range input { width: 50%; }
    .btn-filter { background: #30ba0e; color: white; border: none; padding: 10px; border-radius: 30px; width: 100%; cursor: pointer; font-weight: 600; }
    .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;margin: 0; /* убираем внешние отступы */
  padding: 0; /* убираем внутренние отступы */ }
    .breadcrumbs { font-size: 14px; margin-bottom: 20px; color: #666; }
    .category-title { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
    .loading, .no-products { padding: 0; /* убираем лишние внутренние отступы */ text-align: center; padding: 40px; color: #666; }
    @media (max-width: 768px) { .catalog-container { flex-direction: column; } .filters { width: 100%; } }

/* аккаунт */

.account-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
    .user-info { background: white; border-radius: 20px; padding: 24px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .orders-table { width: 100%; border-collapse: collapse; background: white; border-radius: 20px; overflow: hidden; }
    .orders-table th, .orders-table td { border: 1px solid #eef2f0; padding: 12px; text-align: left; }
    .orders-table th { background: #f5f5f6; }
    .status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; }
    .status-new { background: #e3f2fd; color: #1976d2; }
    .status-processing { background: #fff3e0; color: #f57c00; }
    .status-shipped { background: #e8f5e9; color: #388e3c; }
    .status-completed { background: #e0f2f1; color: #00796b; }
    .status-cancelled { background: #ffebee; color: #d32f2f; }
    .logout-btn { background: #f44336; color: white; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; }


/* окно регичстрации */

    .auth-container {
      max-width: 500px;
      margin: 60px auto;
      background: white;
      border-radius: 20px;
      padding: 40px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }
    .auth-container h1 {
      margin-bottom: 20px;
      text-align: center;
    }
    .form-group {
      margin-bottom: 16px;
    }
    .form-group label {
      display: block;
      font-weight: 500;
      margin-bottom: 6px;
    }
    .form-group input {
      width: 100%;
      padding: 12px;
      border: 1px solid #e0e0e0;
      border-radius: 12px;
      font-size: 14px;
    }
    .btn-submit {
      width: 100%;
      background: #30ba0e;
      color: white;
      border: none;
      padding: 12px;
      border-radius: 40px;
      font-weight: 600;
      font-size: 16px;
      cursor: pointer;
    }
    .btn-submit:hover {
      background: #269e0b;
    }
    .error {
      color: #f44336;
      font-size: 14px;
      margin-top: 8px;
      text-align: center;
    }
    .success {
      color: #30ba0e;
      text-align: center;
      margin-top: 8px;
    }
    .link {
      text-align: center;
      margin-top: 20px;
    }
    .link a {
      color: #30ba0e;
      text-decoration: none;
    }
    .checkbox-label {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: normal;
      cursor: pointer;
    }
    .checkbox-label input {
      width: auto;
    }




/* окно входа */

.auth-container { max-width: 500px; margin: 60px auto; background: white; border-radius: 20px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
    .auth-container h1 { margin-bottom: 20px; text-align: center; }
    .form-group { margin-bottom: 16px; }
    .form-group label { display: block; font-weight: 500; margin-bottom: 6px; }
    .form-group input { width: 100%; padding: 12px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 14px; }
    .btn-submit { width: 100%; background: #30ba0e; color: white; border: none; padding: 12px; border-radius: 40px; font-weight: 600; font-size: 16px; cursor: pointer; }
    .btn-submit:hover { background: #269e0b; }
    .error {
  color: #f44336;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
  display: block;
}
.success {
  color: #30ba0e;
  text-align: center;
  margin-top: 8px;
  display: block;
}
    .link { text-align: center; margin-top: 20px; }
    .link a { color: #30ba0e; text-decoration: none; }



/* ОПЛАТА и ДОСТАВКА */


.delivery-page {
      max-width: 1400px;
      margin: 40px auto;
      padding: 0 20px; /* добавить */
    }
    .delivery-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
      background: white;
      border-radius: 24px;
      padding: 40px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }
    .delivery-col h2 {
      font-family: 'Montserrat', sans-serif;
      font-style: normal;
      font-weight: bold;
      color: #30ba0e;
      font-size: 24px;
      margin-bottom: 20px;
      border-left: 4px solid #30ba0e;
      padding-left: 15px;
    }
    .delivery-col p, .delivery-col li {
      font-family: 'Montserrat', sans-serif;
      font-style: normal;
      font-size: 17.5px;
      margin: 12px 0;
      line-height: 1.5;
      color: #191919;
    }
    .delivery-col ul {
      margin: 10px 0 20px 20px;
    }
    .delivery-col strong {
      font-weight: 600;
    }
    .delivery-col a {
      color: #30ba0e;
      text-decoration: none;
    }
    .delivery-col a:hover {
      text-decoration: underline;
    }
    .tariff-note {
      background: #f5f5f6;
      padding: 15px;
      border-radius: 16px;
      margin-top: 20px;
    }
    @media (max-width: 768px) {
      .delivery-grid {
        grid-template-columns: 1fr;
        padding: 24px;
      }
    }


/* КОНТАКТЫ */


.contacts-page {
      max-width: 1400px;
      margin: 40px auto;
      padding: 0 20px; /* добавить */
    }
    .contacts-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
      background: white;
      border-radius: 24px;
      padding: 40px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }
    .contacts-col h2 {
      font-family: 'Montserrat', sans-serif;
      font-style: normal;
      font-weight: bold;
      color: #30ba0e;
      font-size: 24px;
      margin-bottom: 20px;
      border-left: 4px solid #30ba0e;
      padding-left: 15px;
    }
    .contacts-col p, .contacts-col div {
      font-family: 'Montserrat', sans-serif;
      font-style: normal;
      font-size: 17.5px;
      margin: 12px 0;
      line-height: 1.5;
      color: #191919;
    }
    .contacts-col strong {
      font-weight: 600;
      color: #191919;
    }
    .contacts-col a {
      color: #30ba0e;
      font-weight: bold;
      text-decoration: none;
    }
    .contacts-col a:hover {
      text-decoration: underline;
    }
    .work-time {
      background: #f5f5f6;
      padding: 15px;
      border-radius: 16px;
      margin-top: 20px;
    }
    @media (max-width: 768px) {
      .contacts-grid {
        grid-template-columns: 1fr;
        padding: 24px;
      }
    }




/* ========== COOKIE-БАННЕР (расширенный) ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #191919;
  color: white;
  padding: 20px;
  z-index: 10000;
  display: none;           /* скрыт по умолчанию, показываем через JS */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 15px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-banner-content {
  max-width: 1200px;
  width: 100%;
}
.cookie-banner p {
  
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: white;
  font-size: 18.5px;
  margin: 0 0 15px 0;
  line-height: 1.4;
}
.cookie-banner a {
  color: #30ba0e;
  text-decoration: underline;
}
.cookie-banner-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18.5px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.accept-btn {
  background: #30ba0e;
  color: #191919;
}
.accept-btn:hover {
  background: #269e0b;
  color: white;
}
.reject-btn {
  background: #333;
  color: white;
}
.reject-btn:hover {
  background: #555;
  color: #30ba0e;
}
@media (max-width: 600px) {
  .cookie-banner-buttons {
    flex-direction: column;
    width: 100%;
  }
  .cookie-btn {
    width: 100%;
  }
}



/* Дополнительные стили для страницы инжиниринга */


.engineering-page {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  background: #f6f5f4;
  color: #4D4D4D;
font-size: 18.5px;
  line-height: 1.5;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px; /* добавить */
  margin-top: 60px;   /* или 60px, подберите нужное значение */
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}
.engineering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.engineering-info h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #191919;
}
.engineering-info .subtitle {
  font-size: 18.5px;
  font-weight: 600;
  color: #191919;
  margin-bottom: 30px;
  border-left: 4px solid #30ba0e;
  padding-left: 15px;
}
.engineering-info .description {
  line-height: 1.6;
  color: #191919;
  margin-bottom: 30px;
}




.slider-container {
  position: relative;
  margin: 20px 0;
  border-radius: 20px;
  overflow: hidden;
}
.engineering-slides {
  display: flex;
  transition: transform 0.5s ease;
}
.engineering-slide {
  min-width: 100%;
  text-align: center;
}


.engineering-slide img {
  width: 100%;
  height: 480px;
  object-fit: contain;

  background: white;
  border: 4px solid #e0e0e0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  
  position: sticky;
  top: 20px;


}


.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.slider-btn:hover {
  background: #30ba0e;
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
/* Скрываем точки пагинации */
.slider-dots {
  display: none;
}


.form-card {
  background: white;
  border: 4px solid #e0e0e0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 20px;


}
.form-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 32px;

  margin-bottom: 20px;
  color: #30ba0e;
  border-left: 4px solid #30ba0e;
  padding-left: 15px;
}


.form-group {
  margin-bottom: 20px;
}
.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 18.5px;
  color: #191919;
  font-weight: 500;
  display: block;
  
  margin-bottom: 8px;
  
}
.form-group input, .form-group select, .form-group textarea {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 18.5px;
  color: #191919;
  font-weight: 500;

  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  
  
}
.file-area {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}
.file-area:hover {
  border-color: #30ba0e;
  background: #f9fef7;
}
.file-area input {
  display: none;
}
.file-name {
  font-size: 13px;
  color: #30ba0e;
  margin-top: 8px;
}


.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  cursor: pointer;
}
.checkbox-label input {
  width: auto;
}



.btn-submit {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 18.5px;
  color: white;
  font-weight: bold;
  background: #30ba0e;
  
  border: none;
  padding: 14px 24px;
  border-radius: 40px;
  
  
  cursor: pointer;
  width: 100%;
}
.btn-submit:hover {
  color: #191919;
}






.success {
  color: #30ba0e;
  text-align: center;
  margin-top: 8px;
  display: block;
}

.error {
  color: #f44336;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
  display: block;
}

/* ========== АДАПТАЦИЯ СТРАНИЦЫ ИНЖИНИРИНГА ========== */
@media (max-width: 1024px) {
  .engineering-grid {
    gap: 30px;
    padding: 30px;
  }
  .engineering-slide img {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .engineering-page {
    margin-top: 30px;
    padding: 0 16px;
  }
  .engineering-grid {
    grid-template-columns: 1fr;  /* одна колонка на мобильных */
    gap: 30px;
    padding: 24px;
  }
  .engineering-info h1 {
    font-size: 28px;
  }
  .engineering-info .subtitle,
  .engineering-info .description,
  .form-group label,
  .form-group input,
  .form-group select,
  .form-group textarea,
  .btn-submit {
    font-size: 16px;
  }
  .engineering-slide img {
    height: 240px;
    padding: 0;
  }
  .form-card {
    position: static;
    margin-top: 0;
    padding: 20px;
  }
  .form-card h2 {
    font-size: 24px;
  }
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}




/* ========== КАРТОЧКА ТОВАРА (стиль как в примере Shenler) ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
 

}

.product-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.1);
}

.card-media {
  background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 0 20px;
  border-bottom: 1px solid #e9edf2;
}

.card-media i {
  font-size: 64px;
  color: #348A45;
  opacity: 0.85;
}

.card-media {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  overflow: hidden;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.card-body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0b1c3a;
  margin-bottom: 8px;
}

.product-article {

        font-family: 'Montserrat', sans-serif;
	font-style: normal;
 	font-size: 16px;
        color: #191919; 
	font-weight: 600;
	text-transform: uppercase;
        padding: 0 0 0 0;
	margin: 0 0 5px 0;

}

.description {

        font-family: 'Montserrat', sans-serif;
	font-style: normal;
 	font-size: 16px;
        color: #2c3e50;



  line-height: 1.45;
  
  margin-bottom: 16px;
  background: #fafcff;
  padding: 0 0 0 8px;
  border-left: 2.3px solid #348A45;
}

.product-brand {
  font-size: 0.85rem;
  font-weight: 500;
  color: #348A45;
  margin-bottom: 15px;
  letter-spacing: 0.3px;
}


.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
padding-top: 18px;
  border-top: 1px solid #edf2f7;
}


.product-brand {
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
 	font-size: 16px;
        color: #191919; 
	font-weight: 600;
	text-transform: uppercase;
        text-decoration: underline;
        text-decoration-thickness: 1.5px;
        text-decoration-color: #348A45; /* зелёное подчёркивание, можно любой цвет */
	padding: 0 0 0 0;
	margin: 0 0 5px 0;
}


.product-barcode {
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
        text-transform: uppercase;
 	font-size: 14px;
        color: #191919; 
	font-weight: 600;
	padding: 0 0 0 0;
	margin: 0 0 0 0;
}
.product-barcode-value {
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
        text-transform: uppercase;
 	font-size: 14px;
  	font-weight: 600;
  	color: #191919;
}


.product-article-value {
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
        text-transform: uppercase;
 	font-size: 14px;
  	font-weight: 600;
  	color: #191919;
}

.product-short_name {
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
        text-transform: uppercase;
 	font-size: 14px;
        color: #191919; 
	font-weight: 0;
	padding: 0 0 0 0;
	margin: 0 0 0 0;
}
.product-short_name-value {
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
        text-transform: uppercase;
 	font-size: 14px;
  	font-weight: 600;
  	color: #191919;
}












.tag {
  background: #eff3f8;
  padding: 5px 14px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.tag i {
  font-size: 0.7rem;
  color: #348A45;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: auto;
  margin-bottom: 18px;
  border-top: 1px solid #edf2f7;
  padding-top: 18px;
}

.price {
        font-family: 'Montserrat', sans-serif;
	font-style: normal;
        text-transform: uppercase;
 	font-size: 27px;
  	font-weight: 800;
  	color: #0f172a;

  
}

.currency {
  font-size: 20px;
  font-weight: 600;
  margin-left: 2px;
}

.stock-status {
  background: #e0f2e9;
  color: #0b5e42;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.stock-status i {
  font-size: 0.7rem;
  color: #10b981;
}

.stock-status.out {
  background: #fee2e2;
  color: #b91c1c;
}
.stock-status.out i {
  color: #ef4444;
}

.buy-btn {
  background: #348A45;
  border: none;
  width: 100%;
  padding: 13px 0;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}

.buy-btn:hover {
  background: #2c6e38;
  transform: scale(0.98);
}

@media (max-width: 700px) {
  .products-grid {
    gap: 20px;
  }
  .price {
    font-size: 1.6rem;
  }
  .product-title {
    font-size: 1rem;
  }
}



/* Кнопка "Купить в 1 клик" – светло-оранжевая, инертная */
.one-click-btn {
  background: #fef3c7;
  
  border: none;
  padding: 13px 0;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.one-click-btn:hover {
  background: #fde68a;
    transform: scale(0.98);
}

/* Кнопка "В корзину" – зелёная (без изменений) */
.buy-btn {
  background: #348A45;
  border: none;
  width: 100%;
  padding: 13px 0;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}

.buy-btn:hover {
  background: #2c6e38;
  transform: scale(0.98);
}







<style>
  .catalog-container {
    display: block;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .filters { display: none; width: 280px; flex-shrink: 0; }
  .products {width: 100%; flex: 1; min-width: 0; width: 100%;
  max-width: 1400px;   /* по желанию */
  margin: 0 auto;
  padding: 0 20px; }


  .breadcrumbs {font-family: 'Montserrat', sans-serif; font-size: 14px; margin-bottom: 12px; color: #191919; }
  .breadcrumbs a {font-family: 'Montserrat', sans-serif; color: #30ba0e; text-decoration: none; }
  .category-title {font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 700; margin-bottom: 24px; color: #191919; }

  .catalog-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eef2f0;
  }



  .sort-group, .limit-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 4px 12px;
    border-radius: 40px;
    border: 1px solid #eef2f0;
  }
  .view-toggle {
    display: flex;
    gap: 8px;
    background: white;
    padding: 4px;
    border-radius: 40px;
    border: 1px solid #eef2f0;
  }
  .view-btn { background: none; border: none; padding: 6px 10px; border-radius: 32px; cursor: pointer; color: #4D4D4D; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
  .view-btn.active { background: #30ba0e; color: white; }
  .view-btn svg { stroke: currentColor; }




  
  /* Карточка товара */
  .product-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #eef2f0;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-4px); }
  .product-img-wrap { display: flex; align-items: center; justify-content: center; background: #f5f5f6; overflow: hidden; }
  .product-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
  .product-info { padding: 12px 16px 0; }

















  
  .product-description { font-size: 12px; color: #666; margin-bottom: 8px; }
  .product-tnved, .product-honest { font-size: 11px; color: #666; margin-bottom: 4px; }
  .product-footer { padding: 12px 16px 16px; margin-top: auto; }
  .product-price-wrap { margin-bottom: 8px; }


  .product-old-price {

font-family: 'Montserrat', sans-serif;
	font-style: normal;
        text-transform: uppercase;
 	font-size: 16px;
  	font-weight: 200;
  	color: #999;
        text-decoration: line-through; 
        margin-right: 8px; 

}


  .product-price {

        font-family: 'Montserrat', sans-serif;
	font-style: normal;
        text-transform: uppercase;
 	font-size: 27px;
  	font-weight: 800;
  	color: #30ba0e;




}
  .product-stock { font-size: 12px; margin-bottom: 12px; }

  .product-stock.in {
        font-family: 'Montserrat', sans-serif;
	font-style: normal;
        text-transform: uppercase;
 	font-size: 16px;
  	font-weight: 600;
        color: #ffffff;
        background: #30ba0e;
        padding: 10px 10px;
        border-radius: 40px;
        box-sizing: border-box;
}


  .product-stock.out { color: #f44336; }


  .add-to-cart-btn {
    background: #30ba0e;
    color: white;
    border: none;
    padding: 20px 0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18.5px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    text-align: center;
  }
  .add-to-cart-btn:hover { background: #269e0b; }
  

.one-click-btn {
display: flex;
  gap: 12px;          /* расстояние между кнопками */
  width: 100%;
color: #ffffff;
  flex: 1;            /* обе кнопки занимают равную ширину */
  padding: 10px 0;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}

/* Стиль для кнопки «Купить в 1 клик» (сохраняем её цвет) */
.one-click-btn {
  background: #ff8c00;  /* или любой другой оранжевый/жёлтый */
  
}
.one-click-btn:hover {
  background: #e67e00;
}





  /* Режимы отображения */
  .products-view.view-grid .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;

  }
  .products-view.view-grid .product-img-wrap { height: 180px; }
  
  .products-view.view-list-image .products-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .products-view.view-list-image .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
  }
  .products-view.view-list-image .product-img-wrap {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
  }
  .products-view.view-list-image .product-info { flex: 1; padding: 0 16px; }
  .products-view.view-list-image .product-footer {
    flex-shrink: 0;
    min-width: 180px;
    text-align: right;
  }
  .products-view.view-list-image .add-to-cart-btn { width: auto; padding: 8px 16px; }
  
  .products-view.view-list .products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .products-view.view-list .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
  }
  .products-view.view-list .product-img-wrap { display: none; }
  .products-view.view-list .product-info { flex: 2; padding: 0; }
  .products-view.view-list .product-footer {
    flex-shrink: 0;
    min-width: 180px;
    text-align: right;
  }
  .products-view.view-list .add-to-cart-btn { width: auto; padding: 8px 16px; }
  
  @media (max-width: 768px) {
    .catalog-container { flex-direction: column; }
    .filters { width: 100%; }
    .catalog-controls { justify-content: center; }
    .products-view.view-grid .products-grid { grid-template-columns: 1fr; }
    .products-view.view-list-image .product-card,
    .products-view.view-list .product-card { flex-direction: column; text-align: center; }
    .products-view.view-list-image .product-footer,
    .products-view.view-list .product-footer { text-align: center; width: 100%; }
    .products-view.view-list-image .add-to-cart-btn,
    .products-view.view-list .add-to-cart-btn { width: 100%; }
  }
</style>








/* ========== АДАПТИВ ========== */
@media (max-width: 1200px) {
  .main-layout { padding: 30px; }
  .slide-content h1 { font-size: 32px; }
}
@media (max-width: 1024px) {
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; display: block !important; }
  .sidebar.open { display: block !important; }
  .activity-banners { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .slide { flex-direction: column; text-align: center; padding: 40px 30px; }
  .slide-content p { margin-left: auto; margin-right: auto; }
  .slide-content h1 { font-size: 28px; }
}
@media (max-width: 768px) {
  /* На мобильных убираем ограничение ширины, чтобы блоки занимали всю ширину */
  .topbar, .catalog-bar, .footer, .footer-bottom {
    max-width: 100%;
    margin: 0;
  }
  .topbar { flex-direction: column; text-align: center; padding: 10px 20px; }
  .topbar-contacts { justify-content: center; }
  .header { padding: 15px 20px; }
  .header-inner { flex-direction: column; }
  .nav { justify-content: center; gap: 20px; }
  
  .catalog-toggle { width: 100%; justify-content: center; }
  .search-wrap { width: 100%; }
  .main-layout { padding: 20px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 20px; }
  .stat-num { font-size: 28px; }
  .activity-banners { grid-template-columns: 1fr; gap: 15px; margin-bottom: 30px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
  .brands-section { padding: 20px; }
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; padding: 30px 20px; gap: 25px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 15px 20px; }
  .footer-bottom-links { justify-content: center; }
  .slider-btn { width: 32px; height: 32px; font-size: 18px; }
  .modal-content { flex-direction: column; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: 1fr; }
  .slide { padding: 30px 20px; }
  .slide-content h1 { font-size: 24px; }
  .btn-primary { padding: 10px 24px; font-size: 14px; }
}

@media (max-width: 768px) {
  /* Уже существующие стили... */

  /* Футер и нижняя полоса: убираем большие отступы */
  .footer-inner,
  .footer-bottom {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Нижняя полоса: ссылки переносим, центрируем */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ========== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.text-green { color: #30ba0e; }
.bg-green { background: #30ba0e; }
.btn-outline {
  background: transparent;
  border: 2px solid #30ba0e;
  color: #30ba0e;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: #30ba0e;
  color: white;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.products-section,
.brands-section,
.activity-banners {
  animation: fadeInUp 0.6s ease-out;
}

/* ========== СТИЛИ ДЛЯ НОВОСТЕЙ И РЕСУРСОВ ========== */
.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  border-left: 4px solid #30ba0e;
  padding-left: 20px;
}
.news-item {
  display: flex;
  gap: 24px;
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.news-image {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f6;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-content {
  flex: 1;
}
.news-date {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #30ba0e;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.news-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #191919;
}
.news-summary {
  font-size: 16px;
  line-height: 1.5;
  color: #4D4D4D;
  margin-bottom: 20px;
}
.read-more {
  color: #30ba0e;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.read-more:hover {
  text-decoration: underline;
}

.breadcrumbs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 40px 5px;
  font-size: 14px;
  clear: both;
  background: transparent;
}
.breadcrumbs a {
  color: #30ba0e;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs .sep {
  margin: 0 6px;
  color: #999;
}









/* Модальное окно со слайдером */
.news-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.news-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}
.news-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eef2f0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.news-modal-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}
.news-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
}
.news-modal-close:hover {
  color: #f44336;
}
.gallery-slider {
  position: relative;
  margin: 20px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f6;
}
.gallery-slides {
  display: flex;
  transition: transform 0.3s ease;
}
.gallery-slide {
  min-width: 100%;
  text-align: center;
}
.gallery-slide img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.slider-prev:hover, .slider-next:hover {
  background: #30ba0e;
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}
.dot.active {
  background: #30ba0e;
  width: 24px;
  border-radius: 10px;
}
.pagination {
  text-align: center;
  margin: 30px 0;
}
.pagination-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.page-btn {
  background: #30ba0e;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s;
}
.page-btn:hover {
  background: #269e0b;
}
.page-info {
  font-size: 14px;
  color: #666;
}
/* Стили для админки */
.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eef2f0;
}
.tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
}
.tab-btn.active {
  color: #30ba0e;
  border-bottom: 2px solid #30ba0e;
}
.add-btn {
  background: #30ba0e;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  margin-bottom: 20px;
}
.admin-list {
  display: grid;
  gap: 15px;
}
.admin-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-item-info h3 {
  margin: 0 0 5px;
  font-size: 18px;
}
.admin-item-info p {
  margin: 0;
  color: #666;
  font-size: 13px;
}
.admin-item-actions button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin-left: 10px;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  padding: 24px;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.submit-btn {
  background: #30ba0e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }
  .news-image {
    width: 100%;
    height: 180px;
  }
/* Сетка 2×2 */
.product-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Стили для каждого блока (необязательно) */
.block-price-actions,
.block-gallery,
.block-attributes,
.block-documents {
  overflow: hidden;
}

/* Адаптив: на мобильных делаем колонку */
@media (max-width: 768px) {
  .product-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
  }



}


