:root {
  --guide-bg: #f5f7fb;
  --guide-surface: #ffffff;
  --guide-soft: #eef4ff;
  --guide-ink: #142033;
  --guide-muted: #5f6f86;
  --guide-line: #dce4ef;
  --guide-blue: #2768ed;
  --guide-blue-dark: #174fc8;
  --guide-pink: #f04473;
  --guide-yellow: #f5c400;
  --guide-green: #12805c;
  --guide-shadow: 0 22px 60px rgba(28, 43, 70, 0.1);
  --guide-radius: 26px;
  --guide-font: 'Nunito', 'Avenir Next', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 5% 0%, rgba(39, 104, 237, 0.1), transparent 28rem),
    radial-gradient(circle at 95% 7%, rgba(240, 68, 115, 0.08), transparent 25rem),
    var(--guide-bg);
  color: var(--guide-ink);
  font-family: var(--guide-font);
  line-height: 1.58;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.docs-skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--guide-ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.docs-skip-link:focus {
  transform: translateY(0);
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(220, 228, 239, 0.88);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.docs-topbar-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--guide-ink);
  text-decoration: none;
}

.docs-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.docs-brand strong,
.docs-brand span {
  display: block;
}

.docs-brand strong {
  font-size: 1rem;
}

.docs-brand span {
  color: var(--guide-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.docs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.docs-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  background: var(--guide-surface);
  color: var(--guide-ink);
  font-weight: 800;
  text-decoration: none;
}

.docs-button.primary {
  border-color: var(--guide-blue);
  background: var(--guide-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(39, 104, 237, 0.24);
}

.docs-button:hover {
  border-color: var(--guide-blue);
  color: var(--guide-blue);
}

.docs-button.primary:hover {
  background: var(--guide-blue-dark);
  color: #fff;
}

.docs-button:focus-visible,
.docs-toc a:focus-visible,
.docs-faq summary:focus-visible {
  outline: 3px solid var(--guide-yellow);
  outline-offset: 3px;
}

.docs-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.docs-hero-copy,
.docs-hero-card {
  border: 1px solid var(--guide-line);
  border-radius: 32px;
  background: var(--guide-surface);
  box-shadow: var(--guide-shadow);
}

.docs-hero-copy {
  padding: clamp(30px, 5vw, 66px);
  overflow: hidden;
  position: relative;
}

.docs-hero-copy::after {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  right: -75px;
  top: -85px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(39, 104, 237, 0.18), rgba(240, 68, 115, 0.16));
}

.docs-kicker {
  margin-bottom: 12px;
  color: var(--guide-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5.5vw, 4.8rem);
}

.docs-hero-lead {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--guide-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-hero-card {
  padding: 26px;
  color: #fff;
  background: linear-gradient(145deg, #15213a, #233861);
}

.docs-hero-card h2 {
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.docs-hero-card ol {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-hero-card li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
}

.docs-hero-card li span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffe26d;
  font-weight: 900;
}

.docs-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(28, 43, 70, 0.07);
}

.docs-toc strong {
  display: block;
  margin-bottom: 9px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-toc a {
  display: block;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--guide-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.docs-toc a:hover {
  background: var(--guide-soft);
  color: var(--guide-blue);
}

.docs-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.docs-section {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius);
  background: var(--guide-surface);
  box-shadow: 0 16px 42px rgba(28, 43, 70, 0.065);
}

.docs-section > :last-child {
  margin-bottom: 0;
}

.docs-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3.3vw, 2.5rem);
}

.docs-section h3 {
  margin-top: 30px;
  margin-bottom: 9px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.docs-section h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.docs-intro {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--guide-muted);
  font-size: 1.04rem;
}

.docs-note,
.docs-warning,
.docs-success {
  margin: 18px 0;
  padding: 15px 17px;
  border-radius: 16px;
  border: 1px solid rgba(39, 104, 237, 0.18);
  background: var(--guide-soft);
}

.docs-warning {
  border-color: rgba(240, 68, 115, 0.2);
  background: #fff1f5;
}

.docs-success {
  border-color: rgba(18, 128, 92, 0.2);
  background: #ecfbf5;
}

.docs-note strong,
.docs-warning strong,
.docs-success strong {
  display: block;
  margin-bottom: 3px;
}

.docs-grid,
.docs-tab-grid,
.docs-file-grid,
.docs-check-grid {
  display: grid;
  gap: 12px;
}

.docs-check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-tab-grid,
.docs-file-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-card,
.docs-tab-card,
.docs-file-card {
  padding: 17px;
  border: 1px solid var(--guide-line);
  border-radius: 18px;
  background: #fbfcff;
}

.docs-card p,
.docs-tab-card p,
.docs-file-card p {
  margin-bottom: 0;
  color: var(--guide-muted);
  font-size: 0.92rem;
}

.docs-tab-card span,
.docs-step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 11px;
  background: var(--guide-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.docs-steps {
  display: grid;
  gap: 18px;
  margin: 20px 0;
}

.docs-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.docs-step-number {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--guide-blue), #6f54df);
  font-size: 0.95rem;
}

.docs-step p,
.docs-step ul {
  color: var(--guide-muted);
}

.docs-step p:last-child,
.docs-step ul:last-child {
  margin-bottom: 0;
}

.docs-step ul,
.docs-clean-list {
  margin-top: 8px;
  padding-left: 20px;
}

.docs-step li,
.docs-clean-list li {
  margin: 4px 0;
}

.docs-shot {
  margin: 22px 0 8px;
}

.docs-shot img {
  width: 100%;
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(28, 43, 70, 0.12);
}

.docs-shot figcaption {
  margin-top: 9px;
  color: var(--guide-muted);
  font-size: 0.83rem;
  text-align: center;
}

.docs-shot.poster-shot {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.docs-shot.poster-shot img {
  border-radius: 26px;
}

.docs-side-by-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.docs-side-by-side .docs-shot {
  margin-top: 12px;
}

.docs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--guide-line);
  border-radius: 18px;
}

