/* ============================================================
   Mi-MOD ELO — Neon Depth
   ============================================================ */

/* ---------- fonts (локально, woff2) ---------- */
/* Unbounded — заголовки */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/unbounded-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/unbounded-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/unbounded-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/unbounded-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope — текст */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/manrope-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/manrope-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/manrope-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/manrope-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — числа/код */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: #0a0a12;
  color: #e8e8f0;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- CSS variables ---------- */
:root {
  --bg-deep: #0a0a12;
  --bg-surface: #12121e;
  --surface-glass: rgba(255,255,255,0.03);
  --surface-border: rgba(255,255,255,0.07);
  --accent-1: #00e5ff;
  --accent-2: #7c4dff;
  --accent-grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-dim: #55556a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(0,229,255,0.15);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }

code, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- background aura ---------- */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 640px; height: 640px;
  background: #1a0a2e;
  top: -220px; left: -160px;
  animation: aura-1 24s ease-in-out infinite alternate;
}
body::after {
  width: 540px; height: 540px;
  background: #0a1a2e;
  bottom: -160px; right: -120px;
  animation: aura-2 30s ease-in-out infinite alternate;
}
@keyframes aura-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes aura-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, -60px) scale(1.1); }
}

/* ---------- container ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(10,10,18,0.72);
  border-bottom: 1px solid var(--surface-border);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.logo-mi {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.logo-mod {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #0a0a12;
  padding: 7px 14px 7px 16px;
  border-radius: 3px;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 9px 20px;
  border-radius: 8px;
  background: var(--accent-grad);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 20px rgba(0,229,255,0.25);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0,229,255,0.4);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 0 30px rgba(0,229,255,0.28);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(0,229,255,0.5);
}
.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--accent-1);
  box-shadow: 0 0 30px rgba(0,229,255,0.14);
}

/* ---------- glass card ---------- */
.card {
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- section ---------- */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-title { margin-bottom: 14px; }
.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 56px;
  max-width: 640px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 40px 0 30px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--text-dim);
  font-size: 13px;
}
.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer a:hover { color: var(--accent-1); }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .btn { padding: 13px 26px; font-size: 14px; }
  .card { padding: 22px; }
}

/* ============================================================
   Home page blocks
   ============================================================ */

/* ---------- gradient text ---------- */
.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- hero ---------- */
.hero { padding: 100px 0 80px; }
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--surface-border);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.6; transform: scale(0.85); }
}
.hero h1 { margin-bottom: 22px; }
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- hero stats ---------- */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- grid-4 ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-4 .card h3 { margin-bottom: 10px; font-size: 18px; }
.grid-4 .card p { color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

.icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--accent-1);
  margin-bottom: 20px;
}
.icon svg { width: 22px; height: 22px; }

/* ---------- preview ---------- */
.preview {
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}
.preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* оставлен на будущее, если понадобится заглушка */
.preview-ph {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,229,255,0.08), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(124,77,255,0.08), transparent 50%),
    #0a0a12;
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-secondary);
}
.preview-ph span { font-size: 16px; font-weight: 500; }
.preview-ph small { font-size: 12px; color: var(--text-dim); }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 0 20px rgba(0,229,255,0.3);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.step code {
  background: rgba(0,229,255,0.08);
  color: var(--accent-1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

/* ---------- CTA block ---------- */
.cta-block {
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(0,229,255,0.1), transparent 60%),
    rgba(255,255,255,0.02);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}
.cta-block h2 { margin-bottom: 12px; }
.cta-block p { color: var(--text-secondary); margin-bottom: 30px; font-size: 16px; }

/* ---------- ripple ---------- */
.btn .ripple,
.nav-cta .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple-anim 0.65s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(2.4); opacity: 0; }
}

/* ---------- responsive home ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
  .hero-stats { gap: 32px; margin-top: 48px; }
  .stat-num { font-size: 26px; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-sub { font-size: 16px; }
}

/* ============================================================
   Guide / install page blocks
   ============================================================ */

