/* ══════════════════════════════════════════════════════════
   NAV SEARCH INLINE (Ctrl+F)
   ══════════════════════════════════════════════════════════ */
.nav-search-inline {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 8px 0 2px;
    margin-left: 10px;
    height: 36px;
    box-shadow: none;
    transition: border-color .2s, background .2s;
    min-width: 0;
}
.nav-search-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.nav-search-btn:hover {
    background: rgba(255,255,255,.06);
    color: var(--text);
}
.nav-search-field {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    padding: 0 4px;
    min-width: 60px;
    background: none;
}
.nav-search-field::placeholder {
    color: var(--text-faint);
    opacity: 1;
}

.nav-find-widget {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0,0,0,.4);
    padding: 8px 10px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s, transform .18s;
    z-index: 920;
}
.nav-find-widget.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.nav-find-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-find-count {
    margin-right: auto;
    font-size: 13px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.nav-find-btn,
.nav-find-close {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background .18s, color .18s, border-color .18s;
}
.nav-find-btn:hover,
.nav-find-close:hover {
    background: var(--surface-hov);
    color: var(--text);
    border-color: var(--border-hov);
}
.nav-find-exact {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    user-select: none;
}
.nav-find-exact input {
    accent-color: var(--accent-bright);
}

.site-settings-btn svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
}
.site-settings-btn {
    margin-left: 4px;
}

.site-settings-panel {
    position: fixed;
    top: 74px;
    right: 16px;
    width: min(320px, calc(100vw - 24px));
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 44px rgba(0,0,0,.48);
    z-index: 1100;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 640px);
}
.site-settings-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.settings-title {
    font-size: .9rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.settings-close-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
}
.settings-close-btn:hover {
    color: var(--text);
    background: var(--surface-hov);
}
.settings-grid {
    display: grid;
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: min(56vh, 330px);
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.settings-label {
    font-size: .82rem;
    color: var(--text);
}
.settings-switch-row {
    cursor: pointer;
}
.settings-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.settings-switch-state {
    font-size: .74rem;
    color: var(--text-muted);
    min-width: 28px;
    text-align: right;
}
.settings-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}
.settings-switch input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.settings-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid var(--border);
    transition: background .18s, border-color .18s;
}
.settings-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background: var(--text-muted);
    transition: transform .2s cubic-bezier(.22,1,.36,1), background .18s;
}
.settings-switch input:checked + .settings-switch-slider {
    background: rgba(255,255,255,.22);
    border-color: var(--border-hov);
}
.settings-switch input:checked + .settings-switch-slider::before {
    transform: translateX(20px);
    background: var(--text);
}
.settings-value-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}
.settings-value-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}
.settings-value-view {
    font-size: .74rem;
    color: var(--text-muted);
    min-width: 52px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.settings-range {
    width: 100%;
    accent-color: var(--accent-bright);
}
.settings-select {
    width: 100%;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    padding: 0 8px;
    font-size: .78rem;
}
.settings-color {
    width: 100%;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    padding: 2px;
}
.settings-reset-btn {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    padding: 8px 10px;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 600;
}
.settings-reset-btn:hover {
    color: var(--text);
    background: var(--surface-hov);
    border-color: var(--border-hov);
}

/* Подсветка совпадений Ctrl+F */
mark.cf-highlight {
    background: rgba(255, 224, 102, .36);
    color: var(--text);
    border-radius: 2px;
    padding: 0 1px;
    box-shadow: none;
    font-weight: inherit;
}
mark.cf-highlight-current {
    background: rgba(255, 196, 77, .58);
    outline: 1px solid rgba(255, 196, 77, .45);
}

[data-atmosphere="off"] body::before,
[data-atmosphere="off"] .hero-orb {
    display: none !important;
}

[data-navblur="off"] .main-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

[data-compact="on"] section {
    padding: 48px 0 !important;
}
[data-compact="on"] .container {
    padding: 0 16px !important;
}

[data-hoverlift="off"] .btn:hover,
[data-hoverlift="off"] .nav-tab-link:hover,
[data-hoverlift="off"] .stat-card:hover,
[data-hoverlift="off"] .project-card:hover,
[data-hoverlift="off"] .step-card:hover,
[data-hoverlift="off"] .feat-card:hover {
    transform: none !important;
}

[data-microfx="off"] .theme-btn,
[data-microfx="off"] .lang-btn,
[data-microfx="off"] .btn,
[data-microfx="off"] .site-settings-btn,
[data-microfx="off"] .update-btn {
    filter: none !important;
}
[data-microfx="off"] .theme-btn::before,
[data-microfx="off"] .btn::before {
    opacity: 0 !important;
}

[data-cardfx="off"] .project-card:hover,
[data-cardfx="off"] .project-card:active,
[data-cardfx="off"] .step-card:hover,
[data-cardfx="off"] .feat-card:hover,
[data-cardfx="off"] .compare-slider:hover .compare-handle::before {
    transform: none !important;
    box-shadow: none !important;
}

[data-motion="reduced"] [data-aos] {
    transition-duration: .28s !important;
    transform: translateY(10px);
}
[data-motion="off"] *,
[data-motion="off"] *::before,
[data-motion="off"] *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
}
[data-scrollhint="off"] .mouse-scroll-container.hidden {
    opacity: 1 !important;
    transform: none !important;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes stat-pop {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
html[data-motion="full"] body.site-polish-ready .hero-badge {
    animation: badge-float 4.8s ease-in-out infinite;
}
html[data-motion="full"] body.site-polish-ready .stats-row .stat-card {
    animation: stat-pop .45s cubic-bezier(.22,1,.36,1) both;
}
html[data-motion="full"] body.site-polish-ready .stats-row .stat-card:nth-child(2) { animation-delay: .06s; }
html[data-motion="full"] body.site-polish-ready .stats-row .stat-card:nth-child(3) { animation-delay: .12s; }
html[data-motion="full"] body.site-polish-ready .stats-row .stat-card:nth-child(4) { animation-delay: .18s; }

@media (max-width: 960px) {
    .cursor-glow { display: none !important; }

    .main-nav {
        backdrop-filter: blur(var(--nav-blur-strength, 14px)) saturate(1.05);
        -webkit-backdrop-filter: blur(var(--nav-blur-strength, 14px)) saturate(1.05);
    }
    .hero-bg,
    .hero-bg-incoming {
        filter: blur(var(--hero-bg-blur-strength-mobile, 10px)) brightness(0.30) saturate(0.65);
        transform: scale(1.04);
    }
    [data-theme="light"] .hero-bg,
    [data-theme="light"] .hero-bg-incoming {
        filter: blur(var(--hero-bg-blur-strength-mobile-light, 9px)) brightness(0.62) saturate(0.55);
    }
    .hero-orb {
        filter: blur(70px);
        opacity: .35;
    }

    .search-overlay,
    .shortcuts-overlay,
    .lightbox-backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .project-card,
    .step-card,
    .feature-card,
    .stat-card,
    .cta-box,
    .guide-block {
        box-shadow: none;
    }

    .site-settings-panel {
        max-height: calc(100vh - 84px);
        overflow: auto;
    }
}

@media (max-width: 640px) {
    body { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
    .nav-search-inline {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 0 4px 0 0;
        border-radius: 7px;
        height: 34px;
    }
    .nav-search-btn {
        width: 30px;
        height: 30px;
        border-radius: 7px;
    }
    .nav-search-field {
        font-size: 14px;
        padding: 0 2px;
    }
    .site-settings-panel {
        right: 8px;
        top: 64px;
        width: calc(100vw - 12px);
        max-height: calc(100vh - 72px);
    }
    .settings-grid { gap: 6px; padding: 10px; }
    .settings-row {
        padding: 7px 8px;
    }
    .settings-label {
        font-size: .78rem;
    }
    .settings-switch-state {
        display: none;
    }
    .nav-find-widget {
        width: min(260px, calc(100vw - 24px));
        right: -2px;
    }

    .hero-content { padding: 52px 14px 64px; }
    .hero h1 { font-size: clamp(2rem,10vw,2.8rem); }
    .hero p { font-size: .92rem; }

    .container { padding: 0 16px; }
    section { padding: 52px 0; }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .stat-card {
        max-width: none;
        min-width: 0;
    }

    .models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-shortcuts { flex-wrap: wrap; gap: 10px; }
}
/* ============================================================
   RUSSIFIER DRK — NoverPlay Style — main.css
   ============================================================ */

/* ── Переменные — тёмная тема (default) ─────────────────── */
:root {
    --bg:           #050505;
    --bg2:          #0a0a0a;
    --surface:      rgba(255,255,255,0.03);
    --surface-hov:  rgba(255,255,255,0.06);
    --border:       rgba(255,255,255,0.06);
    --border-hov:   rgba(255,255,255,0.12);
    --accent:       rgba(255,255,255,0.7);
    --accent-dim:   rgba(255,255,255,0.08);
    --accent-bright:rgba(255,255,255,0.9);
    --accent-glow:  rgba(255,255,255,0.15);
    --text:         #e8e8e8;
    --text-muted:   rgba(255,255,255,0.45);
    --text-faint:   rgba(255,255,255,0.22);
    --radius:       12px;
    --radius-lg:    16px;
    --shadow:       0 8px 40px rgba(0,0,0,0.6);
    --shadow-card:  0 2px 24px rgba(0,0,0,0.4);
    --nav-blur-strength: 32px;
    --hero-bg-blur-strength: 15.5px;
    --hero-bg-blur-strength-light: 13.6px;
    --hero-bg-blur-strength-mobile: 10px;
    --hero-bg-blur-strength-mobile-light: 9px;
    --hero-bg-dark:  url('../assets/web-background/code.webp');
    --hero-bg-light: url('../assets/web-background/code2.webp');
    --hero-bg-current: var(--hero-bg-dark);
}

/* ── Светлая тема ─────────────────────────────────────────── */
[data-theme="light"] {
    --bg:           #fafafa;
    --bg2:          #f0f0f0;
    --surface:      rgba(0,0,0,0.03);
    --surface-hov:  rgba(0,0,0,0.05);
    --border:       rgba(0,0,0,0.08);
    --border-hov:   rgba(0,0,0,0.15);
    --accent:       #222222;
    --accent-dim:   rgba(0,0,0,0.08);
    --accent-bright:#111111;
    --accent-glow:  rgba(0,0,0,0.1);
    --text:         #111111;
    --text-muted:   rgba(0,0,0,0.5);
    --text-faint:   rgba(0,0,0,0.25);
    --shadow:       0 8px 40px rgba(0,0,0,0.06);
    --shadow-card:  0 2px 20px rgba(0,0,0,0.05);
    --hero-bg-current: var(--hero-bg-light);
}

/* ── Сброс ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: calc(16px * var(--ui-font-scale, 1));
    text-align: center;
    padding-top: 64px;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.4s ease;
}

.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--cursor-glow-size, 220px);
    height: var(--cursor-glow-size, 220px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate3d(-200px, -200px, 0) translate(-50%, -50%);
    background: none;
    mix-blend-mode: var(--cursor-glow-blend, screen);
    filter: blur(var(--cursor-glow-blur, 10px));
    opacity: var(--cursor-glow-opacity, .75);
    will-change: transform;
}
.cursor-glow::before,
.cursor-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}
.cursor-glow::before {
    background: radial-gradient(circle at 36% 36%, var(--cursor-glow-color-a, rgba(255,255,255,.82)) 0%, var(--cursor-glow-color-b, rgba(125,211,252,.38)) 42%, rgba(0,0,0,0) 72%);
    opacity: 1;
}
.cursor-glow::after {
    background: conic-gradient(from 0deg, rgba(255,255,255,.0) 0%, var(--cursor-glow-color-b, rgba(125,211,252,.36)) 30%, rgba(255,255,255,.0) 58%, var(--cursor-glow-color-a, rgba(255,255,255,.35)) 80%, rgba(255,255,255,0) 100%);
    opacity: .22;
}
[data-cursor-anim="none"] .cursor-glow::before,
[data-cursor-anim="none"] .cursor-glow::after {
    animation: none !important;
}
[data-cursor-anim="pulse"] .cursor-glow::before {
    animation: cursor-glow-pulse 2.1s ease-in-out infinite;
}
[data-cursor-anim="breathe"] .cursor-glow::before {
    animation: cursor-glow-breathe 3.2s ease-in-out infinite;
}
[data-cursor-anim="spin"] .cursor-glow::after {
    animation: cursor-glow-spin 3.8s linear infinite;
    opacity: .34;
}
[data-theme="light"] .cursor-glow {
    opacity: calc(var(--cursor-glow-opacity, .75) * .72);
}
@keyframes cursor-glow-pulse {
    0%, 100% { transform: scale(1); opacity: .95; }
    50% { transform: scale(1.12); opacity: .66; }
}
@keyframes cursor-glow-breathe {
    0%, 100% { transform: scale(0.92); opacity: .60; }
    50% { transform: scale(1.18); opacity: .92; }
}
@keyframes cursor-glow-spin {
    to { transform: rotate(360deg); }
}
[data-cursor-glow="off"] .cursor-glow {
    display: none;
}
[data-motion="off"] .cursor-glow,
[data-microfx="off"] .cursor-glow,
[data-compact="on"] .cursor-glow {
    display: none;
}

h1, h2, h3 { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }

/* ── Grain ──────────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none; z-index: 0; opacity: 0.35;
}
[data-theme="light"] body::before { opacity: 0.1; }

/* ── Контейнер ──────────────────────────────────────────── */
.container { max-width: var(--content-max-width, 860px); margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════ */
.main-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 900; height: 64px;
    display: flex; align-items: center;
    background: rgba(5,5,5,0.8);
    backdrop-filter: blur(var(--nav-blur-strength, 32px)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--nav-blur-strength, 32px)) saturate(1.2);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.35s, box-shadow 0.35s;
}
/* Scroll progress bar */
.scroll-progress {
    position: absolute; bottom: 0; left: 0;
    height: 2px; width: 0%;
    background: rgba(255,255,255,.5);
    z-index: 910; border-radius: 0 1px 1px 0;
    transition: width 0.08s linear;
}
[data-theme="light"] .scroll-progress {
    background: rgba(0,0,0,.35);
}
[data-theme="light"] .main-nav {
    background: rgba(250,250,250,0.85);
    border-bottom-color: rgba(0,0,0,0.06);
}
.main-nav.scrolled {
    background: rgba(5,5,5,0.95);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.6);
}
[data-theme="light"] .main-nav.scrolled {
    background: rgba(250,250,250,0.97);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.05);
}

