.categories-section {
  background: #EEEEEE;
}
.categories-section__container {
  padding-top: 25px;
  padding-bottom: 90px;
}
.categories-section__title {
  margin-bottom: 25px;
  font-size: 30px;
  font-weight: 500;
}
.categories-section__categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.categories-section__category {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  min-height: 100px;
  background: #fff;
  border-radius: 10px;
  /*box-shadow: 0 10px 10px rgba(0 0 0 / 0.15);*/
  transition: 0.3s all;
  outline: 1px solid transparent;
}
.categories-section__category:hover {
  /*box-shadow: 0 0 10px rgba(0 0 0 / 0.25);*/
  /*outline-color: var(--accent);*/
}
.categories-section__category-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 2px;
  overflow: hidden;
}
.categories-section__category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.categories-section__category-title {
  font-size: 18px;
  color: #333;
  transition: 0.3s all;
  font-weight: 400;
}
.categories-section__category:hover .categories-section__category-title {
  color: #FF782C;
	text-decoration: none;
}

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

@media (max-width: 1230px) {
  .categories-section__container {
    padding-bottom: 70px;
  }
  .categories-section__title {
    margin-bottom: 30px;
  }
  .categories-section__categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .categories-section__container {
    padding-top: 25px;
  }
  .categories-section__title {
    margin-bottom: 25px;
    font-size: 26px;
  }
  .categories-section__categories {
    gap: 15px;
  }
  .categories-section__category {
    min-height: 80px;
  }
  .categories-section__category-image {
    width: 60px;
    height: 60px;
  }
  .categories-section__category-title {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .categories-section__categories--mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  /* СКРЫТИЕ ДУБЛИРУЮЩЕЙ СЕТКИ: прячем обычную сетку, если на странице активирован мобильный класс */
  .categories-section:has(.categories-section__categories--mobile) .categories-section__categories:not(.categories-section__categories--mobile) {
    display: none !important; /* Добавили !important, чтобы десктопный дубль гарантированно исчез */
  }
  
  .categories-section__container {
    padding-bottom: 60px;
  }
  .categories-section__title {
    margin-bottom: 15px;
    font-size: 24px;
  }
  
  /* Активная мобильная сетка: ровно 2 колонки */
  .categories-section__categories--mobile {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 0 !important;
    width: 100% !important;
    transform: none !important;
    overflow: visible !important;
  }
  
  /* Разворачиваем внутреннюю обертку, чтобы карточки не ломались */
  .categories-section__categories--mobile .categories-section__column {
    display: contents !important;
  }
  
  /* Стили самих карточек в мобильной сетке */
  .categories-section__categories--mobile .categories-section__category {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
  }
  
  .categories-section__categories--mobile .categories-section__category-image {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
  }
  
  .categories-section__categories--mobile .categories-section__category-title {
    font-size: 15px !important;
    color: #333 !important;
  }
}
@media (max-width: 480px) {
  .categories-section__container {
    padding-bottom: 25px;
  }
  .categories-section__title {
    font-size: 18px;
  }
  
  /* ИСПРАВЛЕНИЕ: Вместо 1fr держим сетку 2х2 до конца */
  .categories-section__categories,
  .categories-section__categories--mobile {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .categories-section__category {
    gap: 8px;
    padding: 8px;
  }
  .categories-section__category-image {
    width: 45px;
    height: 45px;
  }
  .categories-section__category-title {
    font-size: 13px;
  }
}

/* === ШАПКА И ОСТАЛЬНОЕ === */

.header__mainContainer .header__profile {
  min-height: 35px;
  width: max-content;
  max-width: 100%;
  box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.14);
}
.header__mainContainer .header__profile:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' fill='none' viewBox='0 0 16 20'%3E%3Cpath fill='%2300ab66' d='M8 9.389A4.278 4.278 0 1 0 8 .833 4.278 4.278 0 0 0 8 9.39Zm0-7.333a3.056 3.056 0 1 1 0 6.11 3.056 3.056 0 0 1 0-6.11ZM15.62 13.893a10.486 10.486 0 0 0-15.234 0c-.213.227-.33.526-.33.837v3.214a1.222 1.222 0 0 0 1.222 1.223h13.444a1.222 1.222 0 0 0 1.222-1.223V14.73c.003-.31-.113-.61-.324-.837Zm-.898 4.051H1.278v-3.22a9.272 9.272 0 0 1 13.444 0v3.22Z'/%3E%3C/svg%3E");
  color: #00AB66;	
}

@media (max-width: 1230px) {
  .header__catalogWrapper,
  .header__catalog__menu {
    max-width: 120px;
    font-size: 15px;
  }
  .header__catalog {
    max-width: 150px;
    font-size: 15px;
  }
  .header__catalog__desktop {
    max-width: 90px;
    font-size: 15px;
  }
}

@media (max-width: 991px) {
  .header__catalogWrappe,
  .header__catalog__menu {
    max-width: 110px;
    font-size: 14px;
  }
  .header__catalog {
    max-width: 125px;
    font-size: 16px;
  }
}

@media (max-width:767px) {
  .header__mainContainer .header__info {
    display: none;
  }
}

.codedropz-upload-handler + .dnd-upload-status .dnd-upload-image {
  position: relative;
  border-color: #00AB66;
}
.codedropz-upload-handler + .dnd-upload-status .dnd-upload-image::after {
  content: 'Zdjęcie główne';
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 7px 10px;
  background: #00AB66;
  font-size: 14px;
  line-height: 1;
  color: #fff;
}