:root {
  --bg: #ffffff;
  --panel: #f8fafc;
  --panel-2: #f1f5f9;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #7c3aed;
  --primary-600: #6d28d9;
  --primary-700: #5b21b6;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: none;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 500;
  transition: all .2s ease;
  box-shadow: 0 2px 10px var(--shadow);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--shadow); }
.btn-primary {
  background: var(--primary);
  color: white;
  font-weight: 600;
}
.btn-primary:hover { background: var(--primary-700); }
.btn-ghost { background: transparent; box-shadow: none; border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1.05rem; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
}
.header-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.25rem; }
.brand img { filter: none; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--text); font-weight: 500; position: relative; }
.site-nav a:not(.btn)::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width .3s ease; }
.site-nav a:not(.btn):hover::after { width: 100%; }
.site-nav .btn-primary { color: white; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; border-radius: 2px; transition: transform .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { padding: 80px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.03));
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.05), rgba(124, 58, 237, 0.02));
  z-index: -1;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-copy h1 { font-size: 48px; line-height: 1.2; margin: 0 0 20px; font-weight: 700; }
.hero-copy p { color: var(--muted); margin: 0 0 24px; font-size: 1.15rem; }
.hero-cta { display: flex; gap: 16px; margin-top: 16px; }
.logos { margin-top: 32px; color: var(--muted); font-size: 14px; }

.hero-visual { display: flex; justify-content: center; }
.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.kpi-title { color: var(--muted); font-size: 14px; font-weight: 500; }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.sparkline { 
  height: 80px; 
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.03)); 
  border-radius: 12px; 
  position: relative; 
  overflow: hidden; 
}
.sparkline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(124, 58, 237, 0.2);
}
.sparkline::after { 
  content: ""; 
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.3) 0%, transparent 10px),
    radial-gradient(circle at 50% 30%, rgba(124, 58, 237, 0.2) 0%, transparent 20px),
    radial-gradient(circle at 80% 60%, rgba(124, 58, 237, 0.3) 0%, transparent 15px);
}

.features { padding: 80px 0 40px; }
.section-title { 
  font-size: 32px; 
  margin: 0 0 40px; 
  text-align: center;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards .card { 
  padding: 24px; 
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.cards .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: height .3s ease;
}
.cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.cards .card:hover::before {
  height: 100%;
}
.feature h3 { margin: 0 0 12px; font-size: 20px; }
.muted { color: var(--muted); font-size: 15px; }

.cta { padding: 60px 0 80px; }
.cta-container { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 24px; 
  background: linear-gradient(135deg, var(--primary-600), var(--primary)); 
  padding: 40px; 
  border-radius: 20px; 
  color: white;
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}
.cta-container h2 { margin: 0 0 8px; }
.cta-container .muted { color: rgba(255, 255, 255, 0.8); }
.cta-container .btn-primary { 
  background: white; 
  color: var(--primary-700);
}
.cta-container .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.site-footer { 
  border-top: 1px solid var(--border); 
  padding: 40px 0; 
  background: var(--panel);
}
.footer-container { 
  display: grid; 
  grid-template-columns: 1fr auto auto; 
  align-items: center; 
  gap: 24px; 
}
.brand-line { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 600; 
  color: var(--text);
}
.footer-nav { 
  display: inline-flex; 
  gap: 20px; 
}
.footer-nav a { 
  color: var(--muted);
  transition: color .2s ease;
}
.footer-nav a:hover { 
  color: var(--primary);
}
.copyright {
  color: var(--muted);
}

@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-copy h1 { font-size: 36px; }
}

@media (max-width: 720px) {
  .site-nav { 
    display: none; 
    position: absolute; 
    top: 72px; 
    right: 12px; 
    left: 12px; 
    background: white; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 16px; 
    flex-direction: column;
    box-shadow: 0 10px 30px var(--shadow);
  }
  .site-nav a { padding: 10px 6px; }
  .nav-toggle { display: inline-flex; }
  .footer-container { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cta-container { flex-direction: column; align-items: flex-start; }
  .grid-3 { grid-template-columns: 1fr; }
}

.fab-telegram { 
  position: fixed; 
  right: 24px; 
  bottom: 24px; 
  width: 60px; 
  height: 60px; 
  border-radius: 50%; 
  background: var(--primary); 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3); 
  z-index: 40;
  transition: transform .3s ease, box-shadow .3s ease;
}
.fab-telegram img { width: 28px; height: 28px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.fab-telegram:hover { 
  transform: translateY(-5px) scale(1.05); 
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
}
@media (max-width: 720px) { 
  .fab-telegram { 
    right: 16px; 
    bottom: 16px; 
    width: 54px; 
    height: 54px; 
  } 
}


