/* ============================================================
   DreamN — landing (стили по образцу Aura: dark/cinematic/glass)
   ============================================================ */

:root {
  --bg: #0c0c0c;
  --brand: #3D81E3;
  --accent: #00d2ff;
  --accent-soft: #A4F4FD;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(61, 129, 227, 0.3); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.page { position: relative; min-height: 100vh; overflow-x: hidden; }

/* ---------- Фоновое видео ---------- */
.bg-fixed { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-fixed video {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; opacity: 0.55;
}
.bg-gradient-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 70% -10%, rgba(0, 210, 255, 0.10), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(61, 129, 227, 0.10), transparent 60%),
    var(--bg);
}
.bg-dim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,0.55) 0%, rgba(12,12,12,0.25) 40%, rgba(12,12,12,0.8) 100%);
}

/* ---------- Вертикальные направляющие ---------- */
.guide-line {
  display: none; pointer-events: none;
  position: fixed; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.10); z-index: 5;
}
@media (min-width: 768px) {
  .guide-line { display: block; }
  .guide-line-left  { left: calc(50% - 36rem); }
  .guide-line-right { left: calc(50% + 36rem); }
}

/* ---------- Liquid glass ---------- */
.liquid-glass {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Shiny gradient headline ---------- */
.animate-shiny {
  background-image: linear-gradient(to right,
    #091020 0%, #0B2551 12.5%, #A4F4FD 32.5%, #00d2ff 50%,
    #0B2551 67.5%, #091020 87.5%, #091020 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: url(#c3-noise);
  animation: shiny 6s linear infinite;
}
@keyframes shiny {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ---------- Иконки ---------- */
.icon-16 { width: 16px; height: 16px; flex-shrink: 0; }
.icon-14 { width: 14px; height: 14px; flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; }
.logo-mark-sm { width: 14px; height: 14px; }

/* ---------- Pill button ---------- */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; background: #fff; color: #000;
  font-weight: 500; font-size: 14px; padding: 12px 20px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s cubic-bezier(.22,1,.36,1);
}
.pill-btn:hover { background: rgba(255,255,255,0.9); }
.pill-btn:active { transform: scale(0.98); }
.pill-btn .chevron { transition: transform 0.25s cubic-bezier(.22,1,.36,1); }
.pill-btn.group:hover .chevron { transform: translateX(1px); }
.pill-btn.ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.15); cursor: default;
}
.pill-btn.ghost:hover { background: rgba(255,255,255,0.05); }