.guide {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.guide-step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 26px 28px;
}
.guide-step .step-num {
  flex-shrink: 0;
}
.guide-body { flex: 1; min-width: 0; }
.guide-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 12px;
}
.guide-body p { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.65; }
.guide-body p:last-child { margin-bottom: 0; }
.guide-body a { color: var(--accent-1); text-decoration: none; border-bottom: 1px dashed rgba(0,229,255,0.4); }
.guide-body a:hover { border-bottom-style: solid; }
.guide-body ol, .guide-body ul {
  margin: 10px 0 14px 20px;
  color: var(--text-secondary);
}
.guide-body ol li, .guide-body ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.guide-body strong { color: var(--text-primary); font-weight: 600; }
.guide-body code {
  background: rgba(0,229,255,0.08);
  color: var(--accent-1);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  word-break: break-all;
}

/* way — блок со способом поиска папки */
.way {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 14px 0;
}
.way strong { display: block; margin-bottom: 10px; color: var(--text-primary); }

/* note */
.note {
  background: rgba(0,229,255,0.05);
  border-left: 3px solid var(--accent-1);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 16px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.note strong { color: var(--text-primary); }
.note.warn {
  background: rgba(255,193,7,0.06);
  border-left-color: #ffc107;
}

/* mono list */
.mono-list { list-style: none; margin-left: 0 !important; padding-left: 0; }
.mono-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mono-list li:last-child { border-bottom: none; }

/* path pre */
.path-pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-1);
  overflow-x: auto;
  margin: 14px 0;
}

/* check list */
.check-list { list-style: none; margin-left: 0 !important; padding-left: 0; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: bold;
}

/* dim text */
.dim { color: var(--text-dim) !important; font-size: 13.5px; }

/* block (общий блок на странице) */
.block {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--surface-border);
}
.block h2 { margin-bottom: 16px; }
.block > p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
  max-width: 780px;
}
.block code {
  background: rgba(0,229,255,0.08);
  color: var(--accent-1);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.block strong { color: var(--text-primary); font-weight: 600; }

/* faq — details/summary */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq details:hover { border-color: rgba(0,229,255,0.25); }
.faq details[open] { border-color: rgba(0,229,255,0.35); }
.faq summary {
  padding: 16px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 44px;
  transition: color var(--transition);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent-1);
  transition: transform var(--transition);
}
.faq details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}
.faq summary:hover { color: var(--accent-1); }
.faq details > *:not(summary) {
  padding: 0 22px 18px 22px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14.5px;
}
.faq details ul, .faq details ol {
  margin: 0 0 0 20px;
  padding: 0 0 18px 0;
}
.faq details li { margin-bottom: 6px; }

/* responsive */
@media (max-width: 768px) {
  .guide-step {
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }
  .guide-step .step-num {
    width: 34px; height: 34px;
    font-size: 14px;
  }
  .guide-body h3 { font-size: 17px; }
  .way { padding: 14px 16px; }
  .block h2 { font-size: 22px; }
}

/* ============================================================
   Homepage v3 additions
   ============================================================ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-3 .card h3 { margin-bottom: 10px; font-size: 18px; }
.grid-3 .card p { color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

.preview-section {
  padding-top: 20px;
  padding-bottom: 40px;
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   Screenshots in install guide
   ============================================================ */

