/**
 * Инфо-страницы /page/<slug>/: контент из SitePage.content_html + тема витрины.
 * Подключается из page_detail.html (после content_hub.css).
 */

/* --- Оболочка content-hub под industrial: убрать «белый остров» --- */
html.theme-bormash-industrial .main .content-hub .content-article {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow2);
}

html.theme-bormash-industrial .main .content-hub .content-article__title,
html.theme-bormash-industrial .main .content-hub .content-article__body {
  color: var(--text);
}

html.theme-bormash-industrial .main .content-hub .content-article__summary {
  color: var(--muted);
}

html.theme-bormash-industrial .main .content-hub .content-section {
  background: var(--panel);
  border-color: var(--line);
}

html.theme-bormash-industrial .main .content-hub .content-menu-chip {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

html.theme-bormash-industrial .main .content-hub .content-menu-chip:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

html.theme-bormash-industrial .main .content-hub .content-article__body a {
  color: var(--gold-bright);
}

html.theme-bormash-industrial .main .content-hub .content-article__body th,
html.theme-bormash-industrial .main .content-hub .content-article__body td {
  border-color: var(--line);
}

html.theme-bormash-industrial .main .content-hub .content-pill {
  background: rgba(214, 181, 90, 0.14);
  color: var(--gold-bright);
}

/* Отзывы и прочие экраны content-hub */
html.theme-bormash-industrial .main .content-hub .content-hero {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--panel) 92%, transparent),
    color-mix(in srgb, var(--bg) 88%, transparent)
  );
  border-color: var(--line);
  box-shadow: var(--shadow2);
}

html.theme-bormash-industrial .main .content-hub .content-hero__kicker {
  color: var(--gold-bright);
}

html.theme-bormash-industrial .main .content-hub .content-hero__title {
  color: var(--text);
}

html.theme-bormash-industrial .main .content-hub .content-hero__hint {
  color: var(--muted);
}

html.theme-bormash-industrial .main .content-hub .content-section__title {
  color: var(--text);
}

html.theme-bormash-industrial .main .content-hub .content-empty {
  background: var(--panel);
  border-color: var(--line);
  color: var(--muted);
}

html.theme-bormash-industrial .main .content-hub .content-review-card {
  background: var(--panel);
  border-color: var(--line);
}

html.theme-bormash-industrial .main .content-hub .content-review-card__product {
  color: var(--text);
}

html.theme-bormash-industrial .main .content-hub .content-review-card__product:hover {
  color: var(--gold-bright);
}

html.theme-bormash-industrial .main .content-hub .content-review-card__text {
  color: var(--muted);
}

html.theme-bormash-industrial .main .content-hub .content-review-card__foot {
  color: var(--muted);
}

/* --- Блок Tornadotool (разметка без инлайнов InSales) --- */
.content-article__body .cms-tt {
  max-width: 1100px;
  margin: 0 auto;
}

.content-article__body .cms-tt__h2 {
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--brand, #1a7f5a);
  display: table;
  margin-left: auto;
  margin-right: auto;
}

html.theme-bormash-industrial .content-article__body .cms-tt__h2 {
  border-bottom-color: var(--gold);
  color: var(--text);
}

.content-article__body .cms-tt__lead {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 28px;
  line-height: 1.55;
  color: var(--muted, #58635f);
}

html.theme-bormash-industrial .content-article__body .cms-tt__lead {
  color: var(--muted);
}

.content-article__body .cms-tt__band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  margin: 0 0 clamp(22px, 4vw, 36px);
}

.content-article__body .cms-tt__band--reverse {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.content-article__body .cms-tt__col--text {
  min-width: 0;
}

.content-article__body .cms-tt__h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand, #1a7f5a);
  display: table;
  color: inherit;
}

.content-article__body .cms-tt__h3--center {
  margin-left: auto;
  margin-right: auto;
}

.content-article__body .cms-tt__h3--spaced {
  margin-top: 8px;
}

html.theme-bormash-industrial .content-article__body .cms-tt__h3 {
  border-bottom-color: var(--gold);
  color: var(--text);
}

.content-article__body .cms-tt__list {
  margin: 0;
  padding-left: 1.25em;
  line-height: 1.58;
  color: var(--muted, #3d4a42);
}

html.theme-bormash-industrial .content-article__body .cms-tt__list {
  color: var(--muted);
}

.content-article__body .cms-tt__list--centered {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.content-article__body .cms-tt__list li + li {
  margin-top: 0.35em;
}

.content-article__body .cms-tt__col--media {
  text-align: center;
}

.content-article__body .cms-tt__img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(17, 34, 27, 0.12));
  background: rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.content-article__body .cms-tt__outro {
  text-align: center;
  font-weight: 700;
  margin: 24px 0 0;
  line-height: 1.45;
}

.content-article__body .cms-tt__brand {
  color: var(--brand, #1a7f5a);
  font-weight: 800;
}

html.theme-bormash-industrial .content-article__body .cms-tt__brand {
  color: var(--gold-bright);
}

@media (max-width: 720px) {
  .content-article__body .cms-tt__band,
  .content-article__body .cms-tt__band--reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-article__body .cms-tt__band--reverse .cms-tt__col--media {
    order: -1;
  }
}

/* Одна карточка: чипы «Вся библиотека / Блог / Новости» + тело страницы */
.content-hub--sitepage .content-section--sitepage {
  padding-top: 14px;
  padding-bottom: 16px;
}

.content-hub--sitepage .content-section--sitepage .content-menu-chipbar {
  margin-top: 0;
}

.content-hub--sitepage .content-article--sitepage {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 42, 31, 0.08);
}

html.theme-bormash-industrial .main .content-hub--sitepage .content-section--sitepage {
  padding-bottom: 12px;
}

html.theme-bormash-industrial .main .content-hub--sitepage .content-article--sitepage {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 6px;
  padding: 12px clamp(8px, 1.5vw, 14px) 4px;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
}

.content-article--sitepage .content-article__title {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.content-article--sitepage .content-article__summary {
  font-size: 0.92rem;
  margin-top: 6px;
}

/* Компактный лендинг Tornadotool внутри страницы */
.content-article__body .cms-tt__h2 {
  margin-bottom: 10px;
  padding-bottom: 6px;
  font-size: clamp(1rem, 2.4vw, 1.22rem);
}

.content-article__body .cms-tt__lead {
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.content-article__body .cms-tt__band {
  gap: 12px 18px;
  margin-bottom: 14px;
}

.content-article__body .cms-tt__img {
  max-height: min(300px, 42vw);
  border-radius: 8px;
}

.content-article__body .cms-tt__h3 {
  font-size: 0.92rem;
  margin-bottom: 8px;
  padding-bottom: 5px;
}

.content-article__body .cms-tt__list {
  font-size: 0.86rem;
  line-height: 1.45;
}

.content-article__body .cms-tt__list li + li {
  margin-top: 0.22em;
}

.content-article__body .cms-tt__outro {
  margin-top: 14px;
  font-size: 0.88rem;
}

/* Светлая industrial: полоса с «Вся библиотека» — без белой плашки на кремовом фоне */
html.theme-bormash-industrial[data-theme="light"] .main .content-hub--sitepage .content-section--sitepage {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 0 12px;
}

html.theme-bormash-industrial[data-theme="light"] .main .content-hub--sitepage .content-section--sitepage .content-menu-chip {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(22, 26, 28, 0.12);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(22, 26, 28, 0.06);
}

html.theme-bormash-industrial[data-theme="light"] .main .content-hub--sitepage .content-section--sitepage .content-menu-chip:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: rgba(214, 181, 90, 0.14);
}
