:root {
  color-scheme: light;
  --bg: #f8f7fc;
  --bg-elevated: #ffffff;
  --surface-soft: #f1effa;
  --surface-violet: #eeeafe;
  --text: #171422;
  --muted: #696578;
  --line: rgba(36, 28, 67, .1);
  --line-strong: rgba(36, 28, 67, .16);
  --primary: #7c5cfc;
  --primary-hover: #6848ed;
  --primary-ink: #ffffff;
  --secondary: #241c43;
  --success: #2eb67d;
  --orange: #ff9f66;
  --blue: #5b8def;
  --shadow: 0 24px 70px rgba(65, 46, 131, .12);
  --shadow-soft: 0 12px 34px rgba(65, 46, 131, .08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d18;
  --bg-elevated: #111725;
  --surface-soft: #151c2c;
  --surface-violet: #1b1a35;
  --text: #f5f3ff;
  --muted: #aaa7ba;
  --line: rgba(229, 223, 255, .1);
  --line-strong: rgba(229, 223, 255, .17);
  --primary: #9177ff;
  --primary-hover: #a38cff;
  --primary-ink: #0b0c13;
  --secondary: #ece8ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, .35);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 9%, rgba(124, 92, 252, .14), transparent 26rem),
    radial-gradient(circle at 5% 35%, rgba(91, 141, 239, .08), transparent 23rem),
    var(--bg);
  color: var(--text);
  font: 500 16px/1.65 "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid rgba(124, 92, 252, .42); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-tight { padding: 78px 0; }
.section-header { max-width: 700px; margin-bottom: 48px; }
.section-header.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(2.75rem, 6vw, 5.4rem); font-weight: 800; }
h2 { margin-bottom: 18px; font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 800; }
h3 { margin-bottom: 12px; font-size: 1.22rem; font-weight: 750; letter-spacing: -.025em; }
p { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.7; }
.violet-text { color: var(--primary); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(31, 22, 65, .05); }
.nav { min-height: 76px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .98rem; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #957dff, #6f4cf1); color: white; box-shadow: 0 8px 20px rgba(124, 92, 252, .28); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; gap: 2px; }
.brand-tagline { font-size: .62rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); text-transform: none; }
.nav-links {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--bg-elevated) 84%, transparent);
  color: var(--muted);
  font-size: .84rem;
  box-shadow: 0 5px 18px rgba(65, 46, 131, .04);
}
.nav-links a { padding: 7px 10px; border-radius: 10px; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.nav-links a:hover { background: var(--surface-violet); color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg-elevated); cursor: pointer; transition: transform .2s ease, border-color .2s ease;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.moon-icon { display: block; }
.sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
.mobile-toggle { display: none; }
.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: max(20px, calc((100vw - var(--container)) / 2));
  width: min(360px, calc(100% - 28px));
  display: none;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.mobile-menu.open { display: grid; }
.mobile-menu a:not(.btn) { padding: 11px 13px; border-radius: 11px; color: var(--muted); font-size: .9rem; transition: color .2s ease, background .2s ease; }
.mobile-menu a:not(.btn):hover { background: var(--surface-soft); color: var(--text); }
.mobile-menu .btn { width: 100%; margin-top: 6px; }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 750;
  font-size: .93rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 12px 26px rgba(124, 92, 252, .24); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 16px 32px rgba(124, 92, 252, .3); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: rgba(124, 92, 252, .36); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 42px; padding-inline: 17px; }

