/* ============================================================
   Демо: AI-анализатор, Looker-style дашборд, воронка + поп-ап
   ============================================================ */
:root {
  --d-good: oklch(0.62 0.18 150);
  --d-bad:  oklch(0.6 0.22 27);
  --d-c1: var(--accent);
  --d-c2: oklch(0.62 0.18 240);
  --d-c3: oklch(0.7 0.16 60);
  --d-c4: oklch(0.6 0.2 320);
  --d-c5: oklch(0.65 0.16 200);
}

/* общий вид карточки демо */
.demo {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 320px;
}
.demo h3 { font-size: clamp(20px, 2.1vw, 23px); letter-spacing: -.018em; margin: 0; }

/* ===== DEMO 1: keyword analyzer ===== */
.kw-mock { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.kw-toolbar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-elev); border: 1.5px solid var(--line); position: relative; }
.kw-bot { width: 40px; height: 40px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; position: relative; }
.kw-bot svg { width: 20px; height: 20px; animation: kwBob 1.8s ease-in-out infinite; }
@keyframes kwBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.kw-bot::before, .kw-bot::after { content: ""; position: absolute; border-radius: 50%; background: var(--accent); }
.kw-bot::before { width: 5px; height: 5px; top: -8px; right: -2px; opacity: .55; animation: kwThink 1.4s ease-in-out infinite; }
.kw-bot::after { width: 7px; height: 7px; top: -16px; right: 4px; opacity: .85; animation: kwThink 1.4s ease-in-out infinite .25s; }
@keyframes kwThink { 0%, 100% { transform: scale(0.6); opacity: .3; } 50% { transform: scale(1); opacity: .9; } }
.thought {
  position: absolute; top: -38px; left: 56px;
  background: var(--bg); color: var(--text);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 6px 10px;
  border: 1.5px solid var(--accent-line);
  white-space: nowrap;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.thought.show { opacity: 1; transform: translateY(0); }
.thought::after {
  content: ""; position: absolute; left: 14px; bottom: -7px;
  width: 10px; height: 10px; background: var(--bg);
  border-right: 1.5px solid var(--accent-line);
  border-bottom: 1.5px solid var(--accent-line);
  transform: rotate(45deg);
}
.kw-status { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); flex: 1; font-weight: 600; }
.kw-status .dots::after { content: "..."; display: inline-block; min-width: 14px; animation: kwDots 1.6s steps(4, end) infinite; }
@keyframes kwDots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
.kw-counter { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); text-align: right; line-height: 1.2; }
.kw-counter b { color: var(--d-bad); font-weight: 700; font-size: 15px; display: block; }
.kw-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 280px; }
.kw-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--bg-elev); border: 1.5px solid var(--line); font-size: 13.5px; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s, background .35s, border-color .35s; }
.kw-row.in { opacity: 1; transform: none; }
.kw-row.out { opacity: 0; transform: translateY(8px); }
.kw-row .kw-q { flex: 1; color: var(--text); font-family: var(--font-mono); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-row .kw-state { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.kw-row.scanning .kw-state { color: var(--text-dim); }
.kw-row.keep { background: color-mix(in oklch, var(--d-good) 10%, var(--bg-elev)); border-color: color-mix(in oklch, var(--d-good) 40%, var(--line)); }
.kw-row.keep .kw-state { color: var(--d-good); }
.kw-row.drop { background: color-mix(in oklch, var(--d-bad) 10%, var(--bg-elev)); border-color: color-mix(in oklch, var(--d-bad) 40%, var(--line)); }
.kw-row.drop .kw-state { color: var(--d-bad); }
.kw-row.drop .kw-q { text-decoration: line-through; color: var(--text-muted); }

/* ===== DEMO 2: dashboard (Looker-style) ===== */
.demo-dashboard { padding: 0; background: var(--bg-card); overflow: hidden; max-width: 100%; }
.demo-dashboard, .demo-dashboard * { box-sizing: border-box; }
.dp-act .visual { min-width: 0; overflow: hidden; }

/* toolbar */
.dash-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1.5px solid var(--line); flex-wrap: wrap; background: var(--bg-elev); }
.dt-left, .dt-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* campaigns filter */
.dt-filter { position: relative; }
.dt-filter-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; height: 34px; background: var(--bg-card); border: 1.5px solid var(--line); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s; }
.dt-filter-btn:hover { border-color: var(--accent); }
.dt-filter-btn svg { opacity: .7; }
.dt-caret { font-size: 10px; color: var(--text-dim); margin-left: 2px; }
.dt-filter-pop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; max-width: 360px; background: var(--bg-card); border: 1.5px solid var(--line); padding: 8px; z-index: 20; box-shadow: 0 12px 32px -8px rgba(0,0,0,.25); }
.dt-filter-pop[hidden] { display: none; }
.dt-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dt-pop-head span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.dt-pop-head button { background: none; border: 0; color: var(--accent); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 6px; }
.dt-pop-list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }
.dt-pop-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; font-size: 13px; font-weight: 500; transition: background .15s; }
.dt-pop-row:hover { background: var(--bg-elev); }
.dt-pop-row input { accent-color: var(--accent); margin: 0; width: 14px; height: 14px; }
.dt-pop-row .dt-pop-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dt-pop-row .dt-pop-name { flex: 1; }
.dt-pop-row .dt-pop-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

