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

:root {
    --accent: #00b6ff;
    --accent2: #ff007a;
    --accent3: #864cff;
    --bg-1: #050c1a;
    --bg-2: #080f28;
    --tx-1: #d1d5e6;
    --tx-2: #9aa3d4;
    --radius: 0.5rem;
    --ease: 0.4s cubic-bezier(.4,0,.2,1);
    --duration: 0.3s;
    --tx-primary: #eee;
    --tx-secondary: #bbb;
    font-family: "Space Grotesk", sans-serif;
    color-scheme: dark;
}

*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-1);
    color: var(--tx-1);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.desktop-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    margin-top: 10px;
}

.brand-block,
.nav-block {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
    padding: 0 4.83rem;
    backdrop-filter: blur(10px) saturate(100%);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
}

.brand-block { border-radius: var(--radius) 0 0 var(--radius); }
.nav-block    { border-radius: 0 var(--radius) var(--radius) 0; }

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.brand img {
    width: 31px;
    height: 31px;
    filter: brightness(0) invert(80%) drop-shadow(0 0 5px rgba(232,237,255,0.35));
    transition: transform var(--ease);
}

.brand:hover img {
    transform: scale(1.06) rotate(6deg);
}

.brand span {
    background: var(--tx-1);
    -webkit-background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: brandGradient 8s ease infinite;
}

@keyframes brandGradient {
    50% { background-position: 100% 0; }
}

.nav-block a {
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--tx-1);
}

.nav-block a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--tx-1);
    transition: width var(--ease);
}

.nav-block a:hover::after {
    width: 100%;
}

.nav-block a.nav-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--ease);
}

.nav-block a.nav-github:hover {
    color: #f97316;
}

.mobile-header,
.mobile-menu,
#menuOverlay {
    display: none;
}

@media (max-width: 768px) {
    .desktop-header { display: none; }

    .mobile-header {
        display: flex;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 58px;
        background: var(--bg-2);
        backdrop-filter: blur(10px) saturate(100%);
        border: 1px solid rgba(255,255,255,0.07);
        box-shadow: 0 4px 18px rgba(0,0,0,0.28);
        align-items: center;
        justify-content: flex-end;
        padding: 0 1rem;
        z-index: 100;
    }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px;
        cursor: pointer;
        z-index: 101;
    }

    .burger div {
        width: 24px;
        height: 3px;
        background: var(--tx-1);
        transition: transform var(--ease), opacity var(--ease);
    }

    .burger.open div:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .burger.open div:nth-child(2) { opacity: 0; }
    .burger.open div:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0; left: 0;
        width: 75%; max-width: 220px; height: 100vh;
        background: var(--bg-2);
        backdrop-filter: blur(10px) saturate(100%);
        border: 1px solid rgba(255,255,255,0.07);
        box-shadow: 0 4px 18px rgba(0,0,0,0.28);
        padding: 5rem 2rem 2rem;
        transform: translateX(-100%);
        transition: transform var(--ease);
        flex-direction: column;
        gap: 1.4rem;
        z-index: 100;
    }
    .mobile-menu.open { transform: translateX(0); }

    .mobile-menu a {
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--tx-1);
        position: relative;
    }
    .mobile-menu a::after {
        content: '';
        position: absolute;
        left: 0; bottom: -6px;
        height: 2px; width: 0;
        background: var(--tx-1);
        transition: width var(--ease);
    }
    .mobile-menu a:hover::after { width: 100%; }

    #menuOverlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 99;
        background: transparent;
    }
}