.nav-inner {
    width: 100%; max-width: 1100px; margin: 0 auto;
    padding: 0 24px; display: flex;
    align-items: center; gap: 8px;
}

/* Лого */
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; font-weight: 700;
    color: var(--text); flex-shrink: 0; transition: opacity 0.2s;
    letter-spacing: -0.02em;
}
.nav-logo:hover { opacity: 0.6; }
.nav-logo-gem {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    background: none;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 0;
}
.nav-logo-gem img {
    width: 100%; height: 100%; object-fit: contain;
}

/* Таб-ссылки */
.nav-tabs { display: flex; align-items: center; gap: 1px; list-style: none; flex: 1; margin-left: 12px; }
.nav-tab-link {
    display: flex; flex-direction: column; align-items: center;
    padding: 6px 18px 7px; border-radius: 8px; position: relative;
    color: var(--text-muted); transition: color .2s, background .2s, transform .15s; gap: 1px;
}
.nav-tab-link:hover { color: var(--text); background: rgba(255,255,255,0.04); transform: translateY(-1px); }
.nav-tab-link.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-tab-link.active::after {
    content: ''; position: absolute; bottom: -1px; left: 22%; right: 22%;
    height: 2px; background: rgba(255,255,255,.4);
    border-radius: 2px;
}
.nav-label { font-family: 'Inter', system-ui, sans-serif; font-size: .88rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.nav-sub { font-size: .6rem; letter-spacing: .04em; opacity: .5; font-weight: 500; text-transform: uppercase; line-height: 1; }

/* Nav controls (theme + lang) */
.nav-controls {
    display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0;
}

/* Кнопка темы */
.theme-btn {
    width: 38px; height: 38px; border-radius: 999px; border: none;
    background: transparent; color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, color .2s, filter .2s;
    position: relative; overflow: visible;
}
.theme-btn::before {
    content: ''; position: absolute; inset: 6px; border-radius: 999px;
    background: radial-gradient(circle, var(--accent-dim), transparent 65%);
    opacity: 0; transition: opacity .2s;
}
.theme-btn:hover {
    color: var(--text);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transform: scale(1.08);
}
.theme-btn:hover::before { opacity: 1; }
.theme-btn:active { transform: rotate(90deg) scale(0.92); transition-duration: .2s; }

.theme-svg {
    width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8;
}
[data-theme="dark"] .theme-svg-sun { display: none; }
[data-theme="light"] .theme-svg-moon { display: none; }
.theme-svg-auto { display: none; }

/* Языковый переключатель */
.lang-switcher { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 14px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); cursor: pointer; font-size: .82rem; font-weight: 600;
    transition: background .2s, border-color .2s, box-shadow .2s;
    white-space: nowrap;
}
.lang-label { display: inline-flex; align-items: center; gap: 6px; }
.lang-btn:hover {
    background: var(--surface-hov); border-color: var(--border-hov);
    box-shadow: 0 0 10px rgba(255,255,255,.06);
}
.lang-btn img { border-radius: 3px; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.lang-btn .arrow { font-size: .6rem; opacity: .5; transition: transform .2s; }
.lang-switcher.open .lang-btn .arrow { transform: rotate(180deg); }
.lang-switcher.open .lang-btn {
    border-color: var(--border-hov);
    background: var(--surface-hov);
}

.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 6px;
    display: flex; flex-direction: column; gap: 2px; min-width: 140px;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 901;
}
.lang-switcher.open .lang-menu { opacity: 1; transform: translateY(0); pointer-events: all; }
.lang-menu li {
    list-style: none; display: flex; align-items: center; gap: 9px;
    padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: .82rem; font-weight: 500;
    color: var(--text-muted); transition: background .15s, color .15s;
}
.lang-menu li:hover, .lang-menu li.active { background: var(--surface-hov); color: var(--text); }
.lang-menu li.active { color: var(--accent-bright); }
.lang-menu li img { border-radius: 3px; }