/* ---------- Reveal-анимации ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ---------- Навигация ---------- */
.nav {
  position: relative; z-index: 40;
  max-width: 72rem; margin: 0 auto; padding: 20px 24px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { color: #fff; display: inline-flex; }
.nav-links { display: none; gap: 32px; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: inline-flex; } }
.burger {
  width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
@media (min-width: 768px) { .burger { display: none; } }
.mobile-menu {
  display: none; flex-direction: column; gap: 14px;
  margin-top: 16px; padding: 20px;
  border-radius: 16px; background: rgba(10,10,10,0.92);
  border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(12px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 15px; font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 10;
  max-width: 72rem; margin: 0 auto; padding: 64px 24px 80px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
@media (min-width: 768px) { .hero { padding-top: 112px; } }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 0.95;
  display: flex; flex-direction: column;
}
.hero-sub {
  margin-top: 32px; color: rgba(255,255,255,0.6);
  max-width: 28rem; font-size: 16px; line-height: 1.5;
}
.hero-cta {
  margin-top: 40px; display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.hero-cta-note { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ---------- Меню-бар ---------- */
.menubar {
  position: relative; z-index: 10;
  height: 40px; background: rgba(0,0,0,0.4);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menubar-inner {
  max-width: 72rem; margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; font-size: 12px;
}
.menubar-left { display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,0.75); }
.menubar-app { font-weight: 700; color: #fff; }
.menubar-item { cursor: default; }
.menubar-right { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); }
@media (max-width: 640px) { .sm-hide { display: none; } }
@media (max-width: 768px) { .md-hide { display: none; } }

/* ---------- Мокап окна ---------- */
.mockup-section {
  position: relative; z-index: 10;
  max-width: 72rem; margin: 0 auto; padding: 64px 24px;
}
@media (min-width: 768px) { .mockup-section { padding: 96px 24px; } }
.mockup {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(14,16,20,0.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.mockup-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.traffic-lights { display: flex; gap: 8px; }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl-red { background: #ff5f57; } .tl-yellow { background: #febc2e; } .tl-green { background: #28c840; }
.mockup-title { font-size: 12px; color: rgba(255,255,255,0.5); }
.mockup-title-spacer { width: 52px; }
.mockup-body { display: grid; grid-template-columns: 1fr; height: 460px; }
@media (min-width: 768px) { .mockup-body { grid-template-columns: 3fr 9fr; height: 520px; } }

.mockup-sidebar {
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.3); padding: 16px;
  display: none; flex-direction: column; gap: 18px;
}
@media (min-width: 768px) { .mockup-sidebar { display: flex; } }
.sidebar-cta {
  display: flex; align-items: center; gap: 8px;
  background: #fff; color: #000; border-radius: 8px;
  font-size: 12px; font-weight: 600; padding: 8px 12px; width: fit-content;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-item {
  font-size: 13px; color: rgba(255,255,255,0.6);
  padding: 7px 10px; border-radius: 6px; cursor: default;
}
.sidebar-item:hover { background: rgba(255,255,255,0.05); }
.sidebar-item.active { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-labels { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.sidebar-labels-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4); margin-bottom: 2px;
}
.label-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.6); }
.label-row i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.mockup-terminal {
  padding: 20px 24px; overflow: hidden;
  font-family: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  font-size: 13px; line-height: 1.9; color: rgba(255,255,255,0.85);
  display: flex; flex-direction: column; justify-content: center;
}
.term-line { white-space: pre-wrap; word-break: break-word; min-height: 1.9em; }
.term-prompt { color: var(--accent); }
.term-ok { color: #28c840; }
.term-dim { color: rgba(255,255,255,0.45); }
.term-accent { color: var(--accent-soft); }
.term-caret {
  display: inline-block; width: 8px; height: 15px; margin-left: 2px;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Общие секции ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
}
.eyebrow.center { justify-content: center; display: flex; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.eyebrow-tag {
  padding: 2px 8px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 500;
}
.section-h2 {
  margin-top: 20px; font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.02;
}
.section-h2.center, .section-p.center { text-align: center; }
.section-p {
  margin-top: 24px; color: rgba(255,255,255,0.6);
  font-size: 16px; line-height: 1.6; max-width: 28rem;
}
.section-p.mx { margin-left: auto; margin-right: auto; }

/* ---------- Как это работает ---------- */
.how-section { position: relative; z-index: 10; max-width: 72rem; margin: 0 auto; padding: 80px 24px; }
@media (min-width: 768px) { .how-section { padding: 112px 24px; } }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 768px) { .how-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  font-size: 12px; color: rgba(255,255,255,0.7);
  padding: 6px 12px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
}
.how-right { border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.how-card-eyebrow { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.how-card { border-radius: 8px; padding: 12px; }
.how-card-title { font-size: 14px; font-weight: 600; }
.how-card-text { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 4px; line-height: 1.5; }

/* ---------- Logocloud ---------- */
.logocloud { position: relative; z-index: 10; max-width: 72rem; margin: 0 auto; padding: 64px 24px 80px; text-align: center; }
.logocloud-kicker {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
}
.logocloud-grid {
  margin-top: 40px; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 24px;
}
@media (min-width: 640px)  { .logocloud-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logocloud-grid { grid-template-columns: repeat(5, 1fr); } }
.logocloud-grid span {
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.5); transition: color 0.2s; cursor: default;
}
.logocloud-grid span:hover { color: #fff; }

/* ---------- Модели ---------- */
.models-section {
  position: relative; z-index: 10;
  max-width: 72rem; margin: 0 auto; padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.models-head { display: flex; flex-direction: column; align-items: center; }
.models-grid {
  margin-top: 56px; display: grid;
  grid-template-columns: repeat(1, 1fr); gap: 16px;
}
@media (min-width: 640px)  { .models-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .models-grid { grid-template-columns: repeat(3, 1fr); } }
.model-card { border-radius: 16px; padding: 20px; transition: transform 0.4s cubic-bezier(.22,1,.36,1); }
.model-card:hover { transform: translateY(-4px); }
.model-name {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 15px; font-weight: 600; color: #fff; word-break: break-all;
}
.model-tag {
  display: inline-block; margin-top: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-soft); padding: 3px 10px; border-radius: 9999px;
  border: 1px solid rgba(164,244,253,0.25); background: rgba(164,244,253,0.06);
}
.model-desc { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.5; }
.model-status {
  display: flex; align-items: center; gap: 7px;
  margin-top: 12px; font-size: 12px; letter-spacing: 0.02em;
}
.model-status .status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.model-status.ok { color: #7ee2a8; }
.model-status.ok .status-dot { background: #39d97f; box-shadow: 0 0 10px rgba(57,217,127,0.55); }
.model-status.err { color: #ff9a9a; }
.model-status.err .status-dot { background: #ff5c5c; box-shadow: 0 0 10px rgba(255,92,92,0.55); }
.model-status.warn { color: #ffd9a0; }
.model-status.warn .status-dot { background: #f5b85c; box-shadow: 0 0 10px rgba(245,184,92,0.5); }
.model-note {
  margin-top: 10px; padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  border-radius: 8px; font-size: 12px; line-height: 1.5;
  color: #ffd9a0;
  border: 1px solid rgba(245,184,92,0.22);
  background: rgba(245,184,92,0.06);
}
.model-note::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: #f5b85c; box-shadow: 0 0 8px rgba(245,184,92,0.5);
}
.models-updated {
  margin-top: 32px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
}

/* ---------- Подключение (c3-pricing-стиль) ---------- */
.c3-pricing-section {
  position: relative; z-index: 10;
  padding: 40px 20px 80px;
  display: flex; flex-direction: column; align-items: center;
  overflow-x: hidden;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.c3-watermark-container {
  position: relative; width: 100%; max-width: 1100px;
  text-align: center; margin-top: 40px; z-index: 2;
}
.c3-watermark-main {
  font-size: 9rem; font-weight: 800; line-height: 0.9; letter-spacing: -0.05em;
  filter: url(#c3-noise);
  display: flex; flex-direction: column; align-items: center;
}
.c3-watermark-line-1 { color: #fff; }
.c3-watermark-line-2 {
  background: linear-gradient(to right, #0B2551 0%, #3D81E3 18%, #A4F4FD 55%, #00d2ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.c3-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  width: 100%; max-width: 1100px; margin-top: 60px;
  transform: translateX(20px); position: relative; z-index: 3;
}
.c3-card {
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
  backdrop-filter: blur(14px) brightness(0.91);
  -webkit-backdrop-filter: blur(14px) brightness(0.91);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 44px; padding: 50px 24px; min-height: 460px;
  display: flex; flex-direction: column;
  transition: all 0.6s cubic-bezier(.22,1,.36,1);
  overflow: hidden; position: relative;
}
.c3-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}
.c3-card:hover {
  background: rgba(15,15,15,0.6);
  border-color: rgba(34,211,238,0.7);
  transform: translateY(-12px) scale(1.01);
}
.c3-card-pro { background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(0,0,0,0.55)); }
.c3-tier-small { font-size: 1.05rem; font-weight: 400; color: rgba(255,255,255,0.6); }
.c3-tier-large {
  font-size: 2.2rem; font-weight: 500; letter-spacing: -0.02em;
  color: #fff; margin-top: 8px;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}
.c3-desc {
  font-size: 0.88rem; color: rgba(255,255,255,0.45);
  min-height: 3.2em; margin-top: 16px; margin-bottom: 40px; line-height: 1.5;
}
.c3-list { list-style: none; }
.c3-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 0.92rem; color: rgba(255,255,255,0.8);
  margin-bottom: 18px; line-height: 1.4;
}
.c3-list code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.86em; color: var(--accent-soft); word-break: break-all;
}
.c3-check {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.c3-check svg { width: 14px; height: 14px; }
.c3-btn {
  background: #fff; color: #000; padding: 10px 32px; border-radius: 100px;
  font-weight: 600; font-size: 0.88rem; margin-top: auto;
  border: none; cursor: pointer; align-self: center;
  text-decoration: none; text-align: center;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
}
.c3-btn:hover { background: #f5f5f5; transform: scale(1.02); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
.connect-note {
  margin-top: 48px; max-width: 1100px; width: 100%;
  text-align: center; font-size: 14px; color: rgba(255,255,255,0.5);
}
.inline-link { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .c3-watermark-main { font-size: 3.5rem; filter: none; }
  .c3-watermark-line-2 {
    background: none; -webkit-text-fill-color: #00d2ff; color: #00d2ff;
  }
  .c3-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    transform: none; width: 100vw; padding: 0 20px; gap: 16px;
    scrollbar-width: none;
  }
  .c3-grid::-webkit-scrollbar { display: none; }
  .c3-card { flex: 0 0 320px; scroll-snap-align: center; min-height: 480px; }
}

/* ---------- FAQ ---------- */
.faq-section {
  position: relative; z-index: 10;
  max-width: 48rem; margin: 0 auto; padding: 80px 24px;
}
.faq-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 16px; padding: 0; }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 20px 24px; font-size: 15px; font-weight: 600; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 400; color: rgba(255,255,255,0.4);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 20px; font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

/* ---------- Финальный CTA ---------- */
.finalcta-section { position: relative; z-index: 10; max-width: 72rem; margin: 0 auto; padding: 80px 24px 128px; }
.finalcta {
  border-radius: 24px; padding: 64px 32px; text-align: center;
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .finalcta { padding: 96px 32px; } }
.finalcta-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.3;
  background: radial-gradient(600px circle at 50% 0%, rgba(255,255,255,0.15), transparent 70%);
}
.finalcta h2 {
  position: relative; font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.02;
}
.finalcta p {
  position: relative; margin: 24px auto 0; max-width: 28rem;
  color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6;
}
.finalcta-buttons {
  position: relative; margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: center;
}

/* ---------- Футер ---------- */
.footer {
  position: relative; z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 24px 48px;
}
.footer-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-note { max-width: 40rem; color: rgba(255,255,255,0.35); line-height: 1.5; }

/* ---------- Ручная настройка ---------- */
.manual-section {
  position: relative; z-index: 10;
  max-width: 72rem; margin: 0 auto; padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  scroll-margin-top: 24px;
}
.manual-head { display: flex; flex-direction: column; align-items: center; }
.inline-code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9em; color: var(--accent-soft);
  padding: 1px 6px; border-radius: 6px;
  border: 1px solid rgba(164,244,253,0.2); background: rgba(164,244,253,0.06);
}
.manual-alert {
  margin-top: 36px; max-width: 46rem; width: 100%;
  display: flex; align-items: flex-start; gap: 16px;
  border-radius: 16px; padding: 20px 24px;
}
.manual-alert-badge {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #f5b85c; margin-top: 2px;
  border: 1px solid rgba(245,184,92,0.25); background: rgba(245,184,92,0.08);
}
.manual-alert-badge svg { width: 16px; height: 16px; }
.manual-alert-body {
  display: flex; flex-direction: column; gap: 7px; min-width: 0;
}
.manual-alert-title { font-size: 14px; font-weight: 600; color: #ffd9a0; }
.manual-alert-text {
  font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.65);
}
.manual-alert-foot { font-size: 12px; color: rgba(255,255,255,0.4); }

.manual-tabs {
  margin-top: 48px; display: flex; flex-wrap: wrap;
  gap: 8px; justify-content: center;
}
.manual-tab {
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.7); cursor: pointer;
  padding: 9px 18px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03);
  transition: all 0.25s cubic-bezier(.22,1,.36,1);
}
.manual-tab:hover { color: #fff; border-color: rgba(0,210,255,0.5); }
.manual-tab.active { background: #fff; color: #000; border-color: #fff; }

.manual-panes { margin-top: 24px; }
.manual-pane { display: none; border-radius: 20px; padding: 28px; }
.manual-pane.active { display: block; }
@media (min-width: 768px) { .manual-pane { padding: 36px; } }
.manual-intro {
  font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,0.75);
  padding-bottom: 22px; margin-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.manual-intro code, .manual-steps code, .manual-note code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.88em; color: var(--accent-soft); word-break: break-all;
}
.manual-body { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1024px) { .manual-body { grid-template-columns: 5fr 7fr; gap: 40px; } }

.manual-steps { list-style: none; counter-reset: mstep; display: flex; flex-direction: column; gap: 16px; }
.manual-steps li {
  counter-increment: mstep; position: relative;
  padding-left: 44px; font-size: 13.5px; line-height: 1.6;
  color: rgba(255,255,255,0.8);
}
.manual-steps li::before {
  content: counter(mstep); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(0,210,255,0.35); background: rgba(0,210,255,0.08);
}
.manual-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.6; color: #ffd9a0;
  border: 1px solid rgba(245,184,92,0.22); background: rgba(245,184,92,0.06);
}

.manual-files-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.manual-file {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.45);
}
.manual-file-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.manual-file-path {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 12px; color: rgba(255,255,255,0.55); word-break: break-all;
  flex: 1 1 auto; min-width: 0;
}
.manual-verified {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-size: 11px; font-weight: 600; color: #7ee2a8;
  padding: 3px 10px; border-radius: 9999px;
  border: 1px solid rgba(57,217,127,0.35); background: rgba(57,217,127,0.08);
}
.manual-verified svg { width: 11px; height: 11px; }
.manual-copy {
  font-family: inherit; font-size: 11.5px; font-weight: 600; flex: none;
  color: #fff; cursor: pointer; padding: 5px 14px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06);
  transition: all 0.2s;
}
.manual-copy:hover { border-color: rgba(0,210,255,0.6); background: rgba(0,210,255,0.12); }
.manual-copy.copied { color: #7ee2a8; border-color: rgba(57,217,127,0.5); background: rgba(57,217,127,0.1); }
.manual-file pre {
  margin: 0; padding: 16px; overflow: auto; max-height: 460px;
  font-family: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.88);
}
.manual-file pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
