/* Убираем левый сайдбар */
.bs-sidebar,
.col-md-3 {
  display: none !important;
}

/* Нормальная ширина страницы */
.col-md-9,
.col-md-12,
.container,
.container-fluid,
main,
.content,
article {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  float: none !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box !important;
}

/* Общий масштаб */
html {
  font-size: 15px !important;
}

body {
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #111 !important;
}

/* Заголовки */
h1 {
  font-size: 1.8rem !important;
  line-height: 1.15 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.7rem !important;
}

h2 {
  font-size: 1.45rem !important;
  line-height: 1.2 !important;
  margin-top: 0.9rem !important;
  margin-bottom: 0.6rem !important;
}

h3 {
  font-size: 1.2rem !important;
  line-height: 1.25 !important;
  margin-top: 0.8rem !important;
  margin-bottom: 0.5rem !important;
}

/* Текст */
p,
li,
td,
th {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

ul,
ol {
  padding-left: 1.25rem !important;
  margin-bottom: 0.7rem !important;
}

p {
  margin-bottom: 0.7rem !important;
}

/* Inline code без чёрных плашек */
p code,
li code,
td code,
th code,
a code {
  background: transparent !important;
  color: #111 !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 0.95em !important;
}

/* Убираем лишние псевдоэлементы */
code::before,
code::after,
pre::before,
pre::after,
.highlight::before,
.highlight::after {
  content: none !important;
  display: none !important;
}

/* Общая рамка блока кода */
pre,
.highlight,
.highlight pre {
  background: #ffffff !important;
  color: #111 !important;
  border: 1px solid #222 !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  margin: 0.8rem 0 !important;
  box-shadow: none !important;
  overflow-x: auto !important;
  white-space: pre !important;
}

/* Код внутри блока */
pre code,
.highlight code,
.highlight pre code {
  display: block !important;
  background: transparent !important;
  color: #111 !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* Убираем мусор от подсветки */
pre span,
code span,
.highlight span,
.highlight td,
.highlight tr {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}