.btn {
    padding: .75rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    transition: transform var(--ease), box-shadow var(--ease);
}
.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--tx-1);
    color: var(--bg-1);
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.3) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
}
.btn-primary:hover {
    transform: scale(1.005);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.btn-primary:hover::before {
    animation: shimmer var(--duration) ease-out forwards;
}
@keyframes shimmer { to { left: 125%; } }

.btn-ghost {
    background: none;
    color: var(--tx-1);
}

.docs-content {
    padding: 110px 1rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.docs-frame {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px) saturate(100%);
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
}

.frame {
    background: #1A1F2A;
    border-radius: var(--radius);
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}
.frame pre,
.frame code {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    color: var(--tx-1);
    white-space: pre-wrap;
}

.docs-frame h1,
.docs-frame h2,
.docs-frame h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}
.docs-frame h2 { font-size: 1.5rem; }
.docs-frame h3 { font-size: 1.2rem; }

.docs-frame ul,
.docs-frame ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.docs-frame li {
    margin-bottom: 0.5rem;
    color: var(--tx-2);
}

.docs-frame a {
    color: var(--accent2);
    text-decoration: underline;
}
.docs-frame a:hover {
    color: var(--accent3);
}

.footer {
    padding: 0px 0;
    background: rgba(255,255,255,0.015);
    backdrop-filter: blur(5px);
}
.footer-frame {
    max-width: 1030px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 30px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--tx-1);
    font-size: 1.1rem;
}

.footer-logo {
    width: 120px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(80%) drop-shadow(0 0 5px rgba(232,237,255,0.35));
    transition: transform var(--ease);
}

.footer-col p {
    color: var(--tx-2);
    font-size: .9rem;
}

.footer-list {
    list-style: none;
    margin: 0; padding: 0;
}
.footer-list li {
    padding: .5rem 0;
}
.footer-list li:not(:last-child) {
    border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.nav-col .footer-list li a {
    color: var(--tx-2);
    transition: color var(--duration);
}
.nav-col .footer-list li a:hover {
    color: var(--accent);
}
.comm-col .footer-list li a {
    display: flex;
    align-items: center;
    color: var(--tx-2);
    transition: color var(--duration);
}
.comm-col .footer-list li a i {
    margin-right: .5rem;
    color: #fff;
    font-size: 1rem;
}
.comm-col .footer-list li a:hover {
    color: var(--tx-1);
}

.footer-bars {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 20px;
}
.footer-bars .bar {
    width: 60px; height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    backdrop-filter: blur(2px);
}
.footer-bars .bar:nth-child(2),
.footer-bars .bar:nth-child(3) {
    width: 40px; height: 2px;
}

@media (max-width: 768px) {
    .footer-frame {
        grid-template-columns: 1fr;
    }
}

.faq-section {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
}

.faq-inner {
    position: relative;
    z-index: 5;
    max-width: 1062px;
    margin: 0 auto;
    padding: 3rem 1rem;
    box-sizing: border-box;
}

.faq-title {
    text-align: left;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.8rem;
}

.faq-title .gradient {
    background: linear-gradient(
        90deg,
        var(--accent),
        #ff007a,
        #864cff
    );
    -webkit-background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
    50% { background-position: 100% 0; }
}

.faq-search {
    position: relative;
    max-width: 450px;
    margin: 0.5rem 0 1rem auto;
}

.faq-search input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.15);
    padding: 0.75rem 5.5rem 0.75rem 1rem;
    border-radius: 18px;
    background: var(--bg-card);
    color: var(--tx-primary);
    transition: border-color var(--duration);
    font-family: inherit;
    font-size: 1rem;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--accent);
}

.faq-search-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--duration), box-shadow var(--duration), border-color var(--duration);
    padding: 0;
}

#faqSearchBtn {
    right: 0.5rem;
}

.faq-search-btn:hover {
    background: rgba(255,255,255,0.04);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: var(--accent);
}

.faq-search-btn .fas {
    font-size: 1.2rem;
    color: var(--tx-secondary);
}

#faqSearch::-webkit-search-decoration,
#faqSearch::-webkit-search-cancel-button,
#faqSearch::-webkit-search-results-button,
#faqSearch::-webkit-search-results-decoration {
    display: none;
}

#faqSearch::-ms-clear,
#faqSearch::-ms-reveal {
    display: none;
}

