/* Стили лендинга */
:root {
  --bg:      #030711;
  --surface: #060D1F;
  --card:    #0A1628;
  --border:  #111F3A;
  --border2: #1A3050;
  --text:    #F0F4FF;
  --muted:   #64748B;
  --muted2:  #8899BB;
  --accent:  #4F8EF7;
  --accent2: #3B6FD4;
  --green:   #10B981;
  --purple:  #8B5CF6;
  --cyan:    #06B6D4;
  --red:     #EF4444;
  --amber:   #F59E0B;
  --mono:    'IBM Plex Mono', monospace;
  --sans:    'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.orb { position: fixed; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; animation: orb-drift 20s ease-in-out infinite alternate; will-change: transform; }
.orb-1 { width: 700px; height: 700px; background: rgba(79,142,247,.07); top: -250px; left: -150px; animation-duration: 22s; }
.orb-2 { width: 500px; height: 500px; background: rgba(139,92,246,.06); top: 30%; right: -180px; animation-duration: 24s; animation-delay: -8s; }
.orb-3 { width: 450px; height: 450px; background: rgba(6,182,212,.05); bottom: 5%; left: 15%; animation-duration: 26s; animation-delay: -14s; }
@keyframes orb-drift { from{transform:translate(0,0) scale(1)} to{transform:translate(50px,35px) scale(1.12)} }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 60px;
  background: rgba(3,7,17,.8); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(79,142,247,.1);
  transition: background .3s, border-color .3s;
}
nav.scrolled { background: rgba(3,7,17,.97); border-color: var(--border); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--mono); font-weight: 600; font-size: 14px; flex-shrink: 0; }
.logo-name { line-height: 1.05; }
.logo-box { width: 32px; height: 32px; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--purple)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 0 20px rgba(79,142,247,.4); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 7px 14px; border-radius: 7px; color: var(--muted2); font-size: 14px; font-weight: 500; text-decoration: none; transition: all .15s; background: none; border: none; cursor: pointer; font-family: var(--sans); }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }

