* {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

canvas#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

header, section, footer, .lang-switch {
    position: relative;
    z-index: 2;
}

header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
}

.comunity_img {
    width: 100px;
    aspect-ratio: 1/1;
}

.logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-text {
    font-size: 20px;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
}

.theme-toggle-btn .theme-icon {
    display: none;
}

.theme-toggle-btn .theme-icon-moon {
    display: block;
}

.nav-btn {
    background: #ffffff;
    color: #0a0a0a;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    display: inline-block;
}

.nav-btn-secondary {
    background: transparent;
    border: 1px solid #777777;
    color: #ffffff;
}

.nav-btn:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.nav-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    border-left: 5px solid #e0e0e0;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

h3 {
    color: #d4d4d4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.btn {
    border: 0px;
    background: linear-gradient(to right, #e4e4e4, #b1b1b1);
    color: #0a0a0a;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    display: inline-block;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-card:hover {
    border-color: #ffffff;
    transform: translateY(-3px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.card-badge {
    display: inline-block;
    margin-top: 1rem;
    background: #2a2a2a;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #aaa;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.highlight-grid.reverse {
    direction: rtl;
}

.highlight-grid.reverse .highlight-text {
    direction: ltr;
}

.highlight-text {
    direction: ltr;
}

.highlight-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.highlight-code pre {
    background: #0f0f12;
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto;
    border-left: 3px solid #ffffff;
}

.highlight-code code {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.55;
}
/*code highlight*/
pre code .hl-kwd {
    color: rgb(255 135 75);
    font-weight: 600;
}

pre code .hl-fn {
    color: #3396ff;
    font-weight: 600;
}

pre code .hl-str {
    color: #4da54d;
}

pre code .hl-com {
    color: #666666;
    font-style: italic;
}

pre code .hl-num {
    color: #6cb3ff;
}

pre code .hl-builtin {
    color: #c38fff;
}
/*end code highlight*/
.highlight-preview {
    background: #111;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    color: #666;
    font-size: 1rem;
}

.checklist {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}


.checklist li::before {
    content: "✓";
    color: #ffffff;
    position: absolute;
    left: 0;
}

.roadmap-list {
    background: #111;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #2a2a2a;
}

.roadmap-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #222;
}

.roadmap-item:last-child {
    border-bottom: none;
}

.roadmap-status {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.roadmap-status.done {
    color: #ffffff;
}

.roadmap-status.pending {
    color: #888888;
}

.community-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.community-card {
    background: #111;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #2a2a2a;
    text-decoration: none;
    color: #e0e0e0;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.community-card:hover {
    border-color: #ffffff;
    transform: translateY(-3px);
}

.community-card span:first-child {
    font-size: 2rem;
}

.community-card span:nth-child(2) {
    font-weight: bold;
    font-size: 1.1rem;
}

.community-card span:last-child {
    color: #888;
    font-size: 0.85rem;
}


footer a {
    color: #ffffff;
    text-decoration: none;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #555;
}

.lang-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 8px 16px;
    border: 1px solid #ffffff;
}

.lang-switch button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px 12px;
    margin: 0 4px;
    border-radius: 20px;
    transition: 0.2s;
}

.lang-switch button.active {
    background: #ffffff;
    color: #0a0a0a;
}

.lang-switch button:hover {
    background: #444444;
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-consent--hide {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-text {
    flex: 1;
    min-width: 220px;
    margin: 0;
    color: #bbb;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-consent-btn {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    border-radius: 40px;
    padding: 0.55rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.cookie-consent-btn:hover {
    background: #d0d0d0;
}

body.has-cookie-consent .lang-switch {
    bottom: 88px;
}

/* Site navigation drawer */
:root {
    --site-nav-rail-width: 72px;
    --site-nav-width: 260px;
}

.nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.nav-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
    height: 14px;
}

.nav-menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.site-nav-open .nav-menu-btn .nav-menu-icon span:nth-child(1),
body.site-nav-mobile-open .nav-menu-btn .nav-menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.site-nav-open .nav-menu-btn .nav-menu-icon span:nth-child(2),
body.site-nav-mobile-open .nav-menu-btn .nav-menu-icon span:nth-child(2) {
    opacity: 0;
}

body.site-nav-open .nav-menu-btn .nav-menu-icon span:nth-child(3),
body.site-nav-mobile-open .nav-menu-btn .nav-menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 240;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
}

body.site-nav-open .site-nav-overlay,
body.site-nav-mobile-open .site-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

.site-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--site-nav-width);
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    border-right: 1px solid #2a2a2a;
    z-index: 250;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.26s ease, width 0.26s ease;
    -webkit-overflow-scrolling: touch;
}

