/* ==========================================================================
   Neuro-Sites — light neumorphic redesign (v4)
   • Не зависит от того, что React делает с class у <html>
   • Перекрашивает ВСЕ цветовые токены сайта (в т.ч. --amber / --coral)
   ========================================================================== */

/* 1. ТОКЕНЫ ------------------------------------------------------------- */
html:not(.ns-off):not(.ns-x), :root:not(.ns-off) {
  color-scheme: light;
  --ns-bg:#f7f1ea; --ns-ink:#232339; --ns-muted:#6f6d7c; --ns-violet:#5b3df5; --ns-violet-2:#7b8cff;
  --background:#f7f1ea; --foreground:#232339;
  --card:#fbf7f2; --card-foreground:#232339; --popover:#fbf7f2; --popover-foreground:#232339;
  --primary:#5b3df5; --primary-foreground:#fff;
  --secondary:#eee7fa; --secondary-foreground:#38334f;
  --muted:#efe8df; --muted-foreground:#6f6d7c;
  --accent:#e9e4fc; --accent-foreground:#4d35d9;
  --border:#e6dbcf; --input:#f9f4ed; --ring:#7661ff;
  --destructive:#d6455d;
  --ink:#f7f1ea; --champagne:#5b3df5; --champagne-soft:#7e6dff; --button-ink:#fff;
  --amber:#6a4bf6; --coral:#4f7cff;
  /* Tailwind v4: те же токены под именами --color-* */
  --color-background:#f7f1ea; --color-foreground:#232339; --color-card:#fbf7f2; --color-card-foreground:#232339;
  --color-popover:#fbf7f2; --color-popover-foreground:#232339; --color-primary:#5b3df5; --color-primary-foreground:#fff;
  --color-secondary:#eee7fa; --color-secondary-foreground:#38334f; --color-muted:#efe8df; --color-muted-foreground:#6f6d7c;
  --color-accent:#e9e4fc; --color-accent-foreground:#4d35d9; --color-border:#e6dbcf; --color-input:#f9f4ed; --color-ring:#7661ff;
  --color-ink:#f7f1ea; --color-champagne:#5b3df5; --color-champagne-soft:#7e6dff; --color-amber:#6a4bf6; --color-coral:#4f7cff;
  --ns-out: 10px 14px 28px rgba(176,153,130,.20), -6px -6px 18px rgba(255,255,255,.85);
  --ns-out-sm: 5px 7px 15px rgba(176,153,130,.18), -3px -3px 9px rgba(255,255,255,.9);
  --ns-in: inset 2px 2px 6px rgba(255,255,255,.95), inset -2px -3px 8px rgba(203,184,164,.14);
  --ns-grad: linear-gradient(125deg,#a08cff 0%,#6947fb 48%,#4024d5 100%);
}
html:not(.ns-off):not(.ns-x) { background:#f7f1ea !important; color:#232339 !important; }

/* 2. ФОН СТРАНИЦЫ --------------------------------------------------------- */
html:not(.ns-off):not(.ns-x) body {
  min-width:320px; overflow-x:clip; color:#232339 !important;
  font-family:Manrope,Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif !important;
  background:
    radial-gradient(ellipse 48rem 36rem at 74% 4%, rgba(190,180,255,.30), transparent 70%),
    radial-gradient(ellipse 36rem 26rem at 8% 30%, rgba(255,255,255,.80), transparent 72%),
    radial-gradient(ellipse 44rem 30rem at 98% 78%, rgba(206,194,255,.28), transparent 70%),
    linear-gradient(135deg,#fbf6ef 0%,#f6eee5 55%,#f8f2ec 100%) !important;
  background-attachment: fixed !important;
}
html:not(.ns-off):not(.ns-x) body > canvas { opacity:.10 !important; }
html:not(.ns-off):not(.ns-x) body::before { content:none !important; }
html:not(.ns-off):not(.ns-x) h1, html:not(.ns-off):not(.ns-x) h2, html:not(.ns-off):not(.ns-x) h3, html:not(.ns-off):not(.ns-x) h4 { color:#232339 !important; letter-spacing:-.03em; }
html:not(.ns-off):not(.ns-x) [class*="text-muted-foreground"] { color:#6f6d7c !important; }
html:not(.ns-off):not(.ns-x) [class*="text-foreground"] { color:#2b2b44 !important; }
html:not(.ns-off):not(.ns-x) .text-background, html:not(.ns-off):not(.ns-x) [class*="text-primary-foreground"] { color:#fff !important; }

/* Золотой/янтарный акцент → фиолетовый (eyebrow-подписи, линии, точки, галочки) */
html:not(.ns-off):not(.ns-x) [class*="text-amber"], html:not(.ns-off):not(.ns-x) .ns-champagne-text { color:#5b3df5 !important; }
html:not(.ns-off):not(.ns-x) [class*="border-amber"] { border-color:rgba(91,61,245,.30) !important; }
html:not(.ns-off):not(.ns-x) [class*="bg-amber"] { background-color:rgba(91,61,245,.28) !important; }
html:not(.ns-off):not(.ns-x) [class*="ring-amber"] { --tw-ring-color:rgba(91,61,245,.22) !important; }
html:not(.ns-off):not(.ns-x) .ns-champagne-text { background:linear-gradient(115deg,#6c49ff 10%,#7b8cff 90%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html:not(.ns-off):not(.ns-x) .glow-ring { box-shadow:0 0 0 1px rgba(91,61,245,.28), 0 20px 44px rgba(106,75,246,.18) !important; }
html:not(.ns-off):not(.ns-x) [class*="bg-muted-foreground/"] { background-color:rgba(111,109,124,.22) !important; }
html:not(.ns-off):not(.ns-x) .bg-foreground { background-color:#232339 !important; }

/* 3. КНОПКИ --------------------------------------------------------------- */
html:not(.ns-off):not(.ns-x) button, html:not(.ns-off):not(.ns-x) a[class*="rounded-full"] { transition:transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease !important; }
html:not(.ns-off):not(.ns-x) button:not(:disabled):hover, html:not(.ns-off):not(.ns-x) a[class*="rounded-full"]:hover { filter:saturate(1.06); }
html:not(.ns-off):not(.ns-x) a[class*="bg-[var(--champagne)]"], html:not(.ns-off):not(.ns-x) button[class*="bg-[var(--champagne)]"], html:not(.ns-off):not(.ns-x) .ns-gold-button,
html:not(.ns-off):not(.ns-x) button[class*="bg-primary"], html:not(.ns-off):not(.ns-x) button[class*="from-amber"], html:not(.ns-off):not(.ns-x) a[class*="from-amber"] {
  color:#fff !important; background:var(--ns-grad) !important; border:1px solid rgba(255,255,255,.75) !important;
  box-shadow:inset 1px 1px 2px rgba(255,255,255,.7), 0 12px 24px rgba(88,58,222,.28), 0 3px 6px rgba(81,57,175,.14) !important;
}
html:not(.ns-off):not(.ns-x) button[class*="from-amber"] { border-radius:999px !important; }          /* плавающая кнопка «Задать вопрос» */
html:not(.ns-off):not(.ns-x) a[class*="border-border"][class*="rounded-full"], html:not(.ns-off):not(.ns-x) a[class*="border-border"][class*="text-foreground"] {
  background:rgba(255,255,255,.58) !important; border:1px solid rgba(255,255,255,.92) !important; color:#292940 !important;
  box-shadow:var(--ns-out-sm) !important;
}
html:not(.ns-off):not(.ns-x) :focus-visible { outline:3px solid rgba(104,79,255,.32) !important; outline-offset:3px; }
html:not(.ns-off):not(.ns-x) .light-dark-switch, html:not(.ns-off):not(.ns-x) [aria-label="Toggle light and dark theme"] { display:none !important; }  /* дизайн только светлый */
html:not(.ns-off):not(.ns-x) span[style*="var(--amber)"] { background:var(--ns-grad) !important; color:#fff !important; }   /* бейдж «Популярный выбор» */
html:not(.ns-off):not(.ns-x) [class*="oklch(0.2_0"] { color:#fff !important; }

/* 4. ПОВЕРХНОСТИ / ФОРМЫ -------------------------------------------------- */
html:not(.ns-off):not(.ns-x) .ns-glass {
  background:rgba(255,251,246,.72) !important; border:1px solid rgba(255,255,255,.88) !important;
  box-shadow:var(--ns-in), var(--ns-out-sm) !important;
}
html:not(.ns-off):not(.ns-x) [class*="bg-card"] { background-color:rgba(251,247,241,.78) !important; }
html:not(.ns-off):not(.ns-x) [class*="bg-background/"] { background-color:rgba(247,241,234,.70) !important; }
html:not(.ns-off):not(.ns-x) [class*="bg-muted"], html:not(.ns-off):not(.ns-x) .bg-accent { background-color:rgba(238,231,250,.65) !important; }
html:not(.ns-off):not(.ns-x) [class*="border-border"] { border-color:rgba(223,210,196,.75) !important; }
html:not(.ns-off):not(.ns-x) input, html:not(.ns-off):not(.ns-x) textarea, html:not(.ns-off):not(.ns-x) select {
  color:#292940 !important; background:rgba(255,252,248,.88) !important; border:1px solid rgba(255,255,255,.95) !important;
  border-radius:15px; box-shadow:inset 2px 2px 6px rgba(205,188,170,.28), inset -2px -2px 4px #fff !important;
}
html:not(.ns-off):not(.ns-x) input::placeholder, html:not(.ns-off):not(.ns-x) textarea::placeholder { color:#9a97a6 !important; opacity:1; }
html:not(.ns-off):not(.ns-x) footer { background:rgba(249,243,235,.60) !important; border-color:rgba(223,210,196,.7) !important; color:#646477 !important; }
html:not(.ns-off):not(.ns-x) main > section:not(#top) { border-color:rgba(223,210,196,.6) !important; }
html:not(.ns-off):not(.ns-x) .ns-orbit, html:not(.ns-off):not(.ns-x) .ns-orbit-rev { border-color:rgba(123,108,255,.25) !important; }
html:not(.ns-off):not(.ns-x) .ns-pulse-soft { opacity:.55 !important; }
html:not(.ns-off):not(.ns-x) [class*="from-background"], html:not(.ns-off):not(.ns-x) [class*="via-background"] { --tw-gradient-from:rgba(247,241,234,.85); --tw-gradient-via:rgba(247,241,234,.1); }

/* Карточки разделов */
html:not(.ns-off):not(.ns-x) #services .grid > div > div, html:not(.ns-off):not(.ns-x) #pricing .grid > div > div, html:not(.ns-off):not(.ns-x) #portfolio .grid > a, html:not(.ns-off):not(.ns-x) #portfolio .grid > div,
html:not(.ns-off):not(.ns-x) #contact form, html:not(.ns-off):not(.ns-x) #contact .ns-glass, html:not(.ns-off):not(.ns-x) #ai-analysis .ns-glass, html:not(.ns-off):not(.ns-x) #process .ns-how-item, html:not(.ns-off):not(.ns-x) #steps li {
  border:1px solid rgba(255,255,255,.9) !important; border-radius:25px !important;
  background:rgba(251,247,241,.78) !important; box-shadow:var(--ns-in), var(--ns-out) !important;
}
html:not(.ns-off):not(.ns-x) #pricing .grid { border-color:transparent !important; gap:18px; }

/* 5. БЛОК «AI-ИНСТРУМЕНТЫ» (#ai-design) — классы ns-ai-* из routes-*.css -------- */
html:not(.ns-off):not(.ns-x) .ns-ai-section { background:transparent !important; color:#232339 !important; }
html:not(.ns-off):not(.ns-x) .ns-ai-noise { display:none !important; }
html:not(.ns-off):not(.ns-x) .ns-ai-glow { opacity:.55 !important; background:radial-gradient(circle,rgba(130,112,255,.34),transparent 66%) !important; }
html:not(.ns-off):not(.ns-x) .ns-ai-eyebrow { color:#5b3df5 !important; }
html:not(.ns-off):not(.ns-x) .ns-ai-title { color:#232339 !important; }
html:not(.ns-off):not(.ns-x) .ns-ai-subtitle, html:not(.ns-off):not(.ns-x) .ns-ai-card p { color:#6f6d7c !important; }
html:not(.ns-off):not(.ns-x) .ns-ai-card {
  color:#232339 !important; border:1px solid rgba(255,255,255,.92) !important; border-radius:28px !important;
  background:rgba(251,247,241,.80) !important; box-shadow:var(--ns-in), var(--ns-out) !important;
}
html:not(.ns-off):not(.ns-x) .ns-ai-card h3 { color:#232339 !important; }
html:not(.ns-off):not(.ns-x) .ns-card-topline::before, html:not(.ns-off):not(.ns-x) .ns-card-topline::after { background:none !important; }
html:not(.ns-off):not(.ns-x) .ns-badge { color:#5b3df5 !important; background:rgba(255,255,255,.75) !important; border:1px solid #fff !important; box-shadow:var(--ns-out-sm) !important; }
html:not(.ns-off):not(.ns-x) .ns-card-orb { color:#5b3df5 !important; background:linear-gradient(145deg,#fffdf9,#eee7fa) !important; border:1px solid #fff !important; box-shadow:var(--ns-out-sm) !important; }
html:not(.ns-off):not(.ns-x) .ns-url-row input { background:rgba(255,252,248,.9) !important; }
html:not(.ns-off):not(.ns-x) .ns-mini-stats, html:not(.ns-off):not(.ns-x) .ns-mini-stats span { color:#5f5d6e !important; }
html:not(.ns-off):not(.ns-x) .ns-mini-stats svg, html:not(.ns-off):not(.ns-x) .ns-ai-card svg { color:#5b3df5; }
html:not(.ns-off):not(.ns-x) .ns-mini-panel { background:rgba(255,255,255,.55) !important; border:1px solid rgba(255,255,255,.9) !important; color:#232339 !important; box-shadow:var(--ns-out-sm) !important; }
html:not(.ns-off):not(.ns-x) .ns-how-line { background:linear-gradient(90deg,rgba(91,61,245,.5),rgba(123,140,255,.1)) !important; }

/* 6. ДЕСКТОП: левое меню + верхняя панель (как на макете) ---------------------- */
@media (min-width:1100px) {
  html:not(.ns-off):not(.ns-x) body > div.relative.z-10 > div.relative { padding-left:238px !important; }
  html:not(.ns-off):not(.ns-x) header.sticky {
    position:fixed !important; top:25px !important; bottom:25px !important; left:25px !important; right:auto !important;
    width:188px !important; height:auto !important; min-height:0 !important; z-index:120 !important; overflow:visible !important;
    border:1px solid rgba(255,255,255,.86) !important; border-radius:28px !important;
    background:rgba(250,245,238,.80) !important; backdrop-filter:blur(24px) saturate(1.05) !important;
    box-shadow:var(--ns-in), 12px 18px 38px rgba(154,129,105,.20) !important;
  }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child {
    width:100% !important; max-width:none !important; height:100% !important; min-height:100% !important; margin:0 !important;
    padding:22px 11px 14px !important; display:flex !important; flex-direction:column !important; align-items:stretch !important;
    justify-content:flex-start !important; gap:24px !important;
  }
  html:not(.ns-off):not(.ns-x) header a[aria-label="На главную"] { display:flex !important; justify-content:center !important; align-items:center !important; width:100% !important; margin:0 !important; }
  html:not(.ns-off):not(.ns-x) header .site-wordmark { width:150px !important; max-width:100% !important; height:92px !important; object-fit:contain !important; }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav {
    display:flex !important; flex-direction:column !important; align-items:stretch !important; width:100% !important; gap:6px !important; margin:0 !important;
  }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a {
    min-height:44px; display:flex !important; align-items:center !important; gap:11px !important; padding:7px 10px !important;
    border-radius:999px !important; color:#34344a !important; font-size:13px !important; font-weight:550 !important;
    background:transparent !important; border:1px solid transparent !important; text-decoration:none !important;
  }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a::before {
    content:""; flex:0 0 32px; width:32px; height:32px; border-radius:50%; border:1px solid #fff;
    background-color:#f3eee8; background-repeat:no-repeat; background-position:center; background-size:17px;
    box-shadow:3px 4px 9px rgba(170,148,131,.22), inset 1px 1px 2px #fff;
  }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a:hover,
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a[aria-current],
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a.ns-active {
    background:rgba(255,255,255,.66) !important; border-color:rgba(255,255,255,.9) !important; color:#5b3df5 !important;
    box-shadow:var(--ns-out-sm), var(--ns-in) !important;
  }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a.ns-active::after { content:""; margin-left:auto; width:9px; height:9px; border-radius:50%; background:var(--ns-grad); box-shadow:0 0 10px rgba(91,61,245,.5); }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a:nth-child(1)::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b64a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v9.5h13V10'/%3E%3C/svg%3E"); }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a:nth-child(2)::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b64a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.4'/%3E%3Ccircle cx='9' cy='10.5' r='1.6'/%3E%3Cpath d='m21 16-5-5-8 8'/%3E%3C/svg%3E"); }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a:nth-child(3)::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b64a6' stroke='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='6' rx='1.6'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1.6'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1.6'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1.6'/%3E%3C/svg%3E"); }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a:nth-child(4)::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b64a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2.4'/%3E%3Cpath d='M3 10.5h18'/%3E%3C/svg%3E"); }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a:nth-child(5)::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b64a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.4'/%3E%3Cpath d='m3.5 7.5 8.5 6 8.5-6'/%3E%3C/svg%3E"); }
  /* нижняя карточка меню = реальная кнопка «AI анализ сайта» */
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > div.hidden {
    display:block !important; width:100% !important; margin-top:auto !important; padding:9px !important;
    border:1px solid rgba(255,255,255,.75) !important; border-radius:22px !important;
    background:linear-gradient(160deg,rgba(236,230,255,.92),rgba(250,243,237,.9)) !important; box-shadow:var(--ns-in), 5px 8px 17px rgba(171,148,198,.18) !important;
  }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > div.hidden button:not(.light-dark-switch) {
    width:100% !important; min-height:118px !important; height:auto !important; display:flex !important; flex-direction:column !important;
    align-items:flex-start !important; justify-content:flex-start !important; gap:12px !important; padding:12px !important; white-space:normal !important;
    text-align:left !important; font-size:13px !important; font-weight:700 !important; line-height:1.35 !important; color:#232339 !important;
    border:0 !important; border-radius:17px !important; background:transparent !important; box-shadow:none !important;
  }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > div.hidden button:not(.light-dark-switch)::before {
    content:""; width:40px; height:40px; flex:0 0 40px; border-radius:50%; border:1px solid #fff;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235b3df5' stroke='%235b3df5' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 2 4.5 13.5h6.6L10 22l9.5-12h-6.8z'/%3E%3C/svg%3E") center/21px no-repeat, linear-gradient(145deg,#fffdf9,#eee7fa); box-shadow:var(--ns-out-sm), inset 1px 1px 2px #fff;
  }
  html:not(.ns-off):not(.ns-x) header.sticky > div.relative.z-10.flex, html:not(.ns-off):not(.ns-x) header.sticky > div.overflow-hidden { display:none !important; }

  /* верхняя панель («Создать сайт») вставляется assets/ns-redesign.js */
  html:not(.ns-off):not(.ns-x) main { padding-top:96px !important; display:flex !important; flex-direction:column !important; }

  /* HERO */
  html:not(.ns-off):not(.ns-x) main > section#top { order:0; min-height:600px !important; padding-top:20px !important; padding-bottom:40px !important; display:flex; align-items:center; background:transparent !important; border:0 !important; }
  html:not(.ns-off):not(.ns-x) #top > div[aria-hidden="true"]:first-child {
    background:
      radial-gradient(circle 11px at 56% 60%, #fff 0, #bdb4ff 42%, #8574ff 96%, transparent 100%),
      radial-gradient(circle 8px at 62% 74%, #fff 0, #c4bcff 42%, #8f80ff 96%, transparent 100%),
      radial-gradient(ellipse 36% 52% at 82% 52%, rgba(160,146,255,.34), rgba(196,187,255,.14) 60%, transparent 74%),
      radial-gradient(ellipse 24% 30% at 94% 66%, rgba(140,120,255,.26), transparent 72%) !important;
    opacity:.95;
  }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center { grid-template-columns:minmax(0,.98fr) minmax(0,1.08fr) !important; align-items:center !important; gap:clamp(24px,3vw,52px) !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child > p:first-child {
    display:inline-flex; align-items:center; gap:10px; padding:10px 16px; border-radius:999px; text-transform:none !important; letter-spacing:.01em !important;
    font-size:13px !important; font-weight:550; color:#33334a !important; background:rgba(255,255,255,.68); border:1px solid #fff;
    box-shadow:var(--ns-out-sm), var(--ns-in) !important;
  }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child > p:first-child::before { content:""; width:11px; height:11px; border-radius:50%; background:linear-gradient(135deg,#a58bff,#4c28ec); box-shadow:0 0 12px rgba(104,75,255,.45); }
  html:not(.ns-off):not(.ns-x) #top h1 { margin-top:26px !important; max-width:660px; font-size:clamp(2.6rem,3.9vw,4rem) !important; line-height:1.06 !important; font-weight:750 !important; letter-spacing:-.05em !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child > p:not(.text-xs):not(:first-child) { max-width:540px !important; margin-top:22px !important; font-size:16px !important; line-height:1.7 !important; color:#5f5e70 !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child .ns-glass { width:42px !important; height:42px !important; border-radius:50% !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child .ns-glass svg { color:#5b3df5 !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child > div.mt-10 { margin-top:30px !important; gap:16px !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child > div.mt-10 a { min-height:62px; font-size:15px !important; font-weight:600; white-space:nowrap; }
  html:not(.ns-off):not(.ns-x) #top > div[aria-hidden="true"].right-8 { display:none !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child > div.mt-10 a:first-child { padding:18px 32px !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child > div.mt-10 a:last-child > span:first-child {
    width:44px !important; height:44px !important; border:1px solid #fff !important; background:linear-gradient(145deg,#fff,#efe8f8); box-shadow:var(--ns-out-sm); color:#232339;
  }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:nth-child(2) { position:relative; min-width:0; }
  html:not(.ns-off):not(.ns-x) #top .ns-tilt { transform:perspective(1400px) rotateX(5deg) rotateY(-13deg) rotateZ(-3deg) !important; box-shadow:18px 30px 60px -18px rgba(133,112,175,.40) !important; border-radius:26px !important; }
  html:not(.ns-off):not(.ns-x) #top .ns-tilt > .ns-glass { padding:10px !important; border-radius:28px !important; background:rgba(252,248,243,.9) !important; }
  html:not(.ns-off):not(.ns-x) #top .ns-tilt .\@container { border-color:rgba(255,255,255,.85) !important; background-color:#efeaf5 !important; }
  html:not(.ns-off):not(.ns-x) #top .ns-tilt .\@container * { text-shadow:none; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:nth-child(2) .relative.mx-auto.mt-8 { display:none !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:nth-child(2)::before, html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:nth-child(2)::after {
    position:absolute; z-index:8; display:block; width:150px; padding:20px 12px 16px 58px; white-space:pre-line; line-height:1.3; font-size:12px; font-weight:650;
    color:#2b2b42; border:1px solid rgba(255,255,255,.95); border-radius:24px; pointer-events:none;
    background-repeat:no-repeat; background-position:14px 50%, 0 0; background-size:30px, auto;
    box-shadow:var(--ns-in), 9px 14px 28px rgba(170,148,130,.24);
  }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:nth-child(2)::before { content:"Анализ\Aи рекомендации"; top:16%; right:-5%; background-color:rgba(251,247,242,.9); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235b3df5' stroke='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='12' width='4' height='8' rx='1.2'/%3E%3Crect x='10' y='7' width='4' height='13' rx='1.2'/%3E%3Crect x='16' y='3' width='4' height='17' rx='1.2'/%3E%3C/svg%3E"); }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:nth-child(2)::after  { content:"Готовый\Aсайт"; right:-4%; bottom:12%; background-color:rgba(251,247,242,.9); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10.5' fill='%235b3df5' stroke='none'/%3E%3Cpath d='m7.4 12.4 3 3 6.2-6.6' stroke='white' stroke-width='2.4'/%3E%3C/svg%3E"); }

  /* 4 карточки сразу под hero */
  html:not(.ns-off):not(.ns-x) main > section#benefits { order:1; padding:6px 0 54px !important; }
  html:not(.ns-off):not(.ns-x) main > section:not(#top):not(#benefits) { order:2; }
  html:not(.ns-off):not(.ns-x) #benefits > div > span:first-child, html:not(.ns-off):not(.ns-x) #benefits > div > h2 { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  html:not(.ns-off):not(.ns-x) #benefits > div > .grid { margin-top:0 !important; gap:16px !important; }
  html:not(.ns-off):not(.ns-x) #benefits > div > .grid > div {
    position:relative; min-height:210px; padding:24px 22px 22px !important; border-radius:26px !important;
    border:1px solid rgba(255,255,255,.92) !important; background:rgba(251,247,241,.80) !important; box-shadow:var(--ns-in), 10px 16px 28px rgba(174,151,129,.20) !important;
  }
  html:not(.ns-off):not(.ns-x) #benefits > div > .grid > div > span:first-child { width:48px !important; height:48px !important; border-radius:50% !important; background:linear-gradient(145deg,#fffdf9,#eee7fa) !important; }
  html:not(.ns-off):not(.ns-x) #benefits > div > .grid > div > span:first-child svg { color:#5b3df5 !important; }
  html:not(.ns-off):not(.ns-x) #benefits > div > .grid > div > p:first-of-type, html:not(.ns-off):not(.ns-x) #benefits > div > .grid > div > span:last-child { display:none !important; }
  html:not(.ns-off):not(.ns-x) #benefits > div > .grid > div h3 { margin-top:18px !important; font-size:16px !important; font-weight:700 !important; }
  html:not(.ns-off):not(.ns-x) #benefits > div > .grid > div p:last-of-type { margin-top:8px !important; font-size:13px !important; line-height:1.55 !important; max-width:85%; }
  html:not(.ns-off):not(.ns-x) #benefits > div > .grid > div::after {
    content:""; position:absolute; right:16px; bottom:16px; width:34px; height:34px; border-radius:50%; border:1px solid #fff;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325263b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/16px no-repeat, linear-gradient(145deg,#fff,#efe9f6); box-shadow:var(--ns-out-sm);
  }
}

/* 7. ПЛАНШЕТ / ТЕЛЕФОН --------------------------------------------------------- */
@media (max-width:1099px) {
  .ns-redesign-topbar { display:none !important; }
  html:not(.ns-off):not(.ns-x) body > div.relative.z-10 > div.relative { padding-left:0 !important; }
  html:not(.ns-off):not(.ns-x) header.sticky {
    position:sticky !important; top:0 !important; width:100% !important; border-radius:0 0 22px 22px !important;
    background:rgba(249,244,237,.90) !important; border:1px solid rgba(255,255,255,.85) !important;
    box-shadow:0 7px 24px rgba(169,147,127,.14) !important;
  }
  html:not(.ns-off):not(.ns-x) header > div.overflow-hidden { background:rgba(249,244,237,.97) !important; }
  html:not(.ns-off):not(.ns-x) header nav a { color:#34344a !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center { grid-template-columns:minmax(0,1fr) !important; }
  html:not(.ns-off):not(.ns-x) #top .ns-tilt { transform:none !important; }
  html:not(.ns-off):not(.ns-x) #top > div[aria-hidden="true"]:first-child { opacity:.7; }
  html:not(.ns-off):not(.ns-x) #top h1 { font-size:clamp(2.3rem,8vw,3.4rem) !important; font-weight:750 !important; }
  html:not(.ns-off):not(.ns-x) #benefits .grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:16px !important; }
  html:not(.ns-off):not(.ns-x) #benefits .grid > div { padding:20px !important; border-radius:24px !important; border:1px solid rgba(255,255,255,.92) !important; background:rgba(251,247,241,.8) !important; box-shadow:var(--ns-in), var(--ns-out-sm) !important; }
}
@media (max-width:560px) {
  html:not(.ns-off):not(.ns-x) #benefits .grid { grid-template-columns:minmax(0,1fr) !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child > div.mt-10 { flex-direction:column !important; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child > div.mt-10 a { width:100% !important; }
}

/* 8. ВЕРХНЯЯ ПАНЕЛЬ ------------------------------------------------------------ */
.ns-redesign-topbar { position:fixed; z-index:115; top:25px; left:249px; right:29px; display:flex; align-items:center; gap:18px; pointer-events:none; }
.ns-redesign-create { pointer-events:auto; margin-left:auto; display:inline-flex; align-items:center; gap:14px; min-height:58px; padding:0 30px; border:1px solid rgba(255,255,255,.88); border-radius:999px;
  color:#fff !important; text-decoration:none !important; font-size:15px; font-weight:650; white-space:nowrap; background:var(--ns-grad);
  box-shadow:inset 1px 1px 2px rgba(255,255,255,.65), 0 12px 26px rgba(85,54,219,.30), 0 3px 6px rgba(80,56,172,.14); transition:transform .2s ease, filter .2s ease; }
.ns-redesign-create:hover { transform:translateY(-2px); filter:saturate(1.08); }

@media (prefers-reduced-motion:reduce) {
  html:not(.ns-off):not(.ns-x) *, html:not(.ns-off):not(.ns-x) *::before, html:not(.ns-off):not(.ns-x) *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}


/* 9. v5 — ОБЪЁМ: слои raised / inset / pressed (по референсу), карточки не сливаются с фоном ---- */
html:not(.ns-off):not(.ns-x), :root:not(.ns-off) {
  --ns-edge: 0 0 0 1px rgba(184,158,132,.42);
  --ns-out: 16px 22px 38px rgba(122,92,64,.30), 5px 7px 12px rgba(122,92,64,.20), -9px -9px 22px rgba(255,255,255,.95);
  --ns-out-sm: 8px 11px 20px rgba(122,92,64,.28), 2px 3px 6px rgba(122,92,64,.18), -4px -4px 12px rgba(255,255,255,.95);
  --ns-in: inset 2px 2px 3px #fff, inset -2px -3px 6px rgba(150,120,92,.22);
  --ns-inset: inset 5px 6px 12px rgba(140,110,82,.32), inset -4px -4px 9px rgba(255,255,255,.95);
  --ns-card: linear-gradient(160deg,#fffdf9 0%,#f8f0e6 100%);
}
html:not(.ns-off):not(.ns-x) body {
  background:
    radial-gradient(ellipse 48rem 36rem at 74% 4%, rgba(176,164,255,.34), transparent 70%),
    radial-gradient(ellipse 36rem 26rem at 8% 30%, rgba(255,255,255,.55), transparent 72%),
    radial-gradient(ellipse 44rem 30rem at 98% 78%, rgba(190,176,255,.30), transparent 70%),
    linear-gradient(135deg,#efe4d6 0%,#e8dccb 55%,#ece1d2 100%) !important;
  background-attachment: fixed !important;
}
html:not(.ns-off):not(.ns-x) {
  /* raised-слой: карточки разделов, hero-блоки, AI-карточки, стеклянные плашки */
  #services .grid > div > div, #pricing .grid > div > div, #portfolio .grid > a, #portfolio .grid > div,
  #contact form, #contact .ns-glass, #ai-analysis .ns-glass, #process .ns-how-item, #steps li,
  #benefits > div > .grid > div, .ns-ai-card {
    background:var(--ns-card) !important; border:1px solid #fff !important;
    box-shadow:var(--ns-edge), var(--ns-in), var(--ns-out) !important;
    transition:transform .25s ease, box-shadow .25s ease;
  }
  /* elevation: hover поднимает карточку на уровень выше */
  #services .grid > div > div:hover, #pricing .grid > div > div:hover, #portfolio .grid > a:hover, #portfolio .grid > div:hover,
  #steps li:hover, #benefits > div > .grid > div:hover, .ns-ai-card:hover {
    transform:translateY(-4px);
    box-shadow:var(--ns-edge), var(--ns-in), 22px 30px 48px rgba(122,92,64,.34), 6px 8px 14px rgba(122,92,64,.20), -9px -9px 22px rgba(255,255,255,.95) !important;
  }
  .ns-glass { background:linear-gradient(160deg,rgba(255,253,249,.94),rgba(248,240,230,.9)) !important; box-shadow:var(--ns-edge), var(--ns-in), var(--ns-out-sm) !important; }
  footer { background:rgba(244,235,224,.85) !important; box-shadow:0 -6px 18px rgba(122,92,64,.10) !important; }

  /* pressed-слой: поля ввода — вдавленные */
  input, textarea, select {
    background:#f6eee3 !important; border:1px solid rgba(184,158,132,.5) !important;
    box-shadow:var(--ns-inset) !important; transition:box-shadow .2s ease, border-color .2s ease;
  }
  input:focus, textarea:focus, select:focus { border-color:#5b3df5 !important; box-shadow:var(--ns-inset), 0 0 0 3px rgba(91,61,245,.25) !important; }
  input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color:#5b3df5; }

  /* кнопки: основная — выпуклая с нижней гранью, вторичная — raised; нажатие = inset */
  a[class*="bg-[var(--champagne)]"], button[class*="bg-[var(--champagne)]"], .ns-gold-button, button[class*="bg-primary"],
  button[class*="from-amber"], a[class*="from-amber"], .ns-redesign-create {
    border:1px solid rgba(255,255,255,.8) !important;
    box-shadow:inset 1px 2px 2px rgba(255,255,255,.75), inset 0 -4px 8px rgba(35,14,140,.42), 0 16px 28px rgba(70,42,200,.42), 0 4px 8px rgba(60,36,170,.28) !important;
  }
  a[class*="border-border"][class*="rounded-full"], a[class*="border-border"][class*="text-foreground"], button[class*="border-border"] {
    background:linear-gradient(160deg,#fffdf9,#f4ebdf) !important; border:1px solid #fff !important;
    box-shadow:var(--ns-edge), var(--ns-in), var(--ns-out-sm) !important;
  }
  button:not(:disabled):active, a[class*="rounded-full"]:active, .ns-redesign-create:active {
    transform:translateY(1px) scale(.985);
    box-shadow:inset 3px 4px 9px rgba(30,12,120,.45), inset -2px -2px 6px rgba(255,255,255,.2) !important;
  }
  a[class*="border-border"][class*="rounded-full"]:active, button[class*="border-border"]:active { box-shadow:var(--ns-inset) !important; }

  /* бейджи и иконки в круглых плашках */
  .ns-badge, .ns-card-orb, #benefits > div > .grid > div > span:first-child, #top .grid.items-center > div:first-child .ns-glass {
    border:1px solid #fff !important; box-shadow:var(--ns-edge), var(--ns-in), var(--ns-out-sm) !important;
  }
  /* прогресс/линии — выпуклые */

  /* hero: ноутбук и плавающие карточки */
  #top .ns-tilt { box-shadow:26px 40px 70px -14px rgba(100,76,150,.55), 8px 12px 18px rgba(100,76,150,.25) !important; }
  #top .ns-tilt > .ns-glass { background:linear-gradient(160deg,#fffdf9,#f3eadf) !important; }
}
@media (min-width:1100px) {
  html:not(.ns-off):not(.ns-x) header.sticky {
    background:linear-gradient(170deg,#fffdf9 0%,#f6eee3 100%) !important; border:1px solid #fff !important;
    box-shadow:var(--ns-edge), var(--ns-in), 18px 26px 48px rgba(122,92,64,.36), 5px 7px 12px rgba(122,92,64,.20) !important;
  }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a::before { box-shadow:4px 5px 10px rgba(122,92,64,.32), -2px -2px 5px #fff, inset 1px 1px 2px #fff; background-color:#f7efe5; }
  /* активный пункт — «вдавлен» */
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a:hover { background:rgba(255,255,255,.7) !important; box-shadow:var(--ns-out-sm) !important; }
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a[aria-current],
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > nav > a.ns-active { background:#f1e8dc !important; box-shadow:var(--ns-inset) !important; }
  /* большая кнопка «AI анализ сайта» */
  html:not(.ns-off):not(.ns-x) header.sticky > div:first-child > div.hidden {
    background:linear-gradient(160deg,#ece6ff,#f7eee3) !important; border:1px solid #fff !important;
    box-shadow:var(--ns-edge), var(--ns-in), 8px 12px 22px rgba(110,84,190,.34) !important;
  }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:nth-child(2)::before, html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:nth-child(2)::after {
    background-color:#fffaf4; box-shadow:var(--ns-edge), var(--ns-in), 12px 18px 32px rgba(122,92,64,.36);
  }
}
@media (max-width:1099px) {
  html:not(.ns-off):not(.ns-x) header.sticky { box-shadow:0 10px 28px rgba(122,92,64,.28) !important; }
}

/* 10. v6 — «Как работает…»: шаги и мини-превью (светлая версия, фиолетовый акцент) ------------ */
html:not(.ns-off):not(.ns-x) {
  .ns-how-grid { gap:48px; padding:78px 6px 24px; }
  .ns-how h3 { margin-bottom:34px; }
  .ns-how-line { background:none !important; row-gap:24px; }
  .ns-how-item { border-top:4px solid rgba(91,61,245,.22) !important; border-radius:4px; padding-top:26px; box-shadow:none !important; background:none !important; }
  .ns-how-item:first-child { border-top-color:#5b3df5 !important; }
  .ns-how-item b {
    top:-15px; width:28px; height:28px; font-size:12px; font-weight:700; color:#fff !important; border:1px solid #fff;
    background:var(--ns-grad) !important; box-shadow:0 5px 10px rgba(70,42,200,.4), inset 1px 1px 2px rgba(255,255,255,.6);
  }
  .ns-how-item span { color:#4f4d62 !important; font-size:13.5px; max-width:130px; }

  .ns-process-preview { display:none !important; }
}


/* 11. v7 ------------------------------------------------------------------------------------------ */
:root { --ns-ease:cubic-bezier(.22,1,.36,1); --ns-font-head:Unbounded,Manrope,Inter,system-ui,sans-serif; }
html { scroll-behavior:smooth; }

/* 11.1 Шрифты: Unbounded (заголовки) + Manrope (текст) */
html:not(.ns-off):not(.ns-x) {
  h1, h2, .font-display, .ns-ai-title, .ns-how h3, .neuro-chat__identity h2 { font-family:var(--ns-font-head) !important; }
  #top h1 { font-size:clamp(2rem,3vw,3.2rem) !important; line-height:1.14 !important; font-weight:600 !important; letter-spacing:-.035em !important; }
  main h2 { font-size:clamp(1.6rem,2.5vw,2.5rem) !important; line-height:1.18 !important; font-weight:500 !important; letter-spacing:-.025em !important; }
  .ns-how h3 { font-size:19px; font-weight:500; letter-spacing:-.01em; }
  h3 { font-weight:700; }
}

/* 11.2 Hero: без плашки «AI × Design × Business» */
html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:first-child > p:first-child { display:none !important; }
html:not(.ns-off):not(.ns-x) #top h1 { margin-top:0 !important; }

/* 11.3 «Что я делаю» и «Обсудим ваш сайт»: убрать прямоугольные подложки */
html:not(.ns-off):not(.ns-x) {
  #services .grid > div, #pricing .grid > div { background:none !important; border:0 !important; box-shadow:none !important; }
  #contact > div > div.overflow-hidden { background:none !important; border:0 !important; box-shadow:none !important; overflow:visible !important; backdrop-filter:none !important; }
  #contact > div > div.overflow-hidden > .grid { gap:28px; }
  #contact form { background:none !important; border:0 !important; box-shadow:none !important; border-radius:0 !important; }
  #contact > div > div.overflow-hidden > .grid > div {
    border:1px solid #fff !important; border-radius:28px; background:var(--ns-card) !important;
    box-shadow:var(--ns-edge), var(--ns-in), var(--ns-out) !important;
  }
}

/* 11.4 «Почему это быстрее и дешевле» — сравнение «было / стало» */
html:not(.ns-off):not(.ns-x) #advantages {
  .overflow-hidden.rounded-3xl { overflow:visible !important; background:none !important; border:0 !important; backdrop-filter:none !important; }
  @media (min-width:640px) { [class~="sm:block"] { display:grid; gap:16px; } }
  [class~="sm:block"] > .grid { position:relative; grid-template-columns:1fr 1fr !important; gap:56px; border:0 !important; align-items:stretch; }
  [class~="sm:block"] > .grid > div { border:0 !important; background:none !important; }
  [class~="sm:block"] > .grid:first-child { margin-bottom:6px; }
  [class~="sm:block"] > .grid:first-child > div { padding:14px 22px !important; border-radius:999px; text-align:center; font-weight:700; letter-spacing:.01em; }
  [class~="sm:block"] > .grid:first-child > div:first-child { color:#6f6d7c !important; background:#eee4d6 !important; box-shadow:var(--ns-inset); }
  [class~="sm:block"] > .grid:first-child > div:last-child { color:#fff !important; background:var(--ns-grad) !important; box-shadow:inset 1px 2px 2px rgba(255,255,255,.7), inset 0 -4px 8px rgba(35,14,140,.4), 0 12px 22px rgba(70,42,200,.38); }
  [class~="sm:block"] > .grid:not(:first-child) > div { align-items:center; padding:20px 22px !important; border-radius:22px; }
  [class~="sm:block"] > .grid:not(:first-child) > div:first-child { background:#efe5d7 !important; box-shadow:var(--ns-inset); color:#6f6d7c !important; }
  [class~="sm:block"] > .grid:not(:first-child) > div:last-child {
    background:var(--ns-card) !important; border:1px solid #fff !important; color:#232339 !important; font-weight:600;
    box-shadow:var(--ns-edge), var(--ns-in), var(--ns-out-sm); transition:transform .5s var(--ns-ease), box-shadow .5s var(--ns-ease);
  }
  [class~="sm:block"] > .grid:not(:first-child):hover > div:last-child { transform:translateY(-3px); }
  [class~="sm:block"] > .grid:not(:first-child)::after {
    content:"→"; position:absolute; left:50%; top:50%; width:38px; height:38px; margin:-19px 0 0 -19px; display:grid; place-items:center;
    border-radius:50%; color:#fff; font-weight:700; background:var(--ns-grad); border:1px solid #fff;
    box-shadow:0 8px 16px rgba(70,42,200,.4), inset 1px 1px 2px rgba(255,255,255,.6);
  }
  [class~="sm:block"] > .grid:not(:first-child) > div:last-child svg { box-sizing:content-box; padding:5px; border-radius:50%; background:var(--ns-grad); color:#fff !important; flex:none; box-shadow:0 4px 8px rgba(70,42,200,.35); }
  [class~="sm:block"] > .grid:not(:first-child) > div:first-child svg { box-sizing:content-box; padding:5px; border-radius:50%; background:#e1d3c1; color:#a8483f !important; flex:none; }
  @media (max-width:639px) { .sm\:hidden { display:grid; gap:16px; padding:0 !important; } }
  .sm\:hidden > div { border:0 !important; border-radius:24px; padding:22px 20px !important; }
  .sm\:hidden > div:first-child { background:#efe5d7 !important; box-shadow:var(--ns-inset); }
  .sm\:hidden > div:last-child { background:var(--ns-card) !important; border:1px solid #fff !important; box-shadow:var(--ns-edge), var(--ns-in), var(--ns-out-sm); }
}
@media (max-width:900px) { html:not(.ns-off):not(.ns-x) #advantages [class~="sm:block"] > .grid { gap:36px; } }

/* 11.5 Подсказка «?» и список из 7 параметров */
html:not(.ns-off):not(.ns-x) {
  .ns-q { display:inline-grid; place-items:center; width:22px; height:22px; margin-left:8px; vertical-align:middle; border-radius:50%; border:1px solid #fff; cursor:help; color:#fff; background:var(--ns-grad); box-shadow:0 4px 9px rgba(70,42,200,.4), inset 1px 1px 2px rgba(255,255,255,.6); }
  .ns-q:hover, .ns-q:focus-visible { transform:scale(1.15); }
  .ns-q svg { width:13px !important; height:13px !important; color:#fff !important; }
  .ns-q-pop { max-width:360px !important; padding:18px 20px !important; text-align:left !important; border-radius:22px !important; color:#232339 !important; border:1px solid #fff !important;
    background:var(--ns-card) !important; box-shadow:var(--ns-edge), var(--ns-in), 18px 26px 44px rgba(122,92,64,.36) !important; }
  .ns-q-title { margin:0 0 10px; font:700 13px/1.3 var(--ns-font-head); color:#4a2ee0; }
  .ns-q-list { margin:0; padding:0; list-style:none; counter-reset:q; display:grid; gap:8px; font-size:12.5px; line-height:1.45; color:#4f4d62; }
  .ns-q-list li { counter-increment:q; position:relative; padding-left:28px; }
  .ns-q-list li::before { content:counter(q); position:absolute; left:0; top:0; width:20px; height:20px; display:grid; place-items:center; border-radius:50%; font-size:11px; font-weight:700; color:#fff; background:var(--ns-grad); }
  .ns-q-list b { color:#232339; }
}

/* 11.6 Футер: ссылки «Политика» и «Согласие» левее кнопки «Задать вопрос» */
html:not(.ns-off):not(.ns-x) footer { padding-bottom:84px; }
@media (min-width:640px) { html:not(.ns-off):not(.ns-x) footer div.flex.flex-wrap.gap-x-5.text-xs { margin-right:230px; } }

/* 11.7 Окно «Задать вопрос»: объёмные сообщения (по референсу) */
html:not(.ns-off):not(.ns-x) .neuro-chat {
  --chat-surface:#f6efe6; --chat-border:rgba(184,158,132,.45); --background:#f1e8dc; --foreground:#232339; --muted-foreground:#6f6d7c;
  background:linear-gradient(170deg,#fffdf9 0%,#f1e8dc 100%) !important; border:1px solid #fff !important; color:#232339;
  box-shadow:var(--ns-edge), 24px 34px 70px rgba(122,92,64,.42) !important; backdrop-filter:none !important;
}
html:not(.ns-off):not(.ns-x) .neuro-chat::before, html:not(.ns-off):not(.ns-x) .neuro-chat::after { display:none !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__header { background:linear-gradient(160deg,#fffdf9,#f4ebdf) !important; border-bottom:1px solid rgba(184,158,132,.35) !important; box-shadow:0 8px 18px rgba(122,92,64,.14); }
html:not(.ns-off):not(.ns-x) .neuro-chat__identity h2 { font-size:1.25rem; color:#232339 !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__online { border:1px solid #fff !important; background:#fffdf9 !important; color:#232339; box-shadow:var(--ns-out-sm); }
html:not(.ns-off):not(.ns-x) .neuro-chat__close, html:not(.ns-off):not(.ns-x) .neuro-chat__tool, html:not(.ns-off):not(.ns-x) .neuro-chat__mic {
  background:linear-gradient(160deg,#fffdf9,#f1e8dc) !important; border:1px solid #fff !important; color:#4f4d62 !important; box-shadow:var(--ns-out-sm) !important;
}
html:not(.ns-off):not(.ns-x) .neuro-chat__messages { gap:1.5rem; padding:1.8rem 1.4rem; }
html:not(.ns-off):not(.ns-x) .neuro-chat__message { max-width:90%; }
html:not(.ns-off):not(.ns-x) .neuro-chat__bubble {
  color:#232339 !important; font-size:.97rem; line-height:1.5; padding:.95rem 1.25rem; backdrop-filter:none !important;
  border:1px solid #fff !important; border-radius:1.5rem 1.5rem 1.5rem .5rem;
  background:linear-gradient(160deg,#fffdf9 0%,#e9e0d3 100%) !important;
  box-shadow:inset 1px 2px 2px #fff, inset -1px -3px 6px rgba(150,120,92,.18), 8px 12px 22px rgba(122,92,64,.28), -3px -3px 8px rgba(255,255,255,.9) !important;
}
html:not(.ns-off):not(.ns-x) .neuro-chat__message.is-user .neuro-chat__bubble {
  color:#fff !important; border:1px solid rgba(255,255,255,.55) !important; border-radius:1.5rem 1.5rem .5rem 1.5rem;
  background:linear-gradient(150deg,#8f7dff 0%,#5b3df5 50%,#3a22c4 100%) !important;
  box-shadow:inset 1px 2px 2px rgba(255,255,255,.55), inset 0 -4px 8px rgba(30,12,120,.4), 0 12px 24px rgba(70,42,200,.5) !important;
}
html:not(.ns-off):not(.ns-x) .neuro-chat__time { color:#6f6d7c !important; font-size:.8rem; }
html:not(.ns-off):not(.ns-x) .neuro-chat__time svg { color:#5b3df5 !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__composer-wrap { background:linear-gradient(0deg,#f4ebdf,#fffdf9) !important; border-top:1px solid rgba(184,158,132,.35) !important; backdrop-filter:none !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__composer { background:#f1e8dc !important; border:1px solid rgba(184,158,132,.5) !important; box-shadow:var(--ns-inset) !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__composer:focus-within { border-color:#5b3df5 !important; box-shadow:var(--ns-inset), 0 0 0 3px rgba(91,61,245,.25) !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__textarea { background:transparent !important; box-shadow:none !important; border:0 !important; color:#232339 !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__send { background:var(--ns-grad) !important; border:1px solid #fff !important; color:#fff !important; box-shadow:inset 1px 2px 2px rgba(255,255,255,.6), inset 0 -3px 6px rgba(35,14,140,.4), 0 8px 16px rgba(70,42,200,.45) !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__composer > div { flex-direction:row !important; align-items:center !important; gap:6px; padding:6px 8px; border:0 !important; background:transparent !important; box-shadow:none !important; outline:0 !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__composer > div > * { order:0 !important; width:auto !important; flex:none; }
html:not(.ns-off):not(.ns-x) .neuro-chat__composer > div > textarea { flex:1 1 auto !important; min-width:0; border-radius:0 !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__composer :focus-visible { outline:0 !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat__typing i { background:#5b3df5; box-shadow:none; }

/* 11.8 Логотип: холодный циан → фирменный фиолетовый, структура не меняется */
html:not(.ns-off):not(.ns-x) .site-wordmark { filter:hue-rotate(42deg) saturate(1.15) contrast(1.05) drop-shadow(0 0 1.2px rgba(60,40,150,.6)) drop-shadow(0 4px 8px rgba(70,42,200,.25)); }

/* 11.9 Плавные анимации ------------------------------------------------------------------------------ */
html:not(.ns-off):not(.ns-x) {
  button, a[class*="rounded-full"], header.sticky nav a, .ns-q, input, textarea,
  #services .grid > div > div, #pricing .grid > div > div, #portfolio .grid > a, #benefits > div > .grid > div, .ns-ai-card, .ns-glass {
    transition:transform .55s var(--ns-ease), box-shadow .55s var(--ns-ease), background-color .4s ease, color .3s ease, border-color .3s ease, filter .4s ease !important;
  }
  button:not(:disabled):hover, a[class*="rounded-full"]:hover { transform:translateY(-2px); }
  header.sticky nav a:hover { transform:translateX(3px); }
  .neuro-chat__message { animation:ns-msg-in .55s var(--ns-ease) both !important; }
}
@keyframes ns-msg-in { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes ns-float { from { transform:translateY(0); } to { transform:translateY(-9px); } }
@media (min-width:1100px) {
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:nth-child(2)::before { animation:ns-float 5.5s ease-in-out infinite alternate; will-change:transform; }
  html:not(.ns-off):not(.ns-x) #top .grid.items-center > div:nth-child(2)::after { animation:ns-float 6.5s ease-in-out -2s infinite alternate; will-change:transform; }
}
/* оптимизация: секции ниже первого экрана рисуются по мере приближения */
html:not(.ns-off):not(.ns-x) main > section:not(#top):not(#benefits) { content-visibility:auto; contain-intrinsic-size:auto 700px; }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } html:not(.ns-off):not(.ns-x) * { animation:none !important; } }

/* v9: чат поддержки — только текст (без скрепки и микрофона) */
html:not(.ns-off):not(.ns-x) .neuro-chat .neuro-chat__tool, html:not(.ns-off):not(.ns-x) .neuro-chat .neuro-chat__mic { display:none !important; }
html:not(.ns-off):not(.ns-x) .neuro-chat .neuro-chat__composer textarea.neuro-chat__textarea,
html:not(.ns-off):not(.ns-x) .neuro-chat .neuro-chat__composer textarea.neuro-chat__textarea:focus,
html:not(.ns-off):not(.ns-x) .neuro-chat .neuro-chat__composer textarea.neuro-chat__textarea:focus-visible { background:transparent !important; border:0 !important; box-shadow:none !important; outline:0 !important; padding-left:1.1rem; }
body:has(.neuro-chat) .ns-redesign-topbar { display:none !important; }
/* значок «?» ближе к подписи: в плашках статистики между элементами уже есть gap */
html:not(.ns-off):not(.ns-x) .ns-mini-stats .ns-q { margin-left:-4px; }
/* «?» крупнее: рамку-круг иконки прячем, сам знак увеличиваем и делаем жирнее */
html:not(.ns-off):not(.ns-x) .ns-q svg { width:14px !important; height:14px !important; transform:scale(1.7); stroke-width:3 !important; overflow:visible; }
html:not(.ns-off):not(.ns-x) .ns-q svg circle { display:none; }

/* v11: полоса согласия на cookie */
.ns-cookie { position:fixed; z-index:118; left:249px; right:230px; bottom:18px; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:8px 10px 8px 20px; border:1px solid #fff; border-radius:999px; font:500 13px/1.35 Manrope,Inter,system-ui,sans-serif; color:#4f4d62;
  background:linear-gradient(160deg,#fffdf9,#f4ebdf); box-shadow:0 0 0 1px rgba(184,158,132,.42), inset 1px 2px 2px #fff, 12px 16px 30px rgba(122,92,64,.28);
  opacity:0; transform:translateY(16px); transition:opacity .5s var(--ns-ease,ease), transform .5s var(--ns-ease,ease); }
.ns-cookie.ns-cookie-in { opacity:1; transform:none; }
.ns-cookie.ns-cookie-out { opacity:0; transform:translateY(16px); }
.ns-cookie p { margin:0; } .ns-cookie a { color:#4a2ee0; text-decoration:underline; text-underline-offset:2px; }
.ns-cookie-actions { display:flex; gap:8px; flex:none; }
.ns-cookie button { min-height:34px; padding:0 18px; border-radius:999px; font:600 13px Manrope,Inter,sans-serif; color:#4f4d62; cursor:pointer; border:1px solid #fff;
  background:linear-gradient(160deg,#fffdf9,#efe5d7); box-shadow:0 0 0 1px rgba(184,158,132,.35), 4px 6px 10px rgba(122,92,64,.22); transition:transform .3s var(--ns-ease,ease), box-shadow .3s ease; }
.ns-cookie button:hover { transform:translateY(-1px); }
.ns-cookie button.ns-cookie-ok { color:#fff; background:linear-gradient(125deg,#a08cff 0%,#6947fb 48%,#4024d5 100%);
  box-shadow:inset 1px 2px 2px rgba(255,255,255,.6), inset 0 -3px 6px rgba(35,14,140,.4), 0 6px 12px rgba(70,42,200,.4); }
@media (max-width:1099px) {
  .ns-cookie { left:12px; right:12px; bottom:12px; border-radius:22px; padding:10px 12px 10px 16px; flex-wrap:wrap; }
  body:has(.ns-cookie) button[class*="from-amber"] { margin-bottom:86px; }
}
@media (prefers-reduced-motion:reduce) { .ns-cookie { transition:none; } }

/* v13: сервис генерации дизайна — экран ожидания и карточки готовых концептов */
html:not(.ns-off):not(.ns-x) .ai-design-loading__title { color:#f8f3ea !important; font-family:var(--ns-font-head); font-size:clamp(26px,3vw,38px); font-weight:500; line-height:1.2; letter-spacing:-.02em; text-shadow:0 2px 28px rgba(150,130,255,.45); }
html:not(.ns-off):not(.ns-x) .ai-design-loading__subtitle { color:rgba(248,243,234,.84); max-width:560px; margin-top:18px; font-size:clamp(15px,1.25vw,17px); line-height:1.6; }
html:not(.ns-off):not(.ns-x) .ai-design-loading__status { color:#f3d594; margin-top:30px; font-size:16px; font-weight:600; letter-spacing:.02em; }
html:not(.ns-off):not(.ns-x) .ns-generating h3 { color:#f8f3ea !important; font-family:var(--ns-font-head); font-size:clamp(26px,3vw,38px); font-weight:500; }
html:not(.ns-off):not(.ns-x) .ns-generating p { color:rgba(248,243,234,.82); font-size:16px; }
html:not(.ns-off):not(.ns-x) .ns-generating-points span { color:#eadfcb; border-color:rgba(243,213,148,.5); font-size:13px; }

html:not(.ns-off):not(.ns-x) .ns-board-body strong { display:block; color:#1d1b33 !important; font-family:var(--ns-font-head); font-size:17px; font-weight:600; line-height:1.3; letter-spacing:-.01em; }
html:not(.ns-off):not(.ns-x) .ns-board-body p { color:#3d3b50 !important; font-size:14.5px; line-height:1.65; }
html:not(.ns-off):not(.ns-x) .ns-board-body .ns-concept-focus { color:#4527d8 !important; font-size:13px; font-weight:700; line-height:1.55; letter-spacing:0; }
html:not(.ns-off):not(.ns-x) .ns-board-select { min-height:48px; color:#fff !important; font-size:14.5px; font-weight:700; border:1px solid rgba(255,255,255,.7) !important; background:var(--ns-grad) !important;
  box-shadow:inset 1px 2px 2px rgba(255,255,255,.6), inset 0 -3px 6px rgba(35,14,140,.4), 0 8px 16px rgba(70,42,200,.38) !important; }
html:not(.ns-off):not(.ns-x) .ns-board-select.active { background:linear-gradient(160deg,#35335a,#1d1b33) !important; }
html:not(.ns-off):not(.ns-x) .ns-modal-header h3 { color:#1d1b33 !important; font-family:var(--ns-font-head); font-size:clamp(22px,2.4vw,30px); line-height:1.2; font-weight:600; }
html:not(.ns-off):not(.ns-x) .ns-modal-header p { color:#4a4860 !important; font-size:15px; line-height:1.6; }

/* v15: окно результата AI-анализа тёмное — заголовки внутри не должны красить в тёмный общим правилом */
html:not(.ns-off):not(.ns-x) .nsa-panel:not(.nsa-panel-loading) :is(h3,h4,h5,h6) { color:var(--nsa-text,#fff) !important; }
html:not(.ns-off):not(.ns-x) .nsa-panel-loading :is(h3,h4) { color:var(--foreground) !important; }

/* v16: плавная прокрутка — без размытия фона у карточек, шапка легче, свечения в отдельном слое */
html:not(.ns-off):not(.ns-x) .ns-glass { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
html:not(.ns-off):not(.ns-x) header.sticky { backdrop-filter:blur(10px) !important; -webkit-backdrop-filter:blur(10px) !important; background:rgba(250,245,238,.94) !important; }
html:not(.ns-off):not(.ns-x) .ns-ai-glow, html:not(.ns-off):not(.ns-x) .ns-pulse-soft, html:not(.ns-off):not(.ns-x) .ns-glow-soft { will-change:opacity, transform; }

/* v17: кнопки выбора в мастере дизайна объёмные и заметно активные; повторное открытие и печать результата анализа */
html:not(.ns-off):not(.ns-x) .ns-option, html:not(.ns-off):not(.ns-x) .ns-style-card, html:not(.ns-off):not(.ns-x) .ns-check {
  color:#2b2b44 !important; background:linear-gradient(160deg,#fffdf9,#f1e8dc) !important; border:1px solid #fff !important; border-radius:18px !important;
  box-shadow:0 0 0 1px rgba(184,158,132,.35), 6px 9px 16px rgba(122,92,64,.24), -3px -3px 8px rgba(255,255,255,.9) !important;
  transition:transform .35s var(--ns-ease,ease), box-shadow .35s ease, background .35s ease;
}
html:not(.ns-off):not(.ns-x) .ns-option:hover, html:not(.ns-off):not(.ns-x) .ns-style-card:hover, html:not(.ns-off):not(.ns-x) .ns-check:hover { transform:translateY(-2px); }
html:not(.ns-off):not(.ns-x) .ns-option.active, html:not(.ns-off):not(.ns-x) .ns-style-card.active, html:not(.ns-off):not(.ns-x) .ns-check.active {
  color:#fff !important; background:var(--ns-grad) !important; border:1px solid rgba(255,255,255,.7) !important;
  box-shadow:inset 1px 2px 2px rgba(255,255,255,.6), inset 0 -4px 8px rgba(35,14,140,.4), 0 12px 22px rgba(70,42,200,.38) !important;
  transform:translateY(1px);
}
html:not(.ns-off):not(.ns-x) .nsa-reopen { margin-top:14px; }
@media print {
  body > *:not(.nsa-overlay) { display:none !important; }
  .nsa-overlay { position:static !important; background:none !important; backdrop-filter:none !important; padding:0 !important; overflow:visible !important; display:block !important; }
  .nsa-panel { background:#fff !important; color:#111 !important; box-shadow:none !important; border:0 !important; animation:none !important; min-height:0 !important; padding:0 !important; }
  .nsa-panel *, .nsa-panel h3, .nsa-panel h4, .nsa-panel h5 { color:#111 !important; text-shadow:none !important; background-image:none !important; }
  .nsa-close, .nsa-pdf, .nsa-analysis-button, .nsa-help, .nsa-guide-desktop, .nsa-guide-mobile, .nsa-reopen { display:none !important; }
  @page { margin:14mm; }
}

/* v18: кнопка «Скачать PDF» в тёмном окне результата — заметная золотая */
html:not(.ns-off):not(.ns-x) .nsa-pdf {
  color:#1a1408 !important; background:linear-gradient(135deg,#f6d58a 0%,#e9b35a 100%) !important; border:1px solid rgba(255,243,210,.9) !important;
  font-weight:700 !important; box-shadow:0 8px 20px rgba(233,179,90,.35), inset 1px 2px 2px rgba(255,255,255,.6) !important; opacity:1 !important;
}
html:not(.ns-off):not(.ns-x) .nsa-pdf:hover { filter:brightness(1.06); }

/* v19: карточки концептов по центру, без пустого места справа */
html:not(.ns-off):not(.ns-x) .ns-boards { grid-template-columns:repeat(auto-fit, minmax(260px, 340px)) !important; justify-content:center; }

/* v20: кнопки скачивания готовых концептов (PNG) над карточками */
html:not(.ns-off):not(.ns-x) .ns-download-row { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin:22px 0 4px; }
html:not(.ns-off):not(.ns-x) .ns-download-btn {
  display:inline-flex; align-items:center; gap:10px; min-height:46px; padding:0 22px; border-radius:999px; border:1px solid #fff;
  color:#fff !important; font-size:14px; font-weight:700; text-decoration:none !important;
  background:var(--ns-grad) !important; box-shadow:inset 1px 2px 2px rgba(255,255,255,.6), inset 0 -3px 6px rgba(35,14,140,.4), 0 10px 18px rgba(70,42,200,.35);
  transition:transform .3s var(--ns-ease,ease), box-shadow .3s ease;
}
html:not(.ns-off):not(.ns-x) .ns-download-btn:hover { transform:translateY(-2px); }

/* v21: кнопки скачивания концептов в левой панели над «AI анализ сайта» */
html:not(.ns-off):not(.ns-x) .ns-rail-downloads { display:flex; flex-direction:column; gap:8px; margin:0 0 14px; width:100%; }
html:not(.ns-off):not(.ns-x) .ns-rail-btn { width:100%; min-height:40px; padding:0 14px; font-size:13px; justify-content:center; }

/* v22: кнопка «Открыть результат анализа» не наезжает на строку «7 параметров» */
html:not(.ns-off):not(.ns-x) .ns-analysis-card { height:auto !important; min-height:0 !important; }
html:not(.ns-off):not(.ns-x) .ns-analysis-card .nsa-reopen { margin:16px 0 0 !important; }
html:not(.ns-off):not(.ns-x) .ns-analysis-card .ns-mini-stats { position:relative !important; bottom:auto !important; top:auto !important; margin-top:22px !important; }

/* perf 2026-12-02: облегчение графики (blur/backdrop/анимации/canvas) */
.ns-ai-glow{filter:blur(40px)!important}
.ns-pulse-soft[class*="pointer-events-none"]{filter:blur(32px)!important}
@media (max-width:900px),(hover:none){
  *,*::before,*::after{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  canvas.fixed.inset-0{display:none!important}
  .ns-ai-glow,.ns-pulse-soft[class*="pointer-events-none"],.ns-orbit,.ns-orbit-rev,.ns-drift,.ns-animated-border,.ns-animated-border::before{animation:none!important;filter:none!important;will-change:auto!important}
  .ns-ai-glow{display:none!important}
  .ns-glass,.ns-tilt,.group{filter:none!important}
  .site-wordmark{filter:none!important}
  .ns-tilt{box-shadow:0 12px 24px -12px rgba(100,76,150,.35)!important}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important}
}