.shot {
  margin: 22px auto 6px;
  max-width: 480px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: #0a0a12;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-caption {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  padding: 8px 14px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--surface-border);
}
.shot-caption code {
  background: rgba(0,229,255,0.08);
  color: var(--accent-1);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Нумерованный список в стиле гайда */
.guide-ol {
  list-style: none;
  counter-reset: gstep;
  margin: 0;
  padding: 0;
}
.guide-ol > li {
  counter-increment: gstep;
  position: relative;
  padding-left: 52px;
  margin-bottom: 26px;
}
.guide-ol > li::before {
  content: counter(gstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 0 18px rgba(0,229,255,0.3);
}
.guide-ol > li > p {
  margin: 6px 0 12px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.guide-ol strong { color: var(--text-primary); }
.guide-ol .shot { margin-top: 10px; }

/* первые два скрина (шаг «Найди папку») — крупнее */
.guide-ol .shot {
  max-width: 660px;
}

@media (max-width: 768px) {
  .guide-ol > li { padding-left: 44px; }
  .guide-ol > li::before { width: 30px; height: 30px; font-size: 13px; }
  .guide-ol .shot { max-width: 100%; }
}

/* ============================================================
   Download page
   ============================================================ */

.dl-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(0,229,255,0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(124,77,255,0.08), transparent 55%),
    rgba(255,255,255,0.02);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(14px);
  margin-bottom: 24px;
}

.dl-version {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.dl-badge {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,229,255,0.1);
  color: var(--accent-1);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(0,229,255,0.25);
}
.dl-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.dl-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-meta li {
  font-size: 14px;
  color: var(--text-secondary);
}
.dl-meta .dl-label {
  display: inline-block;
  min-width: 70px;
  color: var(--text-dim);
  font-size: 13px;
}
.dl-meta code {
  background: rgba(0,229,255,0.08);
  color: var(--accent-1);
  padding: 1px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.dl-action {
  text-align: center;
  min-width: 220px;
}
.btn-download {
  padding: 18px 40px !important;
  font-size: 16px !important;
  min-width: 200px;
}
.dl-hint {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 240px;
  line-height: 1.5;
}
.dl-hint a {
  color: var(--accent-1);
  text-decoration: none;
}
.dl-hint a:hover { text-decoration: underline; }

.dl-sha {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}
.dl-sha summary {
  padding: 14px 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  list-style: none;
  position: relative;
  padding-right: 44px;
  font-weight: 500;
}
.dl-sha summary::-webkit-details-marker { display: none; }
.dl-sha summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-1);
  font-family: var(--font-mono);
  font-size: 18px;
}
.dl-sha[open] summary::after { content: '−'; }
.dl-sha > *:not(summary) { padding: 0 20px; }
.dl-sha > *:last-child { padding-bottom: 18px; }
.dl-sha p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.dl-sha pre.path-pre {
  font-size: 12px;
  margin: 10px 0;
  word-break: break-all;
  white-space: pre-wrap;
}

.changelog {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.changelog li {
  position: relative;
  padding-left: 26px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.changelog li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-size: 12px;
  top: 3px;
}
.changelog strong { color: var(--text-primary); }

.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.req-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}
.req-check {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 10px rgba(0,229,255,0.4);
}
.req-check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #0a0a12;
  border-bottom: 2px solid #0a0a12;
  transform: rotate(45deg);
}
.req-list strong { color: var(--text-primary); }

@media (max-width: 768px) {
  .dl-card {
    grid-template-columns: 1fr;
    padding: 24px 22px;
    gap: 24px;
  }
  .dl-action { min-width: 0; }
  .dl-v { font-size: 28px; }
  .btn-download { width: 100%; }
}

/* ============================================================
   About page
   ============================================================ */

.about-block {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 26px;
  padding: 28px 32px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), transform var(--transition);
}
.about-block:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateY(-2px);
}
.about-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.22);
  color: var(--accent-1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-icon svg { width: 26px; height: 26px; }

.about-block h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.about-block p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.about-block p:last-child { margin-bottom: 0; }
.about-block strong { color: var(--text-primary); font-weight: 600; }
.about-block code {
  background: rgba(0,229,255,0.08);
  color: var(--accent-1);
  padding: 1px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 8px rgba(0,229,255,0.5);
}
.about-list strong { color: var(--text-primary); }

/* ideas block */
.ideas-block {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 26px;
  padding: 32px;
  margin-top: 40px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(0,229,255,0.1), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(124,77,255,0.1), transparent 55%),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(0,229,255,0.2);
  backdrop-filter: blur(14px);
}
.ideas-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-grad);
  color: #0a0a12;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 26px rgba(0,229,255,0.35);
}
.ideas-icon svg { width: 28px; height: 28px; }
.ideas-block h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
}
.ideas-block p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.ideas-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .about-block,
  .ideas-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }
  .about-icon,
  .ideas-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .about-icon svg { width: 22px; height: 22px; }
  .ideas-icon svg { width: 24px; height: 24px; }
  .about-block h2,
  .ideas-block h2 { font-size: 19px; }
}

