/* ==========================================================================
   Каталог Стомел: карточки товаров, страница товара, поиск, прайс-лист.
   Палитра и формы — как у плиток разделов на главной.
   ========================================================================== */
:root {
  --st-orange: #f58220;
  --st-yellow: #ffc400;
  --st-black: #111111;
  --st-text: #232322;
  --st-muted: #6b6b6b;
  --st-line: #e5e5e5;
  --st-soft: #f6f6f6;
  --st-red: #d7261e;
  --st-radius: 16px;
  --st-shadow: 0 2px 9px rgba(0, 0, 0, .10);
}

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--st-orange);
  color: var(--st-black) !important;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.st-btn:hover, .st-btn:focus-visible { background: var(--st-black); color: #fff !important; }

.st-muted { color: var(--st-muted); }

.st-empty {
  margin: 10px 0 24px;
  padding: 22px 24px;
  border: 1px dashed #d6d6d6;
  border-radius: var(--st-radius);
  background: var(--st-soft);
  color: var(--st-text);
}
.st-empty p { margin: 0 0 10px; }
.st-empty p:last-child { margin-bottom: 0; }
.st-empty a:not(.st-btn) { color: var(--st-black); }

.st-category-text {
  margin: -4px 0 20px;
  color: var(--st-text);
  line-height: 1.55;
}

.st-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  color: #a0a0a0;
  font-size: 13px;
  text-align: center;
}

/* ---------- Сетка карточек товаров ---------- */
.st-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin: 8px 0 28px;
}
.st-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  transition: box-shadow .18s ease, transform .18s ease;
}
.st-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .14); transform: translateY(-2px); }
.st-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  padding: 14px;
  background: #fff;
}
.st-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-card__title {
  margin: 0;
  padding: 0 14px;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.st-card__title a { color: var(--st-black) !important; text-decoration: none !important; }
.st-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* вся карточка кликабельна */
.st-card__specs { margin: 10px 14px 0; padding: 0; font-size: 12px; }
.st-card__specs > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-top: 1px solid #efefef;
}
.st-card__specs > div:last-child { border-bottom: 1px solid #efefef; }
.st-card__specs dt { font-weight: 400; color: var(--st-muted); }
.st-card__specs dd { margin: 0; color: var(--st-black); text-align: right; font-weight: 600; }
.st-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
.st-card__price {
  padding: 0 0 12px 14px;
  color: var(--st-black);
  font-size: 13px;
  line-height: 1.25;
}
.st-card__price b { font-size: 21px; font-weight: 800; white-space: nowrap; }
.st-card__price .st-from { font-weight: 700; }
.st-card__price .st-per { color: var(--st-muted); }
.st-card__price small { display: block; margin-top: 2px; color: var(--st-red); font-size: 11px; font-weight: 700; }
.st-card__price .st-ask { color: var(--st-muted); font-size: 12px; }
.st-card__price .st-deposit {
  display: block;
  margin-top: 4px;
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.price-value small.price-unit { color: var(--st-muted); }
.st-card__price .st-deposit--empty { visibility: hidden; }

/* Одинаковая высота блоков в карточках: 2 строки названия, 3 строки характеристик */
.st-card__title { min-height: calc(1.3em * 2); }
.st-card__specs { min-height: calc(3 * (4px + 4px + 1.35em) + 1px); }
.st-card__specs > div { line-height: 1.35; }
.st-card__specs dt, .st-card__specs dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card__specs dt { flex: 0 1 auto; }
.st-card__specs dd { flex: 0 1 auto; min-width: 0; }
.st-card__more {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 10px 18px 10px 30px;
  border-radius: 10px 0 0 0;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%);
  background: var(--st-orange);
  color: var(--st-black) !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background-color .16s ease, color .16s ease;
}
.st-card:hover .st-card__more,
.st-card__more:focus-visible { background: var(--st-black); color: #fff !important; }

/* Плашка о cookie */
.st-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 29000;
  display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; padding: 14px 18px;
  background: #fff; border: 1px solid var(--st-line); border-left: 5px solid var(--st-orange);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.st-cookie[hidden] { display: none; }
.st-cookie p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--st-text); }
.st-cookie a { color: var(--st-black); text-decoration: underline; }
.st-cookie .st-btn { flex: 0 0 auto; min-height: 38px; }
@media (max-width: 600px) { .st-cookie { flex-direction: column; align-items: stretch; } }