/* Кнопка обновления сайта */
.update-btn {
    display: none; align-items: center; gap: 6px;
    height: 36px; padding: 0 12px; border-radius: 8px;
    border: 1px solid rgba(239,68,68,0.2); background: rgba(239,68,68,0.05);
    color: #ef4444; cursor: pointer; font-size: .82rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.update-btn:hover {
    background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.35);
    box-shadow: 0 0 10px rgba(239,68,68,.15);
    transform: translateY(-2px);
}
.update-btn:active {
    transform: translateY(0);
}
.update-btn svg {
    width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2;
    animation: update-pulse 2s ease-in-out infinite;
}
@keyframes update-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Auto indicators for theme/lang */
.theme-btn.auto .theme-svg-moon,
.theme-btn.auto .theme-svg-sun { display: none; }
.theme-btn.auto {
    color: var(--accent);
    background: transparent;
    box-shadow: none;
}
.theme-btn.auto::before { opacity: 0; }
.theme-btn.auto .theme-svg-auto {
    display: inline-block; opacity: .9;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    animation: auto-spin 10s linear infinite;
    transform-origin: 50% 50%;
}
.theme-svg-auto { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.lang-btn.auto {
    border-color: var(--border-hov);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.lang-btn.auto .lang-label { color: var(--accent-bright); font-weight: 700; letter-spacing: .01em; }
.lang-btn.auto .lang-auto-icon { stroke: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); }

.lang-auto-icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.lang-menu .lang-auto { font-weight: 600; letter-spacing: .02em; color: var(--text); }
.lang-menu li[data-lang="auto"] { color: var(--text); }
.lang-menu li.active[data-lang="auto"] {
    background: rgba(255,255,255,0.06);
    color: var(--accent-bright);
}

@keyframes auto-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .theme-btn.auto .theme-svg-auto { animation: none; }
}

/* Бургер */
.nav-burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 38px; height: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer; padding: 0;
    border-radius: 10px;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
    flex-shrink: 0; margin-left: 4px;
}
.nav-burger:hover {
    background: var(--surface-hov);
    border-color: var(--border-hov);
    box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}
.nav-burger:active { transform: scale(.96); }
.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: rgba(255,255,255,0.68);
    border-radius: 2px;
    transition: transform .25s, opacity .25s, width .25s, background .2s;
}
[data-theme="light"] .nav-burger span { background: rgba(0,0,0,0.5); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav search button */
.nav-search-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); transition: background .2s, color .2s;
    flex-shrink: 0;
}
.nav-search-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
[data-theme="light"] .nav-search-btn:hover { background: rgba(0,0,0,.05); }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-main { min-height: 94vh; }
.hero-bg {
    position: absolute; inset: 0;
    background-image: var(--page-hero-img, var(--hero-bg-current));
    background-color: var(--bg);
    background-size: cover; background-position: center;
    filter: blur(var(--hero-bg-blur-strength, 15.5px)) brightness(0.25) saturate(0.6);
    transform: scale(1.07); z-index: 0;
    transition: filter 0.7s ease, opacity 0.8s cubic-bezier(.4,0,.2,1);
}
.hero-bg-incoming {
    filter: blur(var(--hero-bg-blur-strength, 15.5px)) brightness(0.25) saturate(0.6);
    transform: scale(1.07);
}
[data-theme="light"] .hero-bg,
[data-theme="light"] .hero-bg-incoming { filter: blur(var(--hero-bg-blur-strength-light, 13.6px)) brightness(0.55) saturate(0.5); }
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 110%, rgba(255,255,255,.06) 0%, transparent 65%),
                linear-gradient(to top, rgba(5,5,5,.95) 0%, rgba(5,5,5,.1) 60%);
    z-index: 1; transition: background .7s;
}
[data-theme="light"] .hero-overlay {
    background: radial-gradient(ellipse 60% 50% at 50% 110%, rgba(0,0,0,.06) 0%, transparent 65%),
                linear-gradient(to top, rgba(250,250,250,.9) 0%, rgba(250,250,250,.05) 60%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 1; opacity: 0.5; }
.hero-orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%); top: -120px; left: -180px; }
.hero-orb-2 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%); bottom: -60px; right: -100px; }
.hero-content {
    position: relative; z-index: 2; display: flex; flex-direction: column;
    align-items: center; gap: 20px; padding: 60px 24px 80px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 16px;
    border-radius: 100px; border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03); backdrop-filter: blur(8px);
    font-size: .72rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--text-muted);
}
.hero-badge .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.4; transform:scale(.6); } }
.hero h1 { font-size: clamp(2.5rem,6vw,4.5rem); font-weight: 800; color: #fff; letter-spacing: -0.04em; }
[data-theme="light"] .hero h1 { color: #111; }
.hero p { font-size: clamp(.95rem,2.5vw,1.12rem); color: rgba(255,255,255,.45); max-width: 500px; line-height: 1.7; }
[data-theme="light"] .hero p { color: rgba(0,0,0,.5); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* ── Кнопки ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 8px;
    font-size: .9rem; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer; border: none; white-space: nowrap;
    transition: transform .2s, box-shadow .2s, background .2s, opacity .2s; text-decoration: none;
    letter-spacing: -0.01em;
}
.btn-primary { background: #fff; color: #050505; box-shadow: none; position: relative; overflow: hidden; }
.btn-primary::before {
    content: ''; position: absolute; inset: -2px;
    background: rgba(255,255,255,.3);
    border-radius: inherit; z-index: -1; opacity: 0;
    filter: blur(12px); transition: opacity .3s;
}
.btn-primary:hover::before { opacity: .4; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text-muted); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); transform: translateY(-2px); color: var(--text); }
[data-theme="light"] .btn-primary { background: #111; color: #fff; }
[data-theme="light"] .btn-ghost { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); color: var(--text-muted); }

/* Scroll indicator — mouse + arrows (desktop) / arrows only (mobile) */
.mouse-scroll-container {
  position: absolute; bottom: 20px; left: 0; right: 0;
  display: flex; justify-content: center; z-index: 2;
  transition: opacity .6s ease, transform .6s ease;
}
.mouse-scroll-container.hidden {
  opacity: 0; transform: translateY(16px); pointer-events: none;
}
.mouse-scroll-animation { display: flex; flex-direction: column; align-items: center; }

.mouse {
  width: 25px; height: 40px;
  border: 2px solid var(--scroll-indicator-color, rgba(255,255,255,.2));
  border-radius: 15px; position: relative;
  display: flex; justify-content: center;
}
.wheel {
  width: 5px; height: 8px;
  background-color: var(--scroll-indicator-color, rgba(255,255,255,.2));
  border-radius: 50%; margin-top: 5px;
  animation: wheelScroll 1.5s ease infinite;
}
.arrows {
  display: flex; flex-direction: column;
  align-items: center; margin-top: 10px;
}
.arrows span {
  width: 10px; height: 10px;
  border-right: 2px solid var(--scroll-indicator-color, rgba(255,255,255,.2));
  border-bottom: 2px solid var(--scroll-indicator-color, rgba(255,255,255,.2));
  transform: rotate(45deg); margin: -4px;
  animation: arrowScroll 1.5s infinite; opacity: 0;
}
.arrows span:nth-child(1) { animation-delay: .2s; }
.arrows span:nth-child(2) { animation-delay: .4s; }
.arrows span:nth-child(3) { animation-delay: .6s; }

/* Mobile — only arrows, no mouse */
.mobile-only-arrows {
  display: none; flex-direction: column;
  align-items: center; margin-top: 15px;
}
.mobile-only-arrows span {
  width: 14px; height: 14px;
  border-right: 2px solid var(--scroll-indicator-color, rgba(255,255,255,.2));
  border-bottom: 2px solid var(--scroll-indicator-color, rgba(255,255,255,.2));
  transform: rotate(45deg); margin: -5px;
  animation: arrowScroll 1.5s infinite; opacity: 0;
}
.mobile-only-arrows span:nth-child(1) { animation-delay: .2s; }
.mobile-only-arrows span:nth-child(2) { animation-delay: .4s; }
.mobile-only-arrows span:nth-child(3) { animation-delay: .6s; }

@keyframes wheelScroll { 0%{ opacity:1; transform:translateY(0); } 100%{ opacity:0; transform:translateY(15px); } }
@keyframes arrowScroll { 0%{ opacity:0; } 50%{ opacity:.5; } 100%{ opacity:0; } }

/* Scroll indicator theme colors */
:root { --scroll-indicator-color: rgba(255,255,255,.18); }
[data-theme="light"] { --scroll-indicator-color: rgba(0,0,0,.2); }
[data-theme="dark"]  { --scroll-indicator-color: rgba(255,255,255,.25); }

/* ══════════════════════════════════════════════════════════
   СЕКЦИИ
   ══════════════════════════════════════════════════════════ */
section { padding: var(--section-pad, 90px) 0; content-visibility: auto; contain-intrinsic-size: auto 800px; }
.section-label { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
section h2 { font-size: clamp(1.75rem,4vw,2.5rem); margin-bottom: 48px; color: var(--text); letter-spacing: -0.03em; }
.lead { font-size: 1.02rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 48px; line-height: 1.75; }
.inline-link { color: var(--accent); font-weight: 600; transition: color .2s, opacity .2s; }
.inline-link:hover { color: var(--text); opacity: .8; }
.divider { width: 40px; height: 1px; background: rgba(255,255,255,0.08); border-radius: 1px; margin: 0 auto 48px; }
@keyframes divider-glow {
    0%,100% { box-shadow: none; width: 40px; }
    50% { box-shadow: none; width: 48px; }
}

.update-actions {
    display: flex; justify-content: center; margin-top: 18px;
}
.update-link {
    margin-top: 18px; text-align: center; font-weight: 600;
}
.update-link a {
    color: var(--accent); transition: color .2s, opacity .2s;
}
.update-link a:hover { color: var(--text); opacity: .8; }

/* ══════════════════════════════════════════════════════════
   FEATURE GRID
   ══════════════════════════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 40px; text-align: left; }
.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start;
    transition: background .2s, border-color .2s, transform .2s; cursor: default;
}
.feature-card:hover { background: var(--surface-hov); border-color: var(--border-hov); transform: translateY(-3px); }
.feature-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 1px; }
.feature-title { font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: 5px; letter-spacing: -0.01em; }
.feature-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

/* ══════════════════════════════════════════════════════════
   STEP CARDS
   ══════════════════════════════════════════════════════════ */
.steps-row { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: nowrap; margin-top: 40px; }
.step-card {
    flex: 1; min-width: 0; max-width: 270px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px 22px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px;
    transition: background .2s, border-color .2s, transform .2s;
}
.step-card:hover { background: var(--surface-hov); border-color: var(--border-hov); transform: translateY(-4px); }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: var(--text); font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-title { font-weight: 700; font-size: .92rem; color: var(--text); line-height: 1.3; letter-spacing: -0.01em; }
.step-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }
.step-link { font-size: .8rem; font-weight: 600; color: var(--accent); transition: color .2s, opacity .2s; margin-top: 4px; }
.step-link:hover { color: var(--text); }
.step-arrow { width: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: rgba(255,255,255,.12); font-size: 1.4rem; padding-top: 22px; }

/* Plain steps */
.plain-steps { display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: 0 auto; text-align: left; }
.plain-step {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 13px 18px; font-size: .9rem; color: var(--text); line-height: 1.55;
    transition: background .2s, border-color .2s;
}
.plain-step:hover { background: var(--surface-hov); border-color: var(--border-hov); }
.plain-step .emoji { flex-shrink: 0; margin-top: 1px; }

/* Ops helpers */
.hero-meta {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 10px;
}
.spec-table {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
}
.spec-table th,
.spec-table td {
    padding: 12px 14px;
    font-size: .9rem;
    color: var(--text);
}
.spec-table thead th {
    background: rgba(255,255,255,0.03);
    font-weight: 700;
}
.spec-table tbody tr + tr td { border-top: 1px solid var(--border); }
.code-block {
    position: relative;
    max-width: 680px;
    margin: 16px auto 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    padding-right: 48px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: .83rem;
    color: var(--text);
    line-height: 1.6;
    white-space: pre;
    overflow: auto;
    text-align: left;
}
/* Copy button for code blocks */
.code-copy-btn {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-faint);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s, transform .15s;
    z-index: 2; padding: 0;
}
.code-copy-btn:hover { background: rgba(255,255,255,.12); color: var(--text); transform: scale(1.08); }
.code-copy-btn.copied { color: #4ade80; background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.2); }
.code-copy-btn svg { width: 14px; height: 14px; }

/* ── Guide (подробная инструкция WEB) ─────────────────── */
.guide-block {
    max-width: 680px; margin: 28px auto 0; text-align: left;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 30px; transition: border-color .2s;
}
.guide-block:hover { border-color: var(--border-hov); }
.guide-step-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.guide-step-header h3 { font-family: 'Inter', system-ui, sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.guide-text { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin: 0 0 18px; }
.guide-managers { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.guide-manager-card {
    flex: 1; min-width: 160px; display: flex; align-items: center; gap: 12px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; text-decoration: none; transition: border-color .2s, background .2s, transform .15s;
}
.guide-manager-card:hover { border-color: var(--border-hov); background: var(--surface-hov); transform: translateY(-2px); }
.guide-manager-icon { font-size: 1.4rem; flex-shrink: 0; }
.guide-manager-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.guide-manager-desc { font-size: .75rem; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
.guide-install-btn { margin-bottom: 16px; }
.guide-note { font-size: .8rem; color: var(--text-muted); line-height: 1.6; margin: 12px 0; padding: 10px 14px; background: rgba(255,255,255,.02); border-radius: 8px; border-left: 2px solid rgba(255,255,255,.08); }
.guide-browsers { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.guide-browser { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; }
.guide-browser-icon { font-size: 1rem; }
.guide-compat { text-align: center; }
.guide-compat h3 { margin: 0 0 4px; font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); }
.guide-compat .guide-browsers { justify-content: center; }
@media (max-width: 600px) {
    .guide-block { padding: 20px 18px; }
    .guide-managers { flex-direction: column; }
    .guide-manager-card { min-width: 0; }
}

/* ══════════════════════════════════════════════════════════
   КАРТИНКИ + ЛАЙТБОКС + PREVIEW OVERLAY
   ══════════════════════════════════════════════════════════ */

/* ── Обёртка preview ─────────────────────────────────── */
.img-preview-wrap {
    position: relative; display: block; width: 100%;
    max-width: 700px; margin: 36px auto; cursor: zoom-in;
}
.img-preview-wrap.sm-wrap { max-width: 680px; }
.img-preview-wrap .site-img { margin: 0; display: block; width: 100%; }
.img-preview-overlay {
    position: absolute; inset: 0; border-radius: var(--radius);
    background: rgba(0,0,0,0.0); display: flex; align-items: center; justify-content: center;
    transition: background .3s; pointer-events: none;
}
.img-preview-wrap:hover .img-preview-overlay {
    background: rgba(5,5,5,0.4);
}
.img-preview-icon {
    font-size: 2rem; opacity: 0; transform: scale(0.7);
    transition: opacity .3s, transform .3s; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}
.img-preview-wrap:hover .img-preview-icon { opacity: 1; transform: scale(1); }

/* Before-after обёртки */
.before-after-grid .img-preview-wrap { margin: 0; max-width: 100%; }

.site-img {
    width: 100%; max-width: 700px; height: auto;
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: none;
    transition: transform .3s, border-color .2s;
    display: block; margin: 36px auto;
    cursor: zoom-in;
}
.site-img:hover { transform: scale(1.015); border-color: var(--border-hov); }
.site-img.sm { max-width: 680px; }

.before-after-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 36px auto 0; }
.before-after-grid .img-wrap { display: flex; flex-direction: column; gap: 10px; }
.before-after-grid h3 { font-family: 'Inter', system-ui, sans-serif; font-size: .82rem; font-weight: 700; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; }
.before-after-grid img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); transition: transform .3s; cursor: zoom-in; }
.before-after-grid img:hover { transform: scale(1.02); }

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.lightbox-img {
    position: relative; z-index: 1;
    max-width: 90vw; max-height: 88vh; border-radius: 12px;
    box-shadow: 0 28px 90px rgba(0,0,0,0.8);
    transform: scale(0.92); transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s;
    object-fit: contain;
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 18px; right: 18px; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    color: #fff; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(10px);
}
.lightbox-close:hover { background: rgba(255,255,255,.12); transform: scale(1.08); }

/* Стрелки навигации */
.lightbox-arrow {
    position: absolute; top: 50%; z-index: 2;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    color: #fff; font-size: 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(10px); transform: translateY(-50%);
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-arrow:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.15);
    transform: translateY(-50%) scale(1.08);
}

