:root {
    /* === Базовая тёмная схема (по умолчанию) === */
    --bg-main: #050816;
    --bg-alt: #0b1020;
    --bg-soft: #111827;
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.15);
    --accent-strong: #a855f7;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(249, 250, 251, 0.08);
    --chip-bg: rgba(15, 23, 42, 0.85);
    --chip-border: rgba(148, 163, 184, 0.3);
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.7);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-pill: 999px;
    --svg-fill: #f9fafb;
}

/* === Светлая тема: переопределяем переменные === */
body.theme-light {
    --bg-main: #f9fafb;
    --bg-alt: #ffffff;
    --bg-soft: #e5e7eb;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --accent-strong: #7c3aed;
    --text-main: #020617;
    --text-muted: #6b7280;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --chip-bg: rgba(15, 23, 42, 0.06);
    --chip-border: rgba(148, 163, 184, 0.4);
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.18);
    --svg-fill: #020617;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #111827 0, var(--bg-main) 38%, #020617 100%);
    color: var(--text-main);
    scroll-behavior: smooth;
}

body.theme-light {
    background: radial-gradient(circle at top left, #e5e7eb 0, var(--bg-main) 38%, #d4d4d8 100%);
}
.light-only{
    display: none;
}
.dark-only {
    display: flex;
}
.theme-light .dark-only{
    display: none;
}
.theme-light .light-only{
    display: flex;
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 64px;
}

header.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    margin-bottom: 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(15,23,42,0.8));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 12px;
    z-index: 50;
}

body.theme-light header.site-header {
    background: linear-gradient(135deg, rgba(248,250,252,0.96), rgba(241,245,249,0.92));
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-title {
    height: 50px;
    padding: 5px;
    border-radius: 10px;
    background: transparent;
}
.theme-light .logo-title {
    background: #2563eb;
}

.logo-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

nav[data-nav] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

@media(max-width: 900px) {
    nav[data-nav] {
        display: none;
    }
}

nav[data-nav] a {
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.18s ease-out;
}

nav[data-nav] a:hover {
    border-color: var(--accent-soft);
    color: var(--text-main);
    background: rgba(15,23,42,0.9);
}

body.theme-light nav[data-nav] a:hover {
    background: rgba(226,232,240,0.9);
}

.theme-toggle {
    border-radius: var(--radius-pill);
    padding: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(15,23,42,0.9);
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    width: 36px;
}

.theme-toggle svg {
    fill: var(--svg-fill);
    width: 20px;
    height: 20px;
}

body.theme-light .theme-toggle {
    background: rgba(248,250,252,0.96);
    color: #374151;
}

/* === Бургер === */
.burger {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.9);
    padding: 0;
    margin: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

body.theme-light .burger {
    background: rgba(248,250,252,0.96);
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-main);
    transition:
            transform 0.18s ease-out,
            opacity 0.18s ease-out,
            background 0.18s ease-out;
}

.burger span + span {
    margin-top: 3px;
}

body.theme-light .burger span {
    background: #0f172a;
}

body.nav-open .burger span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

body.nav-open .burger span:nth-child(2) {
    opacity: 0;
}

body.nav-open .burger span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* === Переключатель языка === */
.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-btn {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(148,163,184,0.7);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    min-width: 40px;
}

.lang-btn.active {
    background: var(--accent);
    color: #f9fafb;
    border-color: transparent;
}

body.theme-light .lang-btn {
    background: rgba(248,250,252,0.96);
    color: #4b5563;
}

body.theme-light .lang-btn.active {
    background: var(--accent);
    color: #f9fafb;
}

main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

