@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body, * {
  font-family: 'Inter', sans-serif !important;
}

.sectionHeading {
  font-size: 28px;
  font-weight: 500;
  padding-top: 32px;
  margin-bottom: 32px;
  position: relative;
}

.productList {padding-top:10px}

.items.productList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 28px;             
  padding: 0 0px;              
  margin: 0 auto;
  list-style: none;
}

.item.product {
  width: 100%;
  margin: 0;
  border: 0 !important;
  list-style: none;
}

.product .tabloid {
  position: relative;
  background: var(--bg-white);
  border-radius: 8px;  
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e7e8ea;
  padding: 20px;      
  box-shadow: none;
}

.product:hover .tabloid {
  box-shadow: none;
  border-color: #d0d0d0;
}

/* Метки (Рекомендуем и т.д.) */
.product .markerContainer {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.product .price {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin: 8px 0 16px;
}

@media (max-width: 600px) {
  .items.productList {
    grid-template-columns: 1fr; 
    gap: 24px;
    padding: 0 0px;
  }
  
  .product .tabloid {
    padding: 16px;
  }
  
}

#popSection .heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--black);
  text-align: center;
  margin-bottom: 40px;
}

.ajaxContainer {
  width: 100%;
  margin: 0 auto;
}

.ajaxContainer .items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* РОВНО 5 колонок на ПК */
  gap: 24px;
  padding: 0 0px;
  list-style: none;
  margin: 0 auto;
}

#popSection .item {
  width: 100%;
  margin: 0;
  /* Убраны все старые стили: float, border-right/bottom, fixed height, box-sizing и т.д. */
}

/* Карточка категории */
#popSection .tabloid {
  position: relative;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
            
  border: 1px solid #e7e8ea;
}

#popSection .item:hover .tabloid {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border-color: #d0d0d0;
}

/* Изображение — круглое, с эффектом */
#popSection .picture {
  display: block;
  width: 180px;
  height: 180px;
  overflow: hidden;
  transition: transform 0.4s ease;
}

#popSection .picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

#popSection .item:hover .picture {
  transform: scale(1.05);
}

#popSection .item:hover .picture img {
  transform: scale(1);
}

/* Название */
#popSection .name {
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

#popSection .item:hover .name {
  color: #333333;
}

/* === АДАПТИВ === */

/* Планшет: по 4 в ряд */
@media (max-width: 1200px) {
  .ajaxContainer .items {
    grid-template-columns: repeat(4, 1fr);
  }
  
  #popSection .tabloid {
    height: 200px;
    padding: 32px 16px;
  }
  
  #popSection .picture {
    width: 100px;
    height: 100px;
  }
}

/* Средний планшет: по 3 в ряд */
@media (max-width: 992px) {
  .ajaxContainer .items {
    grid-template-columns: repeat(3, 1fr);
  }
  
  #popSection .tabloid {
    height: 180px;
  }
  
  #popSection .picture {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
  }
  
  #popSection .name {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .ajaxContainer .items {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;                     /* Больше пространства между карточками */
    padding: 0 24px;
  }
  
  #popSection .tabloid {
    height: 220px;                 /* Выше карточки для больших иконок */
    padding: 32px 16px;

  }
  
  /* Главное — БОЛЬШИЕ КАРТИНКИ */
  #popSection .picture {
    width: 140px;                  /* Было 80px → стало 140px */
    height: 140px;
    margin-bottom: 24px;
  }
  
  #popSection .name {
    font-size: 18px;               /* Крупнее текст под иконкой */
    font-weight: 500;
  }
}

/* Очень маленькие мобильные (iPhone SE и т.п.) — ещё адаптируем */
@media (max-width: 480px) {
  .ajaxContainer .items {
    gap: 24px;
    padding: 0 0px;
  }
  
  #popSection .tabloid {
    height: 200px;
    padding: 28px 12px;
  }
  
  #popSection .picture {
    width: 120px;                  /* Чуть меньше, но всё равно крупно */
    height: 120px;
    margin-bottom: 20px;
  }
  
  #popSection .name {
    font-size: 17px;
  }
}


