﻿#bm-catalog {
  width: calc(100% - 24px);
  max-width: 1050px;
  margin: 20px auto;
  color: #f5f0df;
  font-family: Arial, sans-serif;
}

#bm-catalog * {
  box-sizing: border-box;
}

#bm-catalog .bm-head {
  background: linear-gradient(135deg, #171717, #310d0d);
  border: 1px solid #9b762c;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}

#bm-catalog .bm-head h2 {
  color: #f2c45c;
  margin: 0 0 8px;
  font-size: 25px;
}

#bm-catalog .bm-head p {
  margin: 0;
  color: #ddd;
  font-size: 13px;
}

#bm-catalog .bm-search {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

#bm-catalog input {
  width: 100%;
  min-width: 0;
  background: #171717;
  color: #fff;
  border: 1px solid #8b6b2d;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
}

#bm-catalog .bm-cats,
#bm-catalog .bm-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

#bm-catalog button {
  cursor: pointer;
  border: 1px solid #8b6b2d;
  background: #191919;
  color: #f2c45c;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 12px;
}

#bm-catalog button.active {
  background: #b58a32;
  color: #171717;
  font-weight: bold;
}

#bm-catalog .bm-label {
  color: #e8bd57;
  font-size: 14px;
  font-weight: bold;
  margin: 18px 0 8px;
}

#bm-catalog .bm-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

#bm-catalog .bm-card {
  background: #171717;
  border: 1px solid #59451f;
  border-radius: 9px;
  padding: 12px 7px;
  text-align: center;
  min-width: 0;
}

#bm-catalog .bm-picture {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eee0bd;
  border: 1px solid #9b762c;
  border-radius: 7px;
  margin-bottom: 9px;
  font-size: 36px;
}

#bm-catalog .bm-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#bm-catalog .bm-name {
  font-size: 13px;
  font-weight: bold;
  color: #f4e6c2;
  overflow-wrap: anywhere;
}

#bm-catalog .bm-number {
  font-size: 17px;
  color: #f2c45c;
  font-weight: bold;
  margin-top: 5px;
}

#bm-catalog .bm-category {
  font-size: 10px;
  color: #aaa;
  margin-top: 4px;
}

#bm-catalog .bm-pages {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 18px 0;
}

#bm-catalog .bm-empty {
  text-align: center;
  padding: 30px;
  color: #bbb;
  grid-column: 1 / -1;
}

#bm-catalog .bm-note {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin: 12px 0;
}

.bm-article {
  width: calc(100% - 24px);
  max-width: 850px;
  margin: 35px auto;
  color: inherit;
  font-family: Arial, sans-serif;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.bm-article h2 {
  color: #d6a943;
  font-size: 23px;
  line-height: 1.4;
  margin: 30px 0 12px;
}

.bm-article p {
  margin: 0 0 16px;
}

.bm-article ul,
.bm-article ol {
  padding-left: 25px;
  margin: 10px 0 20px;
}

.bm-article li {
  margin-bottom: 9px;
}

.bm-article a {
  color: #d6a943;
  text-decoration: underline;
}

@media (max-width: 650px) {
  #bm-catalog .bm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  #bm-catalog .bm-card {
    padding: 9px 5px;
  }

  #bm-catalog .bm-picture {
    height: 78px;
  }

  #bm-catalog .bm-head h2 {
    font-size: 21px;
  }

  .bm-article {
    margin: 25px auto;
    font-size: 14px;
  }

  .bm-article h2 {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  #bm-catalog .bm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