.dt-divider { width: 1.5px; height: 22px; background: var(--line); }

/* range picker */
.dt-range { display: flex; align-items: center; background: var(--bg-card); border: 1.5px solid var(--line); height: 34px; padding: 2px; gap: 0; }
.dt-range button { background: none; border: 0; color: var(--text-dim); font-family: inherit; font-size: 12px; font-weight: 600; padding: 0 12px; height: 100%; cursor: pointer; transition: color .15s, background .15s; }
.dt-range button:hover { color: var(--text); }
.dt-range button.active { background: var(--text); color: var(--bg); }

.dt-compare { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); cursor: pointer; user-select: none; }
.dt-compare input { accent-color: var(--accent); margin: 0; }
.dt-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--d-good); font-weight: 700; }
.dt-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--d-good); animation: dmPulse 1.8s ease-in-out infinite; }
@keyframes dmPulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--d-good) 60%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* KPI row */
.dm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; border-bottom: 1.5px solid var(--line); }
.dm-k { padding: 18px 20px; border-right: 1.5px solid var(--line); cursor: pointer; transition: background .2s; }
.dm-k:last-child { border-right: 0; }
.dm-k:hover { background: var(--bg-elev); }
.dm-kl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.dm-kv { font-family: var(--font-mono); font-weight: 700; font-size: 26px; margin-top: 8px; letter-spacing: -.025em; line-height: 1; }
.dm-trend { font-size: 11px; margin-top: 6px; font-weight: 700; font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 4px; }
.dm-trend.up { color: var(--d-good); }
.dm-trend.down { color: var(--d-bad); }
.dm-trend::before { content: ""; display: inline-block; width: 0; height: 0; border-style: solid; }
.dm-trend.up::before { border-width: 0 4px 6px 4px; border-color: transparent transparent var(--d-good) transparent; }
.dm-trend.down::before { border-width: 6px 4px 0 4px; border-color: var(--d-bad) transparent transparent transparent; }
.dm-trend .vs { color: var(--text-dim); font-weight: 500; margin-left: 4px; }

/* grid (line + donut) */
.dm-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 0; border-bottom: 1.5px solid var(--line); min-width: 0; }
.dm-card { padding: 18px 20px 22px; border-right: 1.5px solid var(--line); position: relative; min-width: 0; overflow: hidden; }
.dm-card:last-child { border-right: 0; }
.dm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.dm-card-title { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.dm-card-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); margin-top: 3px; letter-spacing: .04em; }
.dm-legend { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.dm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dm-legend i { width: 16px; height: 2.5px; display: inline-block; }
.dm-legend .lg-cur { background: var(--accent); }
.dm-legend .lg-prev { background: var(--text-dim); }

.dm-svg { width: 100%; height: 200px; display: block; }
.dm-svg .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.dm-svg .area-cur { fill: var(--accent); opacity: .14; }
.dm-svg .line-cur { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: lineDraw 1.2s var(--ease); }
.dm-svg .line-prev { fill: none; stroke: var(--text-dim); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 4; opacity: .6; }
.dm-svg .marker { fill: var(--bg-card); stroke: var(--accent); stroke-width: 2; cursor: pointer; transition: r .15s; }
.dm-svg .marker:hover { fill: var(--accent); r: 5; }
@keyframes lineDraw { from { stroke-dasharray: 1500; stroke-dashoffset: 1500; } to { stroke-dashoffset: 0; } }

.dm-axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); padding: 0 2px; }

.dm-tip { position: absolute; padding: 8px 11px; background: var(--text); color: var(--bg); font-family: var(--font-mono); font-size: 11px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .15s; white-space: nowrap; z-index: 5; line-height: 1.4; }
.dm-tip.show { opacity: 1; }
.dm-tip strong { color: var(--accent); }
.dm-tip .tip-vs { display: block; opacity: .7; font-weight: 500; margin-top: 2px; font-size: 10px; }