/* Счётчик */
.lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2;
    background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
    padding: 6px 18px; border-radius: 100px;
    font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.5);
    letter-spacing: .05em;
}
/* Подпись к фото */
.lightbox-caption {
    position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); z-index: 2;
    background: rgba(0,0,0,.65); backdrop-filter: blur(10px);
    padding: 8px 22px; border-radius: 10px;
    font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.7);
    max-width: 80vw; text-align: center; line-height: 1.5;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transition: opacity .3s;
}
.lightbox-caption.marquee { text-overflow: clip; text-align: left; }
.lightbox-caption.marquee span {
    display: inline-block; white-space: nowrap;
    will-change: transform;
}
.lightbox.active .lightbox-caption { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .lightbox-caption.marquee span { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════
   ТЕКСТОВЫЕ БЛОКИ + СПИСКИ
   ══════════════════════════════════════════════════════════ */
.text-block { max-width: 620px; margin: 0 auto 22px; font-size: .95rem; color: var(--text-muted); line-height: 1.75; }
.text-block b, .text-block strong { color: var(--text); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 6px; max-width: 520px; margin: 0 auto 22px; text-align: left; }
.check-list li { padding: 10px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: .87rem; color: var(--text); transition: background .2s; }
.check-list li:hover { background: var(--surface-hov); }

/* ══════════════════════════════════════════════════════════
   ФЛАГИ-ЯЗЫКИ
   ══════════════════════════════════════════════════════════ */
.langs-wrap { max-width: 820px; margin: 36px auto 0; }
.langs-title { font-family: 'Inter', system-ui, sans-serif; font-size: .82rem; font-weight: 700; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .1em; }
.langs-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lang-chip {
    display: flex; align-items: center; gap: 8px; padding: 7px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
    font-size: .8rem; font-weight: 600; color: var(--text);
    transition: background .2s, border-color .2s, transform .15s;
}
.lang-chip:hover { background: var(--surface-hov); border-color: var(--border-hov); transform: translateY(-2px); }
.lang-chip img { width: 20px; height: 15px; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.3); object-fit: cover; }
.lang-chip .pct { font-size: .7rem; color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   CTA СЕКЦИЯ
   ══════════════════════════════════════════════════════════ */
.cta-section { padding: 70px 0 100px; }
.cta-box {
    max-width: 580px; margin: 0 auto;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 52px 36px 48px; position: relative; overflow: hidden;
}
.cta-box::before { content:''; position:absolute; top:-60px; left:50%; transform:translateX(-50%); width:300px; height:200px; background:radial-gradient(circle,rgba(255,255,255,.03) 0%,transparent 70%); pointer-events:none; }
.cta-box h2 { font-size: 1.8rem; color: var(--text); margin-bottom: 12px; letter-spacing: -0.03em; }
.cta-box p { font-size: .93rem; color: var(--text-muted); margin-bottom: 30px; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════
   FOOTER — Полный новый
   ══════════════════════════════════════════════════════════ */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 56px 0 32px;
    position: relative;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 180px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
}
.footer-inner { max-width: 940px; margin: 0 auto; padding: 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; text-align: left; }

/* Блок бренда */
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-gem {
    width: 40px; height: 40px; border-radius: 9px;
    background: none;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 0;
}
.footer-brand-gem img {
    width: 100%; height: 100%; object-fit: contain;
}
.footer-brand-name { font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.footer-brand-desc { font-size: .83rem; color: var(--text-muted); line-height: 1.75; max-width: 280px; }

/* Колонки */
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
    font-family: 'Inter', system-ui, sans-serif; font-size: .68rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-muted); opacity: .7; margin-bottom: 8px;
    position: relative; padding-bottom: 8px;
}
.footer-col-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 20px; height: 1px;
    background: rgba(255,255,255,.1);
    border-radius: 1px;
}
.footer-lnk {
    color: var(--text-muted); font-size: .85rem; font-weight: 500;
    transition: color .2s, transform .15s, padding-left .15s;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 0;
}
.footer-lnk:hover {
    color: var(--text);
    transform: translateX(3px);
    padding-left: 2px;
}
.footer-lnk::before {
    content: ''; display: inline-block;
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--text-muted);
    opacity: 0; transform: scale(0);
    transition: opacity .2s, transform .2s;
    flex-shrink: 0;
}
.footer-lnk:hover::before { opacity: .5; transform: scale(1); }