.docs-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--guide-line);
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: var(--guide-soft);
  color: var(--guide-ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-table td:first-child {
  color: var(--guide-ink);
  font-weight: 800;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-faq {
  display: grid;
  gap: 9px;
}

.docs-faq details {
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: #fbfcff;
}

.docs-faq summary {
  padding: 15px 17px;
  color: var(--guide-ink);
  font-weight: 900;
  cursor: pointer;
}

.docs-faq details > div {
  padding: 0 17px 17px;
  color: var(--guide-muted);
}

.docs-faq details p:last-child,
.docs-faq details ul:last-child {
  margin-bottom: 0;
}

.docs-footer {
  padding: 30px 16px 50px;
  color: var(--guide-muted);
  text-align: center;
}

.docs-footer a {
  color: var(--guide-blue);
  font-weight: 800;
}

@media (max-width: 980px) {
  .docs-hero,
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .docs-toc strong {
    grid-column: 1 / -1;
  }

  .docs-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 76px;
  }

  .docs-topbar-inner,
  .docs-hero,
  .docs-shell {
    width: min(100% - 20px, 1240px);
  }

  .docs-topbar-inner {
    min-height: 64px;
  }

  .docs-brand span,
  .docs-topbar-actions .docs-button:not(.primary) {
    display: none;
  }

  .docs-brand img {
    width: 38px;
    height: 38px;
  }

  .docs-topbar-actions .docs-button {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  .docs-hero {
    margin-top: 16px;
  }

  .docs-hero-copy,
  .docs-hero-card,
  .docs-section {
    border-radius: 22px;
  }

  .docs-hero-copy,
  .docs-hero-card,
  .docs-section {
    padding: 22px;
  }

  .docs-hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.4rem);
  }

  .docs-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-check-grid,
  .docs-tab-grid,
  .docs-file-grid,
  .docs-side-by-side {
    grid-template-columns: 1fr;
  }

  .docs-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
  }

  .docs-step-number {
    width: 36px;
    height: 36px;
  }

  .docs-shot img {
    border-radius: 14px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .docs-topbar,
  .docs-toc,
  .docs-hero-actions {
    display: none;
  }

  .docs-hero,
  .docs-shell {
    width: 100%;
    display: block;
  }

  .docs-hero-copy,
  .docs-hero-card,
  .docs-section {
    box-shadow: none;
    break-inside: avoid;
  }

  .docs-section {
    margin: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