.hero { padding: 78px 0 94px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 58px; }
.hero-copy .lead { max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.micro-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .82rem; }
.micro-proof span { display: inline-flex; align-items: center; gap: 6px; }
.micro-proof svg { width: 15px; height: 15px; color: var(--success); }
.hero-visual { position: relative; min-height: 600px; display: grid; place-items: center; }
.orb {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: linear-gradient(140deg, rgba(124, 92, 252, .25), rgba(124, 92, 252, .03));
  filter: blur(.2px); border: 1px solid rgba(124, 92, 252, .12);
}
.orb::before, .orb::after { content: ""; position: absolute; inset: 11%; border: 1px solid rgba(124, 92, 252, .13); border-radius: 50%; }
.orb::after { inset: 24%; }
.app-window {
  position: relative;
  z-index: 2;
  width: min(590px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateY(-4deg) rotateX(1.5deg);
}
.window-bar { height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 17px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.window-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.window-title { margin-left: 9px; color: var(--muted); font-size: .72rem; }
.app-shell { min-height: 445px; display: grid; grid-template-columns: 142px 1fr; }
.app-sidebar { padding: 20px 14px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 62%, var(--bg-elevated)); }
.mini-logo { display: flex; align-items: center; gap: 8px; margin: 0 6px 22px; font-size: .67rem; font-weight: 800; }
.mini-logo i { width: 24px; height: 24px; border-radius: 8px; background: var(--primary); }
.side-item { display: flex; align-items: center; gap: 8px; height: 35px; padding: 0 9px; border-radius: 9px; color: var(--muted); font-size: .65rem; }
.side-item.active { background: var(--surface-violet); color: var(--primary); font-weight: 800; }
.side-item svg { width: 13px; height: 13px; }
.work-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 80px; padding: 3px; border-radius: 8px; background: var(--surface-soft); font-size: .55rem; text-align: center; }
.work-switch span { padding: 4px; border-radius: 6px; }
.work-switch span:first-child { background: var(--bg-elevated); color: var(--primary); font-weight: 800; }
.app-main { padding: 22px; overflow: hidden; }
.mini-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mini-top strong { font-size: .9rem; }
.avatar { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(145deg, #f4c5a6, #b47669); border: 3px solid var(--surface-violet); }
.mini-banner { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 15px; margin-bottom: 17px; border-radius: 14px; background: linear-gradient(125deg, #7657ef, #9984ff); color: white; }
.mini-banner strong { display: block; margin-bottom: 4px; font-size: .78rem; }
.mini-banner small { display: block; max-width: 230px; color: rgba(255,255,255,.75); font-size: .56rem; line-height: 1.45; }
.mini-banner .ring { width: 50px; height: 50px; display: grid; place-items: center; border: 5px solid rgba(255,255,255,.28); border-top-color: white; border-radius: 50%; font-size: .56rem; font-weight: 800; }
.mini-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .68rem; }
.mini-section-title a { color: var(--primary); font-size: .55rem; }
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.course-card { padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elevated); }
.course-cover { height: 68px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 9px; color: white; overflow: hidden; }
.course-cover svg { width: 28px; height: 28px; }
.course-card:nth-child(1) .course-cover { background: linear-gradient(145deg, #ffba7a, #ed796f); }
.course-card:nth-child(2) .course-cover { background: linear-gradient(145deg, #6c96ee, #6757d9); }
.course-card strong { display: block; margin-bottom: 6px; font-size: .58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 4px; border-radius: 10px; background: var(--surface-soft); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.course-card small { display: block; margin-top: 5px; color: var(--muted); font-size: .48rem; }
.floating-card { position: absolute; z-index: 3; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--bg-elevated) 92%, transparent); box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); }
.floating-card strong { display: block; margin-bottom: 1px; font-size: 1.05rem; }
.floating-card span { color: var(--muted); font-size: .7rem; }
.float-top { top: 68px; right: -16px; }
.float-bottom { bottom: 54px; left: -28px; }
.float-bottom::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--success); }

.trusted { padding: 24px 0; border-block: 1px solid var(--line); }
.trusted-inner { display: flex; align-items: center; justify-content: center; gap: 30px; text-align: center; color: var(--muted); font-size: .85rem; }
.trusted-inner strong { color: var(--text); font-size: 1.15rem; }
.trusted-divider { width: 1px; height: 28px; background: var(--line-strong); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-elevated); box-shadow: var(--shadow-soft); }
.step-number { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 42px; border-radius: 14px; background: var(--surface-violet); color: var(--primary); font-weight: 800; }
.step:not(:last-child)::after { content: ""; position: absolute; z-index: 2; top: 52px; right: -22px; width: 44px; border-top: 2px dashed rgba(124, 92, 252, .28); }
.step p { margin: 0; font-size: .92rem; }

.features-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feature-card { min-height: 270px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-elevated); box-shadow: var(--shadow-soft); }
.feature-card.span-7 { grid-column: span 7; }
.feature-card.span-5 { grid-column: span 5; }
.feature-card.span-4 { grid-column: span 4; }
.feature-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 13px; background: var(--surface-violet); color: var(--primary); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card p { max-width: 470px; margin-bottom: 0; font-size: .92rem; }
.feature-visual { margin-top: 26px; }
.lesson-stack { display: grid; gap: 8px; }
.lesson-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); font-size: .72rem; }
.lesson-row i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-elevated); color: var(--primary); font-style: normal; font-weight: 800; }
.lesson-row span:last-child { margin-left: auto; color: var(--muted); }
.chart-bars { height: 104px; display: flex; align-items: flex-end; gap: 9px; padding-top: 10px; }
.chart-bars i { flex: 1; min-width: 12px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--primary), rgba(124, 92, 252, .3)); }
.team-bubbles { display: flex; align-items: center; padding-top: 8px; }
.team-bubbles i { width: 40px; height: 40px; display: grid; place-items: center; margin-left: -8px; border: 3px solid var(--bg-elevated); border-radius: 50%; background: var(--surface-violet); color: var(--primary); font-size: .66rem; font-style: normal; font-weight: 800; }
.team-bubbles i:first-child { margin-left: 0; }
.scorm-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(124, 92, 252, .25); border-radius: 12px; background: var(--surface-violet); color: var(--primary); font-size: .72rem; font-weight: 800; }
.scorm-chip svg { width: 18px; height: 18px; }