/* ============================================================
   Support page — Telegram card
   ============================================================ */

.tg-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 36px 40px;
  margin-bottom: 40px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(0,229,255,0.1), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(124,77,255,0.1), transparent 55%),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(0,229,255,0.22);
  backdrop-filter: blur(14px);
  align-items: center;
}
.tg-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--accent-grad);
  color: #0a0a12;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 32px rgba(0,229,255,0.4);
}
.tg-icon svg { width: 38px; height: 38px; }
.tg-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.tg-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 620px;
}
.btn-tg {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 13px 26px !important;
  font-size: 15px !important;
}

@media (max-width: 768px) {
  .tg-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 22px;
    text-align: left;
  }
  .tg-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .tg-icon svg { width: 30px; height: 30px; }
  .tg-body h2 { font-size: 19px; }
}

/* ============================================================
   Support page — donate card
   ============================================================ */

.donate-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 36px 40px;
  margin-bottom: 40px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 100%, rgba(124,77,255,0.1), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(0,229,255,0.1), transparent 55%),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(124,77,255,0.22);
  backdrop-filter: blur(14px);
  align-items: center;
}
.donate-qr {
  width: 220px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  padding: 12px;
  box-shadow: 0 0 32px rgba(124,77,255,0.35);
}
.donate-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.donate-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.donate-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 560px;
}
.donate-hint {
  font-size: 12.5px !important;
  color: var(--text-dim) !important;
  margin-top: 14px;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .donate-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 22px;
  }
  .donate-qr {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  .donate-body h2 { font-size: 19px; text-align: center; }
  .donate-body p { text-align: center; }
  .donate-body .btn { display: flex; width: 100%; }
}

/* ============================================================
   Homepage — mini donate block
   ============================================================ */

.donate-mini {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 26px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 100%, rgba(124,77,255,0.08), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(0,229,255,0.08), transparent 55%),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(124,77,255,0.2);
  backdrop-filter: blur(14px);
}
.donate-mini-qr {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 6px;
  box-shadow: 0 0 22px rgba(124,77,255,0.28);
}
.donate-mini-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.donate-mini-body { flex: 1; min-width: 0; }
.donate-mini-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.donate-mini-body p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}
.donate-mini .btn {
  flex-shrink: 0;
  padding: 12px 22px !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .donate-mini {
    flex-direction: column;
    text-align: center;
    padding: 22px;
    gap: 16px;
  }
  .donate-mini-qr {
    width: 120px;
    height: 120px;
  }
  .donate-mini .btn { width: 100%; justify-content: center; }
}

/* === FAQ === */
.faq-section h2 { text-align: center; margin-bottom: 2rem; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  margin-bottom: 0.9rem;
  padding: 1rem 1.5rem;
  transition: border-color .2s ease;
}
.faq-list details[open] { border-color: rgba(255,90,31,0.45); }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
  color: #ff5a1f;
}
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list details p {
  margin: 0.9rem 0 0;
  color: #a8b0c8;
  line-height: 1.65;
}

/* anti-caret: hide text cursor in non-editable content */
html, body { caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; }

/* --- ГЛОБАЛЬНЫЕ ЦВЕТА --- */
:root {
    --bg-deep: #09090b;
    --bg-surface: #111113;
    --accent-1: #00e5ff;
    --accent-2: #7c4dff;
}
body { background-color: var(--bg-deep) !important; }
@keyframes spin3d { 0%, 75% { transform: rotateY(0deg); } 85%, 100% { transform: rotateY(360deg); } }
@keyframes sweep-logo { 0% { background-position: 0 200%; } 100% { background-position: 0 -100%; } }