section {
    border-radius: var(--radius-xl);
    padding: 24px 24px 22px;
    background: radial-gradient(circle at top right, rgba(79,70,229,0.16), rgba(15,23,42,0.94));
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

body.theme-light section {
    background: radial-gradient(circle at top right, rgba(129,140,248,0.12), var(--bg-alt));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

section:nth-of-type(2n) {
    background: radial-gradient(circle at top left, rgba(15,118,110,0.24), rgba(15,23,42,0.96));
}

body.theme-light section:nth-of-type(2n) {
    background: radial-gradient(circle at top left, rgba(45,212,191,0.16), var(--bg-alt));
}

section::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
            radial-gradient(circle at top left, rgba(79,70,229,0.28), transparent 60%),
            radial-gradient(circle at bottom right, rgba(15,118,110,0.2), transparent 55%);
    opacity: 0.16;
    pointer-events: none;
}

.section-inner {
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.section-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(79,70,229,0.9);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

@media (max-width: 576px) {
    .section-title {
        font-size: 18px;
    }
}

.section-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

p {
    margin: 0 0 10px;
    line-height: 1.6;
    color: var(--text-main);
    font-size: 16px;
}

@media (max-width: 576px) {
    p {
        font-size: 14px;
    }
}

.muted {
    color: var(--text-muted);
}

ul {
    margin: 8px 0 8px 0;
    padding-left: 18px;
    color: var(--text-main);
    font-size: 14px;
}

li + li {
    margin-top: 4px;
}

.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 22px;
}

@media (max-width: 900px) {
    .grid-two {
        display: flex;
        flex-direction: column;
    }
}

.pill-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
}

body.theme-light .pill {
    background: rgba(248,250,252,0.9);
    border-color: rgba(148,163,184,0.6);
}

.pill strong {
    color: var(--accent-strong);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: stretch;
}


@media (max-width: 768px) {
    .hero-layout {
        display: flex;
        flex-direction: column;
    }
}

.hero-title {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    margin-top: 0;
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 20px;
    }
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
    max-width: 34rem;
}

.hero-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-cta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-primary {
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: radial-gradient(circle at top left, var(--accent-strong), var(--accent));
    color: #f9fafb;
    cursor: pointer;
    box-shadow:
            0 0 0 1px rgba(129,140,248,0.35),
            0 18px 50px rgba(79,70,229,0.7);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary span.dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #f9fafb;
    margin-top: 0;
}

.btn-secondary {
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.8);
    color: var(--text-muted);
    cursor: pointer;
}

body.theme-light .btn-secondary {
    background: rgba(248,250,252,0.95);
    color: #374151;
}

.hero-panel {
    border-radius: 26px;
    padding: 18px 18px 16px;
    background: radial-gradient(circle at top, rgba(15,118,110,0.34), rgba(15,23,42,0.94));
    border: 1px solid rgba(148,163,184,0.5);
    position: relative;
    overflow: hidden;
}

body.theme-light .hero-panel {
    background: radial-gradient(circle at top, rgba(45,212,191,0.22), #f9fafb);
    border-color: rgba(148,163,184,0.7);
}

.hero-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero-panel-chip {
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.7);
}

body.theme-light .hero-panel-chip {
    background: rgba(248,250,252,0.98);
}

.hero-code {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    background: rgba(15,23,42,0.95);
    border-radius: 16px;
    padding: 12px 12px 10px;
    border: 1px solid rgba(31,41,55,0.9);
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.9);
    max-height: 230px;
    overflow: auto;
}

body.theme-light .hero-code {
    background: #020617;
    color: #e5e7eb;
}

.hero-code-line {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.hero-code-line span.num {
    display: inline-block;
    text-align: right;
    color: rgba(148,163,184,0.5);
    user-select: none;
}

.hero-code-line code {
    color: #e5e7eb;
    white-space: pre;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.hero-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-pill);
    padding: 4px 9px;
    border: 1px solid rgba(148,163,184,0.45);
    color: var(--text-muted);
    background: rgba(15,23,42,0.9);
}

body.theme-light .hero-badge {
    background: rgba(248,250,252,0.96);
}

.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.chip {
    padding: 7px 10px;
    font-size: 14px;
    border-radius: var(--radius-pill);
    background: rgba(15,23,42,0.92);
    border: 1px solid rgba(148,163,184,0.4);
    width: calc(33% - 3px);
}
@media (max-width: 940px) {
    .chip {
        width: calc(50% - 4px);
    }
}
@media (max-width: 576px) {
    .chips-grid {
        flex-direction: column;
    }
    .chip {
        width: 100%;
    }
}

