/* Общая основа демо-вариантов сайта МКСИ. Цвета — от текущего сайта мкси.рф (чёрный, белый, синий #10357b). */
:root {
  --ink: #0e1116;
  --ink-2: #3b4250;
  --muted: #6b7280;
  --paper: #f5f6f8;
  --white: #ffffff;
  --navy: #10357b;
  --sky: #3d7bff;
  --signal: #ff6a3d;
  --ok: #18a957;
  --line: rgba(14, 17, 22, .12);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* демо-пометка: цифры и проекты условные */
.demo-note { position: fixed; left: 16px; bottom: 14px; z-index: 90; font: 600 11px/1.3 var(--font); letter-spacing: .02em;
  background: rgba(14, 17, 22, .78); color: #fff; padding: 7px 11px; border-radius: 999px; backdrop-filter: blur(6px); }
.demo-note a { color: #9ec0ff; text-decoration: none; }
@media (max-width: 520px) { .demo-note { left: 8px; right: 8px; bottom: 8px; font-size: 9.5px; letter-spacing: 0; padding: 5px 9px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.credits { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }
.rv-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rv-scale.in { opacity: 1; transform: none; }
.rv-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.rv-clip.in { clip-path: inset(0 0 0 0); }

/* режим «слайды» (как prezo): каждый экран — слайд, прокрутка с доводкой */
.deck { height: 100vh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.deck > .slide { min-height: 100vh; scroll-snap-align: start; position: relative; }
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(120, 128, 140, .45); cursor: pointer; transition: transform .3s, background .3s; }
.dots button.on { background: var(--sky); transform: scale(1.5); }
.progress { position: fixed; left: 0; top: 0; height: 3px; background: var(--sky); width: 0; z-index: 95; transition: width .2s linear; }

/* фото с медленным приближением */
.kb { animation: kb 18s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

/* живые плашки */
.plate { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); border-radius: 18px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(14, 17, 22, .12); }
.plate.dark { background: rgba(14, 17, 22, .72); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.plate .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.plate .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 6px; background: rgba(120, 128, 140, .25); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--sky); border-radius: 6px; transition: width 1.4s var(--ease); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 0 rgba(24, 169, 87, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(24, 169, 87, .55); } 70% { box-shadow: 0 0 0 10px rgba(24, 169, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 169, 87, 0); } }
.ticker { overflow: hidden; white-space: nowrap; }
.ticker > div { display: inline-block; animation: tick 40s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--ink); color: #fff; } .btn.light { background: #fff; color: var(--ink); } .btn.blue { background: var(--sky); color: #fff; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

/* общая шапка демо */
.topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 48px); transition: background .4s, color .4s; }
.topbar .logo { height: 40px; }
.topbar nav { display: flex; gap: clamp(12px, 2vw, 28px); font-size: 14px; font-weight: 500; }
.topbar nav a { text-decoration: none; opacity: .85; } .topbar nav a:hover { opacity: 1; }
.topbar.light { color: #fff; } .topbar.solid { background: rgba(255, 255, 255, .9); color: var(--ink); backdrop-filter: blur(10px); }
.topbar.solid .logo { filter: invert(1); }
@media (max-width: 860px) { .topbar nav { display: none; } .dots { display: none; } }
@media (max-width: 520px) { .topbar .btn { display: none; } .topbar .logo { height: 34px; } }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.h-xl { font-size: clamp(40px, 6.4vw, 96px); line-height: .98; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.h-l { font-size: clamp(30px, 4vw, 60px); line-height: 1.03; letter-spacing: -.03em; font-weight: 750; margin: 0; }
.h-m { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; margin: 0; }
.lead { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .rv, .rv-scale, .rv-clip { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .kb, .ticker > div, .pulse { animation: none !important; } .deck { scroll-behavior: auto; } }