/* Статус недоступности */
.st-status {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  padding: 5px 10px; border-radius: 8px; background: #3a3a3a; color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.2;
}
.st-card.is-unavailable .st-card__img img { opacity: .45; filter: grayscale(.6); }
.st-pricebox__status {
  margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px;
  background: #3a3a3a; color: #fff; font-weight: 800; font-size: 15px;
}
.st-pricebox__status span { display: block; margin-top: 2px; color: #ddd; font-weight: 400; font-size: 12px; }
.price-status { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: #3a3a3a; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }

/* ---------- Страница товара ---------- */
.st-product__article { margin: -6px 0 18px; color: var(--st-muted); font-size: 13px; }
.st-product__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}
.st-gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.st-gallery__main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
}
.st-gallery__main a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; cursor: zoom-in; }
.st-gallery__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.st-gallery__thumb {
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 2px solid var(--st-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.st-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.st-gallery__thumb.is-active, .st-gallery__thumb:hover { border-color: var(--st-orange); }

.st-pricebox {
  position: sticky;
  top: 140px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
}
.st-pricebox__table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.st-pricebox__table th, .st-pricebox__table td { padding: 7px 0; border-bottom: 1px solid #efefef; font-size: 14px; }
.st-pricebox__table th { font-weight: 500; color: var(--st-muted); text-align: left; }
.st-pricebox__table td { font-weight: 800; color: var(--st-black); text-align: right; white-space: nowrap; }
.st-pricebox__table td span { color: var(--st-muted); font-weight: 500; font-size: 12px; }
.st-pricebox__main th { color: var(--st-black); font-weight: 700; }
.st-pricebox__main td { font-size: 22px; }
.st-pricebox__ask { margin: 0 0 12px; font-weight: 700; }
.st-pricebox__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--st-soft);
  font-size: 14px;
}
.st-pricebox__avail { margin: 4px 0 14px; color: var(--st-muted); font-size: 13px; }
.st-pricebox__call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--st-orange);
  color: var(--st-black) !important;
  text-decoration: none !important;
  transition: background-color .16s ease, color .16s ease;
}
.st-pricebox__call span { font-size: 13px; font-weight: 600; }
.st-pricebox__call b { font-size: 20px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.st-pricebox__call:hover, .st-pricebox__call:focus-visible { background: var(--st-black); color: #fff !important; }
.st-pricebox__pickup { margin-top: 12px; font-size: 13px; color: var(--st-text); }
.st-pricebox__pickup span { color: var(--st-muted); }

.st-product__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 28px; }
.st-product__info > .st-section:only-child { grid-column: 1 / -1; }
.st-section h2, .st-tabs__title { margin: 0 0 12px; font-size: 22px !important; font-weight: 700 !important; color: var(--st-black) !important; }
.st-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-specs th, .st-specs td { padding: 8px 10px; border-bottom: 1px solid #ececec; vertical-align: top; }
.st-specs tr:nth-child(odd) th, .st-specs tr:nth-child(odd) td { background: var(--st-soft); }
.st-specs th { width: 55%; font-weight: 500; color: var(--st-muted); text-align: left; }
.st-specs td { font-weight: 600; color: var(--st-black); }
.st-equipment { margin: 0; padding-left: 20px; line-height: 1.7; }
.st-equipment li::marker { color: var(--st-orange); }

.st-tabs { margin-bottom: 30px; }
.st-tabs__nav { display: none; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--st-orange); }
.st-tabs__btn {
  padding: 10px 18px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: var(--st-soft);
  color: var(--st-black);
  font-weight: 700;
  cursor: pointer;
}
.st-tabs__btn.is-active, .st-tabs__btn:hover { background: var(--st-orange); }
.st-tabs__panel { padding: 16px 2px 0; line-height: 1.6; color: var(--st-text); }
.st-tabs__panel p { margin: 0 0 12px; }
/* С JS — вкладки, без JS — все разделы подряд. */
.st-tabs.is-ready .st-tabs__nav { display: flex; }
.st-tabs.is-ready .st-tabs__title { display: none; }
.st-tabs.is-ready .st-tabs__panel:not(.is-active) { display: none; }
.st-video { position: relative; max-width: 760px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.st-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.st-related .st-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* Просмотр фото на весь экран */
.st-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .86);
  cursor: zoom-out;
}
.st-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }

