:root {
  --bg: #06080b;
  --bg-2: #0b0f14;
  --card: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eef2f5;
  --muted: #8b95a1;
  --accent: #34d399;
  --accent-2: #10b981;
  --accent-deep: #0f9f6e;
  --teal: #2dd4bf;
  /* Синий и фиолетовый из логотипа, осветлённые для тёмного фона */
  --blue: #5b7bff;
  --violet: #9b6bff;
  --danger: #f87171;
  --warn: #fbbf24;
  --radius: 16px;
  --font-head: "Geist", system-ui, sans-serif;
  --font: "Geist", system-ui, sans-serif;
  --font-accent: "Geist Mono", ui-monospace, monospace;
  --h-weight: 600;
  --h-track: -0.045em;
  --h-scale: 1;
  --mx: 50%;
  --my: 50%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Плавную прокрутку к якорям делает script.js — встроенная конфликтовала бы с ней */
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(52, 211, 153, 0.3); }

/* ---------- Фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
.aurora {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.35;
  animation: float 22s ease-in-out infinite alternate;
}
.a1 { width: 620px; height: 620px; background: #0e7a55; top: -240px; left: -120px; }
.a2 { width: 520px; height: 520px; background: #1f3aa8; top: 30%; right: -200px; animation-delay: -7s; }
.a3 { width: 460px; height: 460px; background: #4a2396; bottom: -200px; left: 30%; animation-delay: -14s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.15); }
  100% { transform: translate(-60px, 30px) scale(0.95); }
}
.cursor-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08), transparent 65%);
  left: 0; top: 0; transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ---------- Навигация ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav-inner {
  max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 12px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid transparent; border-radius: 16px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled .nav-inner {
  background: rgba(10, 13, 18, 0.72);
  border-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo-mark { width: 40px; height: 40px; flex: none; }
/* Вращение орбиты при наведении делает script.js */
.wordmark b { font-weight: inherit; }
.wordmark .g { color: #22c55e; }
.wordmark .r { color: #5b7bff; }
.wordmark .c { color: #9b6bff; }
/* Блик фар: копия надписи поверх, залитая узкой светлой полосой, которая проезжает слева направо.
   На белых буквах «Easy» светлее белого не сделать, поэтому полосу видно по ореолу (drop-shadow),
   который выходит за края букв на тёмный фон */
.wordmark { position: relative; }
.wordmark::after {
  content: "EasyGRC"; position: absolute; inset: 0; pointer-events: none;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.4) 45%, #fff 50%, rgba(255, 255, 255, 0.4) 55%, transparent 62%);
  background-size: 300% 100%; background-repeat: no-repeat; background-position: 150% 0;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 10px rgba(170, 200, 255, 0.7));
  animation: headlight 9s cubic-bezier(0.4, 0, 0.6, 1) infinite 1.5s;
}
@keyframes headlight {
  0% { background-position: 150% 0; }
  40%, 100% { background-position: -50% 0; }
}
.slogan { font-style: italic; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.nav .mobile-menu a.active { color: var(--accent); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  background: none; border: 1px solid var(--border); color: var(--muted); font: 600 13px var(--font);
  height: 36px; padding: 0 12px; border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.lang:hover { color: var(--text); border-color: var(--border-2); }
.burger { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, top 0.3s; }
.burger span:first-child { top: 13px; }
.burger span:last-child { top: 21px; }
.nav.open .burger span:first-child { top: 17px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 17px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px; font: 600 15px var(--font);
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s, box-shadow 0.3s, background 0.2s, border-color 0.2s;
  will-change: transform;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-accent {
  background: linear-gradient(180deg, #22c38e, var(--accent-deep)); color: #03140d;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.5) inset, 0 8px 30px -8px rgba(16, 185, 129, 0.6);
}
.btn-accent:hover { box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.8) inset, 0 12px 40px -6px rgba(16, 185, 129, 0.8); }
.btn-light { background: #f4f6f8; color: #0a0d12; }
.btn-light:hover { background: #fff; }
.btn-ghost { background: var(--card); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--card-hover); border-color: rgba(52, 211, 153, 0.4); }
.w { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 160px 16px 40px; text-align: center; max-width: 1120px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px;
  border-radius: 999px; font-size: 13.5px; color: #cfe9de;
  background: rgba(52, 211, 153, 0.06); border: 1px solid rgba(52, 211, 153, 0.25);
  transition: background 0.2s, border-color 0.2s;
}
.pill:hover { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.5); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
.pill-arrow { color: var(--accent); transition: transform 0.2s; }
.pill:hover .pill-arrow { transform: translateX(3px); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.hero-title {
  margin: 28px auto 36px; max-width: 980px;
  font-family: var(--font-head); font-weight: var(--h-weight); letter-spacing: var(--h-track); line-height: 1.05;
  font-size: calc(clamp(40px, 7vw, 82px) * var(--h-scale));
  background: linear-gradient(180deg, #ffffff 20%, #9aa5b1 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shine {
  background: linear-gradient(100deg, #b7c2cc 18%, #ffffff 30%, #6ee7b7 42%, #7c93ff 50%, #b197fc 58%, #ffffff 70%, #b7c2cc 82%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
.hl { position: relative; display: inline-block; }
.hl-line { position: absolute; left: 0; bottom: -0.36em; width: 100%; height: 0.28em; overflow: visible; }
.hl-line path {
  fill: none; stroke: url(#hlGrad); stroke-width: 4; stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(91, 123, 255, 0.55));
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.hero-title.in .hl-line path { animation: draw 1.2s 0.9s cubic-bezier(.6,.1,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.hero-sub { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hero-sub li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 0.2em; }
.hero-sub li:nth-child(2)::before { background: var(--blue); }
.hero-sub li:nth-child(3)::before { background: var(--violet); }
/* На широких экранах каждый пункт в одну строку; на телефоне переносятся */
@media (min-width: 760px) { .hero-sub li { white-space: nowrap; } }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 13.5px; }
.hero-kz { display: block; width: 88px; height: auto; margin: 14px auto 0; }

/* ---------- Макет дашборда ---------- */
.mock-wrap { position: relative; margin: 72px auto 0; max-width: 1040px; perspective: 1600px; }
.mock {
  position: relative; z-index: 2; text-align: left;
  border-radius: 18px; border: 1px solid var(--border-2);
  background: linear-gradient(180deg, rgba(18, 23, 30, 0.92), rgba(9, 12, 16, 0.96));
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: rotateX(14deg) scale(0.96); transform-origin: center top;
  transition: transform 0.2s ease-out;
  overflow: hidden;
}
.mock::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(52, 211, 153, 0.07), transparent 40%);
}
.mock-glow {
  position: absolute; z-index: 1; inset: 10% 10% -8%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.35), transparent 70%);
  filter: blur(60px);
}
.mock-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3038; }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.mock-url { flex: 1; text-align: center; background: rgba(255, 255, 255, 0.04); border-radius: 6px; padding: 3px 0; max-width: 320px; margin: 0 auto; font-family: var(--font); letter-spacing: 0.01em; }
.live { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.mock-body { display: grid; grid-template-columns: 180px 1fr; }
.mock-side { border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font: 500 13px var(--font);
  color: var(--muted); background: none; border: 0; cursor: pointer; text-align: left; position: relative; transition: background 0.2s, color 0.2s;
}
.side-item svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.side-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.side-item.active { background: rgba(52, 211, 153, 0.1); color: var(--text); }
.side-item.active svg { color: var(--accent); opacity: 1; }
.side-item.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.side-count { margin-left: auto; font: 600 10.5px var(--font-accent); font-style: normal; color: #03140d; background: var(--accent); border-radius: 999px; padding: 1px 7px; }
.mock-main { padding: 16px; height: 536px; overflow: hidden; position: relative; }
.pane { display: none; height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.12) transparent; }
.pane.active { display: block; animation: paneIn 0.45s cubic-bezier(.2,.8,.2,1); }
.ov-grid.active { display: grid; grid-template-columns: 1fr 1.4fr; grid-template-rows: auto auto; gap: 14px; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pane-head h4 { font: 600 16px var(--font-head); letter-spacing: -0.01em; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: 500 11.5px var(--font); color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active { color: var(--text); border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.1); }
.chip i { width: 7px; height: 7px; border-radius: 50%; }

/* Задачи */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, 0.02); }
.kpi small { display: block; font: 11px var(--font-accent); color: var(--muted); }
.kpi b { font: 700 20px var(--font-head); }
.task-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.task {
  display: grid; grid-template-columns: 20px 1fr auto auto; align-items: center; gap: 12px; padding: 8px 12px;
  border-radius: 9px; background: rgba(255, 255, 255, 0.025); border: 1px solid transparent; font-size: 12.5px; animation: slideIn 0.35s ease;
  transition: border-color 0.2s;
}
.task:hover { border-color: var(--border); }
.task > div { min-width: 0; }
.task-check { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--border-2); background: none; cursor: pointer; display: grid; place-items: center; transition: all 0.2s; }
.task-check:hover { border-color: var(--accent); }
.task.done .task-check { background: var(--accent); border-color: var(--accent); }
.task.done .task-check::after { content: ""; width: 8px; height: 4px; border: 2px solid #03140d; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-ref { display: block; font: 10.5px var(--font-accent); color: var(--muted); margin-top: 1px; }
.task-due { font: 11px var(--font-accent); color: var(--muted); white-space: nowrap; }
.task.overdue .task-due { color: #fca5a5; }
.st { font: 600 10.5px var(--font); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st-open { color: #c7cfd7; background: rgba(255, 255, 255, 0.07); }
.st-progress { color: #7dd3fc; background: rgba(56, 189, 248, 0.12); }
.st-overdue { color: #fca5a5; background: rgba(248, 113, 113, 0.14); }
.st-done { color: var(--accent); background: rgba(52, 211, 153, 0.12); }
.st-accepted { color: #c4b5fd; background: rgba(167, 139, 250, 0.12); }

/* Самооценка */
.assess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec { margin: 11px 0; font-size: 12.5px; }
.sec-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.sec-top b { font: 500 11.5px var(--font-accent); color: var(--muted); }
.q-card { display: flex; flex-direction: column; }
.q-top { display: flex; justify-content: space-between; align-items: baseline; }
.q-total { font: 700 22px var(--font-head); color: var(--accent); }
.q-text { font: 600 15px var(--font-head); line-height: 1.4; margin: 6px 0 16px; min-height: 64px; animation: slideIn 0.35s ease; }
.q-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.q-answers button {
  font: 600 12.5px var(--font); color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-2);
  border-radius: 9px; padding: 9px 0; cursor: pointer; transition: all 0.2s;
}
.q-answers button[data-a="yes"]:hover, .q-answers button[data-a="yes"].picked { border-color: var(--accent); background: rgba(52, 211, 153, 0.15); }
.q-answers button[data-a="partial"]:hover, .q-answers button[data-a="partial"].picked { border-color: var(--warn); background: rgba(251, 191, 36, 0.12); }
.q-answers button[data-a="no"]:hover, .q-answers button[data-a="no"].picked { border-color: var(--danger); background: rgba(248, 113, 113, 0.12); }
.q-saved { font-size: 12px; color: var(--accent); margin-top: 10px; opacity: 0; transition: opacity 0.3s; }
.q-saved.show { opacity: 1; }

/* Риски */
.risk-table { font-size: 12.5px; }
.rt-row { display: grid; grid-template-columns: 52px 1fr 92px 100px 84px 84px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 9px; }
.rt-head { font: 500 11px var(--font-accent); color: var(--muted); padding-top: 0; }
#riskRows .rt-row { background: rgba(255, 255, 255, 0.025); margin-bottom: 6px; animation: slideIn 0.35s ease; transition: background 0.2s; }
#riskRows .rt-row:hover { background: rgba(255, 255, 255, 0.05); }
.rt-row > span { min-width: 0; }
.rt-id { font: 500 11px var(--font-accent); color: var(--muted); }
.rt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-type { font-size: 11.5px; color: var(--muted); }
.rt-owner { font-size: 11.5px; color: #c7cfd7; }
.lvl { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.lvl i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; background: currentColor; }
.card-mini { border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); border-radius: 12px; padding: 14px; }
.mini-label { font-size: 12px; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.score { display: flex; flex-direction: column; align-items: center; }
.score .mini-label { align-self: flex-start; }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: rgba(255, 255, 255, 0.06); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 2s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.6)); }
.ring-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 26px var(--font-head); }
.delta { margin-top: 8px; font-size: 12px; color: var(--accent); }
.delta span { color: var(--muted); }
.delta #deltaVal { color: inherit; }
.fw { display: grid; grid-template-columns: 96px 1fr 38px; align-items: center; gap: 10px; font-size: 12.5px; margin: 10px 0; }
.fw b { text-align: right; font-weight: 600; font-size: 12px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.heatmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.heatmap i {
  aspect-ratio: 1.6; border-radius: 4px; transition: transform 0.3s, opacity 0.5s; opacity: 0;
  display: grid; place-items: center; font: 700 11px var(--font-accent); font-style: normal; cursor: default;
}
.heatmap i span { color: rgba(4, 12, 9, 0.85); }
.heatmap i.has { cursor: pointer; }
.heatmap i.has:hover { transform: scale(1.15); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 16px currentColor; }
.heatmap i.on { opacity: 1; }
.heatmap i:hover { transform: scale(1.12); }
.heatmap i.pop { animation: pop 0.8s ease; }
@keyframes pop { 50% { transform: scale(1.25); box-shadow: 0 0 14px currentColor; } }
.feed ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feed li {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 7px 10px;
  border-radius: 8px; background: rgba(255, 255, 255, 0.025); animation: slideIn 0.5s ease;
}
.feed li b { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.feed li time { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Бегущая строка ---------- */
.marquee-sec { padding: 60px 0 20px; }
.eyebrow { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; }
.center { text-align: center; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font: 700 22px var(--font-head); color: #5d6874; white-space: nowrap; letter-spacing: -0.01em; transition: color 0.2s; }
.marquee-track span:hover { color: var(--text); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(calc(-50% - 28px)); } to { transform: translateX(0); } }

/* ---------- Секции ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 110px 16px 0; }
.section.narrow { max-width: 780px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.tag {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent);
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.06);
  margin-bottom: 18px;
}
.tag-soon { color: var(--warn); border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); }
.h2 {
  font-family: var(--font-head); font-weight: var(--h-weight); letter-spacing: var(--h-track); line-height: 1.12;
  font-size: calc(clamp(30px, 4.4vw, 50px) * var(--h-scale));
  background: linear-gradient(180deg, #fff 30%, #a5afba);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 17px; margin-top: 16px; }
.left { text-align: left; }

/* Карточки с подсветкой за курсором */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature, .service, .plan { --c: 52, 211, 153; }
.grid-3 > :nth-child(3n+2), .services > :nth-child(4n+2) { --c: 91, 123, 255; }
.grid-3 > :nth-child(3n+3), .services > :nth-child(4n+3) { --c: 155, 107, 255; }
.feature, .service, .plan {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card); padding: 28px; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.feature::before, .service::before, .plan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%), rgba(var(--c), 0.1), transparent 45%);
}
.feature:hover, .service:hover, .plan:hover { border-color: rgba(var(--c), 0.3); transform: translateY(-4px); }
.feature:hover::before, .service:hover::before, .plan:hover::before { opacity: 1; }
.f-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(var(--c), 0.18), rgba(var(--c), 0.04));
  border: 1px solid rgba(var(--c), 0.3);
  box-shadow: 0 0 24px -4px rgba(var(--c), 0.35);
}
.f-ico svg { width: 22px; height: 22px; fill: none; stroke: rgb(var(--c)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3, .service h3, .step h3 { font: 700 18px var(--font-head); letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p, .service p, .step p { color: var(--muted); font-size: 15px; }
/* Строка «боль клиента» над заголовком карточки платформы */
.feature .f-pain { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.45; color: var(--muted); margin-bottom: 10px; }
.feature .f-pain::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); transform: translateY(-1px); }

/* ---------- Почему мы: барабаны ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-grid > :nth-child(4n+2) { --c: 91, 123, 255; }
.why-grid > :nth-child(4n+3) { --c: 155, 107, 255; }
.why-grid > :nth-child(4n+4) { --c: 45, 212, 191; }
.why { cursor: default; padding: 24px; }
/* Барабан: 6 граней по 60°, контент из трёх граней повторён дважды, чтобы крутить всегда в одну сторону.
   Радиус = высота / (2·tg 30°) */
.drum-view {
  --h: 140px; --r: 121px;
  height: var(--h); perspective: 700px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}
.drum { position: relative; height: 100%; transform-style: preserve-3d;
  transform: translateZ(calc(var(--r) * -1)) rotateX(calc(var(--step, 0) * 60deg));
  transition: transform 0.9s cubic-bezier(0.34, 1.3, 0.5, 1); }
.face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: rotateX(calc(var(--i) * -60deg)) translateZ(var(--r));
}
.why h3 { font: 700 20px var(--font-head); letter-spacing: -0.015em; line-height: 1.25; }
.why .face p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.why-num { font: 700 26px var(--font-head); letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; color: rgb(var(--c)); }
.why-num + span { color: var(--muted); font-size: 14px; margin-top: 4px; }
.drum-dots { display: flex; gap: 6px; margin-top: 18px; }
.drum-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border-2); transition: width 0.3s, background 0.3s; }
.drum-dots i.on { width: 18px; background: rgb(var(--c)); }

/* Статистика */
.stats {
  max-width: 1120px; margin: 110px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat { padding: 8px 28px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat-num {
  font: 800 clamp(38px, 4.5vw, 54px) var(--font-head); letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.s-num { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.s-num span {
  font: 600 13px var(--font-head); font-variant-numeric: tabular-nums; color: rgb(var(--c)); line-height: 1.4;
  border: 1px solid rgba(var(--c), 0.35); background: rgba(var(--c), 0.08); border-radius: 999px; padding: 3px 10px;
  transition: background 0.3s, border-color 0.3s;
}
.s-num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--c), 0.35), transparent); }
.service:hover .s-num span { background: rgba(var(--c), 0.16); border-color: rgba(var(--c), 0.6); }

/* Timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tl-line { position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.tl-progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-deep), var(--blue), var(--violet)); box-shadow: 0 0 12px rgba(91, 123, 255, 0.7); transition: width 0.1s linear; }
.step { position: relative; display: flex; flex-direction: column; gap: 18px; }
.step-dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 800 17px var(--font-head); background: var(--bg-2); border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--accent); box-shadow: 0 0 0 6px var(--bg), 0 0 24px -2px rgba(52, 211, 153, 0.35);
}

/* AI */
.ai-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 24px; border: 1px solid var(--border);
  background: radial-gradient(ellipse at 100% 0%, rgba(45, 212, 191, 0.1), transparent 55%), var(--card);
}
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; max-width: 92%; }
.msg.user { align-self: flex-end; background: rgba(255, 255, 255, 0.07); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.2); border-bottom-left-radius: 4px; min-height: 120px; white-space: pre-line; color: #d5eee3; }
.caret { display: inline-block; width: 7px; height: 16px; background: var(--accent); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Тарифы */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; }
.plan-for { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.plan h3 { font: 700 24px var(--font-head); margin: 10px 0 6px; }
.price { font: 800 30px var(--font-head); letter-spacing: -0.02em; margin-bottom: 24px; }
.price small { font: 500 14px var(--font); color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: 14.5px; color: #c7cfd7; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-5' fill='none' stroke='%2334d399' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan-hot {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), rgba(52, 211, 153, 0.01));
  box-shadow: 0 30px 80px -30px rgba(16, 185, 129, 0.45);
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(52, 211, 153, 0.3); background: var(--card-hover); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font: 600 16px var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font: 400 24px var(--font); color: var(--accent); transition: transform 0.3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; animation: slideIn 0.35s ease; }

/* CTA */
.cta-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 52px;
  border-radius: 24px; border: 1px solid rgba(52, 211, 153, 0.25); position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 0% 100%, rgba(16, 185, 129, 0.2), transparent 55%), radial-gradient(ellipse at 100% 0%, rgba(45, 212, 191, 0.08), transparent 50%), var(--bg-2);
}
.contacts { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 12px; color: #c7cfd7; }
.contacts span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; margin-right: 10px; background: rgba(52, 211, 153, 0.1); color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .req { color: var(--accent); font-weight: 600; }
.form input, .form textarea, .form select {
  font: 15px var(--font); color: var(--text); background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-2); border-radius: 10px; padding: 12px 14px; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form select {
  appearance: none; cursor: pointer; padding-right: 38px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2334d399' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center, rgba(0, 0, 0, 0.3);
}
.form select option { background: var(--bg-2); color: var(--text); }
.form input::placeholder { color: var(--muted); opacity: 0.6; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }
.form-ok { display: none; color: var(--accent); font-size: 14px; text-align: center; }
.form.sent .form-ok { display: block; animation: slideIn 0.4s ease; }
.form .consent { flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.4; }
.form .consent input { flex: none; width: 16px; height: 16px; margin-top: 1px; padding: 0; accent-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { display: none; color: #f87171; font-size: 14px; text-align: center; }
.form-err.show { display: block; }
.form button[disabled] { opacity: 0.6; cursor: progress; }

/* Футер */
.footer { margin-top: 110px; border-top: 1px solid var(--border); padding: 32px 16px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer .logo { color: var(--text); font-size: 17px; }
.footer .logo-mark { width: 32px; height: 32px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }


/* ---------- Акцентный моноширинный шрифт ---------- */
.tag, .eyebrow, .plan-for, .hero-note, .mini-label, .feed time { font-family: var(--font-accent); }
.eyebrow, .plan-for { letter-spacing: 0.02em; }
.step-dot { font-family: var(--font-accent); font-weight: 500; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1), filter 0.9s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.45s; }
.feature.reveal.in, .service.reveal.in, .plan.reveal.in { transition: opacity 0.9s, transform 0.3s, filter 0.9s, border-color 0.3s; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .mobile-menu {
    display: flex; flex-direction: column; max-width: 1120px; margin: 8px auto 0; padding: 0 20px;
    background: rgba(10, 13, 18, 0.95); border: 1px solid var(--border); border-radius: 16px;
    backdrop-filter: blur(16px); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s, opacity 0.3s, padding 0.4s;
  }
  .mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
  .mobile-menu a:last-child { border: 0; }
  .nav.open .mobile-menu { max-height: 400px; opacity: 1; padding: 8px 20px; }
  .nav.open .nav-inner { background: rgba(10, 13, 18, 0.9); border-color: var(--border); backdrop-filter: blur(16px); }
  .grid-3, .pricing, .why-grid { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .tl-line { display: none; }
  .ai-box, .cta-box { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 10px; overflow-x: auto; scrollbar-width: none; }
  .side-item { flex: none; }
  .side-item.active::before { display: none; }
  .mock-main { height: 536px; }
  .rt-row { grid-template-columns: 48px 1fr 100px 84px; }
  .rt-row > :nth-child(3), .rt-row > :nth-child(5) { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 130px; }
  .grid-3, .pricing, .services, .timeline, .why-grid, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 8px 16px; }
  .ov-grid.active { grid-template-columns: 1fr; }
  .mock-main { height: auto; min-height: 420px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .task { grid-template-columns: 20px 1fr auto; }
  .task-due { display: none; }
  .assess-grid { grid-template-columns: 1fr; }
  .rt-row { grid-template-columns: 1fr 100px; }
  .rt-row > :nth-child(1), .rt-row > :nth-child(6) { display: none; }
  .mock { transform: none !important; }
  .mock-url { display: none; }
  .nav-actions .btn-sm { display: none; }
  .ai-box, .cta-box { padding: 24px; }
  .section { padding-top: 80px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hl-line path { stroke-dashoffset: 0; }
  /* Барабаны превращаются в обычный текст: все три грани друг под другом */
  .drum-view { height: auto; -webkit-mask-image: none; mask-image: none; }
  .drum { transform: none; }
  .face { position: static; transform: none; margin-bottom: 10px; }
  .face.clone, .drum-dots { display: none; }
  /* Лента стандартов движется всегда, но медленнее */
  .marquee-track { animation: marquee 70s linear infinite !important; }
}

/* ---------- Страница «Прочее» ---------- */
.page-hero { padding-bottom: 0; max-width: 820px; }
.page-hero .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.page-section { padding-top: 64px; }
/* Переход с другой страницы по /#раздел: заголовок не прячется под шапкой */
section[id] { scroll-margin-top: 90px; }