.no-results {
    text-align: center;
    margin: 1rem 0;
    font-style: italic;
    color: var(--tx-secondary);
    opacity: 0;
    transition: opacity var(--duration);
}

.no-results.show {
    opacity: 1;
}

.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 1rem;
    list-style: none;
    margin: 1.5rem 0 1.1rem;
}

.faq-categories li {
    background: rgba(11,18,48,0.20);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: calc(var(--radius) * 1.4);
    box-shadow: 0 4px 30px rgba(0,0,0,.20);
    backdrop-filter: blur(22px);
    padding: 1.3rem;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: background var(--duration), box-shadow var(--duration);
}

.faq-categories li.active,
.faq-categories li:hover {
    background: rgba(0,182,255,0.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.faq-categories.no-highlight li.active,
.faq-categories.no-highlight li:hover {
    background: rgba(11,18,48,0.20);
    box-shadow: none !important;
}

.faq-categories li i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}
.faq-categories li p {
    font-weight: 600;
}

.faq-items {
    opacity: 1;
}
.faq-items.fade-out {
    opacity: 0;
    transition: opacity var(--duration);
}
.faq-items.fade-in {
    opacity: 1;
    transition: opacity var(--duration);
}

.faq-item {
    background: rgba(255,255,255,.035);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow var(--duration);
}
.faq-question, .faq-answer {
    border-bottom: 1px solid var(--border);
}
.faq-answer {
    border-top: none;
}

.faq-item.open {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
}
.faq-question h4 {
    font-size: 1rem;
    font-weight: 600;
}
.faq-question i {
    transition: transform var(--duration);
}

.faq-answer {
    max-height: 0;
    padding: 0 1rem;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--duration), opacity var(--duration);
    color: var(--tx-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1rem 1rem;
    opacity: 1;
}
.faq-item.open .faq-question i {
    transform: rotate(90deg);
}

.faq-item.highlight {
    background-color: #69308a;
    transition: background-color 0.7s;
}

.faq-items-frame {
    position: relative;
    background: rgba(11,18,48,0.20);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
    backdrop-filter: blur(10px) saturate(100%);
    padding: 2rem;
    overflow: hidden;
    z-index: 1;
}

.faq-items-frame .grid-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.92;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.02) 0,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,0.02) 0,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 40px
        );
    animation: gridMove 40s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    to {
        transform: translate(60px, 60px);
    }
}

.faq-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.faq-item {
    margin-bottom: 0;
}





      .docs-wrapper{display:grid;grid-template-columns:260px 1fr;gap:2rem;max-width:1050px;margin:0 auto;padding:2rem 1rem 4rem}
      @media(max-width:900px){.docs-wrapper{grid-template-columns:1fr}.docs-toc{position:static}}
      .docs-toc{position:sticky;top:100px;align-self:flex-start}
      .docs-toc ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem;font-size:.9rem}
      .docs-toc a{color:var(--tx-2);transition:color var(--duration)}
      .docs-toc a.active,.docs-toc a:hover{color:var(--accent)}
      .cli-table{width:100%;border-collapse:collapse;font-size:.9rem;margin:1rem 0}
      .cli-table th,.cli-table td{border:1px solid rgba(255,255,255,.08);padding:.6rem}
      .cli-table th{background:rgba(255,255,255,.05)}



      /* Если футер всё ещё внутри .docs-wrapper — пусть он тянется на все колонки */
.docs-wrapper > footer {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 -1rem;             /* отступы по бокам равны горизонтальным паддингам .docs-wrapper */
    padding: 0px 0;             /* ваши вертикальные отступы */
    background: rgba(255,255,255,0.015);
    backdrop-filter: blur(5px);
  }
  
  /* Внутренний контейнер футера снова ограничен по центру */
  .docs-wrapper > footer .footer-frame {
    max-width: 1100px;           /* или 1030px, как вам нужно */
    width: 100%;
    margin: 0 auto;
  }
  