:root {
  --bg: #0b0e14;
  --panel: #12161f;
  --panel-2: #171c28;
  --border: #232838;
  --text: #eef1f6;
  --muted: #8b93a7;
  --lime: #d6ff3f;
  --lime-dim: #a8cc2f;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--lime);
  display: flex; align-items: center; justify-content: center; color: #0b0e14; font-weight: 800;
}
.site-nav { display: flex; gap: 30px; }
.site-nav a { color: var(--muted); font-size: 15px; transition: color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: #0b0e14; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 12px;
  letter-spacing: .06em; color: var(--lime); text-transform: uppercase; margin-bottom: 22px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.hero h1 { font-size: 52px; line-height: 1.08; margin: 0 0 20px; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .lime { color: var(--lime); }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 480px; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 40px; }
.stat-row { display: flex; gap: 40px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }

.mock-panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px;
}
.mock-panel .dots { display: flex; gap: 6px; margin-bottom: 16px; }
.mock-panel .dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mock-panel .dots span:nth-child(1) { background: #ff5f57; }
.mock-panel .dots span:nth-child(2) { background: #febc2e; }
.mock-panel .dots span:nth-child(3) { background: #28c840; }
.mock-panel .line { color: var(--muted); margin: 6px 0; }
.mock-panel .line .lime { color: var(--lime); }
.mock-panel .cursor { display: inline-block; width: 7px; height: 14px; background: var(--lime); vertical-align: middle; }

/* ---------- Hero visual: живая статистика вместо терминала ---------- */
.hero-visual { display: flex; flex-direction: column; gap: 16px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; text-align: center;
}
.stat-card .v { font-size: 22px; font-weight: 800; }
.stat-card .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hero-panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.panel-title { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.chart-panel .bars { display: flex; align-items: flex-end; gap: 5px; height: 90px; }
.chart-panel .bars span {
  flex: 1; background: var(--lime); border-radius: 3px 3px 0 0; height: var(--h);
  animation: bar-breathe 2.6s ease-in-out infinite; animation-delay: var(--d);
  transform-origin: bottom;
}
@keyframes bar-breathe {
  0%, 100% { transform: scaleY(1); opacity: .85; }
  50% { transform: scaleY(1.18); opacity: 1; }
}
.queue-panel { font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.queue-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); padding: 8px 0; border-top: 1px solid var(--border); }
.queue-row:first-of-type { border-top: none; padding-top: 0; }
.queue-row b { margin-left: auto; }
.queue-row b.lime { color: var(--lime); }
.queue-row.muted-row { color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.lime { background: var(--lime); }
.dot.soon { background: var(--muted); }

@media (max-width: 640px) {
  .hero-panels { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-tag {
  display: inline-block; padding: 5px 14px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; letter-spacing: .06em; color: var(--lime); text-transform: uppercase; margin-bottom: 16px;
}
.section-title { font-size: 34px; font-weight: 800; text-align: center; margin: 0 0 12px; letter-spacing: -0.3px; }
.section-sub { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 44px; }
.section-head { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.card.soon { opacity: .55; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); margin-bottom: 18px; font-size: 20px;
}
.card h3 { font-size: 20px; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.card ul li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.card ul li .check { color: var(--lime); }
.pill-soon {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: var(--panel-2); color: var(--muted); margin-left: 8px; vertical-align: middle;
}

.feat-card .icon { background: var(--panel-2); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 13px; margin-top: 24px; }

/* ---------- Inner pages (about/contacts/offer/privacy) ---------- */
.page-hero { padding: 50px 0 10px; }
.page-hero h1 { font-size: 40px; margin: 0 0 8px; font-weight: 800; }
.page-hero .rule { width: 56px; height: 3px; background: var(--lime); border: none; margin: 18px 0; }
.page-hero p.lead { color: var(--muted); max-width: 680px; font-size: 16px; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 30px; }
.contact-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row .icon-box {
  width: 38px; height: 38px; border-radius: 9px; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px;
}
.contact-row .label { color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.contact-row .value { font-size: 15px; font-weight: 600; }
.contact-side .card { margin-bottom: 20px; }

.legal p { color: var(--muted); font-size: 15px; }
.legal h2 { font-size: 20px; margin-top: 34px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero h1 { font-size: 36px; }
}

/* появление блоков при скролле */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Auth modal (вход/регистрация поверх сайта) ---------- */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(6,8,12,.88); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 24px;
  overflow-y: auto;
}
.auth-overlay.open { display: flex; }
.auth-decor { position: fixed; width: 320px; height: 320px; border-radius: 50%; border: 1px solid var(--lime); opacity: .3; pointer-events: none; }
.auth-decor.tl { top: -110px; left: -110px; }
.auth-decor.br { bottom: -130px; right: -90px; }
.auth-card {
  position: relative; width: 100%; max-width: 440px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 18px; padding: 40px 34px; text-align: center;
}
.auth-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1;
}
.auth-close:hover { color: var(--text); }
.auth-card h2 { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.auth-card .auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.auth-fields { text-align: left; }
.auth-fields label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.auth-fields input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; font-family: inherit;
}
.auth-tg-slot { display: flex; justify-content: center; margin: 10px 0 4px; min-height: 44px; }
.auth-switch-link { display: block; margin-top: 20px; font-size: 13px; color: var(--muted); background: none; border: none; cursor: pointer; width: 100%; }
.auth-switch-link b { color: var(--lime); font-weight: 600; }
.auth-switch-link:hover b { text-decoration: underline; }
.auth-msg { font-size: 13px; margin-top: 16px; min-height: 16px; }
.auth-msg.error { color: #ff6b6b; }
.auth-msg.pending { color: var(--lime); }
.auth-admin-link { display: block; margin-top: 18px; font-size: 12px; color: var(--muted); background: none; border: none; cursor: pointer; }
.auth-admin-link:hover { color: var(--text); }
.auth-admin-form { display: none; text-align: left; margin-top: 14px; }
.auth-admin-form.open { display: block; }
.auth-admin-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.auth-admin-form input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; font-family: inherit;
}
.auth-screen { display: none; }
.auth-screen.active { display: block; }