/* Нижняя полоска */
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; padding-top: 24px;
    border-top: 1px solid var(--border);
}
.footer-copy { font-size: .78rem; color: var(--text-faint); }
.footer-links { display: flex; gap: 16px; }
.footer-links a,
.footer-links button {
    font-size: .78rem; color: var(--text-faint);
    transition: color .2s;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--text); }
.footer-links button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

/* Footer shortcuts hint */
.footer-shortcuts {
    width: 100%; display: flex; align-items: center; justify-content: center;
    gap: 18px; padding-top: 14px; margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,.03);
    font-size: .72rem; color: var(--text-faint);
}
.footer-shortcuts kbd {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 18px; padding: 0 5px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: .65rem; font-weight: 600; font-family: inherit;
    color: var(--text-muted); margin-right: 4px;
}

/* ══════════════════════════════════════════════════════════
   БОКОВЫЕ ВЕРТИКАЛЬНЫЕ БАННЕРЫ (160×600, fixed)
   ══════════════════════════════════════════════════════════ */
.dsp-side-container {
    position: fixed; z-index: 500; opacity: 0;
    transition: opacity .6s cubic-bezier(.22,1,.36,1);
    will-change: opacity;
}
.dsp-side-container.visible { opacity: 1; }
.dsp-side {
    position: relative; background: var(--bg2);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
    transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
    width: 160px; height: 600px;
    border: 1px solid var(--border);
}
.dsp-side:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.dsp-side-label {
    position: absolute; top: 8px; left: 8px;
    background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,.7); padding: 3px 10px;
    border-radius: 6px; font-size: 10px; z-index: 2;
    line-height: 1.4; white-space: nowrap; pointer-events: none;
    font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.08);
}
.dsp-side-close {
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px;
    background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,.6); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px; z-index: 2;
    transition: background .2s, transform .15s, color .2s;
    line-height: 1; border: 1px solid rgba(255,255,255,.06);
}
.dsp-side-close:hover {
    background: rgba(255,255,255,.12); color: #fff; transform: scale(1.1);
}
.dsp-side a { display: block; width: 100%; height: 100%; }
.dsp-side img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════════════════
   ВСТРАИВАЕМЫЕ РЕКЛАМНЫЕ БЛОКИ — inline-стиль
   ══════════════════════════════════════════════════════════ */

/* Общий контейнер */
.inl-unit {
    margin: 28px auto 16px;
    max-width: 680px;
    width: calc(100% - 32px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s cubic-bezier(.22,1,.36,1),
                transform .5s cubic-bezier(.22,1,.36,1),
                max-height .4s ease, margin .4s ease;
    will-change: opacity, transform;
    overflow: hidden;
}
.inl-unit.visible { opacity: 1; transform: translateY(0); }
.inl-unit.closing { opacity: 0; max-height: 0; margin: 0 auto; }

/* Внутренняя карточка */
.inl-unit-inner {
    position: relative;
    background: var(--surface, #0d0d1a);
    border: 1px solid var(--border, rgba(255,255,255,.06));
    border-radius: var(--radius, 14px);
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.inl-unit-inner:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,.4);
    transform: translateY(-1px);
}

/* Шапка блока */
.inl-unit-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
    background: rgba(255,255,255,.015);
}
.inl-unit-badge {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.45);
    padding: 2px 8px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    line-height: 1.4;
}
.inl-unit-provider {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    font-weight: 500;
}
.inl-unit-provider--ym { color: #fc3f1d; font-weight: 600; }

/* Кнопка закрытия */
.inl-unit-x {
    margin-left: auto;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,.35);
    border-radius: 50%;
    font-size: 16px; line-height: 1;
    transition: background .2s, color .2s, transform .15s;
}
.inl-unit-x:hover {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.8);
    transform: scale(1.15);
}

/* Ссылка-контент */
.inl-unit-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: background .2s;
}
.inl-unit-link:hover { background: rgba(255,255,255,.02); }

/* ── Вариант: товарная карточка (Маркет) ─────── */
.inl-unit--shop .inl-unit-link--product {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
}
.inl-unit-product-img {
    flex-shrink: 0;
    width: 100px; height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border, rgba(255,255,255,.06));
    display: flex; align-items: center; justify-content: center;
    transition: transform .3s ease;
}
.inl-unit--shop:hover .inl-unit-product-img { transform: scale(1.03); }
.inl-unit-product-img img {
    max-width: 100%; max-height: 100%;
    object-fit: contain; display: block;
}

.inl-unit-product-body { flex: 1; min-width: 0; }
.inl-unit-product-cat {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-faint, rgba(255,255,255,.35));
    margin-bottom: 4px;
}
.inl-unit-product-name {
    font-size: 15px; font-weight: 700;
    color: var(--text, #e8e8e8);
    line-height: 1.3; margin-bottom: 4px;
}
.inl-unit-product-desc {
    font-size: 12.5px;
    color: var(--text-muted, rgba(255,255,255,.55));
    line-height: 1.45; margin-bottom: 12px;
}
.inl-unit-product-row {
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap;
}
.inl-unit-product-price {
    font-size: 17px; font-weight: 800;
    color: var(--text, #e8e8e8);
    letter-spacing: -.01em;
}
.inl-unit-product-btn {
    display: inline-flex; align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fc3f1d 0%, #ff6b4a 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 12px; font-weight: 700;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 2px 12px rgba(252,63,29,.25);
}
.inl-unit-product-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(252,63,29,.35);
}

/* ── Мобильная адаптация ─────────────────────── */
@media (max-width: 600px) {
    .inl-unit { width: calc(100% - 20px); margin: 20px auto 10px; }
    .inl-unit-link { flex-direction: column; gap: 10px; padding: 14px; }
    .inl-unit-visual { width: 100%; height: auto; max-height: 160px; }
    .inl-unit--shop .inl-unit-link--product { flex-direction: column; gap: 12px; padding: 14px; }
    .inl-unit-product-img { width: 80px; height: 80px; margin: 0 auto; }
    .inl-unit-product-body { text-align: center; }
    .inl-unit-product-row { justify-content: center; }
}

@keyframes contentSwap { 0%{ opacity:1; } 50%{ opacity:.3; } 100%{ opacity:1; } }

/* ══════════════════════════════════════════════════════════
   УВЕДОМЛЕНИЯ (update/nuke)
   ══════════════════════════════════════════════════════════ */
.update-notification {
    position: fixed; bottom: 24px; right: 24px; z-index: 8000;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    animation: slideInRight .4s cubic-bezier(.22,1,.36,1);
    max-width: 320px;
}
.update-content p { font-size: .9rem; color: var(--text); margin-bottom: 12px; }
.update-buttons { display: flex; gap: 8px; }
.update-btn { padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: .82rem; font-weight: 700; font-family: 'Inter', sans-serif; transition: transform .15s; }
.update-btn:not(.later) { background: #fff; color: #050505; }
.update-btn.later { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }
.update-btn:hover { transform: translateY(-2px); }
.nuke-notification { position: fixed; bottom: 24px; right: 24px; z-index: 8000; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: slideInRight .4s cubic-bezier(.22,1,.36,1); max-width: 340px; }
.nuke-notification-content { display: flex; gap: 12px; align-items: flex-start; }
.nuke-icon { font-size: 1.6rem; flex-shrink: 0; }
.nuke-message strong { display: block; color: var(--text); font-size: .9rem; margin-bottom: 4px; }
.nuke-message p { color: var(--text-muted); font-size: .8rem; margin: 0; }
.nuke-message .nuke-subtext { opacity: .7; margin-top: 3px; }
.nuke-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 0; margin-left: auto; flex-shrink: 0; }
.nuke-close:hover { color: var(--text); }
@keyframes slideInRight { from{ opacity:0; transform:translateX(40px); } to{ opacity:1; transform:translateX(0); } }
@keyframes nukeSlideOut { to{ opacity:0; transform:translateX(40px); } }

/* ══════════════════════════════════════════════════════════
   AOS
   ══════════════════════════════════════════════════════════ */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* Scroll-to-top */
.scroll-top-btn {
    position: fixed; bottom: 22px; right: 22px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--text-muted);
    font-size: 16px; cursor: pointer; z-index: 700; opacity: 0;
    transition: opacity .3s, transform .15s; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}
