/* StratForge — официальный сайт. Графит + голубые акценты, только тёмная тема. */
:root {
  --bg: #070b12;
  --bg-2: #0a1019;
  --surface: #0e1623;
  --card: rgba(19, 29, 45, 0.62);
  --card-hover: rgba(24, 37, 58, 0.78);
  --border: rgba(122, 162, 222, 0.14);
  --border-strong: rgba(98, 170, 255, 0.38);
  --text: #eaf0f8;
  --text-2: #b8c4d4;
  --muted: #8495ab;
  --accent: #38a8ff;
  --accent-2: #5cc8ff;
  --accent-deep: #1f7cf0;
  --pos: #2fd17c;
  --neg: #ff6b7a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --container: 1200px;
  --gutter: 24px;
  --header-h: 68px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.accent { color: var(--accent); background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #031021; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #2b8dff 0%, #36b4ff 100%); box-shadow: 0 8px 26px rgba(43, 141, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(43, 141, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { color: var(--text); border-color: rgba(160, 190, 230, .32); background: rgba(14, 22, 35, .55); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(30, 60, 100, .35); }
.btn-ghost:hover .icon { transform: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }

/* Шапка */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled { background: rgba(7, 11, 18, .82); border-color: var(--border); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: auto; height: 30px; }
.brand-name { display: flex; flex-direction: column; font-weight: 700; font-size: 20px; letter-spacing: -.01em; line-height: 1.1; }
.brand-name small { font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; padding-left: 20px; border-left: 1px solid var(--border); }
.site-nav a:not(.btn) { position: relative; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--text-2); border-radius: 8px; transition: color .2s ease; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s ease; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: rgba(14, 22, 35, .7); color: var(--text); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Главный экран */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 72px; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(36, 120, 255, .28), transparent 70%),
    radial-gradient(40% 40% at 70% 70%, rgba(40, 160, 255, .12), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(30, 80, 170, .18), transparent 70%),
    linear-gradient(180deg, #08101c 0%, var(--bg) 100%);
}
.hero-glow::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(120, 170, 240, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 170, 240, .05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 750; line-height: 1.12; letter-spacing: -.02em; }
.lead { margin-top: 22px; font-size: 17px; color: var(--text-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 44px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.badge-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(30, 90, 170, .16); color: var(--accent-2); }
.badge-icon .icon { width: 17px; height: 17px; }

.hero-visual { position: relative; margin: 0; }
.app-window {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(110, 160, 230, .28);
  background: linear-gradient(180deg, rgba(16, 25, 40, .96), rgba(10, 16, 27, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(56, 168, 255, .06), 0 0 70px rgba(40, 130, 255, .18);
  font-size: 12px; transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transform-origin: 60% 50%;
}
.app-titlebar { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--border); background: rgba(8, 13, 22, .8); }
.app-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; color: var(--text-2); }
.app-title img { width: 13px; height: 16px; }
.win-dots { display: flex; gap: 12px; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.4px solid var(--muted); opacity: .7; }
.app-body { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 300px; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--border); background: rgba(8, 13, 22, .45); }
.app-side span, .chat-side span { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: 11.5px; }
.app-side .icon, .chat-side .icon { width: 14px; height: 14px; }
.app-side .is-active, .chat-side .is-active { color: var(--text); background: rgba(56, 168, 255, .14); box-shadow: inset 2px 0 0 var(--accent); }
.app-main { padding: 14px 16px 16px; min-width: 0; }
.app-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.pill-demo { color: #ffd27a; background: rgba(255, 190, 70, .12); border: 1px solid rgba(255, 190, 70, .3); }
.pill-online { color: #6fe3a4; background: rgba(47, 209, 124, .1); border: 1px solid rgba(47, 209, 124, .28); }
.pill-online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pos); }
.app-tabs { display: flex; gap: 18px; margin: 12px 0 10px; border-bottom: 1px solid var(--border); }
.app-tabs span { padding: 6px 0; color: var(--muted); font-size: 11.5px; }
.app-tabs .is-active { color: var(--accent-2); box-shadow: inset 0 -2px 0 var(--accent); }
.app-split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; }
.code { margin: 0; padding: 10px 10px 10px 0; border-radius: 9px; border: 1px solid var(--border); background: rgba(5, 9, 15, .75); font: 10px/1.75 var(--mono); color: #c9d6e6; overflow: hidden; white-space: pre; }
.code .ln { display: inline-block; width: 22px; padding-right: 7px; text-align: right; color: #4c5d74; user-select: none; }
.code .c { color: #5f7894; }
.code .k { color: #6cb6ff; }
.code .t { color: #5ad2c1; }
.code .f { color: #e7c37a; }
.results { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border); background: rgba(12, 19, 31, .8); }
.results-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.results-head span { font-size: 10px; font-weight: 600; color: #ffd27a; text-transform: uppercase; letter-spacing: .06em; }
.results dl { margin: 0; }
.results dl div { display: flex; justify-content: space-between; gap: 8px; padding: 3.5px 0; border-bottom: 1px dashed rgba(122, 162, 222, .1); font-size: 11px; }
.results dt { color: var(--muted); }
.results dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.results .pos { color: var(--pos); }
.results .neg { color: var(--neg); }
.spark { width: 100%; height: 52px; margin-top: 8px; }
.spark-area { fill: url(#sparkFill); }
.spark-line { fill: none; stroke: var(--pos); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.2s .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.ai-bubble {
  position: absolute; right: -14px; bottom: -34px; width: min(300px, 72%);
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: end;
  padding: 12px 12px 12px 14px; border-radius: 12px; border: 1px solid rgba(110, 160, 230, .3);
  background: rgba(13, 21, 34, .94); box-shadow: var(--shadow), 0 0 40px rgba(40, 130, 255, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px;
  animation: float 6s ease-in-out infinite;
}
.ai-bubble strong { display: block; font-size: 12px; margin-bottom: 3px; }
.ai-bubble p { color: var(--text-2); line-height: 1.45; }
.ai-avatar, .avatar-ai { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #6b5cff, #2b8dff); color: #fff; align-self: start; }
.ai-avatar .icon, .avatar-ai .icon { width: 15px; height: 15px; }
.ai-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #2b8dff, #36b4ff); color: #fff; }
.ai-send .icon { width: 15px; height: 15px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.visual-note { margin-top: 18px; max-width: 52%; font-size: 12px; color: var(--muted); }

/* Секции */
.section { position: relative; padding: 88px 0; border-bottom: 1px solid var(--border); }
.section:nth-of-type(even) { background: linear-gradient(180deg, rgba(12, 19, 31, .55), rgba(7, 11, 18, 0)); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head h2, .chat-copy h2, .faq-list h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }

.grid { display: grid; gap: 18px; }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card); transition: transform .3s ease, border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 60% at 0% 0%, rgba(56, 168, 255, .1), transparent 60%); opacity: .8; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--card-hover); box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 30px rgba(40, 130, 255, .08); }
.card h3 { margin: 18px 0 10px; font-size: 16px; font-weight: 650; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.card-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; color: var(--accent-2); background: rgba(40, 120, 230, .12); border: 1px solid rgba(80, 160, 255, .2); }
.card-icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.card-row { display: flex; gap: 20px; align-items: flex-start; padding: 28px 26px; }
.card-row h3 { margin-top: 2px; }
.card-icon-lg { width: 60px; height: 60px; }
.card-icon-lg .icon { width: 32px; height: 32px; }

/* Шаги */
.steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 16px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); transition: border-color .3s ease, transform .3s ease; }
.step:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -24px; width: 18px; height: 18px; transform: translateY(-50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8c4d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.step-num { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2b8dff, #36b4ff); box-shadow: 0 0 16px rgba(56, 168, 255, .5); }
.step-icon { color: var(--accent-2); margin-bottom: 14px; }
.step-icon .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.step h3 { font-size: 16px; font-weight: 650; margin-bottom: 10px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* SF Chat */
.chat-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ticks { list-style: none; display: grid; gap: 16px; margin-top: 30px; }
.ticks li { display: flex; align-items: center; gap: 14px; color: var(--text-2); font-size: 15px; }
.tick-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(30, 90, 170, .14); color: var(--accent-2); flex: none; }
.tick-icon .icon { width: 19px; height: 19px; }
.chat-visual { margin: 0; }
.chat-window { border-radius: 14px; overflow: hidden; border: 1px solid rgba(110, 160, 230, .26); background: linear-gradient(180deg, rgba(15, 24, 38, .96), rgba(10, 16, 27, .98)); box-shadow: var(--shadow), 0 0 60px rgba(40, 130, 255, .12); font-size: 12.5px; }
.chat-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.chat-title .icon { width: 16px; height: 16px; color: var(--accent-2); }
.chat-body { display: grid; grid-template-columns: 140px minmax(0, 1fr); }
.chat-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--border); background: rgba(8, 13, 22, .45); }
.chat-thread { display: flex; flex-direction: column; gap: 14px; padding: 16px; min-width: 0; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; font-size: 10.5px; font-weight: 700; }
.avatar-user { background: #22406a; color: #cfe3ff; }
.bubble { padding: 10px 13px; border-radius: 12px; border: 1px solid var(--border); background: rgba(22, 34, 52, .75); min-width: 0; }
.bubble b { font-weight: 650; }
.bubble time { margin-left: 6px; color: var(--muted); font-size: 11px; }
.bubble p { margin-top: 4px; color: var(--text-2); }
.bubble ol { margin: 6px 0 6px 18px; color: var(--text-2); }
.bubble-ai { border-color: rgba(80, 150, 255, .28); background: rgba(24, 44, 76, .55); }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding: 8px 8px 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(6, 10, 17, .7); color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.faq-sub { margin: 8px 0 24px; color: var(--muted); }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--card); transition: border-color .25s ease, background-color .25s ease; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item[open] { border-color: var(--border-strong); background: rgba(22, 36, 58, .7); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 18px; height: 18px; color: var(--accent-2); transition: transform .25s ease; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { padding: 0 18px 18px; color: var(--muted); font-size: 14.5px; }
.quote-card { position: relative; margin: 0; display: flex; flex-direction: column; justify-content: center; min-height: 360px; padding: 44px 40px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(160deg, #0f1a2b 0%, #0a121e 100%); }
.quote-art { position: absolute; inset: 0; opacity: .9; }
.quote-art svg { width: 100%; height: 100%; }
.quote-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 20% 30%, rgba(7, 11, 18, .85), transparent 70%); }
.quote-card blockquote, .quote-card figcaption { position: relative; z-index: 1; }
.quote-card blockquote { margin: 0; max-width: 380px; font-size: clamp(20px, 2vw, 25px); line-height: 1.45; font-weight: 500; }
.quote-card figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 30px; }
.quote-rule { width: 36px; height: 2px; margin-bottom: 14px; background: var(--accent); border-radius: 2px; }
.quote-card figcaption span:last-child { font-size: 12.5px; color: var(--muted); }

/* CTA */
.section-cta { padding: 64px 0; border-bottom: 0; }
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 40px 44px; border-radius: 18px; border: 1px solid var(--border-strong);
  background: radial-gradient(60% 120% at 100% 50%, rgba(43, 141, 255, .28), transparent 70%), linear-gradient(135deg, #0f1c31, #0a1322);
  box-shadow: 0 0 60px rgba(40, 130, 255, .12);
}
.cta-band h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; }
.cta-band p { margin-top: 8px; color: var(--text-2); }
.cta-side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-note { font-size: 12.5px; color: var(--muted); }

/* Подвал */
.site-footer { border-top: 1px solid var(--border); background: #060a10; padding: 40px 0 28px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, .8fr); gap: 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 24px; }
.footer-brand p { max-width: 260px; padding-left: 24px; border-left: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--text-2); }
.footer-nav a:hover { color: var(--accent-2); }
.footer-tagline { text-align: right; font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(122, 162, 222, .08); font-size: 12px; color: #66768c; }
.footer-legal p:first-child { max-width: 780px; }

/* Первый экран: CSS-появление без зависимости от JS */
.intro { animation: intro .9s cubic-bezier(.2, .7, .2, 1) both; }
.intro-delay { animation-delay: .15s; }
@keyframes intro { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Появление при прокрутке (включается только при работающем JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay { transition-delay: .12s; }

/* Адаптивность */
@media (max-width: 1180px) {
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 30px; }
  .step:nth-child(3n)::after { display: none; }
  .site-nav a:not(.btn) { padding: 8px 9px; }
}
@media (max-width: 1024px) {
  .hero-grid, .chat-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 720px; width: 100%; margin: 0 auto; }
  .app-window { transform: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-card { min-height: 280px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .footer-tagline { text-align: left; }
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    margin: 0; padding: 14px var(--gutter) 22px; border-left: 0; border-bottom: 1px solid var(--border);
    background: rgba(7, 11, 18, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .site-nav a:not(.btn) { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid rgba(122, 162, 222, .08); border-radius: 0; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a.is-active { color: var(--accent-2); }
  .nav-cta-mobile { display: inline-flex; margin-top: 14px; min-height: 48px; }
  .site-header.menu-open { background: rgba(7, 11, 18, .97); border-color: var(--border); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 62px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 56px; }
  .lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .badges { gap: 12px 18px; margin-top: 34px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .grid-6, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 20px 16px; }
  .card-row { flex-direction: column; gap: 14px; padding: 22px 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .step::after { display: none; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .app-split { grid-template-columns: minmax(0, 1fr); }
  .ai-bubble { position: relative; right: auto; bottom: auto; width: auto; margin: -18px 10px 0; animation: none; }
  .visual-note { max-width: none; margin-top: 14px; }
  .chat-body { grid-template-columns: minmax(0, 1fr); }
  .chat-side { display: none; }
  .cta-band { padding: 30px 22px; }
  .cta-side { width: 100%; }
  .cta-side .btn { width: 100%; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-brand p { padding-left: 0; border-left: 0; }
  .footer-legal { flex-direction: column; }
  .quote-card { padding: 34px 26px; }
}
@media (max-width: 460px) {
  .grid-6, .grid-4, .steps { grid-template-columns: minmax(0, 1fr); }
  .badges li { font-size: 13px; }
  .code { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .spark-line { stroke-dashoffset: 0; }
}
