/* Concert.kz — лендинг. Светлая enterprise-система, фиолетовый акцент. */

:root {
  --bg: #FBFBFA;
  --bg-soft: #F4F4F1;
  --ink: #191B21;
  --ink-2: #565B68;
  --ink-3: #8B8F9B;
  --line: #E4E3DE;
  --line-strong: #CFCEC8;
  --accent: #5B4FE9;
  --accent-deep: #4438C9;
  --accent-tint: #EFEEFC;
  --accent-line: #C9C5F4;
  --card: #FFFFFF;
  --font: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(251, 251, 250, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo .kz { color: var(--accent); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-deep); }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  background: var(--accent); width: 0%;
}
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero-glow {
  position: absolute; top: -180px; right: -140px;
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 79, 233, 0.16), transparent 65%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: glow-drift 16s ease-in-out infinite alternate; }
}
@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-70px, 50px) scale(1.14); }
}
.pulse-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #1E8A5B; margin-right: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { box-shadow: 0 0 0 0 rgba(30, 138, 91, 0.45); animation: pdot 2.2s ease-out infinite; }
}
@keyframes pdot { 70% { box-shadow: 0 0 0 11px rgba(30, 138, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 138, 91, 0); } }
.kicker {
  font: 600 14px/1.4 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}
.hero h1 {
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  margin: 0 0 28px;
}
.hero h1 .kz { color: var(--accent); }
.hero .lead {
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.5; color: var(--ink-2);
  max-width: 760px; margin: 0 0 56px;
  text-wrap: pretty;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 56px;
  padding-top: 36px; border-top: 1px solid var(--line);
}
.hstat .v {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hstat .v em { font-style: normal; color: var(--accent); }
.hstat .l { font-size: 16px; color: var(--ink-3); margin-top: 6px; max-width: 240px; }

/* ---------- Секции ---------- */
section.block { padding: 96px 0; }
section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 48px; max-width: 820px; }
.sec-head h2 {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.12;
  margin: 0 0 16px; text-wrap: balance;
}
.sec-head p { font-size: 20px; color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* ---------- Бегущая лента стека ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--card);
  overflow: hidden; padding: 15px 0;
}
.ticker-track {
  display: flex; gap: 56px; width: max-content;
  font: 500 14px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
.ticker-track b { color: var(--accent); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: tick 38s linear infinite; }
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Точки-переключатели разделов ---------- */
.dots {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%);
  z-index: 60;
  display: flex; flex-direction: column; gap: 13px;
}
.dots a {
  position: relative; display: block;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.dots a:hover { border-color: var(--accent); transform: scale(1.2); }
.dots a.act {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint), 0 0 16px rgba(91, 79, 233, 0.5);
}
.dots a::after {
  content: attr(data-label);
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  font: 500 13px/1 var(--mono); color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 11px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.dots a:hover::after { opacity: 1; }
@media (max-width: 719px) { .dots { display: none; } }

/* ---------- Reveal-анимации ---------- */
.rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
  .rv.on { opacity: 1; transform: none; }
}
/* окружения с замороженным анимационным временем: показываем конечное состояние сразу */
.anim-off .rv, .anim-off .rv-zone, .anim-off .pay-flow .node {
  transition: none !important;
}
.anim-off .rv { opacity: 1 !important; transform: none !important; }
.anim-off *, .anim-off *::before, .anim-off *::after { transition: none !important; }