.audience-shell { display: grid; grid-template-columns: 340px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 28px; background: var(--bg-elevated); box-shadow: var(--shadow); }
.role-tabs { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.role-tab { display: flex; gap: 14px; align-items: center; width: 100%; padding: 17px 16px; border: 1px solid transparent; border-radius: 15px; background: transparent; text-align: left; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.role-tab:hover { background: var(--surface-soft); }
.role-tab.active { background: var(--surface-violet); border-color: rgba(124, 92, 252, .13); }
.role-tab span:first-child { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: var(--bg-elevated); color: var(--primary); }
.role-tab svg { width: 19px; height: 19px; }
.role-tab strong { display: block; margin-bottom: 2px; font-size: .9rem; }
.role-tab small { display: block; color: var(--muted); font-size: .72rem; }
.role-panel { min-height: 392px; padding: 44px; border-radius: 20px; background: linear-gradient(145deg, var(--surface-soft), var(--surface-violet)); }
.role-panel-content { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 34px; animation: panelIn .35s ease both; }
.role-panel h3 { font-size: 1.8rem; }
.role-panel p { margin-bottom: 24px; }
.check-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .91rem; }
.check-list svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--success); }
.role-stat { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-elevated); box-shadow: var(--shadow-soft); }
.role-stat small { color: var(--muted); }
.role-stat strong { display: block; margin: 8px 0 16px; font-size: 2.4rem; letter-spacing: -.06em; }
.role-stat .progress { height: 8px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bitrix-block { position: relative; overflow: hidden; padding: 58px; border-radius: 32px; background: #17122f; color: white; box-shadow: var(--shadow); }
.bitrix-block::before { content: ""; position: absolute; width: 400px; height: 400px; right: -130px; top: -180px; border-radius: 50%; background: rgba(124,92,252,.32); filter: blur(4px); }
.bitrix-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 65px; }
.bitrix-block .eyebrow { color: #ad99ff; }
.bitrix-block p { color: #bbb6ce; }
.integration-list { display: grid; gap: 14px; }
.integration-item { display: flex; align-items: center; gap: 15px; padding: 17px 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.05); }
.integration-item span:first-child { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: rgba(145,119,255,.15); color: #ad99ff; }
.integration-item svg { width: 19px; height: 19px; }
.integration-item strong { display: block; font-size: .9rem; }
.integration-item small { display: block; color: #aaa4bd; font-size: .72rem; }

.tour-tabs { display: flex; justify-content: center; gap: 7px; margin-bottom: 28px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elevated); width: fit-content; margin-inline: auto; }
.tour-tab { padding: 10px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; font-size: .84rem; }
.tour-tab.active { background: var(--surface-violet); color: var(--primary); }
.tour-frame { position: relative; padding: 12px; border: 1px solid var(--line-strong); border-radius: 28px; background: var(--bg-elevated); box-shadow: var(--shadow); }
.tour-canvas { min-height: 510px; overflow: hidden; border-radius: 18px; background: var(--surface-soft); }
.tour-view { display: none; min-height: 510px; animation: panelIn .35s ease both; }
.tour-view.active { display: grid; }
.catalog-view { grid-template-columns: 180px 1fr; }
.tour-side { padding: 26px 18px; border-right: 1px solid var(--line); background: var(--bg-elevated); }
.tour-brand { width: 78%; height: 14px; margin-bottom: 34px; border-radius: 6px; background: var(--primary); opacity: .8; }
.tour-navline { height: 10px; margin: 18px 0; border-radius: 6px; background: var(--line-strong); }
.tour-navline:nth-child(3) { width: 72%; }
.tour-navline:nth-child(4) { width: 84%; }
.tour-content { padding: 34px; }
.tour-titlebar { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.tour-titlebar strong { font-size: 1.15rem; }
.search-pill { width: 180px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elevated); }
.catalog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.catalog-card { padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg-elevated); }
.catalog-cover { height: 116px; margin-bottom: 12px; border-radius: 11px; background: linear-gradient(140deg, #dcd3ff, #8064f3); }
.catalog-card:nth-child(2) .catalog-cover { background: linear-gradient(140deg, #ffe0c5, #f29270); }
.catalog-card:nth-child(3) .catalog-cover { background: linear-gradient(140deg, #c8e3ff, #6595e8); }
.catalog-card:nth-child(4) .catalog-cover { background: linear-gradient(140deg, #d1f0e4, #55af8b); }
.catalog-card:nth-child(5) .catalog-cover { background: linear-gradient(140deg, #f1d3eb, #b668a1); }
.catalog-card:nth-child(6) .catalog-cover { background: linear-gradient(140deg, #dee1e8, #757d91); }
.skeleton { height: 8px; margin: 7px 0; border-radius: 5px; background: var(--line-strong); }
.skeleton.short { width: 62%; }
.lesson-view { grid-template-columns: 1fr 300px; }
.lesson-content { padding: 34px; background: var(--bg-elevated); }
.lesson-video { height: 280px; display: grid; place-items: center; margin: 22px 0; border-radius: 18px; background: linear-gradient(145deg, #20183f, #5644a5); color: white; }
.lesson-video svg { width: 52px; height: 52px; opacity: .9; }
.lesson-outline { padding: 28px 22px; border-left: 1px solid var(--line); }
.outline-row { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .75rem; }
.outline-row i { width: 19px; height: 19px; flex: 0 0 auto; border: 2px solid var(--line-strong); border-radius: 50%; }
.outline-row.done i { border-color: var(--success); background: var(--success); box-shadow: inset 0 0 0 4px var(--bg-elevated); }
.analytics-view { padding: 34px; grid-template-rows: auto auto 1fr; }
.analytics-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.analytics-stat { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg-elevated); }
.analytics-stat small { color: var(--muted); }
.analytics-stat strong { display: block; margin-top: 6px; font-size: 1.5rem; }
.analytics-panels { display: grid; grid-template-columns: 1.4fr .6fr; gap: 15px; }
.analytics-chart, .analytics-donut-wrap { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elevated); }
.line-chart { position: relative; height: 190px; margin-top: 24px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0 47px, var(--line) 48px); }
.line-chart svg { width: 100%; height: 100%; color: var(--primary); }
.donut { width: 134px; height: 134px; display: grid; place-items: center; margin: 34px auto 16px; border-radius: 50%; background: conic-gradient(var(--primary) 0 76%, var(--surface-soft) 76%); }
.donut::after { content: "76%"; width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-elevated); font-weight: 800; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-elevated); box-shadow: var(--shadow-soft); }
.price-card.featured { border-color: rgba(124, 92, 252, .48); box-shadow: 0 22px 60px rgba(124, 92, 252, .16); transform: translateY(-8px); }
.popular { position: absolute; top: 16px; right: 16px; padding: 6px 9px; border-radius: 20px; background: var(--surface-violet); color: var(--primary); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.price-name { margin-bottom: 8px; font-size: 1.14rem; font-weight: 800; }
.price-for { min-height: 48px; margin-bottom: 20px; color: var(--muted); font-size: .84rem; }
.price { margin-bottom: 3px; font-size: 2.25rem; font-weight: 800; letter-spacing: -.055em; }
.price small { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.price-note { margin-bottom: 24px; color: var(--muted); font-size: .72rem; }
.price-card .check-list { margin-bottom: 28px; }
.price-card .check-list li { font-size: .82rem; }
.price-card .btn { margin-top: auto; }

.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 2px; border: 0; background: transparent; text-align: left; cursor: pointer; font-weight: 750; font-size: 1rem; }
.faq-question span:last-child { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--surface-soft); color: var(--primary); transition: transform .25s ease; }
.faq-question svg { width: 16px; height: 16px; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { max-width: 760px; margin-bottom: 24px; padding-right: 50px; }

.cta-shell { position: relative; overflow: hidden; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; padding: 64px; border-radius: 34px; background: linear-gradient(135deg, #7655ed, #9279ff); color: white; box-shadow: 0 32px 80px rgba(94, 66, 203, .26); }
.cta-shell::before { content: ""; position: absolute; width: 500px; height: 500px; left: -250px; bottom: -360px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.04), 0 0 0 140px rgba(255,255,255,.025); }
.cta-copy { position: relative; align-self: center; }
.cta-shell h2 { font-size: clamp(2.1rem, 4vw, 3.35rem); }
.cta-shell p { color: rgba(255,255,255,.74); }
.cta-points { display: grid; gap: 9px; margin-top: 28px; }
.cta-points span { display: flex; align-items: center; gap: 9px; font-size: .85rem; }
.cta-points svg { width: 17px; height: 17px; }
.lead-form { position: relative; padding: 28px; border-radius: 22px; background: var(--bg-elevated); color: var(--text); box-shadow: 0 22px 50px rgba(29, 20, 73, .22); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 13px; }
.field label { font-size: .75rem; font-weight: 750; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,92,252,.12); }
.lead-form .btn { width: 100%; margin-top: 4px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .68rem; text-align: center; }
.form-success { display: none; min-height: 328px; place-items: center; text-align: center; }
.form-success.visible { display: grid; }
.success-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 20px; background: rgba(46,182,125,.12); color: var(--success); }
.success-icon svg { width: 30px; height: 30px; }

footer { padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.footer-about { max-width: 320px; }
.footer-about p { margin: 18px 0 0; font-size: .82rem; }
.footer-col strong { display: block; margin-bottom: 16px; font-size: .82rem; }
.footer-col a { display: block; margin: 9px 0; color: var(--muted); font-size: .8rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; color: var(--muted); font-size: .72rem; }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--primary); }

.legal-text { max-width: 760px; }
.legal-text h3 { margin: 36px 0 12px; font-size: 1.05rem; }
.legal-text h3:first-child { margin-top: 0; }
.legal-text p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.legal-text a { color: var(--primary); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-actions { justify-self: end; }
  .mobile-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-visual { min-height: 560px; }
  .app-window { width: min(680px, 92%); }
  .feature-card.span-7, .feature-card.span-5 { grid-column: span 6; }
  .feature-card.span-4 { grid-column: span 6; }
  .audience-shell { grid-template-columns: 280px 1fr; }
  .role-panel { padding: 32px; }
  .role-panel-content { grid-template-columns: 1fr; }
  .role-stat { display: none; }
  .bitrix-grid { gap: 40px; }
  .cta-shell { gap: 40px; padding: 48px; }
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .section-tight { padding: 58px 0; }
  .section-header { margin-bottom: 34px; }
  .nav { min-height: 68px; }
  .nav-actions > .btn { display: none; }
  .mobile-menu { right: 14px; }
  .hero { padding: 54px 0 64px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-grid { gap: 42px; }
  .hero-visual { min-height: 420px; margin-inline: -6px; }
  .orb { width: 370px; height: 370px; }
  .app-window { width: 100%; transform: none; }
  .app-shell { min-height: 330px; grid-template-columns: 98px 1fr; }
  .app-sidebar { padding: 13px 8px; }
  .side-item { padding: 0 6px; font-size: 0; }
  .side-item svg { width: 15px; height: 15px; }
  .mini-logo { margin-inline: 5px; font-size: 0; }
  .work-switch { margin-top: 45px; }
  .app-main { padding: 15px; }
  .mini-banner small { display: none; }
  .course-cover { height: 54px; }
  .float-top { top: 18px; right: -5px; }
  .float-bottom { bottom: 8px; left: -4px; }
  .floating-card { padding: 10px 12px; }
  .trusted-inner { gap: 14px; flex-wrap: wrap; }
  .trusted-divider { display: none; }
  .trusted-inner span { width: 45%; }
  .steps { grid-template-columns: 1fr; }
  .step-number { margin-bottom: 28px; }
  .step:not(:last-child)::after { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.span-7, .feature-card.span-5, .feature-card.span-4 { grid-column: auto; }
  .feature-card { min-height: 240px; }
  .audience-shell { grid-template-columns: 1fr; padding: 11px; }
  .role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
  .role-tab { justify-content: center; padding: 11px 6px; }
  .role-tab > span:first-child { width: 34px; height: 34px; }
  .role-tab div { display: none; }
  .role-panel { min-height: 370px; padding: 28px 22px; }
  .bitrix-block { padding: 38px 24px; }
  .bitrix-grid { grid-template-columns: 1fr; }
  .tour-tabs { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .tour-tab { white-space: nowrap; }
  .tour-canvas, .tour-view { min-height: 410px; }
  .catalog-view { grid-template-columns: 1fr; }
  .tour-side { display: none; }
  .tour-content { padding: 20px; }
  .catalog-cards { grid-template-columns: repeat(2, 1fr); }
  .catalog-card:nth-child(n+5) { display: none; }
  .catalog-cover { height: 88px; }
  .lesson-view { grid-template-columns: 1fr; }
  .lesson-content { padding: 22px; }
  .lesson-video { height: 230px; }
  .lesson-outline { display: none; }
  .analytics-view { padding: 20px; }
  .analytics-stats { grid-template-columns: 1fr 1fr; }
  .analytics-stat:last-child { display: none; }
  .analytics-panels { grid-template-columns: 1fr; }
  .analytics-donut-wrap { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .cta-shell { grid-template-columns: 1fr; padding: 40px 22px 22px; border-radius: 26px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand-text { max-width: 132px; white-space: normal; font-size: .82rem; line-height: 1.05; }
  .hero-actions .btn { width: 100%; }
  .micro-proof { display: grid; }
  .window-bar { height: 40px; }
  .app-shell { grid-template-columns: 78px 1fr; }
  .mini-banner .ring { width: 42px; height: 42px; }
  .tour-frame { padding: 7px; }
  .tour-titlebar .search-pill { display: none; }
  .analytics-stats { grid-template-columns: 1fr; }
  .analytics-stat:nth-child(2) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
