/* Documentation hub (/dokumentaciya/) */

.docs-hub-page .docs-hub-intro {
  max-width: 62ch;
  margin-top: calc(1lh + var(--space-4));
}

.docs-hub-page .docs-hub-intro .lede {
  max-width: none;
  margin: 0;
}

.docs-hub-page .docs-hub-intro .lede + .lede {
  margin-top: 1em;
}

/* Documentation articles (/dokumentaciya/*/) */

.docs-article-page .news-body .help-h2 {
  margin: 1.15em 0 0.45em;
}

.docs-article-page .news-body .help-h2:first-child {
  margin-top: 0;
}

.docs-article-page .news-body .help-h3 {
  margin: 0.85em 0 0.35em;
}

.docs-article-page .news-body p.reveal,
.docs-article-page .news-body ul.reveal,
.docs-article-page .news-body ol.reveal {
  margin-bottom: 0.75em;
}

.docs-article-page .news-body .table-scroll,
.docs-article-page .news-body .docs-copy-quote {
  margin-bottom: 0.85em;
}

.docs-article-page .news-back a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-article-page .news-back a:hover {
  color: var(--accent);
}

.docs-legal-disclaimer {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line, #e8e0d4);
  border-radius: 10px;
  background: color-mix(in srgb, var(--sand-50, #f7f3eb) 70%, transparent);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.docs-legal-disclaimer p {
  margin: 0 0 0.65em;
}

.docs-legal-disclaimer p:last-child {
  margin-bottom: 0;
}

.docs-legal-disclaimer strong,
.docs-services-note strong {
  color: var(--ink);
}

.docs-services-note {
  margin: 1rem 0 1.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line, #e8e0d4);
  border-radius: 10px;
  background: color-mix(in srgb, var(--sand-50, #f7f3eb) 70%, transparent);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.docs-services-note p {
  margin: 0 0 0.65em;
}

.docs-services-note p:last-child {
  margin-bottom: 0;
}

.docs-copy-quote {
  margin: 0 0 0.85em;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--sand-50, #f7f3eb);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.docs-copy-quote p {
  margin: 0;
}

.docs-article-page .news-body table {
  width: 100%;
  min-width: 520px;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0.85rem 0 1rem;
  font-size: 14.5px;
  line-height: 1.45;
}

.docs-article-page .news-body th,
.docs-article-page .news-body td {
  border: 1px solid var(--line, #e8e0d4);
  padding: 0.65rem 0.85rem;
  vertical-align: top;
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
}

.docs-article-page .news-body th:first-child,
.docs-article-page .news-body td:first-child {
  width: 28%;
  min-width: 7.5rem;
}

.docs-article-page .news-body table:has(thead th:nth-child(3)) th:nth-child(1),
.docs-article-page .news-body table:has(thead th:nth-child(3)) td:nth-child(1) {
  width: 24%;
}

.docs-article-page .news-body table:has(thead th:nth-child(3)) th:nth-child(2),
.docs-article-page .news-body table:has(thead th:nth-child(3)) td:nth-child(2) {
  width: 16%;
}

.docs-article-page .news-body table.docs-table-recommendations {
  min-width: 680px;
  table-layout: fixed;
}

.docs-article-page .news-body table.docs-table-recommendations th:nth-child(1),
.docs-article-page .news-body table.docs-table-recommendations td:nth-child(1) {
  width: 26%;
  min-width: 9rem;
}

.docs-article-page .news-body table.docs-table-recommendations th:nth-child(2),
.docs-article-page .news-body table.docs-table-recommendations td:nth-child(2) {
  width: 18%;
  min-width: 7rem;
}

.docs-article-page .news-body table.docs-table-recommendations th:nth-child(3),
.docs-article-page .news-body table.docs-table-recommendations td:nth-child(3) {
  width: 56%;
  min-width: 16rem;
}

.docs-article-page .news-body table.docs-table-recommendations:not(:has(thead th:nth-child(3))) th:nth-child(2),
.docs-article-page .news-body table.docs-table-recommendations:not(:has(thead th:nth-child(3))) td:nth-child(2) {
  width: 74%;
  min-width: 14rem;
}

.docs-article-page .news-body th {
  background: var(--sand-50, #f7f3eb);
  font-weight: 700;
  color: var(--ink);
}

.docs-article-page .news-body .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.85rem 0 1rem;
}

.docs-article-page .news-body .table-scroll table {
  margin: 0;
}

.docs-aside-docs {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line, #e8e0d4);
}

.docs-aside-docs h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.docs-aside-docs ol {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-aside-docs a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.docs-aside-docs a:hover,
.docs-aside-docs a[aria-current="page"] {
  color: var(--accent);
}

.docs-aside-docs a[aria-current="page"] {
  font-weight: 700;
}

.docs-provider-block {
  margin-top: 1rem;
  padding-top: 0;
}

.docs-provider-block:first-of-type {
  margin-top: 0;
}

.docs-provider-block .help-h3 {
  margin: 0 0 0.35em;
}

.docs-provider-block p {
  margin: 0 0 0.65em;
}

.docs-provider-block .table-scroll {
  margin: 0.5rem 0 0.75rem;
}
