@media (max-width: 1160px) {
.wrap {width: 100%; padding: 0 10px; }
}

@media (min-width: 1024px) {
.main-nav { display: flex; } 
.stats-grid { grid-template-columns: repeat(4, 1fr); } 
.product-grid { grid-template-columns: 1fr 1fr; gap: 64px; } 
.product-visual { max-width: none; } 
.adv-grid { grid-template-columns: repeat(3, 1fr); } 
.reviews-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } 
.about-grid { grid-template-columns: 1fr 1fr; gap: 32px; } 
.contacts-grid { grid-template-columns: 2fr 3fr; gap: 32px; }
}

@media (min-width: 768px) {
.about-points { grid-template-columns: repeat(3, 1fr); }
.reviews-grid { grid-template-columns: repeat(3, 1fr); }
.footer-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 640px) {
.wrap { padding: 0 32px; }
.header-phone .phone-full { display: inline; }
.header-phone .phone-short { display: none; }
.section { padding: 72px 0;}
.price-tag { top: 32px; right: 32px; } .price-tag .p1 { font-size: 38px; }
.brick-size::before, .brick-size::after { width: 120px; } 
.spec-list li { flex-direction: row; align-items: center; gap: 16px; font-size: 15px; }
.spec-list .spec-name { width: 190px; flex: none; }
.adv-grid { grid-template-scolumns: 1fr 1fr; }
.about-photo img { height: 380px; }
.footer-requisites { flex-direction: row; justify-content: space-between; }
.modal { padding: 32px; }
}


@media (max-width: 480px) {
.header-phone {display: none;}
}




@media (min-width: 640px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
}

/* Сетка товаров: два столбца и две строки */
@media (min-width: 640px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card-img img { max-width: 360px; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .product-card .spec-list li { flex-direction: row; align-items: center; gap: 16px; }
  .product-card .spec-list .spec-name { width: 190px; flex: none; }
}

/* Карточка товара: фото слева, описание справа */
@media (min-width: 640px) {
  .product-card-main { flex-direction: row; align-items: stretch; }
  .product-card-main .product-card-img {
    flex: 0 0 42%; display: flex; align-items: center; padding: 28px 12px 28px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  .product-card-main .product-card-img img { max-width: 100%; }
  .product-card-main .product-card-body { flex: 1; min-width: 0; border-top: none; }
  .product-card .spec-list .spec-name { width: 160px; }
  .product-card .spec-list li { flex-wrap: wrap; }
  .product-card .spec-list .spec-value { flex: 1; min-width: 0; }
  .product-card-main .price-tag { top: 14px; right: 14px; padding: 8px 13px; }
  .product-card-main .price-tag .p1 { font-size: 21px; }
  .product-card-main .price-tag .p2 { font-size: 9px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .product-card-main { flex-direction: column; }
  .product-card-main .product-card-img { flex: none; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 24px 24px 12px; }
  .product-card-main .product-card-body { border-top: none; }
}
@media (min-width: 1024px) {
  .product-card .spec-list .spec-name { width: 150px; }
}
@media (min-width: 1280px) {
  .product-card .spec-list .spec-name { width: 190px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .product-card-main .price-tag .p1 { font-size: 18px; }
  .product-card-main .price-tag { padding: 7px 11px; }
  .product-card-main .product-card-img { flex-basis: 38%; padding: 20px 8px 20px 16px; }
}

/* Товары: контейнер пошире, чтобы карточке «фото слева» хватало места */
@media (min-width: 1024px) {
  #product .wrap { width: 94%; max-width: 1560px; }
  .product-card .spec-list li { gap: 12px; padding-left: 18px; padding-right: 18px; }
}