/* ---------- Поиск ---------- */
.st-search-form { display: flex; gap: 10px; margin: 0 0 18px; }
.st-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
}
.st-search-form input:focus { outline: none; border-color: var(--st-orange); box-shadow: 0 0 0 3px rgba(245, 130, 32, .18); }
.st-search-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.st-search-cats span { color: var(--st-muted); }
.st-search-cats a {
  padding: 6px 12px;
  border: 1px solid var(--st-orange);
  border-radius: 999px;
  color: var(--st-black) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.st-search-cats a:hover { background: var(--st-orange); }

/* Выпадающие подсказки (позиционируются скриптом относительно поля) */
.st-suggest {
  position: fixed;
  z-index: 25000;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
}
.st-suggest[hidden] { display: none; }
.st-suggest__group { padding: 8px 12px 4px; color: var(--st-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.st-suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--st-black) !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.25;
}
.st-suggest__item:hover, .st-suggest__item.is-active { background: #fff3e8; }
.st-suggest__img { flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--st-soft); overflow: hidden; }
.st-suggest__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-suggest__body { min-width: 0; flex: 1 1 auto; }
.st-suggest__name { display: block; font-weight: 600; }
.st-suggest__meta { display: block; color: var(--st-muted); font-size: 12px; }
.st-suggest__price { flex: 0 0 auto; font-weight: 800; font-size: 13px; white-space: nowrap; }
.st-suggest__cat::before { content: "📁"; margin-right: 2px; }
.st-suggest__all {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid #eee;
  color: var(--st-black) !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}
.st-suggest__all:hover, .st-suggest__all.is-active { background: var(--st-orange); }
.st-suggest__empty { padding: 12px; color: var(--st-muted); font-size: 14px; }

/* ---------- Прайс-лист ---------- */
.price-page {
  margin-bottom: 24px;
}
.price-page__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.price-page__head h1 { margin: 0 0 6px !important; }
.price-page__head p, .price-note { margin: 0; color: var(--st-text); }
.price-back-btn, .instruction-btn, .instruction-modal__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--st-orange);
  color: var(--st-black) !important;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.price-back-btn { padding: 10px 14px; white-space: nowrap; }
