/* Режим каталога (статическая копия). Подключается во все страницы. */
.sm-banner {
  position: relative;
  z-index: 1000;
  background: #1f4e79;
  color: #fff;
  font: 14px/1.4 Arial, Helvetica, sans-serif;
  text-align: center;
  padding: 8px 40px 8px 16px;
}
.sm-banner a { color: #fff; text-decoration: underline; white-space: nowrap; }
.sm-banner__close {
  position: absolute; right: 8px; top: 3px;
  background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px;
}

.sm-modal {
  display: none;
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0, 0, 0, .55);
  align-items: center; justify-content: center;
  padding: 16px;
}
.sm-modal--open { display: flex; }
.sm-modal__box {
  position: relative;
  background: #fff; color: #222;
  max-width: 440px; width: 100%;
  border-radius: 6px; padding: 24px 24px 20px;
  font: 15px/1.5 Arial, Helvetica, sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.sm-modal__title { margin: 0 0 12px; font-size: 20px; }
.sm-modal__box p { margin: 0 0 10px; }
.sm-modal__contacts { font-size: 17px; }
.sm-modal__phone { font-size: 22px; font-weight: 700; text-decoration: none; }
.sm-modal__close {
  position: absolute; right: 8px; top: 4px;
  background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #666;
}
.sm-modal__ok {
  margin-top: 6px; padding: 9px 22px; border: 0; border-radius: 4px;
  background: #1f4e79; color: #fff; font-size: 15px; cursor: pointer;
}

/* страница поиска и служебные страницы */
.sm-page { max-width: 960px; margin: 0 auto; padding: 8px 0 32px; }
.sm-page h1 { margin: 12px 0 16px; }
.sm-search-form { display: flex; gap: 8px; margin: 0 0 18px; }
.sm-search-form input[type="text"] { flex: 1; padding: 9px 12px; font-size: 16px; border: 1px solid #bbb; border-radius: 4px; }
.sm-search-form button { padding: 9px 20px; border: 0; border-radius: 4px; background: #1f4e79; color: #fff; font-size: 16px; cursor: pointer; }
.sm-results { list-style: none; margin: 0; padding: 0; }
.sm-results li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e3e3e3; }
.sm-results img { width: 72px; height: 72px; object-fit: contain; flex: none; background: #f4f6f8; }
.sm-results a { font-weight: 600; }
.sm-results .sm-meta { color: #666; font-size: 13px; }
.sm-results .sm-price { margin-left: auto; white-space: nowrap; font-weight: 700; }
.sm-note { color: #666; margin: 8px 0 16px; }

.sm-catalog ul { list-style: none; margin: 4px 0 4px 18px; padding: 0; }
.sm-catalog > ul { margin-left: 0; }
.sm-catalog li { margin: 3px 0; }
.sm-catalog .sm-count { color: #888; font-size: 12px; }

.sm-stub__grid { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin: 16px 0; }
.sm-stub__grid img { width: 240px; max-width: 100%; background: #f4f6f8; }
.sm-stub__price { font-size: 26px; font-weight: 700; margin: 8px 0; }
.sm-stub__box { background: #f4f6f8; border-left: 4px solid #1f4e79; padding: 12px 16px; margin: 14px 0; }