.nav-right { display: flex; align-items: center; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: 9px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; font-family: var(--sans); transition: all .18s; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn-ghost { background: transparent; color: var(--muted2); border: 1px solid var(--border2); }
.btn-ghost:hover { color: var(--text); border-color: rgba(79,142,247,.5); background: rgba(79,142,247,.06); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #6366F1); color: #fff; box-shadow: 0 4px 24px rgba(79,142,247,.35); }
.btn-primary:hover { box-shadow: 0 6px 32px rgba(79,142,247,.55); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-large { padding: 14px 30px; font-size: 15px; border-radius: 11px; }
.btn-block  { width: 100%; padding: 14px; font-size: 15px; border-radius: 10px; }

.hamburger { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 6px 4px; line-height: 1; -webkit-tap-highlight-color: transparent; align-items: center; justify-content: center; }

.drawer-back { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 400; }
.drawer-back.open { display: block; }
.drawer { position: fixed; top: 0; right: -100%; bottom: 0; width: min(280px,85vw); background: var(--surface); border-left: 1px solid var(--border); z-index: 500; transition: right .25s ease; display: flex; flex-direction: column; padding: 20px; gap: 4px; overflow-y: auto; }
.drawer.open { right: 0; }
.drawer-close { align-self: flex-end; background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; padding: 2px 6px; margin-bottom: 12px; }
.drawer-link { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 9px; color: var(--muted2); font-size: 15px; font-weight: 500; text-decoration: none; transition: all .15s; background: none; border: none; width: 100%; text-align: left; font-family: var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.drawer-link:hover { background: rgba(79,142,247,.09); color: var(--text); }
.drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }

.hero { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 100px 64px 72px; max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; contain: layout style; }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(79,142,247,.08); border: 1px solid rgba(79,142,247,.22); border-radius: 20px; padding: 6px 14px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; max-width: 100%; }

/* ═══ Бренд Panopticum Smart Vision ═══ */
.eyebrow-txt { min-width: 0; }
/* Двухстрочный лого-локап в мок-скриншотах (узкие сайдбары) */
.wm2 { display: block; font-size: .72em; font-weight: 400; color: var(--muted2); letter-spacing: .03em; line-height: 1.05; }
.mock-logo-txt, .big-mock-logo-txt { line-height: 1.1; }
.mock-logo, .big-mock-logo { align-items: center; }
/* Платформа в карточках загрузки */
.dl-plat { color: var(--muted2); font-weight: 400; }
.blink { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.4s infinite; box-shadow: 0 0 7px var(--green); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.15} }

.hero h1 { font-size: clamp(38px, 4.5vw, 66px); font-weight: 900; line-height: 1.04; letter-spacing: -.04em; margin-bottom: 20px; text-align: left; }
.grad { background: linear-gradient(90deg, #4F8EF7 0%, #8B5CF6 40%, #06B6D4 80%, #4F8EF7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; background-size: 200% auto; animation: grad-shift 5s linear infinite; }
@keyframes grad-shift { to{background-position:200% center} }

.hero-sub  { font-size: 17px; color: var(--muted2); max-width: 440px; line-height: 1.75; font-weight: 300; margin-bottom: 36px; }
.hero-cta  { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.hero-note span { color: var(--green); }
.hero-apps { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.hero-apps-lbl { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 2px; }
.hero-app {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 10px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--muted2);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  transition: transform .15s, border-color .15s, color .15s;
}
.hero-app:hover { transform: translateY(-2px); color: var(--text); border-color: var(--border2); }
.hero-app svg { width: 17px; height: 17px; flex-shrink: 0; }
.hero-app.ha-web   svg { color: var(--purple); }
.hero-app.ha-win   svg { color: var(--accent); }
.hero-app.ha-droid svg { color: #3DDC84; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.mockup-wrap { position: relative; width: 100%; animation: float 6s ease-in-out infinite; will-change: transform; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

.mockup-glow { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(79,142,247,.18) 0%, transparent 65%); pointer-events: none; }
.mockup-window { background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(79,142,247,.1), 0 40px 80px rgba(0,0,0,.65), 0 0 60px rgba(79,142,247,.09); }
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.r { background: #EF4444; } .mock-dot.y { background: #F59E0B; } .mock-dot.g { background: #10B981; }
.mock-url { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 5px; padding: 3px 10px; font-family: var(--mono); font-size: 10px; color: var(--muted); margin: 0 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mockup-body { display: grid; grid-template-columns: 150px 1fr; }

.mock-sidebar { background: rgba(0,0,0,.2); padding: 12px 8px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.mock-logo { display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin-bottom: 8px; }
.mock-logo-box { width: 20px; height: 20px; background: linear-gradient(135deg, var(--accent), var(--purple)); border-radius: 4px; flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.mock-logo-txt { font-family: var(--mono); font-size: 9px; font-weight: 600; color: var(--text); }
.mock-nav-item { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 5px; font-size: 9px; color: var(--muted2); }
.mock-nav-item.active { background: rgba(79,142,247,.12); color: var(--accent); }
.mock-nav-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.mock-content { padding: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-bottom: 10px; }
.mock-stat { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 7px; }
.mock-stat-val { font-family: var(--mono); font-size: 13px; font-weight: 600; line-height: 1; }
.mock-stat-lbl { font-size: 7px; color: var(--muted); margin-top: 2px; text-transform: uppercase; }

.mock-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.mock-chart { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 8px; height: 80px; overflow: hidden; }
.mock-chart-title { font-size: 7px; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.mock-bars { display: flex; align-items: flex-end; gap: 2px; height: 52px; }
.mock-bar { flex: 1; background: rgba(79,142,247,.35); border-radius: 2px 2px 0 0; animation: bar-grow .8s ease-out both; transform-origin: bottom; }
@keyframes bar-grow { from{transform:scaleY(0)} }
.mock-bar:nth-child(1){height:28%;animation-delay:.05s}
.mock-bar:nth-child(2){height:58%;animation-delay:.1s;background:rgba(79,142,247,.55)}
.mock-bar:nth-child(3){height:38%;animation-delay:.15s}
.mock-bar:nth-child(4){height:75%;animation-delay:.2s;background:rgba(239,68,68,.55)}
.mock-bar:nth-child(5){height:22%;animation-delay:.25s}
.mock-bar:nth-child(6){height:48%;animation-delay:.3s}
.mock-bar:nth-child(7){height:62%;animation-delay:.35s;background:rgba(79,142,247,.55)}
.mock-bar:nth-child(8){height:33%;animation-delay:.4s}
.mock-bar:nth-child(9){height:52%;animation-delay:.45s}
.mock-bar:nth-child(10){height:18%;animation-delay:.5s}
.mock-line-svg { width: 100%; height: 52px; }

.mock-cams { background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.mock-cam-row { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.03); }
.mock-cam-row:last-child { border-bottom: none; }
.mock-status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mock-cam-name { font-family: var(--mono); font-size: 8px; color: var(--muted2); flex: 1; }
.mock-cam-loc  { font-size: 7px; color: var(--muted); flex: 1; }
.mock-cam-sla  { font-family: var(--mono); font-size: 8px; color: var(--green); }

.marquee-wrap { position: relative; z-index: 1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(79,142,247,.025); overflow: hidden; }
.marquee-wrap::before,.marquee-wrap::after { content:''; position: absolute; top:0; bottom:0; width: 100px; z-index: 2; pointer-events: none; }
.marquee-wrap::before { left:0; background: linear-gradient(90deg,var(--bg),transparent); }
.marquee-wrap::after  { right:0; background: linear-gradient(-90deg,var(--bg),transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; will-change: transform; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.marquee-item { display: flex; align-items: center; gap: 8px; padding: 10px 24px; border-right: 1px solid var(--border); font-family: var(--mono); font-size: 11px; white-space: nowrap; color: var(--muted2); }
.marquee-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.marquee-dot.online  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.marquee-dot.offline { background: var(--red); }
.marquee-dot.deg     { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

.how-wrap { position: relative; z-index: 1; padding: 100px 20px; max-width: 1100px; margin: 0 auto; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 56px; position: relative; }
.steps-line { position: absolute; top: 35px; left: calc(16.66% + 16px); right: calc(16.66% + 16px); height: 1px; background: linear-gradient(90deg,transparent,rgba(79,142,247,.4),transparent); pointer-events: none; }
.step { display: flex; flex-direction: column; align-items: center; padding: 0 28px; }
.step-num { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 22px; position: relative; z-index: 1; transition: transform .3s; }
.step-num::before { content:''; position: absolute; inset: -2px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); z-index: -1; opacity: .7; }
.step-num::after  { content:''; position: absolute; inset: 2px; border-radius: 50%; background: var(--card); z-index: -1; }
.step:hover .step-num { transform: scale(1.1); }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-desc  { font-size: 13px; color: var(--muted2); line-height: 1.7; }

.section { position: relative; z-index: 1; padding: 80px 20px; max-width: 1100px; margin: 0 auto; }
.section-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-title { font-size: clamp(28px,5vw,48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.section-sub   { font-size: 16px; color: var(--muted2); line-height: 1.75; font-weight: 300; max-width: 520px; }
/* Центрируем шапку секции «Возможности» — как в остальных секциях */
#features > .reveal { text-align: center; }
#features > .reveal .section-sub { margin-left: auto; margin-right: auto; }

.metrics-section { position: relative; z-index: 1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(79,142,247,.02); }
.metrics-inner { max-width: 1000px; margin: 0 auto; padding: 56px 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.metric { padding: 20px; text-align: center; border-right: 1px solid var(--border); }
.metric:last-child { border-right: none; }
.metric-val { font-family: var(--mono); font-size: 38px; font-weight: 600; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.metric-lbl { font-size: 12px; color: var(--muted2); margin-top: 6px; }

.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
.feat-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; transition: border-color .25s, transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.feat-card::before { content:''; position: absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg,transparent,rgba(79,142,247,.45),transparent); }
.feat-card::after  { content:''; position: absolute; inset:0; border-radius:16px; background: radial-gradient(circle at 50% 0%, rgba(79,142,247,.07) 0%,transparent 60%); opacity:0; transition: opacity .3s; }
.feat-card:hover { border-color: rgba(79,142,247,.4); transform: translateY(-5px); box-shadow: 0 24px 48px rgba(0,0,0,.35), 0 0 32px rgba(79,142,247,.08); }
.feat-card:hover::after { opacity: 1; }
.feat-icon-wrap { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; position: relative; z-index: 1; }
.fi-blue   { background: rgba(79,142,247,.12); box-shadow: 0 0 22px rgba(79,142,247,.18);   color: var(--accent); }
.fi-green  { background: rgba(16,185,129,.12); box-shadow: 0 0 22px rgba(16,185,129,.18);  color: var(--green); }
.fi-purple { background: rgba(139,92,246,.12); box-shadow: 0 0 22px rgba(139,92,246,.18);  color: var(--purple); }
.fi-cyan   { background: rgba(6,182,212,.12); box-shadow: 0 0 22px rgba(6,182,212,.18);    color: var(--cyan); }
.fi-amber  { background: rgba(245,158,11,.12); box-shadow: 0 0 22px rgba(245,158,11,.18);  color: var(--amber); }
.feat-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; }
.feat-desc  { font-size: 13px; color: var(--muted2); line-height: 1.7; position: relative; z-index: 1; }
.feat-tag   { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 5px; margin-top: 14px; position: relative; z-index: 1; }
.t-green  { background: rgba(16,185,129,.1); color: var(--green); }
.t-blue   { background: rgba(79,142,247,.1); color: var(--accent); }
.t-purple { background: rgba(139,92,246,.1); color: var(--purple); }
.t-cyan   { background: rgba(6,182,212,.1); color: var(--cyan); }
.t-amber  { background: rgba(245,158,11,.1); color: var(--amber); }

.preview-section { position: relative; z-index: 1; padding: 80px 20px 120px; text-align: center; overflow: hidden; contain: layout style; }
.preview-section::before { content:''; position: absolute; inset:0; background: linear-gradient(180deg,transparent,rgba(79,142,247,.03) 40%,rgba(139,92,246,.02) 60%,transparent); pointer-events: none; }
.preview-section::after  { content:''; position: absolute; left:50%; top:20%; transform: translateX(-50%); width: 900px; height: 500px; background: radial-gradient(ellipse,rgba(79,142,247,.08) 0%,transparent 65%); pointer-events: none; }
.preview-section .section-title, .preview-section .section-sub { text-align: center; max-width: none; }
.preview-section .section-sub { margin: 0 auto 48px; }

.big-mockup { position: relative; max-width: 920px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--border2); box-shadow: 0 60px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(79,142,247,.1), 0 0 80px rgba(79,142,247,.07); animation: float 8s ease-in-out infinite; will-change: transform; }
.big-mock-bar  { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--border); }
.big-mock-body { background: var(--surface); display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.big-mock-side { background: rgba(0,0,0,.25); padding: 16px 10px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.big-mock-logo     { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 10px; }
.big-mock-logo-box { width: 22px; height: 22px; background: linear-gradient(135deg,var(--accent),var(--purple)); border-radius: 5px; flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.big-mock-logo-txt { font-family: var(--mono); font-size: 10px; font-weight: 600; }
.big-mock-nav { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: 11px; color: var(--muted); transition: background .15s; }
.big-mock-nav.act { background: rgba(79,142,247,.12); color: var(--accent); }
.big-mock-nav-icon { font-size: 13px; }
.big-mock-main { padding: 18px; }

.big-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.big-stat { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px; position: relative; overflow: hidden; }
.big-stat::before { content:''; position: absolute; top:0; left:0; right:0; height:2px; }
.big-stat.bs-green::before { background: var(--green); }
.big-stat.bs-blue::before  { background: var(--accent); }
.big-stat.bs-amber::before { background: var(--amber); }
.big-stat.bs-red::before   { background: var(--red); }
.big-stat-val   { font-family: var(--mono); font-size: 22px; font-weight: 600; margin-bottom: 2px; }
.big-stat-lbl   { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.big-stat-badge { position: absolute; top:10px; right:10px; font-family: var(--mono); font-size: 8px; padding: 2px 6px; border-radius: 4px; }
.badge-up { background: rgba(16,185,129,.12); color: var(--green); }
.badge-dn { background: rgba(239,68,68,.12); color: var(--red); }

.big-charts { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.big-chart  { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.big-chart-title { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.big-bars { display: flex; align-items: flex-end; gap: 4px; height: 100px; }
.big-bar  { flex:1; border-radius: 3px 3px 0 0; background: rgba(79,142,247,.32); min-height: 4px; }
.big-bar.hot { background: rgba(239,68,68,.5); }

.donut-wrap   { display: flex; align-items: center; justify-content: center; gap: 14px; height: 100px; }
.donut-legend { display: flex; flex-direction: column; gap: 5px; }
.donut-item   { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted2); }
.donut-dot    { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.cams-section { position: relative; z-index: 1; padding: 80px 20px; max-width: 1100px; margin: 0 auto; }
.cam-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 44px; }
.cam-tile { aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid var(--border2); transition: border-color .2s, transform .2s; container-type: size; }
.cam-tile:hover { border-color: rgba(79,142,247,.4); transform: scale(1.02); }
.cam-tile::after { content:''; position: absolute; top:0; left:0; right:0; height: 1px; background: rgba(79,142,247,.7); animation: scan var(--spd,4s) linear infinite; will-change: transform; }
@keyframes scan { from{transform:translateY(0)} to{transform:translateY(100cqh)} }
.cam-tile:nth-child(1){--spd:3.6s}.cam-tile:nth-child(2){--spd:5.1s}
.cam-tile:nth-child(3){--spd:4.3s}.cam-tile:nth-child(4){--spd:6.2s}
.cam-tile:nth-child(5){--spd:3.9s}.cam-tile:nth-child(6){--spd:5.5s}
.cam-tile:nth-child(7){--spd:4.7s}.cam-tile:nth-child(8){--spd:3.3s}

/* ─── Preview "Видеомониторинг" tab — camera tiles ─── */
.feed-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.feed-cam {
  position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg,#0b1830 0%,#0a1424 55%,#070f1d 100%);
}
.feed-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(120,170,255,.8), transparent);
  box-shadow: 0 0 6px rgba(120,170,255,.55); will-change: top;
  animation: feed-scan-move var(--scan,4s) linear infinite var(--delay,0s); }
@keyframes feed-scan-move { 0%{top:-3%} 100%{top:103%} }
.feed-label { position: absolute; bottom: 4px; left: 5px; font-family: var(--mono);
  font-size: 8px; color: rgba(255,255,255,.7); letter-spacing: .04em; z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.feed-live { position: absolute; top: 4px; right: 5px; display: flex; align-items: center;
  gap: 3px; font-family: var(--mono); font-size: 8px; color: var(--green); z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.feed-live-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green);
  animation: blink 1.6s infinite; }
/* per-camera scan timing */
.feed-cam:nth-child(1){--scan:3.8s;--delay:0s}
.feed-cam:nth-child(2){--scan:5.1s;--delay:.6s}
.feed-cam:nth-child(3){--scan:4.4s;--delay:.3s}
.feed-cam:nth-child(4){--scan:6.2s;--delay:1s}
.feed-cam:nth-child(5){--scan:4.9s;--delay:.2s}
.feed-cam:nth-child(6){--scan:3.5s;--delay:.8s}
.cam-noise {
  position: absolute; inset:0; z-index:1; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.cam-grad     { position: absolute; inset:0; z-index:2; background: linear-gradient(160deg,rgba(0,10,40,.55),rgba(0,0,0,.2)); }
.cam-lbl      { position: absolute; bottom:6px; left:8px; z-index:3; font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,.6); }
.cam-live     { position: absolute; top:6px; right:8px; z-index:3; display: flex; align-items: center; gap: 3px; font-family: var(--mono); font-size: 8px; color: var(--green); }
.cam-live-dot { width:5px; height:5px; border-radius:50%; background:var(--green); animation: blink 1.4s infinite; }
.cam-location { position: absolute; top:6px; left:8px; z-index:3; font-size:8px; color:rgba(255,255,255,.45); font-family: var(--mono); }

.pricing-wrap  { position: relative; z-index:1; padding: 80px 20px; }
.pricing-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.plans { display: flex; flex-direction: column; gap: 14px; }
.plan  { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; transition: border-color .2s; }
.plan:hover { border-color: var(--border2); }
.plan.featured { border-color: rgba(79,142,247,.35); background: rgba(79,142,247,.04); position: relative; box-shadow: 0 0 36px rgba(79,142,247,.09); }
.plan-badge { position: absolute; top:-1px; right:18px; background: linear-gradient(135deg,var(--accent),var(--purple)); color:#fff; font-size: 10px; font-family: var(--mono); font-weight: 600; padding: 3px 10px; border-radius: 0 0 7px 7px; }
.plan-name  { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.plan-price { font-family: var(--mono); font-size: 24px; font-weight: 600; line-height: 1; margin-bottom: 6px; }
.plan-price span { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-desc  { font-size: 13px; color: var(--muted2); margin-bottom: 12px; }
.plan-feats { display: flex; flex-direction: column; gap: 5px; }
.plan-feat  { font-size: 12px; color: var(--muted2); display: flex; align-items: flex-start; gap: 7px; }
.plan-feat::before { content:'✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; font-size: 11px; }

/* ═══ APPS: WINDOWS + ANDROID ═══ */
.desktop-wrap { position: relative; z-index: 1; padding: 40px 20px 100px; text-align: center; }
.desktop-inner { max-width: 880px; margin: 0 auto; }
.desktop-wrap .section-sub { margin: 0 auto; }
.dl-win   { color: var(--accent); }
.dl-droid { color: #3DDC84; }
/* «для Windows 10 и Android» — всегда одной строкой (цвета сохраняются) */
.dl-platline { white-space: nowrap; }

/* Телефонные мок-скриншоты Android */
.phone-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 26px; margin-top: 44px; }
.phone {
  width: 216px; padding: 9px; border-radius: 30px;
  background: #05080F; border: 1px solid var(--border2);
  box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.03);
}
.phone-2 { margin-top: 0; }
.p-screen {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: #0A0F1E; border: 1px solid #1E2D4A;
  height: 428px; text-align: left;
}
.p-notch {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 12px; border-radius: 7px; background: #05080F; z-index: 2;
}
.p-status {
  display: flex; justify-content: space-between; padding: 7px 12px 4px;
  font-family: var(--mono); font-size: 7px; color: #64748B;
}
.p-body { flex: 1; padding: 6px 9px; display: flex; flex-direction: column; gap: 7px; min-height: 0; }
.p-appbar { display: flex; align-items: center; gap: 6px; }
.p-appbar b { font-size: 12px; color: #E2E8F0; font-weight: 700; }
.p-live {
  margin-left: auto; font-family: var(--mono); font-size: 6.5px; color: var(--green);
  background: rgba(16,185,129,.12); border-radius: 5px; padding: 2px 6px;
}
.p-cnt { margin-left: auto; font-family: var(--mono); font-size: 7px; color: #64748B; }
.p-kpis { display: flex; gap: 7px; }
.p-kpi {
  flex: 1; background: #131929; border: 1px solid #1E2D4A; border-radius: 9px; padding: 7px 8px;
}
.p-kpi-i { font-size: 8px; display: block; }
.p-kpi b { display: block; font-family: var(--mono); font-size: 14px; color: #E2E8F0; margin-top: 2px; }
.p-kpi span:last-child { font-size: 6.5px; color: #64748B; }
.p-card { background: #131929; border: 1px solid #1E2D4A; border-radius: 9px; padding: 8px 9px; }
.p-card-t { font-size: 8px; font-weight: 600; color: #E2E8F0; margin-bottom: 7px; }
.p-donut {
  width: 66px; height: 66px; margin: 2px auto 6px; border-radius: 50%;
  background: conic-gradient(var(--green) 0 100%); position: relative;
}
.p-donut::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #131929; }
.p-donut-leg { display: flex; justify-content: center; gap: 10px; font-family: var(--mono); font-size: 6.5px; }
.p-green { color: var(--green); }
.p-red   { color: var(--red); }
.p-slarow { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-family: var(--mono); font-size: 6.5px; color: #E2E8F0; }
.p-slarow b { color: var(--green); font-weight: 400; }
.p-bar { flex: 1; height: 5px; border-radius: 3px; background: #0A0F1E; border: 1px solid #1E2D4A; overflow: hidden; }
.p-bar i { display: block; height: 100%; border-radius: 3px; background: rgba(16,185,129,.6); }
.p-nav { display: flex; border-top: 1px solid #1E2D4A; background: #111827; padding: 6px 2px 7px; }
.p-nav span { flex: 1; text-align: center; font-size: 10px; color: #64748B; line-height: 1.3; }
.p-nav span em { display: block; font-style: normal; font-family: var(--mono); font-size: 5.5px; }
.p-nav span.on { color: var(--accent); }
.p-gridsel { display: flex; gap: 5px; }
.p-gridsel span {
  font-family: var(--mono); font-size: 7px; color: #64748B;
  border: 1px solid #1E2D4A; border-radius: 6px; padding: 2px 8px;
}
.p-gridsel span.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.p-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.p-tile {
  position: relative; aspect-ratio: 16/10; border-radius: 7px; overflow: hidden;
  border: 1px solid #1E2D4A;
}
.p-t1 { background: radial-gradient(90% 90% at 30% 25%, rgba(150,170,205,.30), transparent 60%), radial-gradient(60% 60% at 75% 80%, rgba(245,158,11,.14), transparent 70%), linear-gradient(160deg, #232C3F, #0B1220); }
.p-t2 { background: radial-gradient(80% 90% at 70% 20%, rgba(130,160,200,.26), transparent 60%), radial-gradient(50% 50% at 20% 75%, rgba(245,158,11,.10), transparent 70%), linear-gradient(200deg, #1E2736, #0A101D); }
.p-t3 { background: radial-gradient(95% 80% at 45% 70%, rgba(160,180,210,.24), transparent 65%), linear-gradient(150deg, #26303F, #0C1322); }
.p-t4 { background: radial-gradient(70% 80% at 60% 40%, rgba(140,165,200,.28), transparent 60%), radial-gradient(45% 45% at 85% 15%, rgba(245,158,11,.12), transparent 70%), linear-gradient(170deg, #202A3B, #0B111F); }
.p-tile::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
.p-tname { position: absolute; top: 4px; left: 5px; font-family: var(--mono); font-size: 6px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.p-tlive { position: absolute; top: 4px; right: 5px; font-family: var(--mono); font-size: 5.5px; color: var(--green); text-shadow: 0 1px 2px #000; }
.p-tbadge {
  position: absolute; bottom: 4px; left: 5px; font-family: var(--mono); font-size: 5.5px;
  color: #94A3B8; background: rgba(0,0,0,.55); border-radius: 3px; padding: 1px 4px;
}
.p-ttime { position: absolute; bottom: 4px; right: 5px; font-family: var(--mono); font-size: 5.5px; color: rgba(255,255,255,.55); }
.p-scan { position: absolute; left: 0; right: 0; height: 1px; background: rgba(79,142,247,.5); animation: p-scan-move 4.6s linear infinite; }
.p-t2 .p-scan { animation-duration: 5.8s; }
.p-t3 .p-scan { animation-duration: 3.9s; }
.p-t4 .p-scan { animation-duration: 6.5s; }
@keyframes p-scan-move { from { top: 6%; } to { top: 94%; } }
.phone-cap { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Мок-скриншоты Windows-приложения (десктопные окна) */
.win-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 20px; margin-top: 40px; }
.win {
  width: 420px; max-width: 100%; border-radius: 12px; overflow: hidden; text-align: left;
  background: #0A0F1E; border: 1px solid var(--border2); box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.win-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #111827; border-bottom: 1px solid var(--border); }
.win-bar-title { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--muted2); }
.win-ic { width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--purple)); }
.win-ctrls { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #64748B; letter-spacing: 2px; }
.win-ctrls .x { color: var(--red); }
.win-body { display: flex; height: 268px; }
.win-side { width: 116px; flex-shrink: 0; background: rgba(0,0,0,.22); border-right: 1px solid var(--border); padding: 10px 7px; display: flex; flex-direction: column; gap: 3px; }
.win-nav { font-size: 10px; color: #64748B; padding: 6px 7px; border-radius: 6px; white-space: nowrap; }
.win-nav.on { color: #fff; background: rgba(79,142,247,.14); }
.win-main { flex: 1; min-width: 0; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.win-kpis { display: flex; gap: 6px; }
.win-kpi { flex: 1; background: #131929; border: 1px solid var(--border); border-radius: 8px; padding: 6px 7px; }
.win-kpi b { display: block; font-family: var(--mono); font-size: 14px; color: #E2E8F0; line-height: 1.2; }
.win-kpi span { font-size: 6.5px; color: #64748B; }
.p-blue { color: var(--accent); }
.win-two { flex: 1; display: flex; gap: 8px; min-height: 0; }
.win-card { flex: 1; background: #131929; border: 1px solid var(--border); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; }
.win-card-donut { flex: 0 0 116px; align-items: center; }
.win-card-t { font-size: 8px; color: #E2E8F0; font-weight: 600; margin-bottom: 6px; align-self: flex-start; }
.win-bars { flex: 1; display: flex; align-items: flex-end; gap: 3px; }
.win-bars i { flex: 1; background: rgba(79,142,247,.5); border-radius: 2px 2px 0 0; }
.win-bars i.dn { background: rgba(239,68,68,.6); }
.win-donut { width: 74px; height: 74px; margin: 2px 0 6px; }
.win-main-video { padding: 9px; }
.win-tiles { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 5px; }
.win-main-video .p-tile { aspect-ratio: auto; }

.dl-icon.dl-icon-droid { background: linear-gradient(135deg, #22B06B, #06B6D4); box-shadow: 0 0 30px rgba(61,220,132,.3); }
.dl-btn.dl-btn-droid { background: linear-gradient(135deg, #22B06B, #0DA678); box-shadow: 0 10px 30px rgba(34,176,107,.35); }
.dl-btn.dl-btn-droid:hover { box-shadow: 0 16px 42px rgba(34,176,107,.5); }
.dl-card + .dl-card { margin-top: 18px; }
.dl-card {
  display: flex; align-items: center; gap: 24px; text-align: left;
  margin-top: 40px; padding: 26px 28px;
  background: linear-gradient(135deg, rgba(79,142,247,.06), rgba(139,92,246,.05));
  border: 1px solid var(--border2); border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.dl-icon {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  box-shadow: 0 0 30px rgba(79,142,247,.35);
}
.dl-body { flex: 1; min-width: 0; }
.dl-name { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.35; }
.dl-ver { font-size: 12px; color: var(--accent); background: rgba(79,142,247,.12); padding: 2px 8px; border-radius: 6px; margin-left: 8px; font-weight: 600; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.dl-chip { font-family: var(--mono); font-size: 10px; color: var(--muted2); background: rgba(255,255,255,.04); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; }
.dl-feats { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; font-size: 12px; color: var(--muted2); }
.dl-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px; border-radius: 11px; font-size: 15px; font-weight: 600;
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 30px rgba(79,142,247,.35);
  transition: transform .15s, box-shadow .15s;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(79,142,247,.5); }
.dl-note { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .dl-card { flex-direction: column; align-items: stretch; gap: 18px; }
  .dl-btn { justify-content: center; }
}
@media (max-width: 560px) {
  /* «для Windows 10 и Android» одной строкой — уменьшаем шрифт, чтобы влезало */
  .desktop-wrap .section-title { font-size: clamp(20px, 6vw, 40px); }
  .phone-row { flex-direction: column; align-items: center; }
}

.cta-section { text-align: center; padding: 120px 20px; position: relative; z-index: 1; }
.cta-section::before { content:''; position: absolute; inset:0; background: radial-gradient(ellipse at center,rgba(79,142,247,.08) 0%,transparent 60%); pointer-events: none; }
.cta-section h2 { font-size: clamp(32px,6vw,62px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 16px; }
.cta-section p  { font-size: 16px; color: var(--muted2); margin-bottom: 36px; max-width: 380px; margin-left: auto; margin-right: auto; }
.cta-btns   { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-badges { display: flex; gap: 20px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.cta-badge  { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cta-badge-icon { display: inline-flex; align-items: center; color: var(--muted2); }

footer { border-top: 1px solid var(--border); padding: 36px 40px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand links" "copy copy"; column-gap: 32px; row-gap: 24px; align-items: start; font-size: 12px; position: relative; z-index: 1; }
.footer-brand { grid-area: brand; display: flex; flex-direction: column; gap: 12px; }
.footer-tagline { font-family: var(--mono); font-size: 12.5px; color: #CBD5E1; font-style: italic; letter-spacing: .01em; line-height: 1.5; max-width: 440px; }
.footer-tagline b { color: var(--text); font-style: normal; font-weight: 600; }
.footer-links { grid-area: links; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.footer-links a { color: #B6C2D4; text-decoration: none; font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { grid-area: copy; font-family: var(--mono); font-size: 11px; color: #94A3B8; padding-top: 22px; border-top: 1px solid var(--border); }

.modal-overlay { position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,.8); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border2); border-radius: 20px; width: 100%; max-width: 480px; max-height: calc(100svh - 32px); overflow-y: auto; animation: modal-in .2s ease; position: relative; }
@keyframes modal-in { from{opacity:0;transform:scale(.96) translateY(-8px)} to{opacity:1;transform:none} }
.modal-top   { padding: 24px 24px 4px; text-align: center; }
.modal-icon  { font-size: 34px; margin-bottom: 10px; display: block; }
.modal-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.modal-sub   { font-size: 13px; color: var(--muted2); }
.modal-body  { padding: 20px 24px 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.07); border: none; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; -webkit-tap-highlight-color: transparent; }
.modal-close:hover { color: var(--text); background: rgba(255,255,255,.13); }
.form-group  { margin-bottom: 14px; }
.form-label  { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.form-input  { width: 100%; background: var(--card); border: 1px solid var(--border2); border-radius: 9px; padding: 12px 14px; color: var(--text); font-family: var(--sans); outline: none; transition: border-color .15s; font-size: max(16px,14px); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,142,247,.12); }
.form-input::placeholder { color: var(--muted); }
.form-error  { background: rgba(239,68,68,.09); border: 1px solid rgba(239,68,68,.25); border-radius: 9px; padding: 10px 14px; font-size: 13px; color: #F87171; margin-bottom: 14px; display: none; }
.form-error.show { display: block; }
.modal-divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.modal-switch  { text-align: center; font-size: 13px; color: var(--muted2); }
.modal-switch a { color: var(--accent); text-decoration: none; font-weight: 600; cursor: pointer; }

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

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 100px 40px 72px; gap: 44px; }
  .hero-content { align-items: center; }
  .hero h1, .hero-sub { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 600px; margin: 0 auto; }
  .cam-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 860px) {
  .hamburger { display: block; }
  .nav-links, .nav-btn-login { display: none; }
  nav { padding: 0 20px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .pricing-inner { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps-line { display: none; }
  .metrics-inner { grid-template-columns: repeat(2,1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(3), .metric:nth-child(4) { border-top: 1px solid var(--border); }
  .cam-grid { grid-template-columns: repeat(2,1fr); }
  .big-stats { grid-template-columns: repeat(2,1fr); }
  footer { grid-template-columns: 1fr; grid-template-areas: "brand" "links" "copy"; justify-items: center; text-align: center; padding: 32px 20px 88px; row-gap: 22px; }
  .footer-brand { align-items: center; }
  .footer-tagline { text-align: center; }
  .footer-links { justify-content: center; }
  .footer-copy { width: 100%; padding-top: 22px; }
}
@media (max-width: 560px) {
  nav { height: 54px; padding: 0 16px; }
  .logo span { display: none; }
  .eyebrow { max-width: calc(100vw - 32px); text-align: center; line-height: 1.5; }
  .hero { padding: 80px 16px 52px; }
  .hero h1 { font-size: clamp(30px,9vw,44px); }
  .hero-sub { font-size: 15px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-visual { display: none; }
  .section { padding: 60px 16px; }
  .how-wrap { padding: 60px 16px; }
  .feat-grid { grid-template-columns: 1fr; gap: 12px; }
  .feat-card { padding: 22px 18px; }
  .cam-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .cam-tile:nth-child(n+5) { display: none; }
  .metrics-inner { grid-template-columns: 1fr 1fr; padding: 40px 16px; }
  .metric-val { font-size: 28px; }
  .preview-section { padding: 60px 16px 80px; }
  .big-mock-body { grid-template-columns: 1fr; }
  .big-mock-side { display: none; }
  .big-charts { grid-template-columns: 1fr; }
  .big-stats { grid-template-columns: repeat(2,1fr); }
  .pricing-wrap { padding: 60px 16px; }
  .cta-section { padding: 80px 16px; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { width: 100%; }
  .modal-overlay { padding: 12px; }
  .modal-top { padding: 20px 18px 4px; }
  .modal-body { padding: 16px 18px 20px; }
}
@media (max-width: 375px) {
  .hero h1 { font-size: 28px; }
  .metric-val { font-size: 24px; }
}

/* ═══ PHOTO GALLERY ═══ */
.gallery-section { position: relative; z-index: 1; padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.gallery-section .section-sub { max-width: 520px; }

.photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 10px;
  margin-top: 48px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.75) saturate(.85);
  transition: transform .5s ease, filter .4s ease;
}

.photo-tile:hover img {
  transform: scale(1.07);
  filter: brightness(.88) saturate(1.1);
}

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 100%);
  transform: translateY(6px);
  transition: transform .3s;
}

.photo-tile:hover .photo-caption { transform: translateY(0); }

.photo-cap-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}

.photo-cap-text {
  font-size: 11px;
  color: rgba(240,244,255,.8);
  font-family: var(--mono);
}

/* ═══ PREVIEW TABS ═══ */
.preview-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 4px;
  margin-bottom: 40px;
}

.preview-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--muted2);
  background: none;
  border: none;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.preview-tab:hover { color: var(--text); background: rgba(255,255,255,.05); }

.preview-tab.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0,0,0,.4), 0 0 0 1px rgba(79,142,247,.18);
}

.preview-tab.active svg { color: var(--accent); }

/* ═══ PREVIEW TABLE ═══ */
.preview-table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.pt-head {
  display: grid;
  grid-template-columns: 1fr 1fr 60px 20px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-family: var(--mono);
}

.pt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,.03);
}

.pt-row:last-child { border-bottom: none; }
.pt-name { font-family: var(--mono); font-size: 9px; color: var(--muted2); flex: 1; }
.pt-loc  { font-size: 9px; color: var(--muted); flex: 1.5; }
.pt-sla  { font-family: var(--mono); font-size: 9px; font-weight: 600; width: 40px; text-align: right; }
.pt-dot  { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ═══ ALERTS PREVIEW MOCK ═══ */
.mal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mal-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text); }
.mal-status { font-family: var(--mono); font-size: 9px; color: var(--green); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.mal-chip { font-family: var(--mono); font-size: 9px; color: var(--accent); background: rgba(79,142,247,.12); border: 1px solid rgba(79,142,247,.25); padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.mal-chip.sm { align-self: flex-start; margin-top: 8px; padding: 3px 8px; }

.mal-chan-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mal-card { flex: 1 1 180px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; display: flex; flex-direction: column; }
.mal-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.mal-line { font-family: var(--mono); font-size: 9px; color: var(--muted); margin-top: 3px; }
.mal-line b { color: var(--muted2); font-weight: 600; }

.mal-toggle { width: 26px; height: 15px; border-radius: 20px; background: var(--border2); position: relative; flex-shrink: 0; }
.mal-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); transition: all .2s; }
.mal-toggle.on { background: rgba(16,185,129,.4); }
.mal-toggle.on::after { left: 13px; background: var(--green); }

.mal-sub { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 16px 0 2px; }
.mal-trg-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.mal-trg { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 7px 11px; }
.mal-trg-name { flex: 1; font-size: 10px; color: var(--muted2); }
.mal-pill { font-family: var(--mono); font-size: 9px; color: var(--accent); background: rgba(79,142,247,.1); padding: 2px 8px; border-radius: 5px; }

.mal-jr { display: grid; grid-template-columns: 40px 58px 48px minmax(0,1fr) 46px; gap: 8px; align-items: center; padding: 6px 12px; border-bottom: 1px solid rgba(255,255,255,.03); font-size: 9px; color: var(--muted2); }
.mal-jr:last-child { border-bottom: none; }
.mal-jr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mal-jr-head { border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mal-mono { font-family: var(--mono); }
.mal-badge { justify-self: start; font-family: var(--mono); font-size: 8px; font-weight: 600; padding: 2px 7px; border-radius: 5px; }
.mal-badge.on { color: var(--green); background: rgba(16,185,129,.12); }
.mal-badge.off { color: var(--red); background: rgba(239,68,68,.12); }

@media (max-width: 560px) {
  .mal-chan-row .mal-card { flex-basis: 100%; }  /* каналы стопкой */
  .mal-top { flex-wrap: wrap; gap: 6px; }
}

/* ═══ PLAN BUTTONS ═══ */
.plan-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #6366F1);
  color: #fff;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(79,142,247,.3);
  transition: box-shadow .18s, transform .18s;
}

.plan-btn:hover { box-shadow: 0 6px 24px rgba(79,142,247,.5); transform: translateY(-1px); }

.plan-btn-soon {
  background: rgba(255,255,255,.05);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}

.plan-btn-soon:hover { transform: none; box-shadow: none; }

/* ═══ BACK TO TOP ═══ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
  z-index: 400;
  box-shadow: 0 4px 20px rgba(79,142,247,.45);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover { background: var(--accent2); box-shadow: 0 6px 24px rgba(79,142,247,.6); }

/* ═══ GALLERY + RESPONSIVE ═══ */
@media (max-width: 900px) {
  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }
  .photo-tile[style*="grid-row:span 2"] { grid-row: span 1 !important; }
}

@media (max-width: 560px) {
  .gallery-section { padding: 60px 16px; }
  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 140px);
  }
  .photo-tile[style*="grid-row:span 2"] { grid-row: span 1 !important; }
  .photo-mosaic .photo-tile:nth-child(n+5) { display: none; }
  .preview-tabs { gap: 2px; }
  .preview-tab { padding: 7px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .mockup-wrap, .big-mockup, .marquee-track, .cam-tile::after,
  .feed-scan, .feed-live-dot { animation: none !important; }
  .reveal { transition: none !important; }
  .grad   { animation: none !important; }
}