/* donut */
.dm-donut-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; min-width: 0; }
.dm-donut-svg { width: 120px; height: 120px; flex-shrink: 0; transform: rotate(-90deg); display: block; }
.dm-donut-svg circle { fill: none; transition: stroke-width .2s; }
.dm-donut-svg circle:hover { stroke-width: 20; }
.dm-donut-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; min-width: 0; }
.dm-donut-legend .dl { display: flex; align-items: center; gap: 8px; cursor: pointer; transition: opacity .15s; min-width: 0; }
.dm-donut-legend .dl:hover { opacity: .7; }
.dm-donut-legend .dl-dot { width: 10px; height: 10px; flex-shrink: 0; }
.dm-donut-legend .dl-name { flex: 1; color: var(--text); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-donut-legend .dl-pct { font-family: var(--font-mono); font-weight: 700; color: var(--text); font-size: 12px; flex-shrink: 0; }

/* table */
.dm-table { padding: 18px 20px 22px; }
.dm-sortby { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.dm-sortby select { background: var(--bg-card); border: 1.5px solid var(--line); color: var(--text); padding: 5px 24px 5px 10px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.dm-tbl-wrap { overflow-x: auto; }
.dm-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.dm-tbl thead th { text-align: left; padding: 10px 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; border-bottom: 1.5px solid var(--line); background: var(--bg-elev); }
.dm-tbl thead th.right { text-align: right; }
.dm-tbl tbody tr { transition: background .15s; }
.dm-tbl tbody tr:hover { background: var(--bg-elev); }
.dm-tbl tbody td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.dm-tbl tbody td.right { text-align: right; font-family: var(--font-mono); font-weight: 700; }
.dm-tbl tbody tr:last-child td { border-bottom: 0; }
.dm-tbl .tag-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: middle; }
.dm-tbl .cmp-name { font-weight: 600; }
.dm-tbl .ch-up { color: var(--d-good); }
.dm-tbl .ch-down { color: var(--d-bad); }
.dm-tbl .mini-bar { display: inline-block; width: 60px; height: 4px; background: var(--line); margin-right: 8px; vertical-align: middle; position: relative; }
.dm-tbl .mini-bar i { display: block; height: 100%; background: var(--accent); animation: mbGrow .8s var(--ease); }
@keyframes mbGrow { from { width: 0 !important; } }
.dm-tbl .status-pill { display: inline-block; padding: 2px 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.dm-tbl .status-pill.active { background: color-mix(in oklch, var(--d-good) 20%, transparent); color: var(--d-good); }
.dm-tbl .status-pill.paused { background: color-mix(in oklch, var(--text-dim) 20%, transparent); color: var(--text-muted); }

/* ===== DEMO 3: funnel ===== */
.funnel-mock { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fn-stage { display: flex; flex-direction: column; gap: 4px; }
.fn-bar { background: var(--accent); color: var(--accent-ink); height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; width: var(--w, 100%); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease); font-weight: 700; font-size: 14.5px; }
.demo-funnel.in .fn-bar { transform: scaleX(1); }
.fn-stage:nth-child(2) .fn-bar { transition-delay: .12s; }
.fn-stage:nth-child(3) .fn-bar { transition-delay: .24s; }
.fn-stage:nth-child(4) .fn-bar { transition-delay: .36s; }
.fn-stage:nth-child(5) .fn-bar { transition-delay: .48s; }
.fn-name { font-weight: 700; }
.fn-num { font-family: var(--font-mono); font-weight: 700; }
.fn-drop { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); padding-left: 16px; opacity: 0; transition: opacity .4s .8s; }
.demo-funnel.in .fn-drop { opacity: 1; }

/* ============ ПОП-АП ============ */
.pop-overlay {
  position: fixed; inset: 0;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.pop-overlay.show { opacity: 1; pointer-events: auto; }
.pop-card {
  background: var(--bg);
  border: 1.5px solid var(--line);
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform .4s var(--ease);
}
.pop-overlay.show .pop-card { transform: scale(1) translateY(0); }
.pop-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  background: none; border: 1.5px solid var(--line);
  font-size: 22px; line-height: 1; color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  z-index: 2;
}
.pop-close:hover { border-color: var(--accent); background: var(--accent-faint); }

.pop-grid { display: grid; grid-template-columns: 240px 1fr; min-height: 440px; }
.pop-tabs { display: flex; flex-direction: column; border-right: 1.5px solid var(--line); background: var(--bg-elev); }
.pop-tab {
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
  background: none; border: 0;
  padding: 22px 22px;
  border-bottom: 1.5px solid var(--line);
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: background .2s, color .2s;
}
.pop-tab:hover { background: var(--bg-card); color: var(--text); }
.pop-tab.active { background: var(--bg); color: var(--text); position: relative; }
.pop-tab.active::after {
  content: ""; position: absolute; right: -1.5px; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
}
.pop-tab-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.pop-tab-t { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }

.pop-content { padding: 32px 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.pop-title { font-size: clamp(20px, 2.4vw, 26px); text-transform: uppercase; letter-spacing: -.02em; margin: 0; }
.pop-desc { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; margin: 0; }
.pop-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.pop-row { display: flex; flex-direction: column; gap: 6px; }
.pop-row label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.pop-row input, .pop-row textarea {
  background: var(--bg); border: 1.5px solid var(--line); color: var(--text);
  padding: 11px 14px; font-family: inherit; font-size: 14.5px;
  transition: border-color .15s;
}
.pop-row input:focus, .pop-row textarea:focus {
  outline: none; border-color: var(--accent);
}
.pop-row textarea { resize: vertical; min-height: 72px; }
#popSubmit { margin-top: 4px; align-self: flex-start; }

.pop-ok { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 0; }
.pop-ok-mark {
  width: 56px; height: 56px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 30px; font-weight: 700;
  animation: popMark .55s var(--ease);
}
@keyframes popMark { from { transform: scale(.4) rotate(-25deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.pop-ok h3 { font-size: 22px; letter-spacing: -.018em; margin: 0; }
.pop-ok p { color: var(--text-muted); margin: 0; }

/* mobile */
@media (max-width: 720px) {
  .demo { padding: 18px; }
  .dash-toolbar { padding: 12px; gap: 10px; }
  .dt-divider { display: none; }
  .dm-kpis { grid-template-columns: 1fr 1fr; }
  .dm-k { border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
  .dm-k:nth-child(even) { border-right: 0; }
  .dm-k:nth-last-child(-n+2) { border-bottom: 0; }
  .dm-kv { font-size: 20px; }
  .dm-grid { grid-template-columns: 1fr; }
  .dm-card { border-right: 0; border-bottom: 1.5px solid var(--line); }
  .dm-donut-wrap { grid-template-columns: 100px 1fr; gap: 12px; }
  .dm-donut-svg { width: 100px; height: 100px; }
  .dm-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dm-legend { font-size: 9.5px; gap: 10px; }
  .dm-tbl thead th, .dm-tbl tbody td { padding: 8px 10px; font-size: 12px; }
  .dm-tbl .mini-bar { width: 30px; }
  /* поп-ап */
  .pop-grid { grid-template-columns: 1fr; }
  .pop-tabs { flex-direction: row; border-right: 0; border-bottom: 1.5px solid var(--line); overflow-x: auto; }
  .pop-tab { padding: 14px 16px; border-bottom: 0; border-right: 1.5px solid var(--line); white-space: nowrap; flex-shrink: 0; }
  .pop-tab.active::after { right: 0; left: 0; top: auto; bottom: -1.5px; width: auto; height: 3px; }
  .pop-content { padding: 22px 18px 24px; }
}

/* ===== раскладка демо-страницы ===== */
body.demo-page .dp-act:nth-of-type(even) .wrap { grid-template-columns: 1.05fr 0.95fr; }
body.demo-page .dp-act:nth-of-type(even) .dp-narrative { order: 2; }
body.demo-page .dp-act:nth-of-type(even) .visual { order: 1; }
@media (max-width: 880px) {
  body.demo-page .dp-act .wrap, body.demo-page .dp-act:nth-of-type(even) .wrap { grid-template-columns: 1fr; }
  body.demo-page .dp-act:nth-of-type(even) .dp-narrative { order: 0; }
  body.demo-page .dp-act:nth-of-type(even) .visual { order: 1; }
}

/* мобильная адаптация демо-страницы */
@media (max-width: 680px) {
  body.demo-page .dp-bar .wrap { gap: 10px; }
  body.demo-page .dp-bar a.back { font-size: 13px; }
  body.demo-page .dp-bar .right .lang { display: none; }
  body.demo-page .dp-bar .right .btn-primary { padding: 8px 12px; font-size: 12px; }
  body.demo-page .dp-hero h1 { font-size: clamp(32px, 9.5vw, 48px); }
  body.demo-page .dp-hero p { font-size: 15px; }
  body.demo-page .dp-hero .cta { flex-direction: column; align-items: stretch; }
  body.demo-page .dp-hero .cta .btn { justify-content: center; text-align: center; }
  body.demo-page .dp-act h2 { font-size: clamp(24px, 7vw, 34px); }
  body.demo-page .dp-act .dp-lead { font-size: 15px; }
  body.demo-page .dp-end h2 { font-size: clamp(28px, 8vw, 40px); }
}