body.theme-light .chip {
    background: rgba(248,250,252,0.98);
}

.list-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px 22px;
    margin-top: 6px;
}

.dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(79,70,229,0.9);
    flex-shrink: 0;
    margin-top: 0.4rem;
}

.problem-statement {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.problem-statement > div {
    width: calc(50% - 9px);
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    position: relative;
}

.why-now {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.why-now > div {
    width: calc(50% - 9px);
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    position: relative;
}

@media(max-width: 768px) {
    .problem-statement, .why-now {
        flex-direction: column;
    }
    .problem-statement > div, .why-now > div {
        width: 100%;
    }
}

.advantage-cards-block {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.advantage-cards-block .card {
    width: calc(50% - 9px);
}

@media(max-width: 576px) {
    .advantage-cards-block {
        flex-direction: column;
    }
    .advantage-cards-block .card {
        width: 100%;
    }
}

.why-us-block {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.why-us-block .item {
    width: calc(50% - 9px);
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    position: relative;
}

@media(max-width: 576px) {
    .why-us-block {
        flex-direction: column;
    }
    .why-us-block .item {
        width: 100%;
    }
}

.usecases-block {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}


.usecases-block .card {
    box-sizing: border-box;
    width: calc(33.33% - 12px);
}

@media(max-width: 900px) {
    .usecases-block .card {
        width: calc(50% - 9px);
    }
}

@media(max-width: 576px) {
    .usecases-block {
        flex-direction: column;
    }
    .usecases-block .card {
        width: 100%;
    }
}

.card {
    border-radius: var(--radius-lg);
    padding: 14px 14px 12px;
    background: rgba(15,23,42,0.94);
    border: 1px solid rgba(31,41,55,0.9);
}

body.theme-light .card {
    background: #f9fafb;
    border-color: rgba(148,163,184,0.6);
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.card p {
    font-size: 13px;
    margin-bottom: 6px;
}

.card ul {
    font-size: 13px;
}

.highlight {
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    background: rgba(15,23,42,0.9);
    border: 1px dashed rgba(148,163,184,0.6);
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 0;
}

body.theme-light .highlight {
    background: rgba(248,250,252,0.98);
}

.columns-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.columns-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.code-block {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    border-radius: var(--radius-lg);
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(31,41,55,0.95);
    padding: 12px 12px 10px;
    overflow-x: auto;
    margin-top: 8px;
    white-space: pre;
    color: #e5e7eb;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.badge {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.4);
    color: var(--text-muted);
}

.timeline {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr);
    gap: 18px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .timeline {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}


.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 13px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.25);
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 14px;
    width: 2px;
    bottom: -8px;
    background: rgba(55,65,81,0.8);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item-title {
    font-weight: 600;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.team-card {
    border-radius: var(--radius-lg);
    padding: 12px 12px 10px;
    background: rgba(15,23,42,0.94);
    border: 1px solid rgba(31,41,55,0.9);
}

body.theme-light .team-card {
    background: #f9fafb;
}

.team-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.linked-qr {
    width: 100px;
    height: 100px;
}

.team-links {
    font-size: 12px;
    margin-top: 6px;
}

.team-links a {
    color: var(--accent);
    text-decoration: none;
}

.team-links a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 24px;
    padding: 12px 4px 0;
    border-top: 1px solid rgba(31,41,55,0.9);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* многострочные тексты через перевод */
[data-i18n-multiline] {
    white-space: pre-line;
}

.demo-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.demo-page main {
    display: flex;
    flex-grow: 1;
}
.demo-page section {
    display: flex;
    flex-grow: 1;
}
.demo-page .section-inner {
    width: 100%;
    display: flex;
    flex-grow: 1;
}
.yt-container {
    width: 100%;
    height: 100%;
}
.yt-container iframe {
    width: 100%;
    height: 100%;
}