.lazy-img{opacity:0;transition:opacity .3s ease-out;max-height:1px;}
.lazy-img-active{opacity:1;max-height:100%;}
.promo-img{display:flex;align-items:center;justify-content:space-between;margin-left:-30px;}
.promo-img a{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2;}
.promo-img img{border-radius:6px;width:100%;}
.promo-img__item{border-radius:6px;font-size:0;margin-left:30px;overflow:hidden;position:relative;transition:all .3s ease-out;width:calc(100% - 30px);}
.promo-img__item:hover{transform:translateY(-5px);}
@media screen and (max-width:1080px){
.promo-img{margin-left:-20px;}
.promo-img__item{margin-left:20px;width:100%;}
}
@media screen and (max-width:767px){
.promo-img{margin-left:0px;}
.promo-img__item{margin-left:0px;width:100%;}
}
.in-effect-glare{position:relative;overflow:hidden;}
.in-effect-glare:before{background:none;background:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,0) 60%,#fff 80%,hsla(0,0%,100%,0));content:"";display:block;opacity:0;position:absolute;width:100%;height:300%;top:0;left:0;transform:rotate(45deg) translate(-100%,-20%);transition:all .6s ease-out;filter:blur(10px);transform-origin:top;z-index:1;}
.in-effect-glare:hover:before{opacity:.3;transform:rotate(45deg) translate(100%,-20%);transition:all .6s ease-out;transform-origin:center;}
.in-blocks__item{padding-top:30px; padding-bottom:20px}
@media screen and (max-width:767px){
  .promo-img {flex-direction: column;}
.in-blocks__item{padding-top:30px; padding-bottom:20px}
}

/* === БЛОК БРЕНДОВ (#brandList) — СТИЛЬ КАК popSection, КВАДРАТНЫЕ ИКОНКИ 100x100 === */

#brandList .ajaxContainer {
  width: 100%;
  margin: 0 auto;
}

#brandList .ajaxContainer .items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* Ровно 5 на ПК */
  gap: 28px;
  padding: 0 0px;
  list-style: none;
  margin: 0 auto;
}

#brandList .item {
  width: 100%;
  margin: 0;
}

/* Карточка бренда */
#brandList .tabloid {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border: 1px solid #e7e8ea;
  background: white;
}

#brandList .item:hover .tabloid {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border-color: #d0d0d0;
}

/* Иконка бренда — квадратная 100x100 */
#brandList .picture {
  display: block;
  width: 100px;
  height: 100px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: transform 0.4s ease;
}

#brandList .picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;  
  transition: transform 0.6s ease;
}

#brandList .item:hover .picture {
  transform: scale(1.1);
}

#brandList .item:hover .picture img {
  transform: scale(1);
}

/* Название бренда — внизу */
#brandList .name {
  font-size: 17px;
  font-weight: 500;
  transition: color 0.3s ease;
}


/* === АДАПТИВ ДЛЯ БРЕНДОВ === */

@media (max-width: 1200px) {
  #brandList .ajaxContainer .items {
    grid-template-columns: repeat(4, 1fr);
  }
  
  #brandList .tabloid {
    height: 200px;
  }
}

@media (max-width: 992px) {
  #brandList .ajaxContainer .items {
    grid-template-columns: repeat(3, 1fr);
  }
  
  #brandList .tabloid {
    height: 180px;
  }
  
  #brandList .picture {
    width: 90px;
    height: 90px;
  }
}

/* Мобильный: по 2 в ряд + крупные иконки */
@media (max-width: 768px) {
  #brandList .ajaxContainer .items {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 0 0px;
  }
  
  #brandList .tabloid {
    height: 220px;
  }
  
  #brandList .picture {
    width: 120px;        /* Больше на мобильном */
    height: 120px;
    margin-bottom: 12px;
   
  }
  
  #brandList .name {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  #brandList .ajaxContainer .items {
    gap: 24px;
    padding: 0 0px;
  }
  
  #brandList .tabloid {
    height: 160px;
  }
  
  #brandList .picture {
    width: 110px;
    height: 110px;
  }
  
  #brandList .name {
    font-size: 17px;
  }
}

/* === ТРИ БЛОКА ПРЕИМУЩЕСТВ В РЯД === */

.advantagesSection {
  padding: 40px 0;
}

.advantagesGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* Ровно 3 блока в ряд */
  gap: 32px;
  align-items: stretch;
}

.advantageCard {
  position: relative;
  background-color: white;
  background-size: cover;
  background-position: bottom right;
  background-repeat: no-repeat;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e7e8ea;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Полупрозрачный оверлей для читаемости текста на фоне картинки */
.advantageCard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.95) 60%, rgba(255,255,255,0.7) 100%);
  border-radius: 8px;
  z-index: 1;
}

.advantageTitle {
  position: relative;
  z-index: 2;
  font-weight: 600;
  color: #000000;
  margin: 0 0 16px;
}

.advantageText {
  position: relative;
  z-index: 2;
  color: #333333d5;
  margin: 0;
}

/* Адаптив: на мобильных — в столбик */
@media (max-width: 992px) {
  .advantagesGrid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .advantageCard {
    padding: 36px 28px;
    border-radius: 18px;
  }
  
  .advantageTitle {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .advantageCard {
    padding: 32px 24px;
  }
  
  .advantageIcon {
    width: 50px;
    height: 50px;
  }
  
  .advantageTitle {
    font-size: 20px;
  }
  
  .advantageText {
    font-size: 15px;
  }
}