/* подчёркивание-росчерк у заголовков секций */
.sec-head h2 { position: relative; padding-bottom: 16px; }
.sec-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 3px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.sec-head.on h2::after { transform: scaleX(1); }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 14px 36px -18px rgba(54, 44, 167, 0.25);
}
.card h3 { font-size: 21px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.card p { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.card .q { font: 500 15px/1.45 var(--mono); color: var(--accent); margin: 0 0 12px; }

/* списки */
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
ul.plain li { font-size: 17.5px; line-height: 1.5; color: var(--ink-2); padding-left: 24px; position: relative; text-wrap: pretty; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 2px; background: var(--accent); }
ul.plain li strong { color: var(--ink); font-weight: 600; }

.rule-h {
  font: 600 14px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
  margin: 0 0 18px;
}
.rule-h.acc { color: var(--accent-deep); border-color: var(--accent); }

.takeaway {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  font-size: 19px; line-height: 1.55;
  color: var(--accent-deep);
  text-wrap: pretty;
}

/* ---------- Стек ---------- */
.stack-row {
  display: grid;
  grid-template-columns: 220px 280px 1fr;
  gap: 24px; align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.stack-row:first-of-type { border-top: 1px solid var(--line); }
.stack-row .role { font: 600 13.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.stack-row .tech { font-size: 21px; font-weight: 600; }
.stack-row .why { font-size: 16.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 860px) {
  .stack-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Диаграммы ---------- */
.node {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center; flex: 1;
}
.node .t { font-size: 17.5px; font-weight: 600; display: block; }
.node .d { font: 500 13px/1.45 var(--mono); color: var(--ink-3); display: block; margin-top: 5px; }
.node.acc { background: var(--accent-tint); border-color: var(--accent-line); }
.node.acc .t { color: var(--accent-deep); }
.node.dark { background: var(--ink); border-color: var(--ink); }
.node.dark .t { color: #fff; }
.node.dark .d { color: #A6AAB5; }

.dgm-row { display: flex; gap: 16px; }
@media (max-width: 760px) { .dgm-row { flex-direction: column; } }

.lane { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 18px 20px; }
.lane-label {
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px;
}

/* пульс по вертикальной линии */
.vline { position: relative; width: 2px; height: 40px; background: var(--line-strong); margin: 0 auto; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .vline::after {
    content: ""; position: absolute; left: 50%; top: 0;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -4px);
    animation: pulse-down 2.4s ease-in-out infinite;
    animation-delay: var(--pd, 0s);
  }
}
@keyframes pulse-down {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  70% { top: calc(100% - 8px); opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

/* ---------- Очередь (waiting room) ---------- */
.queue-demo {
  position: relative;
  height: 64px; margin: 18px 0 6px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.gate {
  position: absolute; left: 58%; top: 8px; bottom: 8px; width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.gate::after {
  content: "очередь"; position: absolute; top: -2px; left: 10px;
  font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-deep);
}
.q-dot {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink-3); transform: translateY(-50%);
  left: -20px;
}
@media (prefers-reduced-motion: no-preference) {
  .q-dot { animation: q-move 7s linear infinite; animation-delay: var(--qd, 0s); }
}
@keyframes q-move {
  0% { left: -3%; background: var(--ink-3); }
  38% { left: 50%; background: var(--ink-3); }
  58% { left: 56%; background: var(--ink-3); }  /* притормозили у шлюза */
  62% { left: 60%; background: var(--accent); }
  100% { left: 103%; background: var(--accent); }
}

/* ---------- Платёжная цепочка ---------- */
.pay-flow { display: flex; gap: 0; align-items: stretch; }
.pay-flow .node { transition: border-color 0.4s, background 0.4s, box-shadow 0.4s; }
.pay-flow .node.lit { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 3px var(--accent-tint); }
.pay-flow .node.lit .t { color: var(--accent-deep); }
.flow-arrow { flex: 0 0 36px; height: 2px; background: var(--line-strong); position: relative; align-self: center; }
.flow-arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent; border-left: 7px solid var(--line-strong); border-right: 0;
}
@media (max-width: 860px) {
  .pay-flow { flex-direction: column; gap: 10px; }
  .flow-arrow { display: none; }
}

/* ---------- Бары нагрузки ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 18px; }
.bars i {
  flex: 1; background: var(--accent-line); border-radius: 4px 4px 0 0;
  height: calc(var(--h) * 1%);
}
.bars i.hot { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .rv-zone.on .bars i { animation: bar-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i) * 0.05s); }
}
@keyframes bar-up { from { height: 0; } }

/* ---------- Статы ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 48px; margin-bottom: 40px; }
.stat .v { font-size: 52px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 16px; color: var(--ink-2); margin-top: 6px; max-width: 280px; line-height: 1.45; }

/* ---------- Чипы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 500 14.5px/1 var(--mono);
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 10px 16px; white-space: nowrap;
}

/* ---------- Roadmap ---------- */
.rmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.rmap-line { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line-strong); }
.stage { position: relative; padding-top: 38px; }
.stage .dot {
  position: absolute; top: 0; left: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 5px solid var(--accent);
  display: block;
}
.stage.future .dot { border-color: var(--line-strong); }
.stage .s-no { font: 600 13px/1 var(--mono); letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin: 0 0 8px; }
.stage.future .s-no { color: var(--ink-3); }
.stage h3 { font-size: 21px; font-weight: 600; margin: 0 0 12px; }
@media (max-width: 980px) {
  .rmap { grid-template-columns: 1fr 1fr; }
  .rmap-line { display: none; }
}
@media (max-width: 600px) { .rmap { grid-template-columns: 1fr; } }

/* ---------- Live-статусы (мониторинг) ---------- */
.live-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
@media (max-width: 860px) { .live-strip { grid-template-columns: 1fr; } }
.live {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.live .s {
  display: flex; align-items: center; gap: 10px;
  font: 600 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.live .s i { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #1E8A5B; }
@media (prefers-reduced-motion: no-preference) {
  .live .s i { box-shadow: 0 0 0 0 rgba(30, 138, 91, 0.4); animation: pdot 2.4s ease-out infinite; }
}
.eq { display: flex; align-items: flex-end; gap: 3px; height: 30px; flex: 0 0 auto; }
.eq i { width: 5px; border-radius: 2px; background: var(--accent-line); height: 35%; }
.eq i:nth-child(2n) { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .eq i { animation: eq-b 1.1s ease-in-out infinite alternate; }
  .eq i:nth-child(1) { animation-delay: 0s; animation-duration: 0.9s; }
  .eq i:nth-child(2) { animation-delay: 0.15s; animation-duration: 1.2s; }
  .eq i:nth-child(3) { animation-delay: 0.3s; animation-duration: 0.8s; }
  .eq i:nth-child(4) { animation-delay: 0.1s; animation-duration: 1.3s; }
  .eq i:nth-child(5) { animation-delay: 0.4s; animation-duration: 1s; }
  .eq i:nth-child(6) { animation-delay: 0.25s; animation-duration: 1.15s; }
  .eq i:nth-child(7) { animation-delay: 0.05s; animation-duration: 0.95s; }
}
@keyframes eq-b { from { height: 20%; } to { height: 95%; } }

/* ---------- Финал ---------- */
.final {
  background: var(--ink);
  color: #fff;
  padding: 100px 0;
}
.final h2 {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.15;
  margin: 0 0 22px; max-width: 900px; text-wrap: balance;
}
.final p { font-size: 20px; line-height: 1.6; color: #B9BCC6; max-width: 820px; margin: 0 0 40px; text-wrap: pretty; }
.final .chips .chip { background: transparent; border-color: #3A3D47; color: #D8DAE1; }
.footer-meta {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid #33363F;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 15px; color: #8A8E99;
}

/* ---------- Слайд-режим: переключение экранов вместо прокрутки ---------- */
.slides {
  position: fixed; top: 0; left: 0; width: 100%;
  height: 100vh; height: 100dvh;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}
@media (prefers-reduced-motion: reduce) { .slides { transition: none; } }
.slides > .hero, .slides > .block, .slides > .final {
  height: 100vh; height: 100dvh;
  padding: 0;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; position: relative;
}
.slides > * > .wrap {
  width: 100%;
  max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 8px; padding-bottom: 8px;
}
.slides > * > .wrap::-webkit-scrollbar { display: none; }
.hero .ticker { position: absolute; left: 0; right: 0; bottom: 0; border-bottom: none; }
.sec-head { margin-bottom: 30px; }
.slide-no {
  position: fixed; left: 28px; bottom: 20px; z-index: 60;
  font: 600 13px/1 var(--mono); letter-spacing: 0.14em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