.site-nav-inner {
    flex-direction: column;
    min-height: 100%;
    padding: 1rem 0.75rem 2rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
}

.site-nav-legal {
    margin-top: auto;
    padding: 1.25rem 0.85rem 0.25rem;
}

.site-nav-legal-name,
.site-nav-legal-inn {
    font-size: 0.72rem;
    line-height: 1.4;
    color: #777;
    white-space: normal;
}

.site-nav-legal-name {
    margin-bottom: 0.25rem;
}

.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.85rem 1.25rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: inherit;
    min-height: 56px;
}

.site-nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.site-nav-brand span {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.site-nav-list {
    display: flex;
    gap: 0.25rem;
    padding: 0px;
    flex-direction: column;
    align-items: inherit;
}

.site-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    color: #bbb;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
}

.site-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.site-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.site-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #ccc;
}

.site-nav-link.active .site-nav-icon {
    color: #fff;
}

.site-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease, width 0.26s ease;
}

.site-nav-divider {
    height: 1px;
    background: #222;
    margin: 0.65rem 0.85rem;
}
.logo-img-nav {
    margin: 1rem 0.5rem;
}

body.site-nav-desktop:not(.site-nav-open) .logo-img-nav {
    margin: 1rem auto;
}

@media (min-width: 960px) {
    body.site-nav-desktop {
        padding-left: var(--site-nav-rail-width);
        transition: padding-left 0.26s ease;
    }

    body.site-nav-desktop.site-nav-open {
        padding-left: var(--site-nav-width);
    }

    .site-nav-drawer {
        transform: translateX(0);
        width: var(--site-nav-rail-width);
    }

    body.site-nav-desktop.site-nav-open .site-nav-drawer {
        width: var(--site-nav-width);
    }

    body.site-nav-desktop:not(.site-nav-open) .site-nav-label,
    body.site-nav-desktop:not(.site-nav-open) .site-nav-brand span,
    body.site-nav-desktop:not(.site-nav-open) .site-nav-legal {
        display: none;
        opacity: 0;
        width: 0;
        overflow: hidden;
    }

    body.site-nav-desktop:not(.site-nav-open) .site-nav-brand {
        justify-content: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    body.site-nav-desktop:not(.site-nav-open) .site-nav-link {
        justify-content: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 959px) {
    body.site-nav-mobile-open {
        overflow: hidden;
    }

    body.site-nav-mobile-open .site-nav-drawer {
        transform: translateX(0);
    }
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-item:hover {
    background: rgba(255,255,255,0.06);
}
.faq-question {
    padding: 18px 20px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-answer {
    font-size: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    color: rgba(255,255,255,0.8);
}
.faq-item.open .faq-answer {
    max-height: 500px;  /* Достаточно для любого ответа */
    padding: 0 20px 18px 20px;
}
.faq-arrow {
    font-size: 1.2rem;
    transition: transform 0.2s;
}
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

@media (max-width: 800px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    section {
        padding: 2rem 1rem;
    }
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .highlight-grid.reverse {
        direction: ltr;
    }
    .main-text {
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    html {
        font-size: 3.2vw;
    }   
    .logo-img-nav {
        margin: 3.2vw 1.6vw;
    }
    
    body.site-nav-desktop:not(.site-nav-open) .logo-img-nav {
        margin: 3.2vw auto;
    }
    body.site-nav-open .nav-menu-btn .nav-menu-icon span:nth-child(1),
    body.site-nav-mobile-open .nav-menu-btn .nav-menu-icon span:nth-child(1) {
        transform: translateY(1.2vw) rotate(45deg);
    }

    body.site-nav-open .nav-menu-btn .nav-menu-icon span:nth-child(2),
    body.site-nav-mobile-open .nav-menu-btn .nav-menu-icon span:nth-child(2) {
        opacity: 0;
    }

    body.site-nav-open .nav-menu-btn .nav-menu-icon span:nth-child(3),
    body.site-nav-mobile-open .nav-menu-btn .nav-menu-icon span:nth-child(3) {
        transform: translateY(-1.2vw) rotate(-45deg);
    }
    .site-nav-divider {
        height: 0.2vw;
        margin: 2vw 2.6vw;
    }
    .site-nav-inner {
        padding: 3.2vw 2.4vw 6.4vw;
        padding-top: calc(3.2vw + env(safe-area-inset-top, 0px));
    }
    .site-nav-icon {
        width: 4.8vw;
        height: 4.8vw;
    }
    .site-nav-icon svg {
        width: 4vw;
        height: 4vw;
    }
    .nav-menu-icon span {
        height: 0.4vw;
        border-radius: 0.2vw;
    }
    .nav-menu-icon {
        gap: 0.8vw;
        width: 3.6vw;
        height: 2.8vw;
    }
    .site-nav-brand {
        gap: 2vw;
        padding: 2vw 2.6vw 4vw;
        margin-bottom: 1.6vw;
        min-height: 11.2vw;
    }
    .site-nav-link {
        gap: 2.6vw;
        padding: 2.2vw 2.6vw;
        border-radius: 2.4vw;
        font-size: 3vw;
    }
    .site-nav-drawer {
        width: 80%;
    }
    nav {
        gap: 3.2vw;
    }
    .highlight-actions {
        gap: 3.2vw;
        margin-top: 4.8vw;
    }
    .checklist {
        margin: 3.2vw 0;
    }
    .highlight-grid {
        gap: 4.8vw;
    }
    .feature-grid {
        gap: 4.8vw;
        margin-top: 3.2vw;
    }
    .community-links {
        gap: 4.8vw;
    }
    .logo {
        gap: 2.4vw;
    }
    .nav-actions {
        gap: 2.4vw;
    }
    section {
        padding: 6.4vw 3.2vw;
    }
    nav {
        padding: 3.2vw 6.4vw;
    }
    .nav-btn {
        padding: 1.6vw 3.84vw;
        font-size: 2.8vw;
    }
    .logo-img {
        height: 8vw;
        width: 8vw;
    }
    .logo-text {
        font-size: 5.44vw;
    }
    h1 {
        font-size: 6.4vw;
        margin-bottom: 3.2vw;
    }
    h2 {
        font-size: 4.8vw;
        border-left: 1vw solid #ffffff;
        padding-left: 3.2vw;
        margin-bottom: 4.8vw;
        margin-top: 3.2vw;
    }
    .btn {
        font-size: 3vw;
        padding: 2.4vw 4.8vw;
    }
    .main-text {
        font-size: 4vw;
    }
    .lang-switch {
        /*height: 9vw;*/
        border-radius: 8vw;
        bottom: 4vw;
        right: 4vw;
        padding: 1.6vw 3.2vw;
        margin: 0 0.8vw;
        border-radius: 4vw;
    }
    .lang-switch button {
        font-size: 3vw;
        padding: 1vw 2.4vw;
    }
    body.has-cookie-consent .lang-switch {
        bottom: 22vw;
    }
    .cookie-consent {
        padding: 3.2vw 4vw;
        gap: 3.2vw;
    }
    .cookie-consent-text {
        font-size: 3.2vw;
        min-width: 0;
    }
    .cookie-consent-btn {
        font-size: 3vw;
        padding: 2vw 4.8vw;
    }
    .roadmap-item {
        font-size: 3.5vw;
    }
    .highlight-text {
        direction: ltr;
        width: calc(100vw - 6.4vw);
    }    
    .highlight-code {
        width: calc(100vw - 6.4vw);
    }
    .highlight-code pre {
        line-height: 0.5;
        padding: 3.2vw;
        border-radius: 2.4vw;
        border-left: 0.6vw solid #ffffff;
    }
    .highlight-code code {
        font-size: 2.72vw;
    }
    .community-card {
        width: calc(100vw - 6.4vw);
        border-radius: 4vw;
        padding: 4.8vw;
        border: 0.2vw solid #2a2a2a;
        gap: 1.6vw;
    }
    .highlight-preview {
        border-radius: 4vw;
        border: 0.2vw solid #2a2a2a;
        min-height: 40vw;
    }
    .community-card span:first-child {
        font-size: 6.4vw;
    }
    .community-card span:nth-child(2) {
        font-size: 3.52vw;
    }
    .community-card span:last-child {
        font-size: 2.72vw;
    }
    .card-icon {
        font-size: 8vw;
        margin-bottom: 1.6vw;
    }
    .card-link {
        margin-top: 3.2vw;
        font-size: 4vw;
    }
    .preview-placeholder {
        font-size: 3.2vw;
    }
    .comunity_img {
        width: 20vw;
    }

    .faq-item {
        border-radius: 2.1vw;
        margin-bottom: 2vw;
    }
    .faq-question {
        padding: 3.6vw 4vw;
        font-weight: 700;
        font-size: 3.2vw;
    }
    .faq-answer {
        padding: 0 4vw;
        font-size: 3.2vw;
    }
    .faq-item.open .faq-answer {
        max-height: 100vw;  /* Достаточно для любого ответа */
        padding: 0 4vw 3.6vw 4vw;
    }
    .faq-arrow {
        font-size: 4vw;
    }
}