/* --- МЕНЮ (ЕДИНАЯ ПИЛЮЛЯ) --- */
.nav-menu { position: relative; display: flex; align-items: center; padding: 4px 10px; border-radius: 50px; gap: 4px; background: transparent; }
.nav-item { background: transparent; border: none; border-radius: 50px; padding: 8px 16px; display: inline-flex; text-decoration: none; }
.nav-text { position: relative; display: inline-block; color: #9ca3af; z-index: 2; }
.nav-text::before { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: transparent; background: linear-gradient(90deg, transparent 30%, #00e5ff 40%, #4dffff 45%, #ffffff 50%, #7c4dff 55%, #a88bff 60%, transparent 70%); background-size: 200% 100%; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; animation: sweep 4s linear infinite; pointer-events: none; }
@keyframes sweep { 0% { background-position: 200% 0; } 100% { background-position: -100% 0; } }

/* --- КУРСОР --- */
@media (pointer: fine) { body, a, button, .nav-item { cursor: none !important; } }
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99999; will-change: transform, width, height; }
.cursor { width: 36px; height: 36px; margin-top: -18px; margin-left: -18px; transition: width 0.3s ease-out, height 0.3s ease-out, margin 0.3s ease-out, border-color 0.3s; }
.cursor .inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cursor .circle { width: 100%; height: 100%; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 50%; transition: border-color 0.3s, background-color 0.3s; }
.cursor-dot { width: 6px; height: 6px; margin-top: -3px; margin-left: -3px; background: #ffffff; border-radius: 50%; z-index: 100000; }
.cursor.hovered { width: 56px; height: 56px; margin-top: -28px; margin-left: -28px; }
.cursor.hovered .circle { border-color: #00e5ff; background-color: rgba(0, 229, 255, 0.1); }

/* --- ПОИСК --- */
.pub-form { display: flex !important; gap: 12px !important; align-items: center !important; flex-wrap: nowrap !important; margin-top: 18px !important; width: 100% !important; }
.search-pill { position: relative !important; display: flex !important; align-items: center !important; flex: 1 !important; height: 56px !important; padding: 0 20px !important; border-radius: 50px !important; background: transparent !important; box-shadow: 0 0 15px rgba(0, 229, 255, 0.1) !important; overflow: visible !important; }
.search-pill::before { content: ''; position: absolute; inset: 0; border-radius: 50px; padding: 1.5px; background: linear-gradient(90deg, transparent 30%, #00e5ff 40%, #4dffff 45%, #ffffff 50%, #7c4dff 55%, #a88bff 60%, transparent 70%); background-size: 200% 100%; background-repeat: no-repeat; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: sweep 4s linear infinite; pointer-events: none; filter: blur(0.3px); }
.search-icon { color: rgba(255, 255, 255, 0.6); display: flex; align-items: center; justify-content: center; z-index: 2; margin-right: 12px; }
.search-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search-input { flex-grow: 1; background: transparent !important; border: none !important; outline: none !important; color: #ffffff !important; font-size: 16px !important; font-family: inherit !important; z-index: 2 !important; position: relative !important; height: 100% !important; box-shadow: none !important; }
.search-input::placeholder { color: transparent !important; }
.search-placeholder { position: absolute !important; left: 54px !important; top: 50% !important; transform: translateY(-50%) !important; pointer-events: none !important; font-size: 16px !important; z-index: 2 !important; white-space: nowrap !important; }
.search-placeholder .base-text { color: rgba(255, 255, 255, 0.4); }
.search-placeholder::before { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(90deg, transparent 30%, #00e5ff 40%, #4dffff 45%, #ffffff 50%, #7c4dff 55%, #a88bff 60%, transparent 70%); background-size: 200% 100%; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; animation: sweep 4s linear infinite; }
.search-input:focus + .search-placeholder, .search-input:not(:placeholder-shown) + .search-placeholder { display: none !important; }
.search-btn-new { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 40px; border-radius: 12px; border: none; cursor: pointer; background: linear-gradient(90deg, #7e22ce, #a855f7, #d8b4fe, #a855f7, #7e22ce); background-size: 300% auto; box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4), 0 4px 20px rgba(126, 34, 206, 0.3); animation: gradient-move 8s linear infinite; transition: transform 0.3s ease, box-shadow 0.3s ease; flex-shrink: 0; }
.search-btn-new .btn-text { font-size: 18px; font-weight: 700; color: #ffffff; letter-spacing: 0.5px; font-family: inherit; }
.search-btn-new:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(168, 85, 247, 0.6), 0 6px 25px rgba(126, 34, 206, 0.5); }
.search-btn-new:active { transform: translateY(1px); }
@keyframes gradient-move { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

/* --- ФИКС ТАЙМИНГОВ И АНИМАЦИИ ДЛЯ МЕНЮ --- */
@keyframes menu-sweep {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* --- ФИНАЛЬНАЯ РАМКА МЕНЮ (БЕЗ БАГА) --- */
@keyframes nav-anim-fix {
    0% { background-position: 200% center; }
    100% { background-position: -100% center; }
}

/* --- ТОЧНАЯ КОПИЯ РАМКИ ПОИСКА ДЛЯ МЕНЮ --- */
.nav-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1.5px;
    background: linear-gradient(90deg, transparent 30%, #00e5ff 40%, #4dffff 45%, #ffffff 50%, #7c4dff 55%, #a88bff 60%, transparent 70%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: sweep 4s linear infinite;
    pointer-events: none;
    
    /* Вот эти три строчки заставляют браузер отрисовать анимацию */
    filter: blur(0.3px);
    transform: translateZ(0);
    will-change: background-position;
}

/* --- ЕДИНАЯ СКВОЗНАЯ ВОЛНА ДЛЯ ТЕКСТА --- */
.nav-text::before {
    background-attachment: fixed !important;
    background-size: 200vw 100% !important; /* Растягиваем градиент на 2 экрана */
    animation: unified-text-sweep 4s linear infinite !important; /* Та же скорость 4с */
}

@keyframes unified-text-sweep {
    0% { background-position: -100vw 0; }
    100% { background-position: 100vw 0; }
}

/* --- ИДЕАЛЬНАЯ РАМКА ЛОГОТИПА (БЕЗ ОБРЫВОВ) --- */
@keyframes smooth-logo-sweep {
    0% { background-position: 0% 200%; }
    100% { background-position: 0% -100%; }
}

/* --- ИДЕАЛЬНАЯ РАМКА ЛОГОТИПА (ИДЕАЛЬНЫЙ ЦИКЛ) --- */
@keyframes perfect-logo-sweep {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

/* --- ИДЕАЛЬНЫЙ ЛОГОТИП (ФИКС ОБРЕЗКИ И АНИМАЦИИ) --- */
@keyframes logo-sweep-final {
    0% { background-position: 0 100vh; }
    100% { background-position: 0 -100vh; }
}

/* --- ИДЕАЛЬНАЯ РАМКА ЛОГОТИПА (РАБОЧИЙ МЕТОД) --- */
@keyframes logo-vertical-sweep {
    0% { background-position: 0 200%; }
    100% { background-position: 0 -100%; }
}

/* --- ФИНАЛЬНЫЙ ФИКС ЛОГОТИПА (3D + АНИМАЦИЯ) --- */
@keyframes logo-sweep-final-fix {
    0% { background-position: 0 200%; }
    100% { background-position: 0 -100%; }
}

/* --- ФИНАЛЬНЫЙ ФИКС: ИЗОЛЯЦИЯ 3D БУКВ ОТ РАМКИ --- */
@keyframes final-logo-sweep {
    0% { background-position: 0 200%; }
    100% { background-position: 0 -100%; }
}

/* 3. Переносим 3D-эффект только на текст */
.text-mi, .text-mod {
    perspective: 1000px !important;
    display: inline-flex;
    gap: 2px;
}

/* --- 1. ОБЕРТКА (БЕЗ 3D) --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

/* --- 3. 3D-ЭФФЕКТ ТОЛЬКО ДЛЯ БУКВ --- */
.text-mi, .text-mod {
    display: inline-flex;
    gap: 2px;
    perspective: 1000px; /* 3D-контекст только здесь */
}

.logo-unified .char {
    display: inline-block;
    transform-style: preserve-3d;
    animation: spin3d 10s ease-in-out infinite;
}

.logo-unified .text-mi .char {
    background: linear-gradient(90deg, #00E0C8, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(1px 1px 0px #000) drop-shadow(0 0 8px rgba(0, 224, 200, 0.6));
}

.logo-unified .text-mod .char {
    color: #ffffff;
    text-shadow: 1px 1px 0px #000, 0 0 8px rgba(139, 92, 246, 0.6);
}

/* Тайминги для волнообразного переворота */
.logo-unified .char:nth-child(1) { animation-delay: 0.0s; }
.logo-unified .char:nth-child(2) { animation-delay: 0.15s; }
.logo-unified .char:nth-child(3) { animation-delay: 0.3s; }
.logo-unified .char:nth-child(4) { animation-delay: 0.45s; }
.logo-unified .char:nth-child(5) { animation-delay: 0.6s; }

@keyframes spin3d {
    0%, 75% { transform: rotateY(0deg); }
    85%, 100% { transform: rotateY(360deg); }
}

/* --- 4. РАМКА ЛОГОТИПА (ИДЕАЛЬНЫЙ ЦИКЛ + АНТИЗАМОРОЗКА) --- */
@keyframes clean-logo-sweep {
    0% { background-position: 0 200%; }
    100% { background-position: 0 -100%; }
}

/* --- ВЕРТИКАЛЬНАЯ АНИМАЦИЯ ЛОГОТИПА (ЧЕРЕЗ background-position-y) --- */
@keyframes logo-y-sweep {
    0% { background-position-y: 200%; }
    100% { background-position-y: -100%; }
}

/* --- УВЕЛИЧЕННЫЙ ЛОГОТИП СО СТАТИЧНОЙ РАМКОЙ --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    margin-right: 25px;
}

.logo-unified {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;             /* Увеличили отступы */
    border-radius: 14px;
    background: transparent;
    text-decoration: none;
    gap: 10px;
    font-size: 32px;                 /* Увеличили шрифт с 22px до 32px */
    font-weight: 900;
    letter-spacing: 1.5px;
}

/* --- АНИМИРОВАННАЯ РАМКА ЛОГОТИПА (С УЧЕТОМ РАЗМЕРА) --- */
@keyframes logo-vertical-scan {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}

/* --- ИДЕАЛЬНАЯ ВРАЩАЮЩАЯСЯ РАМКА ЛОГОТИПА --- */
@property --logo-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes logo-rotate {
    to { --logo-angle: 360deg; }
}

.logo-unified::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 14px !important;
    padding: 1.5px !important;
    
    /* Вращающийся градиент */
    background: conic-gradient(
        from var(--logo-angle), 
        transparent 0%, 
        transparent 70%, 
        #00e5ff 80%, 
        #ffffff 90%, 
        #7c4dff 100%
    ) !important;
    
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask-composite: exclude !important;
    
    animation: logo-rotate 3s linear infinite !important;
    pointer-events: none !important;
}

/* --- ГЛАВНАЯ КНОПКА "СКАЧАТЬ" В СТИЛЕ ЛОГОТИПА --- */
@property --btn-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes btn-rotate {
    to { --btn-angle: 360deg; }
}

.btn-primary {
    position: relative !important;
    background: transparent !important; /* Убираем старый градиент */
    box-shadow: none !important; /* Убираем старую тень */
    border-radius: 14px !important; /* Как у логотипа */
    padding: 15px 34px !important;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Вращающаяся рамка */
.btn-primary::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 14px !important;
    padding: 1.5px !important;
    
    background: conic-gradient(
        from var(--btn-angle), 
        transparent 0%, 
        transparent 70%, 
        #00e5ff 80%, 
        #ffffff 90%, 
        #7c4dff 100%
    ) !important;
    
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask-composite: exclude !important;
    
    animation: btn-rotate 3s linear infinite !important;
    pointer-events: none !important;
    z-index: 0;
}

/* Текст и иконка внутри кнопки (чтобы были поверх рамки) */
.btn-primary > * {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

/* Красивое свечение при наведении */
.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 0 30px rgba(124, 77, 255, 0.4) !important;
}

/* --- ДОРАБОТКА КНОПКИ: ФОН И ВНУТРЕННЕЕ СВЕЧЕНИЕ --- */
.btn-primary {
    /* Легкий темный фон, чтобы кнопка не была "дырой" */
    background: rgba(10, 10, 20, 0.7) !important; 
    
    /* Внутреннее голубое и фиолетовое свечение */
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.15), 
                inset 0 0 10px rgba(124, 77, 255, 0.1) !important;
    
    /* Фикс, чтобы рамка не обрезалась снизу */
    overflow: visible !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Усиливаем свечение при наведении */
.btn-primary:hover {
    box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.3), 
                inset 0 0 15px rgba(124, 77, 255, 0.2),
                0 0 25px rgba(124, 77, 255, 0.3) !important;
}

/* Плавная пульсация свечения (чтобы кнопка "дышала") */
@keyframes btn-glow-pulse {
    0% { box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.1), inset 0 0 5px rgba(124, 77, 255, 0.1); }
    50% { box-shadow: inset 0 0 25px rgba(0, 229, 255, 0.25), inset 0 0 15px rgba(124, 77, 255, 0.2); }
    100% { box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.1), inset 0 0 5px rgba(124, 77, 255, 0.1); }
}

.btn-primary {
    animation: btn-glow-pulse 3s ease-in-out infinite;
}

/* --- СИНХРОНИЗАЦИЯ ВНУТРЕННЕГО СВЕЧЕНИЯ С ЛУЧОМ --- */
.btn-primary {
    position: relative !important;
    background: rgba(10, 10, 20, 0.9) !important; /* Темный фон, чтобы свечение было заметнее */
    overflow: hidden !important; /* Обрезаем свечение строго внутри кнопки */
    box-shadow: none !important; /* Убираем старую статичную тень */
    animation: none !important; /* Убираем старую пульсацию */
    z-index: 1;
}

/* Слой с внутренним свечением */
.btn-primary::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 14px !important;
    
    /* Копируем градиент луча, чтобы он светился там же, где и бежит */
    background: conic-gradient(
        from var(--btn-angle), 
        transparent 0%, 
        transparent 70%, 
        #00e5ff 80%, 
        #ffffff 90%, 
        #7c4dff 100%
    ) !important;
    
    /* Размываем, чтобы получилось мягкое пятно света */
    filter: blur(16px) !important;
    opacity: 0.6 !important;
    
    /* Привязываем к той же анимации, что и рамку */
    animation: btn-rotate 3s linear infinite !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Текст и иконка всегда должны быть поверх свечения */
.btn-primary > * {
    position: relative !important;
    z-index: 2 !important;
}

/* Легкий эффект при наведении */
.btn-primary:hover {
    transform: translateY(-3px) !important;
}
.btn-primary:hover::after {
    opacity: 0.9 !important; /* Делаем свечение ярче при наведении */
}

/* --- ДЕЛАЕМ КНОПКУ ПРОЗРАЧНОЙ (УБИРАЕМ ФОН) --- */
.btn-primary {
    background: transparent !important;
    /* Оставляем только нужные нам эффекты без заливки */
    box-shadow: none !important; 
}
