@media screen and (max-width: 500px) {

  .priemushestva {
    grid-template-columns: repeat(1, auto);
    gap: 30px;
}

.kategorii {
    flex-direction: column; /* Элементы в столбик */
    align-items: center; /* Опционально: выравнивание по центру */
  }
  
  .kategirii-cart {
    width: 100%; /* Чтобы элементы растягивались на всю ширину */
    max-width: 100%; /* Отменяем фиксированную ширину, если была */
  }

  .kategirii-cart:nth-child(n + 4) {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(100% - 10px);
}

img.img-kategorii-cart {
        height: 200px;
      
    }

    .main-section h1 {
    text-align: center;
}

.main-section {

    align-items: center;

}

.btn-hero {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-top: 30px;
    cursor: pointer;
    flex-direction: column;
}

a.filekatalog {
    text-align: center;
}

    header .wraper .mobil-menu {
        top: 10px;
    }

    .dop__zag {
    text-align: center!important;

}

.rec__inner {
    grid-template-columns: repeat(1, 1fr);

}

.rec__cart {
    flex-direction: column;
}

img.imgrec {
    width: 100%;
}

h3.zagrec__cart {
    text-align: center;
    margin-bottom: 30px;
}

.btn__block {
    text-align: -webkit-center;
}

.zagstranic {
    font-size: 20px;
}

.pereosnashenie {

    flex-direction: column;
}

img.pereosnashenie__img {
    width: 100%;

}

a.pereosnashenie__btn {

    margin: 30px 0px;
}

.gallery2 {
    margin-bottom: 50px!important;
    margin-top: 0px!important;
}

.secuslug_dop {
    margin-top: 50px;
}


}