.scroll-top-btn.show { opacity: 1; pointer-events: all; }
.scroll-top-btn:hover { transform: translateY(-2px); color: var(--text); background: rgba(255,255,255,.08); }

/* ══════════════════════════════════════════════════════════
   HERO COMPACT (для страницы "Другое")
   ══════════════════════════════════════════════════════════ */
.hero-compact { min-height: 55vh; }

/* ══════════════════════════════════════════════════════════
   PROJECTS GRID (Другие проекты)
   ══════════════════════════════════════════════════════════ */
.projects-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
    max-width: 760px; margin: 0 auto; text-align: left;
}
.project-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px 22px 20px;
    display: flex; flex-direction: column; gap: 10px;
    transition: background .25s, border-color .25s, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
    cursor: pointer; text-decoration: none; color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    will-change: transform;
}
.project-card:hover {
    background: var(--surface-hov); border-color: var(--border-hov);
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 12px 32px rgba(0,0,0,.3), 0 0 0 1px var(--border-hov);
}
.project-card:active {
    transform: translateY(-2px) scale(0.99);
    transition-duration: .1s;
}
.project-header { display: flex; align-items: center; justify-content: space-between; }
.project-icon { font-size: 1.5rem; }
.project-visibility {
    font-size: .65rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 100px;
    padding: 3px 10px; background: transparent;
}
.project-name {
    font-family: 'Inter', system-ui, sans-serif; font-size: 1.02rem; font-weight: 700;
    color: var(--text); line-height: 1.3; letter-spacing: -0.01em;
}
.project-card:hover .project-name { color: var(--accent); }
.project-desc {
    font-size: .82rem; color: var(--text-muted); line-height: 1.6;
    flex: 1;
}
.project-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: .78rem; color: var(--text-faint); margin-top: 4px;
}
.project-lang { display: flex; align-items: center; gap: 6px; }
.lang-dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.lang-dot.js { background: #f7df1e; }
.lang-dot.py { background: #3776ab; }
.lang-dot.ts { background: #3178c6; }
.project-stars { font-size: .78rem; }
.project-forks { font-size: .78rem; }
.project-updated { font-size: .72rem; margin-left: auto; opacity: 0.6; }

/* Projects loading */
.projects-loading {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 48px 0; color: var(--text-muted); font-size: .9rem;
}
.loading-spinner {
    width: 28px; height: 28px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   ПОИСК ПО САЙТУ (overlay)
   ══════════════════════════════════════════════════════════ */
.search-overlay {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: min(18vh, 160px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box {
    width: 560px; max-width: calc(100% - 32px);
    background: var(--surface, #0d0d1a);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    overflow: hidden;
    transform: translateY(-12px) scale(.97);
    transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.search-overlay.active .search-box { transform: translateY(0) scale(1); }
.search-input-wrap {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.search-input-wrap svg { flex-shrink: 0; color: var(--text-faint); }
.search-input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 15px; font-family: inherit;
}
.search-input::placeholder { color: var(--text-faint); }
.search-kbd {
    font-size: 10px; color: var(--text-faint); padding: 2px 6px;
    border: 1px solid var(--border); border-radius: 4px;
    font-family: inherit; line-height: 1.4;
}
.search-close-btn {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: 9px;
    width: 34px;
    height: 34px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.search-close-btn:hover {
    background: var(--surface-hov);
    border-color: var(--border-hov);
    color: var(--text);
}
.search-close-btn:active {
    transform: scale(.96);
}
.search-close-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.search-results {
    max-height: 340px; overflow-y: auto;
    padding: 6px 0;
}
.search-results:empty::after {
    content: ''; display: block;
}
.search-empty {
    padding: 28px 18px; text-align: center;
    color: var(--text-faint); font-size: 13px;
}
.search-result-item {
    display: block; padding: 10px 18px;
    text-decoration: none; color: var(--text);
    transition: background .15s;
    border-left: 3px solid transparent;
}
.search-result-item:hover, .search-result-item.active {
    background: rgba(255,255,255,.04);
    border-left-color: var(--accent);
}
.search-result-page {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--accent); margin-bottom: 2px;
}
.search-result-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.search-result-text {
    font-size: 12px; color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.search-result-text mark {
    background: rgba(255,200,0,.25); color: var(--text);
    border-radius: 2px; padding: 0 1px;
}
.search-footer {
    padding: 8px 18px; border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
    font-size: 10px; color: var(--text-faint);
}
.search-footer kbd {
    padding: 1px 5px; border: 1px solid var(--border);
    border-radius: 3px; font-size: 10px; font-family: inherit;
}

/* ══════════════════════════════════════════════════════════
   KEYBOARD SHORTCUTS (модалка)
   ══════════════════════════════════════════════════════════ */
.shortcuts-overlay {
    position: fixed; inset: 0; z-index: 9400;
    background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.shortcuts-overlay.active { opacity: 1; visibility: visible; }
.shortcuts-modal {
    width: 440px; max-width: calc(100% - 32px);
    background: var(--surface, #0d0d1a);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    padding: 24px 28px;
    transform: scale(.95); transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.shortcuts-overlay.active .shortcuts-modal { transform: scale(1); }
.shortcuts-title {
    font-size: 16px; font-weight: 700;
    color: var(--text); margin-bottom: 18px;
    display: flex; align-items: center; justify-content: space-between;
}
.shortcuts-close {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-faint);
    transition: background .2s, color .2s;
    font-size: 18px;
}
.shortcuts-close:hover { background: rgba(255,255,255,.08); color: var(--text); }
.shortcuts-list { list-style: none; padding: 0; margin: 0; }
.shortcuts-list li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 0; font-size: 13px; color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.shortcuts-list li:last-child { border-bottom: none; }
.shortcuts-list kbd {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 22px; padding: 0 7px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 11px; font-weight: 600; font-family: inherit;
    color: var(--text);
}

@media (max-width: 600px) {
    body.search-open {
        overflow: hidden;
        touch-action: none;
    }

    .search-overlay {
        padding-top: 0;
        align-items: stretch;
        justify-content: stretch;
        background: rgba(3,4,10,.88);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .search-box {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        transform: none;
    }
    .search-overlay.active .search-box { transform: none; }
    .search-input-wrap {
        min-height: calc(58px + env(safe-area-inset-top));
        padding: max(10px, env(safe-area-inset-top)) 12px 10px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
    }
    .search-input {
        font-size: 16px;
    }
    .search-kbd { display: none; }
    .search-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .search-results {
        flex: 1;
        max-height: none;
        padding: 8px 0;
    }
    .search-result-item {
        padding: 12px 14px;
    }
    .search-result-title { font-size: 15px; }
    .search-result-text { font-size: 13px; }
    .search-footer {
        display: none;
    }
    .shortcuts-modal { padding: 18px 20px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) { .dsp-side-container { display: none !important; } }

@media (max-width: 820px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .features-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
    body { padding-top: 58px; }
    .main-nav { height: 58px; }
    .nav-inner { padding: 0 14px; }
    .nav-tabs {
        position: fixed; top: 58px; left: 0; right: 0;
        background: rgba(5,5,5,.97); backdrop-filter: blur(24px);
        flex-direction: column; gap: 2px; padding: 10px 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,.04);
        transform: translateY(-120%); opacity: 0;
        transition: transform .3s cubic-bezier(.7,0,.3,1.1), opacity .25s;
        pointer-events: none; z-index: 899;
    }
    [data-theme="light"] .nav-tabs { background: rgba(250,250,250,.97); }
    .nav-tabs.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-tab-link { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 14px; border-radius: 10px; width: 100%; }
    .nav-tab-link.active::after { display: none; }
    .nav-tab-link.active { box-shadow: 3px 0 0 rgba(255,255,255,.25) inset; }
    .nav-sub { font-size: .75rem; }
    .nav-label { font-size: 1rem; }
    .nav-burger { display: flex; }
    .nav-logo-text { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .steps-row { flex-direction: column; align-items: center; }
    .step-arrow { padding-top: 0; transform: rotate(90deg); }
    .step-card { max-width: 400px; width: 100%; }
    .before-after-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 36px 20px 32px; }
    .cta-box h2 { font-size: 1.5rem; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-brand { grid-column: 1/-1; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; justify-content: center; }
    /* Mobile scroll indicator — hide mouse, show arrows only */
    .mouse, .arrows { display: none; }
    .mobile-only-arrows { display: flex; }
    .mouse-scroll-container { bottom: 14px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    section { padding: 60px 0; }
    /* Lightbox mobile */
    .lightbox-arrow { width: 40px; height: 40px; font-size: 20px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
    .lightbox-counter { bottom: 12px; font-size: .75rem; padding: 5px 14px; }
    .lightbox-img { max-width: 96vw; max-height: 80vh; border-radius: 10px; }
}

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

/* ══════════════════════════════════════════════════════════
   FAQ АККОРДЕОН
   ══════════════════════════════════════════════════════════ */
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: border-color .2s;
}
.faq-item:hover { border-color: var(--border-hov); }
.faq-item.open { border-color: var(--border-hov); }
.faq-question {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 20px; cursor: pointer; font-size: .93rem; font-weight: 600;
    color: var(--text); transition: color .2s; user-select: none;
    background: none; border: none; width: 100%; text-align: left; font-family: inherit;
    letter-spacing: -0.01em;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
    width: 22px; height: 22px; flex-shrink: 0; position: relative;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute; background: var(--text-muted);
    border-radius: 2px; transition: transform .3s, opacity .3s;
}
.faq-icon::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.faq-icon::after  { width: 2px; height: 14px; top: 4px; left: 10px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
    padding: 0 20px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 18px; }
.faq-answer p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* Заголовок категории FAQ */
.faq-category {
    max-width: 680px; margin: 32px auto 12px; font-size: 1.05rem; font-weight: 700;
    color: var(--text); letter-spacing: -0.01em;
}
.faq-category:first-of-type { margin-top: 20px; }

/* ══════════════════════════════════════════════════════════
   СРАВНИТЕЛЬНЫЙ СЛАЙДЕР (До / После) — Маска
   ══════════════════════════════════════════════════════════ */
.compare-slider {
    position: relative;
    max-width: 700px;
    margin: 36px auto;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
    touch-action: pan-y;
    border: 1px solid var(--border);
    transition: border-color .2s;
}

.compare-slider:hover {
    border-color: var(--border-hov);
}

.compare-slider.dragging {
    border-color: rgba(255,255,255,.15);
}

/* Базовая картинка (ПОСЛЕ) */
.compare-slider > img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    position: relative;
}

/* Верхняя картинка (ДО) */
.compare-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.05s linear;
}

.compare-before img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Вертикальная ручка */
.compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 3px;
    z-index: 3;
    background: rgba(255,255,255,.4);
    cursor: col-resize;
    transition: box-shadow .2s ease;
    transform: translateX(-50%);
}

/* Кружок на ручке */
.compare-handle::before {
    content: '⇔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    transition: all .2s cubic-bezier(.34,1.56,.64,1);
    pointer-events: auto;
    white-space: nowrap;
    letter-spacing: -0.05em;
}

/* Эффекты при наведении */
.compare-slider:hover .compare-handle::before {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255,255,255,.14);
}

/* Эффекты при перетаскивании */
.compare-slider.dragging .compare-handle::before {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(255,255,255,.18);
}

/* Лейблы "ДО" и "ПОСЛЕ" */
.compare-label {
    position: absolute;
    top: 16px;
    z-index: 4;
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.08);
    transition: all .2s ease;
}

.compare-label-before {
    left: 16px;
    background: rgba(5,5,5,.7);
    color: rgba(255,255,255,.8);
    border-color: rgba(255,255,255,.1);
}

.compare-label-after {
    right: 16px;
    background: rgba(5,5,5,.7);
    color: rgba(255,255,255,.8);
    border-color: rgba(255,255,255,.1);
}

/* Светлая тема */
[data-theme="light"] .compare-label-before {
    background: rgba(255,255,255,.8);
    color: #222;
    border-color: rgba(0,0,0,.06);
}

[data-theme="light"] .compare-label-after {
    background: rgba(255,255,255,.8);
    color: #222;
    border-color: rgba(0,0,0,.06);
}

[data-theme="light"] .compare-handle {
    background: rgba(0,0,0,.3);
}
[data-theme="light"] .compare-handle::before {
    background: rgba(255,255,255,.85);
    color: #222;
    border-color: rgba(0,0,0,.1);
}

/* ══════════════════════════════════════════════════════════
   SUPPORTED MODELS / МОДЕЛИ
   ══════════════════════════════════════════════════════════ */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    max-width: 700px;
    margin: 0 auto 20px;
}
.models-grid-sm {
    margin-top: 14px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}
.model-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .2s ease;
    cursor: default;
}
.model-card:hover {
    border-color: var(--border-hov);
    background: var(--surface-hov);
    transform: translateY(-3px);
}
.model-card.model-featured {
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.03);
}
.model-card.model-featured:hover {
    border-color: rgba(255,255,255,.15);
    background: rgba(255,255,255,.05);
}
.model-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
    line-height: 1;
}
.model-name {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.models-grid-sm .model-card {
    padding: 12px 8px;
}
.models-grid-sm .model-name {
    font-size: .92rem;
}
.models-extra {
    max-width: 700px;
    margin: 0 auto 20px;
}
.models-extra-toggle {
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .95rem;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    background: transparent;
    transition: all .2s;
    list-style: none;
    text-align: center;
    display: block;
    width: 100%;
}
.models-extra-toggle::-webkit-details-marker { display: none; }
.models-extra-toggle:hover {
    background: var(--surface-hov);
    border-color: var(--border-hov);
}
.models-extra[open] .models-extra-toggle {
    margin-bottom: 0;
    border-style: solid;
    border-color: var(--border-hov);
}
.driver-version-bar {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.driver-version-label {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.driver-version-count {
    font-size: .8rem;
    color: var(--text-faint);
    margin-bottom: 14px;
}
.dv-count-num {
    color: var(--text);
    font-weight: 700;
}
.driver-version-range {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: border-color .2s;
}
.driver-version-range:hover {
    border-color: var(--border-hov);
}
.driver-v-start,
.driver-v-end {
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
    white-space: nowrap;
    transition: color .3s;
}
.driver-v-start { color: var(--text-muted); }
.driver-v-end { color: var(--text); }
.driver-v-line {
    flex: 1;
    height: 2px;
    margin: 0 14px;
    background: linear-gradient(90deg, var(--text-muted) 0%, rgba(255,255,255,.4) 100%);
    border-radius: 2px;
    position: relative;
}
.driver-v-line::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,.5);
    border-radius: 50%;
}

/* Пасхалка: интерактивный ползунок версий драйвера */
.driver-v-track {
    flex: 1;
    height: 8px;
    margin: 0 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}
.driver-v-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 25%, #22c55e 60%, #22c55e 100%);
    will-change: width;
}
.driver-v-handle {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    margin-top: -11px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    border: 3px solid var(--bg);
    cursor: grab;
    z-index: 3;
    will-change: left;
    transition: transform .15s cubic-bezier(.4,0,.2,1), box-shadow .3s, background .3s;
}
/* Убираем ВСЕ тяжёлые transition во время перетаскивания */
.is-dragging .driver-v-fill,
.is-dragging .driver-v-handle {
    transition: none !important;
}
.driver-v-handle::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: opacity 0.2s;
}
.driver-v-handle:hover {
    transform: scale(1.25);
}
.driver-v-handle:hover::before { opacity: 0.4; }
.driver-v-handle:active,
.driver-v-handle.dragging {
    cursor: grabbing;
    transform: scale(1.35);
}
.driver-v-handle.state-green {
    background: #22c55e;
    box-shadow: 0 0 14px rgba(34,197,94,0.4);
}
.driver-v-handle.state-yellow {
    background: #f59e0b;
    box-shadow: 0 0 14px rgba(245,158,11,0.4);
}
.driver-v-handle.state-red {
    background: #ef4444;
    box-shadow: 0 0 14px rgba(239,68,68,0.4);
}
.driver-v-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(0.9);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 14px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    text-align: center;
    min-width: 100px;
}
.driver-v-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: var(--border);
}
.dvt-version {
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: .95rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.02em;
}
.dvt-date {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.dvt-badge {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
}
.dvt-stable {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}
.dvt-beta {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.3);
}
.driver-v-handle:hover .driver-v-tooltip,
.driver-v-handle.dragging .driver-v-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}
.driver-v-fill.glow-green {
    box-shadow: 0 0 10px rgba(34,197,94,0.2);
}
.driver-v-fill.glow-yellow {
    box-shadow: 0 0 10px rgba(245,158,11,0.2);
}
.driver-v-fill.glow-red {
    box-shadow: 0 0 10px rgba(239,68,68,0.2);
}
.driver-version-range.easter-active {
    border-color: rgba(255,255,255,.1);
}
.driver-version-range.easter-active .driver-v-start {
    color: #ef4444;
}
.driver-version-range.easter-active .driver-v-end {
    color: #22c55e;
}

/* ══════════════════════════════════════════════════════════
   CHANGELOG / ТАЙМЛАЙН
   ══════════════════════════════════════════════════════════ */
.changelog-timeline { max-width: 620px; margin: 0 auto; position: relative; padding-left: 36px; }
.changelog-timeline::before {
    content: ''; position: absolute; left: 14px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.04));
    border-radius: 2px;
}
.changelog-item { position: relative; margin-bottom: 28px; }
.changelog-item:last-child { margin-bottom: 0; }
.changelog-dot {
    position: absolute; left: -29px; top: 6px;
    width: 14px; height: 14px; border-radius: 50%;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.1);
    z-index: 1;
}
.changelog-item:first-child .changelog-dot {
    width: 18px; height: 18px; left: -31px; top: 4px;
    background: rgba(255,255,255,.3);
    border-color: rgba(255,255,255,.15);
}
.changelog-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px;
    transition: border-color .2s, transform .2s;
    text-align: left;
}
.changelog-card:hover { border-color: var(--border-hov); transform: translateY(-2px); }
.changelog-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.changelog-version {
    font-family: 'Inter', system-ui, sans-serif; font-size: 1.02rem; font-weight: 800; color: var(--text);
    letter-spacing: -0.01em;
}
.changelog-date {
    font-size: .75rem; color: var(--text-muted); font-weight: 600;
    background: rgba(255,255,255,.04); padding: 2px 10px; border-radius: 100px;
}
.changelog-badge {
    font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 2px 10px; border-radius: 100px;
    background: rgba(255,255,255,.04);
    color: var(--text-muted); border: 1px solid rgba(255,255,255,.08);
}
.changelog-changes { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.changelog-changes li {
    font-size: .84rem; color: var(--text-muted); line-height: 1.6;
    padding-left: 18px; position: relative;
}
.changelog-changes li::before {
    content: '→'; position: absolute; left: 0; color: var(--text-faint); font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   АНИМИРОВАННАЯ СТАТИСТИКА
   ══════════════════════════════════════════════════════════ */
.stats-row {
    display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
    max-width: 700px; margin: 0 auto 40px;
}
.stat-card {
    flex: 1; min-width: 140px; max-width: 200px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 16px;
    text-align: center; transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: var(--border-hov); transform: translateY(-4px); }
.stat-number {
    font-family: 'Inter', system-ui, sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800; color: var(--text); letter-spacing: -0.02em;
}
.stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.stat-sub { font-size: .65rem; color: var(--text-faint); margin-top: 2px; }
.stat-card-accent {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    position: relative;
}
.stat-card-accent::before {
    content: '\2211';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: .75rem;
    color: var(--text-faint);
    opacity: 0.4;
}
.stat-card-accent:hover {
    border-color: rgba(255,255,255,.12);
}

/* GitHub download counter in hero */
.hero-downloads {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 100px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    font-size: .8rem; font-weight: 600; color: var(--text-muted);
    backdrop-filter: blur(6px); margin-top: 6px;
    transition: opacity .5s;
}
.hero-downloads .dl-icon { font-size: 1rem; }
.hero-downloads .dl-count { font-weight: 800; font-family: 'Inter', system-ui, sans-serif; }

/* ══════════════════════════════════════════════════════════
   КНОПКИ «ПОДЕЛИТЬСЯ»
   ══════════════════════════════════════════════════════════ */
.share-bar {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin-top: 20px;
}
.share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 10px;
    font-size: .82rem; font-weight: 600; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); transition: background .2s, border-color .2s, transform .2s;
    text-decoration: none; font-family: 'Inter', sans-serif;
}
.share-btn:hover {
    background: var(--surface-hov); border-color: var(--border-hov);
    transform: translateY(-2px);
}
.share-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.share-btn.tg:hover { color: #28a8ea; border-color: rgba(40,168,234,.4); }
.share-btn.vk:hover { color: #4680c2; border-color: rgba(70,128,194,.4); }
.share-btn.copy:hover { color: var(--text); border-color: var(--border-hov); }
.share-btn.copy.copied { color: #22c55e; border-color: rgba(34,197,94,.4); }

/* ══════════════════════════════════════════════════════════
   СТРАНИЦА 404
   ══════════════════════════════════════════════════════════ */
body.page-404 {
    padding-top: 0; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}
.error-card {
    width: min(600px, 92vw); text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 48px 32px;
    position: relative; overflow: hidden;
}
.error-card::before {
    content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
    pointer-events: none;
}
.error-code {
    font-family: 'Inter', system-ui, sans-serif; font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 800; line-height: 1;
    color: var(--text);
    opacity: .15;
    margin-bottom: 12px;
    animation: error-float 4s ease-in-out infinite;
}
@keyframes error-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.error-title { font-family: 'Inter', system-ui, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.02em; }
.error-desc { color: var(--text-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 28px; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — новые компоненты
   ══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .stats-row { gap: 10px; }
    .stat-card { min-width: 100px; padding: 16px 12px; }
    .changelog-timeline { padding-left: 28px; }
    .changelog-timeline::before { left: 10px; }
    .changelog-dot { left: -24px; }
    .changelog-item:first-child .changelog-dot { left: -26px; }
    .compare-handle::before { width: 32px; height: 32px; font-size: 13px; }
    .share-bar { gap: 6px; }
    .share-btn { padding: 8px 14px; font-size: .78rem; }
}

/* Финальные мобильные/perf overrides (последние по каскаду) */
@media (pointer: coarse), (max-width: 960px) {
    .cursor-glow { display: none !important; }

    .main-nav {
        backdrop-filter: blur(var(--nav-blur-strength, 14px)) saturate(1.05) !important;
        -webkit-backdrop-filter: blur(var(--nav-blur-strength, 14px)) saturate(1.05) !important;
    }

    .hero-bg,
    .hero-bg-incoming {
        filter: blur(var(--hero-bg-blur-strength-mobile, 10px)) brightness(0.30) saturate(0.65) !important;
        transform: scale(1.04) !important;
    }
    [data-theme="light"] .hero-bg,
    [data-theme="light"] .hero-bg-incoming {
        filter: blur(var(--hero-bg-blur-strength-mobile-light, 9px)) brightness(0.62) saturate(0.55) !important;
    }

    .search-overlay,
    .shortcuts-overlay,
    .lightbox-backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .project-card,
    .step-card,
    .feat-card,
    .feature-card,
    .stat-card,
    .cta-box,
    .guide-block {
        box-shadow: none !important;
    }

    .site-settings-panel {
        max-height: calc(100vh - 84px) !important;
        overflow: auto !important;
    }
}

@media (max-width: 640px) {
    body { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
    .site-settings-panel {
        width: calc(100vw - 12px) !important;
        max-height: calc(100vh - 72px) !important;
    }
    .settings-grid { gap: 6px !important; padding: 10px !important; }

    .hero-content { padding: 52px 14px 64px !important; }
    .hero h1 { font-size: clamp(2rem,10vw,2.8rem) !important; }
    .hero p { font-size: .92rem !important; }

    .container { padding: 0 16px !important; }
    section { padding: 52px 0 !important; }

    .stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .stat-card {
        max-width: none !important;
        min-width: 0 !important;
    }

    .models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .footer-shortcuts { flex-wrap: wrap !important; gap: 10px !important; }
}

/* ============================================================
   DEVICE STYLE PROFILES
   - Mobile: phones / small tablets
   - Laptop: 768px-1440px
   ============================================================ */

@media (max-width: 767px) {
    /* Mobile profile */
    body {
        padding-top: calc(58px + env(safe-area-inset-top)) !important;
    }

    body.nav-open {
        position: fixed;
        width: 100%;
        top: calc(-1 * var(--scroll-y, 0px));
        left: 0;
        right: 0;
        overflow: hidden;
    }

    .main-nav {
        height: calc(58px + env(safe-area-inset-top));
        min-height: calc(58px + env(safe-area-inset-top));
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-top: max(0px, env(safe-area-inset-top));
    }

    .nav-inner {
        min-height: 58px;
        padding: 0 10px !important;
        gap: 6px;
    }

    .nav-logo-text { display: none; }
    .nav-controls { gap: 6px; }

    /* На мобильных поиск компактный и раскрывается только при фокусе */
    .nav-search-inline {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        padding: 0 !important;
        border-color: transparent;
        background: transparent;
        overflow: hidden;
    }
    .nav-search-inline .nav-search-field {
        width: 0;
        min-width: 0;
        opacity: 0;
        pointer-events: none;
        padding: 0;
    }
    .nav-search-inline:focus-within {
        width: min(56vw, 220px) !important;
        max-width: min(56vw, 220px) !important;
        padding: 0 4px 0 0 !important;
        border-color: var(--border);
        background: var(--surface);
    }
    .nav-search-inline:focus-within .nav-search-field {
        width: auto;
        opacity: 1;
        pointer-events: auto;
        padding: 0 2px;
    }

    .theme-btn,
    .lang-btn,
    .nav-burger,
    .nav-search-btn,
    .site-settings-btn {
        min-width: 42px;
        min-height: 42px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-burger {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .nav-burger span { width: 17px; }

    .lang-btn {
        padding: 0 10px;
        max-width: 92px;
    }

    .nav-tabs {
        top: calc(58px + env(safe-area-inset-top));
        max-height: calc(100dvh - 58px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: max(16px, calc(16px + env(safe-area-inset-bottom)));
    }

    .hero-main { min-height: 100svh; }

    .site-settings-panel { max-height: calc(100dvh - 72px) !important; }
    .settings-grid {
        max-height: calc(100dvh - 168px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .lang-menu {
        max-height: calc(100dvh - 58px - env(safe-area-inset-top));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tab-link { min-height: 50px; touch-action: pan-y; }
}

@supports (height: 100dvh) {
    @media (max-width: 767px) {
        .hero-main { min-height: 100dvh; }
    }
}

@media (max-width: 374px) {
    .nav-label { font-size: .9rem; }
    .nav-sub { font-size: .66rem; }
    .hero h1 { font-size: clamp(1.72rem, 9vw, 2.3rem) !important; }
    .site-settings-panel { right: 6px; width: calc(100vw - 10px) !important; }
}

@media (pointer: coarse) {
    .btn:hover,
    .nav-tab-link:hover,
    .stat-card:hover,
    .project-card:hover,
    .step-card:hover,
    .feature-card:hover {
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1440px) {
    /* Laptop profile */
    :root { --content-max-width: 1040px; }

    .container { padding: 0 20px; }
    section { padding: 72px 0; }
    .hero-main { min-height: 90vh; }

    .nav-inner { max-width: 1180px; }
    .nav-search-inline {
        width: clamp(170px, 24vw, 300px);
        max-width: 300px;
    }

    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
    .steps-row { flex-wrap: wrap; gap: 14px; }
    .step-arrow { display: none; }
}
