
:root {
  --font-main: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace;
  --bg-color: #ffffff;
  --text-color: #24292f;
  --link-color: #0969da;
  --code-bg: #f6f8fa;
  --border-color: #d0d7de;
}



body {
  font-family: var(--font-main);
  line-height: 1.6;
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--bg-color);
  max-width: 800px; 
  margin: 40px auto;
  padding: 0 20px;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-sans);
    margin-top: 0;
    margin-bottom: 1rem
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.35;
    font-family: var(--font-sans);
    margin-top: 2rem;
    margin-bottom: 1rem
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-sans);
    margin-top: 1.75rem;
    margin-bottom: .75rem
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-sans);
    margin-top: 1.5rem;
    margin-bottom: .5rem
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.45;
    font-family: var(--font-sans);
    margin-top: 1.25rem;
    margin-bottom: .5rem
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    font-family: var(--font-sans);
    margin-top: 1rem;
    margin-bottom: .5rem
}

p {
    font-family: var(--font-sans);
    margin-top: 0;
    margin-bottom: 1rem
}

a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: underline;
    transition: color .2s
}

a:hover {
    color:#1d4ed8;
    text-decoration: underline
}

img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    margin-bottom: 1rem
}

a img {
    vertical-align: middle;
    display: inline-block
}

ul,ol {
    color: #374151;
    list-style: initial;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
    list-style-position: outside
}

ul {
    list-style-type: disc
}

ol {
    list-style-type: decimal
}

li {
    margin-bottom: .5rem;
    padding-left: .25rem;
    display: list-item
}

ul ul,ol ol,ul ol,ol ul {
    margin-top: .5rem;
    margin-bottom: .5rem;
    margin-left: 1rem
}

ul ul {
    list-style-type: circle
}

ul ul ul {
    list-style-type: square
}

input[type=checkbox] {
    border-radius: .25rem;
    margin-right: .5rem
}

hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    height: 0;
    margin: 1.5rem 0;
    display: block
}

blockquote {
  color: #4b5563;
  border-left: 4px solid #d1d5db;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  font-style: italic;
  margin-left: 0;
  margin-right: 0;
}

/* Код и блоки кода */
code {
  font-family: var(--font-mono);
  background-color: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  font-size: 85%;
}

pre {
  font-family: var(--font-mono);
  background-color: var(--code-bg);
  padding: 16px;
  overflow: auto;
  border-radius: 6px;
  line-height: 1.45;
  font-size: 95%;
}

pre code {
  background-color: transparent;
  padding: 0;
  font-size: 100%;
}

code:not(pre code) {
    border: 1px solid #ccc;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: .875rem
}

thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef
}

th {
    text-align: left;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 12px 16px;
    font-weight: 600
}

td {
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 10px 16px
}

tbody tr: nth-child(2n) {
    background-color:#f9fafb
}

tbody tr: hover {
    background-color:#f3f4f6
}

th: first-child,td:first-child {
    border-left:1px solid #d1d5db
}

th: last-child,td:last-child {
    border-right:1px solid #d1d5db
}

.code-block {
    color: #d4d4d4;
    font-size: .875rem;
    font-family: var(--font-mono);
    border-radius: .5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    position: relative;
    overflow-x: auto;
    background-color: #282c34!important
}