.instruction-btn { padding: 8px 13px; font-size: 13px; }
.price-back-btn:hover, .instruction-btn:hover, .instruction-modal__ok:hover { background: var(--st-black); color: #fff !important; }
.price-toolbar { margin-bottom: 16px; }
.price-search-wrap { display: block; }
.price-search-label { display: block; margin-bottom: 7px; font-weight: 700; color: var(--st-black); }
#priceTableSearch {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--st-orange);
  border-radius: 11px;
  background: #fff;
  color: var(--st-black);
  font: inherit;
  outline: none;
}
#priceTableSearch:focus { box-shadow: 0 0 0 4px rgba(245, 130, 32, .16); }
.price-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--st-shadow);
}
.price-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.price-table th, .price-table td { padding: 12px 14px; border-bottom: 1px solid #eee; vertical-align: middle; }
.price-table th { background: var(--st-orange); color: var(--st-black); font-size: 15px; font-weight: 900; text-align: left; }
.price-table th:nth-child(3), .price-table td:nth-child(3),
.price-table th:nth-child(4), .price-table td:nth-child(4) { text-align: center; }
.price-table td { color: var(--st-text); }
.price-table tbody tr:not(.price-group):hover td { background: #fff6ee; }
.price-group td { padding: 10px 14px; background: #2a2a2a; font-weight: 800; }
.price-group a { color: var(--st-yellow) !important; text-decoration: none !important; }
.price-group a:hover { text-decoration: underline !important; }
.price-art { width: 110px; font-weight: 700; color: var(--st-muted) !important; }
.price-name { font-weight: 700; }
.price-name a { color: var(--st-black) !important; text-decoration: none !important; }
.price-name a:hover { color: var(--st-orange) !important; }
.price-value { width: 150px; font-weight: 900; color: var(--st-black) !important; white-space: nowrap; }
.price-value small { display: block; color: var(--st-red); font-size: 11px; font-weight: 700; white-space: normal; }
.price-deposit { width: 120px; white-space: nowrap; }
.price-instruction { width: 140px; }
.price-empty { padding: 24px; text-align: center; color: var(--st-text); }
.price-note { margin-top: 14px; font-size: 14px; opacity: .85; }
.price-note a { color: var(--st-black); font-weight: 700; }
.instruction-modal { position: fixed; inset: 0; z-index: 30000; display: grid; place-items: center; padding: 20px; }
.instruction-modal[hidden] { display: none !important; }
.instruction-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.instruction-modal__card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  background: #fff;
  border-top: 5px solid var(--st-orange);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.instruction-modal__card h2 { margin: 0 40px 12px 0; font-size: 20px !important; color: var(--st-black) !important; }
.instruction-modal__card p { margin-bottom: 18px; color: var(--st-text) !important; white-space: pre-line; line-height: 1.55; }
.instruction-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--st-black);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.instruction-modal__ok { padding: 10px 18px; }

/* ---------- Выпадающее меню «Документы» ---------- */
.maximenuck li.st-dropdown { position: relative; }
.maximenuck li.st-dropdown > span { cursor: pointer; }
.maximenuck li.st-dropdown > .st-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20000;
  min-width: 260px;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--st-line);
  border-top: 3px solid var(--st-orange);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.maximenuck li.st-dropdown:hover > .st-dropdown__menu,
.maximenuck li.st-dropdown:focus-within > .st-dropdown__menu { display: block; }
.st-dropdown__menu ul { margin: 0 !important; padding: 0 !important; list-style: none; }
.st-dropdown__menu li { display: block !important; float: none !important; width: 100% !important; background: none !important; }
.st-dropdown__menu a {
  display: block !important;
  padding: 10px 16px !important;
  color: var(--st-black) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: left !important;
  white-space: nowrap;
  text-decoration: none !important;
  background: none !important;
}
.st-dropdown__menu a:hover { background: #fff3e8 !important; color: var(--st-orange) !important; }

/* ---------- Страницы «Контакты» и «О нас» ---------- */
.st-info p { line-height: 1.6; color: var(--st-text); }
.st-btn--ghost { background: #fff; border: 2px solid var(--st-orange); }
.st-contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; margin-bottom: 28px; }
.st-contacts__list { display: flex; flex-direction: column; gap: 14px; }
.st-contact { padding: 14px 16px; background: #fff; border: 1px solid var(--st-line); border-radius: var(--st-radius); box-shadow: var(--st-shadow); }
.st-contact__label { display: block; margin-bottom: 4px; color: var(--st-muted); font-size: 13px; }
.st-contact__big { color: var(--st-orange) !important; font-size: 26px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.st-contact__value { color: var(--st-black) !important; font-size: 16px; font-weight: 600; }
.st-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.st-socials a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--st-line); border-radius: 999px; color: var(--st-black) !important; font-weight: 600; text-decoration: none !important; }
.st-socials a:hover { border-color: var(--st-orange); }
.st-socials img { border-radius: 50%; }
.st-note { margin: 0; padding: 10px 14px; border-left: 4px solid var(--st-orange); background: #fff6ee; border-radius: 0 10px 10px 0; font-size: 14px; }
.st-contacts__map { min-height: 420px; border-radius: var(--st-radius); overflow: hidden; border: 1px solid var(--st-line); }
.st-contacts__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.st-find__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.st-find__row img { width: 100%; border-radius: var(--st-radius); }

.st-about-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--st-radius); margin-bottom: 20px; }
.st-about-text { max-width: 820px; margin-bottom: 20px; font-size: 16px; }
.st-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 10px 0 30px; }
.st-stat {
  padding: 16px 18px; background: #fff; border: 1px solid var(--st-line); border-top: 4px solid var(--st-orange);
  border-radius: var(--st-radius); box-shadow: var(--st-shadow);
}
.st-stat b { display: block; margin-bottom: 4px; color: var(--st-black); font-size: 30px; font-weight: 800; line-height: 1.1; }
.st-stat span { color: var(--st-text); font-size: 14px; }
.st-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.st-feature { padding: 16px 18px; background: #fff; border: 1px solid var(--st-line); border-top: 4px solid var(--st-orange); border-radius: var(--st-radius); box-shadow: var(--st-shadow); }
.st-feature h3 { margin: 0 0 6px; font-size: 17px !important; font-weight: 700 !important; color: var(--st-black) !important; }
.st-feature p { margin: 0; font-size: 14px; }
.st-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 30px; padding: 18px 20px; background: var(--st-soft); border-radius: var(--st-radius); }
.st-cta > div { flex: 1 1 260px; }
.st-cta b { display: block; font-size: 18px; color: var(--st-black); }
.st-cta span { color: var(--st-muted); }
.st-repair-master {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 22px; padding: 16px 20px; background: #fff; border: 1px solid var(--st-line);
  border-left: 5px solid var(--st-orange); border-radius: var(--st-radius); box-shadow: var(--st-shadow);
}
.st-repair-master b { display: block; font-size: 22px; color: var(--st-black); }
.st-repair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 28px; }
.st-repair-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--st-line); border-radius: var(--st-radius); box-shadow: var(--st-shadow);
}
.st-repair-card h3 { margin: 14px 14px 0; font-size: 16px !important; font-weight: 700 !important; text-align: center; color: var(--st-black) !important; }
.st-repair-card__img { height: 160px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.st-repair-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-repair-card__price { padding: 0 14px 12px; font-size: 14px; color: var(--st-text); }
.st-repair-card__price b { color: var(--st-orange); font-size: 20px; font-weight: 800; white-space: nowrap; }
.st-repair-card__price small { display: block; margin-top: 2px; color: #2a8a3a; font-weight: 700; font-size: 12px; }
.st-repair-card .st-card__more { align-self: flex-end; margin-top: auto; }
.st-terms-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.st-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: st-step; }
.st-steps li { position: relative; margin: 0 0 12px; padding: 4px 0 4px 48px; line-height: 1.55; counter-increment: st-step; }
.st-steps li::before {
  content: counter(st-step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--st-orange); color: #111;
  font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.st-list { margin: 0; padding-left: 20px; line-height: 1.7; }
.st-list li::marker { color: var(--st-orange); }
.st-terms-table th { width: 60%; }
.st-info .page-header h1 { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.2 !important; }
.st-doc .page-header h1 { font-size: 28px !important; }
.st-doc h2 { margin: 24px 0 10px; font-size: 19px !important; }
.st-doc p { margin: 0 0 10px; text-align: justify; }
.st-doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) {
  .st-contacts, .st-find__row, .st-features, .st-stats, .st-terms-key, .st-doc-parties { grid-template-columns: 1fr; }
}

/* ---------- Подвал: список подкатегорий ----------
   В исходной вёрстке список — колонки фиксированной высоты. Когда пунктов больше,
   колонки уходят вправо за край экрана. Делаем сетку, которая переносится по ширине. */
footer ._footer__row._category ._footer__row-col ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 2px 24px !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
}
/* Блок был вертикальным flex с переносом: в нём сетка считала высоту как для одной колонки (≈1700px пустоты). */
footer ._footer__row._category { display: block !important; }
footer ._footer__row._category,
footer ._footer__row._category ._footer__row-col { height: auto !important; min-height: 0 !important; }
/* Адрес и почта — одной колонкой справа от значка */
footer ._footer__info-adress > div { overflow: hidden; }
footer ._footer__info-adress > div a { display: inline-block; }
footer ._footer__row._category ._footer__row-col ul li,
footer ._footer__row._category ._footer__row-col ul li a {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0 !important;
  height: auto !important;
  line-height: 1.35 !important;
}
footer ._footer__row._category ._footer__row-col ul li {
  width: auto !important;
  max-width: none !important;
}

/* ---------- Телефон ---------- */
@media (max-width: 900px) {
  .st-product__top { grid-template-columns: 1fr; }
  .st-pricebox { position: static; }
  .st-product__info { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-related .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-card__img { height: 140px; padding: 10px; }
  .st-card__title { padding: 0 10px; font-size: 13px !important; }
  .st-card__specs { margin: 8px 10px 0; font-size: 11px; }
  .st-card__specs > div:nth-child(n+3) { display: none; }
  .st-card__specs > div:nth-child(2) { border-bottom: 1px solid #efefef; }
  .st-card__specs { min-height: calc(2 * (4px + 4px + 1.35em) + 1px); }
  .st-card__bottom { flex-direction: column; align-items: stretch; gap: 6px; }
  .st-card__price { padding: 0 10px; }
  .st-card__price b { font-size: 17px; }
  .st-card__more { align-self: flex-end; }
  .st-gallery__main { height: 300px; }
  .st-tabs__btn { padding: 8px 12px; font-size: 14px; }
  .price-page__head { flex-direction: column; }
  .price-back-btn { width: 100%; }
}
@media (max-width: 380px) {
  .st-cards { grid-template-columns: 1fr; }
}
