:root {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-light: #fb923c;
  --border: #334155;
  --card: #1e293b;
  --gradient: linear-gradient(135deg, #f97316, #fb923c);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.2);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

html, body { 
  height: 100%; 
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  padding: 0 1rem;
  flex: 1;
}

/* Sidebar Layout */
.site-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.logo img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.mobile-header .logo {
  margin-bottom: 0;
}

.mobile-header .logo-text {
  font-size: 1.25rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent);
}

.sidebar-nav a svg {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.contact-btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.contact-btn-sidebar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.contact-btn-sidebar svg {
  width: 20px;
  height: 20px;
}

/* Main Content */
.main-content {
  grid-column: 2;
  padding-bottom: 4rem;
  width: 100%;
}

.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  min-height: 70px;
}

.menu-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.15), transparent 70%);
  z-index: -1;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: rgba(249, 115, 22, 0.1);
  transform: translateY(-3px);
}

.client-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 2rem;
  color: var(--accent);
  font-weight: 600;
}

/* Stats Card */
.stats-section {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stats-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.stats-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stats-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stats-chart {
  height: 120px;
  background: var(--bg);
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stats-chart::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.chart-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to top, rgba(249, 115, 22, 0.2) 0%, transparent 80%),
    linear-gradient(to right, 
      transparent 0%,
      rgba(249, 115, 22, 0.3) 20%,
      rgba(249, 115, 22, 0.1) 40%,
      rgba(249, 115, 22, 0.4) 60%,
      rgba(249, 115, 22, 0.2) 80%,
      rgba(249, 115, 22, 0.5) 100%);
}

.chart-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 65%, rgba(249, 115, 22, 0.5) 0%, rgba(249, 115, 22, 0) 5%),
    radial-gradient(circle at 40% 40%, rgba(249, 115, 22, 0.4) 0%, rgba(249, 115, 22, 0) 5%),
    radial-gradient(circle at 60% 60%, rgba(249, 115, 22, 0.5) 0%, rgba(249, 115, 22, 0) 5%),
    radial-gradient(circle at 80% 30%, rgba(249, 115, 22, 0.6) 0%, rgba(249, 115, 22, 0) 5%);
}

.stats-footer {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
}

.cta-card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.2), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(249, 115, 22, 0.1), transparent 50%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-text {
  flex: 1;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-description {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  width: 32px;
  height: 32px;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Telegram Button */
.telegram-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 100;
  transition: transform 0.3s ease;
}

.telegram-btn:hover {
  transform: translateY(-5px) scale(1.05);
}

.telegram-btn img {
  width: 40px;
  height: 40px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .site-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
    max-width: 280px;
  }
  
  .sidebar.active {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }
  
  .mobile-header {
    display: flex;
  }
  
  .main-content {
    grid-column: 1;
    padding-top: 0;
  }
  
  .hero {
    padding: 3rem 0 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .telegram-btn {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .telegram-btn img {
    width: 30px;
    height: 30px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .mobile-header {
    padding: 0.75rem 1rem;
    min-height: 60px;
  }
  
  .mobile-header .logo-text {
    font-size: 1.125rem;
  }
  
  .mobile-header .logo img {
    width: 32px;
    height: 32px;
  }
}