
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  background: var(--bg);
  color: var(--text);
}

.sh-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* header */
.sh-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.sh-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sh-logo-box {
  flex: 0 0 auto;
}

.sh-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: #222;
}

.sh-title-box {
  flex: 1 1 auto;
  text-align: center;
}

.sh-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--title-gold);
}

.sh-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.sh-controls-box {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* nav */
.sh-main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sh-main-nav a {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.sh-main-nav a:hover {
  text-decoration: underline;
}

.sh-main-nav a.sh-active {
  border-color: var(--title-gold);
}

/* theme toggle + lang */
.sh-switchers {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
}

.theme-toggle input {
  display: none;
}

.theme-track {
  width: 40px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  position: relative;
}

.theme-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--title-gold);
  position: absolute;
  top: 1px;
  left: 1px;
  transition: transform 0.15s ease;
}

/* content layout */
.sh-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px 22px;
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  gap: 18px;
  flex: 1 1 auto;
}

.sh-main-content {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 12px 14px;
}

.sh-main-content h2 {
  margin-top: 0;
}

.sh-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sh-sidebar-block {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 10px 12px;
}

.sh-sidebar-block h3 {
  margin-top: 0;
}

.sh-list,
.sh-news-list,
.sh-history-list,
.sh-catalog-list,
.sh-journals-list,
.sh-reference-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-list li,
.sh-news-list li,
.sh-history-list li,
.sh-catalog-list li,
.sh-journals-list li,
.sh-reference-list li {
  margin-bottom: 8px;
}

.sh-news-meta,
.sh-text-muted {
  font-size: 13px;
  color: var(--muted);
}

.sh-ad-placeholder {
  min-height: 120px;
  border-radius: 6px;
  border: 1px dashed var(--border-soft);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 10px;
}

/* footer */
.sh-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px 10px;
}

/* links */
a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

/* responsive */
@media (max-width: 900px) {
  .sh-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .sh-controls-box {
    align-items: center;
  }
  .sh-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
.promo-img {
  display: flex;
  justify-content: center;   /* центрируем */
  align-items: center;
  overflow: hidden;           /* чтобы не вылазила */
}

.promo-img img {
  max-width: 100%;            /* не шире бокса */
  height: auto;
  display: block;
  border-radius: 6px;          /* по желанию */
}
