:root {
  --navy: #1e3a8a;
  --blue: #1d4ed8;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --ink: #1e293b;
  --muted: #475569;
  --faint: #94a3b8;
  --line: #d2dced;
  --bg: #e4ebf5;
  --card: #f2f6fc;
  --tint: #dde8fa;
  --on-navy: rgba(226, 234, 247, 0.85);
  --error: #b91c1c;
  --warning: #9a3412;
  --tg: #229ed9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
img, svg { display: block; }
h1, h2, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.accent { color: var(--amber); }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.h2.sm { font-size: clamp(30px, 4.2vw, 48px); }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13px; font-weight: 700; background: var(--tint); color: var(--navy); border-radius: 8px; padding: 7px 12px; }
.chip.dark { background: var(--ink); color: var(--amber); }

.btn { height: 52px; border-radius: 10px; display: inline-flex; align-items: center; gap: 10px; padding: 0 24px; font-size: 16px; font-weight: 700; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #fbbf24; color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(var(--ry, 28px)); transition: opacity 0.8s ease var(--d, 0ms), transform 0.9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-grow] { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.js [data-grow].in { transform: none; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); } 100% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); } }
@keyframes slidein { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes popin { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-grow] { opacity: 1; transform: none; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.topbar { position: relative; display: flex; align-items: center; gap: 12px; padding-top: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 18px; font-weight: 700; }
.brand:hover { color: #fff; }
.brand img { height: 36px; width: auto; }
.spacer { flex: 1; }
.nav { display: flex; gap: 22px; font-size: 14px; font-weight: 700; }
.nav a { color: var(--on-navy); }
.nav a:hover { color: #fff; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(0, 0, 0, 0.2); margin-left: 8px; }
.lang a { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--on-navy); padding: 5px 8px; border-radius: 6px; text-transform: uppercase; }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: rgba(255, 255, 255, 0.16); color: #fff; }
.login { font-size: 14px; font-weight: 700; color: var(--ink); background: var(--amber); border-radius: 8px; padding: 8px 14px; }
.login:hover { color: var(--ink); background: #fbbf24; }

.hero-body { position: relative; padding-top: 80px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 14px; border-radius: 999px; background: rgba(245, 158, 11, 0.14); color: var(--amber); font-size: 13px; font-weight: 700; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s infinite; flex-shrink: 0; }
.hero h1 { font-size: clamp(36px, 6.2vw, 76px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; max-width: 1000px; text-wrap: balance; }
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--on-navy); max-width: 720px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.hero-shot { position: relative; margin-top: 64px; }
.screen { border-radius: 14px 14px 0 0; overflow: hidden; aspect-ratio: 1440 / 900; box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18); border-bottom: 0; background: var(--bg); position: relative; }
.fit > .fit-inner { width: 1440px; transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.hero-phone { position: absolute; right: -8px; bottom: 40px; animation: floaty 6s ease-in-out infinite; }

.phone { width: 254px; height: 549px; border-radius: 38px; background: var(--ink); padding: 9px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); flex-shrink: 0; }
.phone-screen { width: 236px; height: 531px; border-radius: 30px; overflow: hidden; }
.phone-screen > div { width: 390px; height: 844px; transform: scale(0.6051); transform-origin: 0 0; }

/* Marquee */
.marquee { background: var(--ink); color: #c3cad8; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-row { display: flex; gap: 40px; padding-right: 40px; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.marquee-row i { font-style: normal; color: var(--amber); }

/* How */
.steps { margin-top: 56px; position: relative; }
.steps-line, .steps-progress { position: absolute; left: 0; top: 27px; height: 3px; border-radius: 2px; }
.steps-line { right: 0; background: var(--line); }
.steps-progress { background: var(--blue); transition: width 0.6s ease; width: 0; }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { cursor: pointer; display: flex; flex-direction: column; gap: 16px; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; }
.step-dot { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; transition: all 0.35s; background: var(--card); color: var(--faint); border: 3px solid var(--line); }
.step-card { border-radius: 14px; padding: 22px; min-height: 190px; transition: all 0.35s; background: var(--card); border: 1px solid var(--line); width: 100%; }
.step-role { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.step-title { font-size: 20px; font-weight: 700; margin-top: 8px; line-height: 1.2; }
.step-text { font-size: 14.5px; line-height: 1.5; margin-top: 8px; color: var(--muted); }
.step.done .step-dot { background: var(--blue); color: var(--card); border-color: var(--blue); }
.step.active .step-dot { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.step.active .step-card { background: var(--navy); border-color: var(--navy); }
.step.active .step-role { color: var(--amber); }
.step.active .step-title { color: var(--card); }
.step.active .step-text { color: var(--on-navy); }

/* Strengths */
.cards3 { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.feat { border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.feat-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.feat-text { font-size: 15.5px; line-height: 1.55; }
.feat.navy { background: var(--navy); color: #fff; }
.feat.navy .feat-text { color: var(--on-navy); }
.feat.plain { background: var(--bg); border: 1px solid var(--line); }
.feat.plain .feat-text { color: var(--muted); }
.feat.amber { background: var(--amber); }
.sync { background: rgba(0, 0, 0, 0.18); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; align-self: flex-start; animation: slidein 0.4s; }
.pill i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pill.ok { background: var(--tint); color: var(--navy); }
.pill.ok i { background: var(--blue); }
.pill.off { background: #fbe7dc; color: var(--warning); }
.pill.off i { background: #ea580c; }
.sync-caption { font-size: 13px; color: rgba(226, 234, 247, 0.75); }
.feed { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feed-row { border-top: 1px solid var(--bg); padding: 11px 14px; display: flex; gap: 10px; animation: popin 0.45s; }
.feed-row:first-child { border-top: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--navy); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feed-head { display: flex; align-items: baseline; gap: 6px; }
.feed-name { font-size: 13px; font-weight: 700; }
.feed-no { font-size: 12px; color: var(--blue); font-weight: 700; }
.feed-time { font-size: 11px; color: var(--muted); margin-left: auto; }
.feed-text { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Two-column sections */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.points { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.point { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.point-n { width: 26px; height: 26px; border-radius: 7px; background: var(--tint); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-weight: 700; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(30, 41, 59, 0.1); min-width: 0; }
.panel-head { padding: 16px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--bg); }
.panel-title { font-size: 15px; font-weight: 700; }
.panel-hint { font-size: 12px; color: var(--muted); margin-left: auto; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 62px); gap: 6px; padding: 13px 18px; align-items: center; }
.co-cols { padding: 10px 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); background: var(--bg); }
.co-cols > div:not(:first-child), .co-row > .num { text-align: right; }
.co-cols > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-row { cursor: pointer; border-top: 1px solid var(--bg); transition: background 0.3s; width: 100%; background: var(--card); border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; text-align: left; box-shadow: inset 3px 0 0 transparent; }
.co-row.active { background: var(--tint); box-shadow: inset 3px 0 0 var(--blue); }
.co-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.prefix { font-size: 11px; font-weight: 700; background: var(--navy); color: var(--amber); border-radius: 5px; padding: 3px 6px; flex-shrink: 0; }
.co-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-sub { font-size: 11.5px; color: var(--muted); }
.num { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.num.e { color: var(--error); }
.num.w { color: var(--warning); }
.num.b { color: var(--blue); }
.mods { padding: 14px 18px; border-top: 1px solid var(--bg); background: var(--bg); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mods-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.mod { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 11px; transition: all 0.3s; background: var(--line); color: var(--faint); }
.mod i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.mod.on { background: var(--navy); color: var(--card); }
.mod.on i { background: var(--amber); }

/* Materials */
.mat-ticket { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.mat-ticket-head { display: flex; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 700; }
.mat-ticket-head span:first-child { font-size: 13px; color: var(--blue); }
.mat-table { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 70px 60px; gap: 8px; padding: 11px 14px; font-size: 13.5px; }
.mat-cols { padding: 9px 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); background: var(--bg); }
.mat-row { border-top: 1px solid var(--bg); animation: popin 0.4s; }
.mat-row b, .mat-cols div:nth-child(2) { text-align: right; }
.mat-row span:last-child { color: var(--muted); }
.mat-add { border-top: 1px solid var(--bg); padding: 10px 14px; display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; font-weight: 700; }
.chart { background: var(--navy); color: #fff; border-radius: 16px; padding: 20px; }
.chart-head { display: flex; align-items: baseline; gap: 10px; }
.chart-head b { font-size: 15px; }
.chart-head span { font-size: 12px; color: rgba(226, 234, 247, 0.7); margin-left: auto; }
.bars { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.bar-track { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); }
.bar-fill { height: 100%; border-radius: 5px; background: var(--amber); }
.bar > span:last-child { text-align: right; }

/* Telegram */
.eyebrow.tg { display: flex; align-items: center; gap: 8px; color: var(--tg); }
.tg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 4px; }
.tg-card { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px; }
.tg-card b { font-size: 14.5px; display: block; }
.tg-card span { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; display: block; }
.chat { width: 100%; max-width: 400px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #dce7f2; box-shadow: 0 30px 70px rgba(30, 41, 59, 0.18); border: 1px solid #d0d8e4; }
.chat-head { background: var(--card); padding: 12px 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.chat-head b { font-size: 14.5px; display: block; }
.chat-head span { font-size: 12px; color: var(--tg); font-weight: 600; }
.chat-body { height: 470px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.msg { align-self: flex-start; max-width: 88%; background: var(--card); border-radius: 4px 14px 14px 14px; padding: 10px 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); animation: popin 0.45s; }
.msg-head { font-size: 12px; font-weight: 700; }
.msg-title { font-size: 13.5px; font-weight: 700; margin-top: 3px; }
.msg-text { font-size: 13px; line-height: 1.45; margin-top: 2px; }
.msg-time { font-size: 10.5px; color: var(--faint); text-align: right; margin-top: 4px; }
.msg-btns { display: flex; gap: 6px; margin-top: 6px; }
.msg-btns span { flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--tg); background: #eaf4fb; border-radius: 8px; padding: 8px 6px; }

/* Screens */
.browser { margin-top: 24px; border-radius: 16px; background: var(--ink); padding: 10px; box-shadow: 0 30px 80px rgba(26, 26, 26, 0.18); }
.browser-dots { display: flex; gap: 6px; padding: 4px 6px 10px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; }
.browser .screen { border-radius: 8px; border: 0; box-shadow: none; }

/* Phones */
.phones { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.phones .eyebrow { color: var(--amber); }
.phones .lead { color: var(--on-navy); max-width: 640px; }
.phone-fig { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 15px; font-weight: 700; }
.phone-fig .phone { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }

/* Catalog */
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 48px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.js .group.in { transition: opacity 0.8s ease var(--d, 0ms), transform 0.25s, box-shadow 0.25s; }
.group:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 41, 59, 0.12); }
.group-head { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.group-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--tint); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.group li { display: flex; gap: 9px; font-size: 14px; line-height: 1.45; }
.group li::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); flex-shrink: 0; margin-top: 7px; box-shadow: 0 0 0 1.5px var(--amber-dark); }

/* CTA */
.cta-wrap { padding: 0 32px 64px; }
.cta { max-width: 1200px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 24px; padding: 72px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; position: relative; overflow: hidden; }
.cta > *:not(.blob) { position: relative; }
.cta img { height: 72px; width: auto; }
.cta h2 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; max-width: 800px; text-wrap: balance; }
.cta p { font-size: 17px; line-height: 1.55; color: #c3cad8; max-width: 620px; }

.footer { padding: 0 32px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer .lang { background: var(--card); border: 1px solid var(--line); margin-left: 0; }
.footer .lang a { color: var(--muted); }
.footer .lang a[aria-current="true"] { background: var(--tint); color: var(--navy); }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-line, .steps-progress { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .topbar { padding-top: 16px; gap: 8px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { height: 30px; }
  .lang a { padding: 5px 6px; }
  .login { padding: 7px 10px; font-size: 13px; }
  .hero-body { padding-top: 48px; gap: 18px; }
  .hero-lead { font-size: 16px; }
  .btn { height: 48px; padding: 0 20px; font-size: 15px; }
  .hero-shot { margin-top: 40px; }
  .hero-phone { display: none; }
  .steps { margin-top: 36px; }
  .steps-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step { flex-direction: row; gap: 12px; }
  .step-dot { width: 40px; height: 40px; font-size: 16px; flex-shrink: 0; }
  .step-card { min-height: 0; padding: 16px; }
  .cards3 { margin-top: 36px; }
  .feat { min-height: 0; padding: 22px; }
  .feat-title { font-size: 22px; }
  .split { gap: 36px; }
  .co-grid { grid-template-columns: minmax(0, 1fr) repeat(4, 34px); padding: 12px; gap: 4px; }
  .co-cols { font-size: 9px; letter-spacing: 0; }
  .co-cols > div:not(:first-child) { text-overflow: clip; }
  .panel-head, .mods { padding: 12px; }
  .bar { grid-template-columns: 112px minmax(0, 1fr) 28px; font-size: 12px; }
  .chat-body { height: 420px; }
  .catalog { margin-top: 32px; }
  .cta-wrap { padding: 0 16px 48px; }
  .cta { padding: 48px 20px; border-radius: 18px; }
  .cta img { height: 56px; }
  .footer { padding: 0 16px 32px; }
}
