/* Единый раздел документации (#/docs) */
.docs-hub {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px 48px;
}
.docs-hub__title {
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold, #c9b070);
  margin: 0 0 20px;
}
.docs-hub__layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .docs-hub__layout {
    grid-template-columns: 1fr;
  }
}
.docs-hub__sidebar {
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  max-height: min(78vh, 720px);
  overflow: auto;
  position: sticky;
  top: 12px;
}
@media (max-width: 900px) {
  .docs-hub__sidebar {
    position: static;
    max-height: none;
  }
}
.docs-hub__show-all {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #fff);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
}
.docs-hub__show-all:hover {
  background: rgba(255, 255, 255, 0.08);
}
.docs-hub__nav {
  padding: 8px 0 12px;
}
.docs-hub__doc {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.docs-hub__doc:last-child {
  border-bottom: 0;
}
.docs-hub__doc-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.docs-hub__doc-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}
.docs-hub__doc.is-active > .docs-hub__doc-btn {
  color: var(--gold, #c9b070);
}
.docs-hub__doc-chevron {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  opacity: 0.65;
  flex-shrink: 0;
}
.docs-hub__doc.is-expanded .docs-hub__doc-chevron {
  transform: rotate(45deg);
}
.docs-hub__sections {
  display: none;
  padding: 0 0 6px 8px;
}
.docs-hub__doc.is-expanded .docs-hub__sections {
  display: block;
}
.docs-hub__section-btn,
.docs-hub__sub-btn {
  display: block;
  width: 100%;
  padding: 7px 14px 7px 22px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
}
.docs-hub__section-btn:hover,
.docs-hub__sub-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.docs-hub__section-btn.is-active,
.docs-hub__sub-btn.is-active {
  color: var(--gold, #c9b070);
  font-weight: 600;
}
.docs-hub__sub-btn {
  padding-left: 34px;
  font-size: 0.74rem;
}
.docs-hub__main {
  min-width: 0;
}
.docs-hub__doc-heading,
.docs-hub__section-heading {
  scroll-margin-top: calc(var(--header-stack-offset, var(--header-h, 72px)) + 20px);
}
/* Прокрутка .casino-main: контент документации не заезжает под фиксированную шапку */
#casinoMain:has(.docs-hub) {
  scroll-padding-top: calc(var(--header-stack-offset, var(--header-h, 72px)) + 12px);
}
.docs-hub__doc-heading {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}
.docs-hub__section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.95);
}
.docs-hub__intro {
  margin-bottom: 18px;
}
.docs-hub__intro .cms-policy-lead {
  font-size: 1.2rem;
}
.docs-hub__body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
.docs-hub__body p {
  margin: 0 0 0.75em;
}
.docs-hub__placeholder {
  padding: 32px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}
.docs-hub__accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.docs-hub__accordion .cms-policy-item[open] {
  border-color: rgba(201, 176, 112, 0.4);
}
.docs-hub--loading {
  opacity: 0.7;
  pointer-events: none;
}
