.th-col3,
.td-col3 {
  display: none;
}
section.doc {
  flex: 1;
  margin-bottom: 48px;
}
section.doc > aside {
  max-width: var(--max-width);
  margin: 0 auto;
}
section.doc > aside > .doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}
section.doc > aside > .doc-top > .doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
section.doc > aside > .doc-top > .doc-back:hover {
  color: var(--text-primary);
  text-decoration: none;
}
section.doc > aside > .doc-top > ul {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 1px 2px var(--card-shadow);
  flex-shrink: 0;
  cursor: pointer;
}
section.doc > aside > .doc-top > ul > li {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
section.doc > aside > .doc-top > ul > li.current {
  background: #1E2A26;
  color: #fff;
}
section.doc > aside > ul {
  width: 100%;
  padding: 0;
}
section.doc > aside > ul li {
  width: 100%;
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius);
  margin-bottom: 1px;
  transition-property: background-color, color;
  transition-duration: 250ms;
  cursor: pointer;
  border: 1px solid transparent;
}
section.doc > aside > ul li[data-method] {
  white-space: nowrap;
}
section.doc > aside > ul li:hover:not([data-id=""]) {
  background-color: #fff;
  border: 1px solid var(--border);
  color: var(--brand-dark);
}
section.doc > aside > ul li.current {
  background-color: #fff;
  border: 1px solid var(--border);
  color: var(--brand-dark);
  font-weight: 600;
}
section.doc > aside > ul.shrinked {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
section.doc > aside em {
  font-style: normal;
  color: var(--accent-purple);
}
section.doc .doc-eyebrow {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 12px;
}
section.doc .h3 {
  font-size: var(--font-large);
  text-align: left;
}
section.doc .h3:not(:first-child) {
  margin-top: 16px;
}
section.doc > div {
  grid-column: 2;
  grid-row: 2;
}
section.doc > div:not([data-id]) > * {
  display: block;
  padding-inline: 20px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  font-size: var(--font-base);
}
section.doc > div:not([data-id]) > [data-id] {
  padding-block: 16px 12px;
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
section.doc > div:not([data-id]) > *:has(+ [data-id]),
section.doc > div:not([data-id]) > :last-child {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
section.doc > div:not([data-id]) > ul,
section.doc > div:not([data-id]) > ol {
  padding-left: 40px;
  padding-block: 4px;
}
section.doc > div[data-id] {
  font-size: var(--font-base);
}
section.doc > div[data-id] .h3 {
  margin-bottom: 12px;
}
section.doc > div[data-id] .h3:first-child {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
section.doc > div[data-id] .h3 > em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--accent-primary);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-right: 12px;
}
section.doc > div[data-id] .h3 > strong {
  height: 28px;
  display: inline-block;
  vertical-align: bottom;
}
section.doc > div[data-id] .h4:not(.h4 ~ .h4) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-secondary);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
section.doc > div[data-id] .h4:not(.h4 ~ .h4) strong {
  color: var(--text-primary);
  font-weight: 600;
}
section.doc > div[data-id] .code,
section.doc > div[data-id] blockquote {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 13.5px;
}
section.doc > div[data-id] .code:not(:last-child),
section.doc > div[data-id] blockquote:not(:last-child) {
  margin-bottom: 12px;
}
section.doc > div[data-id] .code img.copy,
section.doc > div[data-id] blockquote img.copy {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
section.doc > div[data-id] .code .msg,
section.doc > div[data-id] blockquote .msg {
  position: absolute;
  top: 24px;
  left: 50%;
  color: var(--text-primary);
  background-color: hsl(from var(--color-telegram) h s 90%);
  padding: 8px 12px;
  line-height: 1;
  border-radius: var(--radius);
  text-align: center;
  animation: showhide 3s linear forwards;
}
section.doc > div[data-id] ul,
section.doc > div[data-id] ol {
  padding-left: 24px;
  padding-bottom: 2px;
}
section.doc > div[data-id] ul {
  list-style: none;
}
section.doc > div[data-id] ul > li {
  position: relative;
  padding-left: 22px;
  margin-top: 6px;
  line-height: 1.65;
}
section.doc > div[data-id] ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.55;
}
section.doc > div[data-id] p {
  padding-block: 4px;
}
section.doc > div[data-id] em {
  font-style: normal;
  color: var(--accent-purple);
}
section.doc > div[data-id] a {
  background-color: rgb(from var(--brand-dark) r g b / 8%);
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgb(from var(--brand-dark) r g b / 8%);
  transition-property: background-color, box-shadow;
  transition-duration: 150ms;
}
section.doc > div[data-id] a:hover {
  background-color: rgb(from var(--brand-dark) r g b / 12%);
  box-shadow: 0 0 0 3px rgb(from var(--brand-dark) r g b / 12%);
}
section.doc > div[data-id] table {
  font-size: var(--font-small);
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
section.doc > div[data-id] table thead {
  background-color: var(--bg-secondary);
}
section.doc > div[data-id] table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
section.doc > div[data-id] table td {
  padding: 6px 12px;
}
section.doc > div[data-id] table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
}
@keyframes showhide {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
  }
  7% {
    transform: translate(-50%, -50%) scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}
@media (max-width: 800px) {
  .th-col3 {
    display: inline;
  }
  section.doc > aside {
    overflow: hidden;
  }
  section.doc > aside > .doc-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 28px;
  }
  section.doc > aside > .doc-top > ul {
    width: 100%;
    overflow-x: auto;
  }
  section.doc > aside > .doc-top > ul > li {
    padding: 7px 12px;
    font-size: 12px;
    flex: 1;
    justify-content: center;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    text-align: center;
  }
  section.doc > div[data-id] .h3:first-child {
    font-size: 32px;
    letter-spacing: -0.4px;
  }
  section.doc > div[data-id] .h4:not(.h4 ~ .h4) {
    display: block;
  }
  section.doc > div[data-id] table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  section.doc > div[data-id] table th {
    font-size: var(--font-mini);
  }
  section.doc > div[data-id] table:has(thead th:nth-child(4)) {
    display: table;
    overflow-x: visible;
    width: 100%;
    table-layout: fixed;
  }
  section.doc > div[data-id] table:has(thead th:nth-child(4)) th:nth-child(3),
  section.doc > div[data-id] table:has(thead th:nth-child(4)) td:nth-child(3) {
    display: none;
  }
  section.doc > div[data-id] table:has(thead th:nth-child(4)) td:nth-child(4),
  section.doc > div[data-id] table:has(thead th:nth-child(4)) th:nth-child(4) {
    text-align: left;
    word-break: break-word;
    white-space: normal;
  }
  section.doc > div[data-id] table:has(thead th:nth-child(4)) td:nth-child(4) .td-col3 {
    display: block;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }
  section.doc > div[data-id] table:has(thead th:nth-child(4)) th:nth-child(4) .th-col3 {
    display: block;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }
}
@media (max-width: 1060px) {
  section.doc {
    grid-template-columns: 100%;
    grid-template-rows: auto 1fr;
  }
  section.doc aside {
    grid-row: 1;
    position: static;
  }
  section.doc aside > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    padding: 12px 8px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  section.doc aside > ul > [data-id=""] {
    grid-column: -1;
    text-align: center;
  }
  section.doc aside .shrinked {
    display: none;
  }
  section.doc > div {
    grid-column: 1;
  }
}
