/* Firewire Analytics CSS - Design System (Synced with App Colors & Premium SaaS Best Practices) */

:root {
  /* Dark Mode Variables (Default - Synced with design.css [data-theme="dark"]) */
  --bg: #0b121a;
  --bg-gradient: linear-gradient(180deg, #0b121a 0%, #080e15 100%);
  --surface: #151f2b;
  --surface-hover: #1b2734;
  --surface-2: #111a24;
  --border: #26313f;
  --border-hover: #2d3947;
  --border-focus: #3cae70;
  
  --text-primary: #e6ecf3; /* Platinum Ink */
  --text-secondary: #aab5c3; /* Steel Ink */
  --text-muted: #78859a; /* Muted Lead */
  
  --accent: #3cae70; /* Emerald green brand color */
  --accent-hover: #5ccb95;
  --accent-text: #0b121a;
  --accent-soft: rgba(60, 174, 112, 0.15);
  
  --pos: #4ec988;
  --neg: #f0706b;
  
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.55);
  --glass-bg: rgba(21, 31, 43, 0.8);
  --glass-backdrop: blur(16px);
  --mono: "JetBrains Mono", monospace;
}

body.light-theme {
  /* Light Mode Variables (Synced with design.css :root) */
  --bg: #eceef2;
  --bg-gradient: linear-gradient(180deg, #eceef2 0%, #eef0f3 100%);
  --surface: #ffffff;
  --surface-hover: #f7f8fa;
  --surface-2: #eef0f3;
  --border: #e6e8ee;
  --border-hover: #dfe2e9;
  --border-focus: #2fa968;
  
  --text-primary: #1a2230; /* Dark Ink */
  --text-secondary: #5b647a;
  --text-muted: #8b95a9;
  
  --accent: #2fa968; /* Light theme green accent */
  --accent-hover: #13834b;
  --accent-text: #ffffff;
  --accent-soft: #e9f8f0;
  
  --pos: #0e9c4c;
  --neg: #e0443f;
  
  --shadow: 0 10px 30px -10px rgba(16, 24, 40, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-backdrop: blur(16px);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--accent);
}

.mono-font, .price-val, .fire-result-value, .comparison-text-cell {
  font-family: var(--mono);
  font-weight: 500;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all 0.25s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-link img {
  width: 140px;
  height: 35px;
  object-fit: contain;
}

.logo-light-img {
  display: none !important;
}

body.light-theme .logo-dark-img {
  display: none !important;
}

body.light-theme .logo-light-img {
  display: block !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-divider {
  width: 1px;
  height: 14px;
  background-color: var(--border);
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.system-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
}

.lang-switcher span.active-lang {
  color: var(--text-primary);
  cursor: default;
}

.lang-switcher span.lang-divider-slash {
  color: var(--border);
  cursor: default;
}

.lang-switcher a.lang-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.lang-switcher a.lang-link:hover {
  color: var(--text-primary);
}

.btn-login {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-login:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

/* Адаптивность для средних десктопов */
@media (max-width: 1200px) and (min-width: 992px) {
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 12.8px;
  }
  .header-actions {
    gap: 12px;
  }
  .system-controls {
    gap: 10px;
  }
  .lang-switcher {
    font-size: 12px;
  }
  .btn-login {
    font-size: 12.8px;
    padding: 6px 10px;
  }
  .btn {
    padding: 8px 16px;
    font-size: 12.8px;
  }
}

/* Status Dot in Header */
.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pos);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--pos);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(60, 174, 112, 0.25);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

body.light-theme .theme-toggle .moon-icon { display: block; }
body.light-theme .theme-toggle .sun-icon { display: none; }
body:not(.light-theme) .theme-toggle .moon-icon { display: none; }
body:not(.light-theme) .theme-toggle .sun-icon { display: block; }

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
}

.premium-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

/* yoolip.ai style tabs */
.hero-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 32px;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-tab:hover {
  color: var(--text-primary);
}

.hero-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Demonstration Canvas */
.demo-canvas {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow);
  max-width: 100%;
  margin: 0 auto;
}

.demo-screen {
  background: var(--bg);
  border-radius: 12px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.tab-content {
  display: none;
  width: 100%;
  height: 100%;
}

.tab-content.active {
  display: block;
}

.tab-content svg {
  width: 100%;
  height: 100%;
}

/* Sections Base with more air */
section {
  padding: 130px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

body {
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 600px;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.06) 0%, rgba(59, 130, 246, 0.03) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

body.light-theme::before {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.04) 0%, rgba(59, 130, 246, 0.02) 50%, transparent 80%);
}

/* Subtle background glows (SaaS best practices) */
.glow-bg {
  position: relative;
  overflow: hidden;
}

.glow-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.06) 0%, rgba(59, 130, 246, 0.03) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

body.light-theme .glow-bg::before {
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.04) 0%, rgba(59, 130, 246, 0.02) 45%, transparent 75%);
}

/* Stats Grid Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 24px;
  border-radius: 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: var(--mono);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* How It Works (Steps) Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  margin-top: 30px;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  background: transparent;
  text-align: center;
}

.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--mono);
  margin: 0 auto 24px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow);
}

.step-item:hover .step-number {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent);
  transform: translateY(-2px) scale(1.05);
}

.step-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Target Audience Segmented Cards */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 30px;
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.audience-card:hover {
  border-color: var(--border-hover);
}

.audience-card h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audience-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.audience-list li svg {
  color: var(--accent);
  flex: none;
  margin-top: 4px;
}

/* Bento Grid System (yoolip style features) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 24px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bento-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.bento-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item-medium {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-item-wide {
  grid-column: span 3;
  grid-row: span 1;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bento-item-wide .bento-icon {
  margin-bottom: 0;
  flex: none;
}

.bento-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.bento-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bloomberg / design.css Terminal Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

@media (min-width: 992px) {
  .comparison-table-wrapper {
    overflow: visible;
  }
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 800px;
}

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.comparison-table th {
  background: var(--surface-hover);
  font-weight: 650;
  color: var(--text-primary);
  font-size: 12px;
  letter-spacing: normal;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 30%;
}

.comparison-table tr:hover {
  background: var(--surface-hover);
}

.comparison-highlight {
  background: rgba(16, 185, 129, 0.02) !important;
  border-left: 1px solid rgba(16, 185, 129, 0.08) !important;
  border-right: 1px solid rgba(16, 185, 129, 0.08) !important;
}

/* Make highlighted column cells keep background on hover */
.comparison-table tr:hover .comparison-highlight {
  background: rgba(16, 185, 129, 0.04) !important;
}

.comparison-text-cell {
  text-align: center;
  font-size: 12.5px;
}

.comparison-table td svg {
  display: block;
  margin: 0 auto;
}

.comparison-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 26px 30px;
  font-size: 14.5px;
  max-width: 100%;
  margin: 40px auto 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.comparison-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

.comparison-summary h4 {
  font-size: 16.5px;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-summary p {
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Professional Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-quote {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* Professional Mixer FIRE Widget */
.fire-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px;
  box-shadow: var(--shadow);
}

.widget-currency-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.widget-currency-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.widget-currency-tab:hover {
  color: var(--text-primary);
}

.widget-currency-tab.active {
  color: var(--accent);
}

.widget-currency-tab.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.fire-slider-group {
  margin-bottom: 30px;
}

.fire-slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.fire-slider-val {
  font-weight: 700;
  color: var(--text-primary);
}

/* Custom Sliders (Mixer Style) */
.fire-slider-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  outline: none;
}

.fire-slider-group input[type="range"]::-webkit-slider-runnable-track {
  background: var(--border);
  height: 4px;
  border-radius: 2px;
}

.fire-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--accent);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: -6px;
  cursor: pointer;
  transition: transform 0.1s;
}

.fire-slider-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.fire-results {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.fire-result-card {
  padding: 16px 20px;
  background: var(--surface-hover);
  border-radius: 8px;
  border-left: 3px solid var(--border);
}

.fire-result-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.fire-result-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--pos);
}

.fire-result-value.accent {
  color: var(--accent);
}

/* Pricing Section & Strict Tariff Cards */
.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.pricing-toggle-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.pricing-toggle-label.active {
  color: var(--text-primary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border);
  transition: .25s;
  border-radius: 10px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .25s;
  border-radius: 50%;
}

input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--bg);
}

.pricing-discount-badge {
  font-size: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s;
}

.price-card.featured {
  border-color: var(--accent);
}

.price-card.featured::after {
  content: 'Популярный';
  position: absolute;
  top: 0;
  right: 24px;
  transform: translateY(-50%);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.price-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.price-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  min-height: 42px;
}

.price-amount-box {
  margin-bottom: 36px;
  display: flex;
  align-items: baseline;
}

.price-val {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
}

.price-features {
  list-style: none;
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.price-features li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.price-features li svg {
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}

.price-card .btn {
  width: 100%;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 28px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: var(--surface-hover);
}

.faq-question svg {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 20px 28px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer-inner {
  border-top-color: var(--border);
}

/* Legal Documents & Layout */
.doc-page {
  padding: 140px 0 90px;
  max-width: 760px;
  margin: 0 auto;
}

.doc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 32px;
}

.doc-back-link:hover {
  text-decoration: underline;
}

.doc-content h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.doc-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.doc-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.019em;
}

.doc-content p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
}

.doc-content ul {
  list-style: square;
  margin-left: 24px;
  margin-bottom: 18px;
}

.doc-content li {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Changelog Styles */
.changelog-timeline {
  max-width: 760px;
  margin: 50px auto 0;
  position: relative;
  padding-left: 36px;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 1px;
  background: var(--border);
}

.changelog-entry {
  position: relative;
  margin-bottom: 56px;
}

.changelog-dot {
  position: absolute;
  left: -35px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.changelog-version-box {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.changelog-version {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--mono);
}

.changelog-date {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.changelog-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.changelog-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 20px 0 10px;
}

.changelog-section-title:first-child {
  margin-top: 0;
}

.changelog-list {
  list-style: none;
  padding-left: 0;
}

.changelog-list li {
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.changelog-list li::before {
  content: '→';
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 70px 0 50px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-social-block {
  margin-top: 24px;
}

.footer-social-block h4 {
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-links-inline {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links-inline a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.social-links-inline a:hover {
  color: var(--text-primary);
}

.social-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.social-links-inline a:hover .social-icon {
  color: var(--accent);
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.disclaimer {
  max-width: 900px;
  line-height: 1.6;
  margin-top: 24px;
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 38px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item-large, .bento-item-medium, .bento-item-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-item-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .bento-item-wide .bento-icon {
    margin-bottom: 16px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .steps-grid::before {
    display: none;
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 30px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fire-results {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.lang-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.lang-link:hover {
  color: var(--accent) !important;
}

/* Стилизованные CSS-тултипы для сравнения */
.tooltip-trigger {
  position: relative;
  cursor: help;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: fit-content;
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 500;
  text-align: center;
  white-space: normal;
  width: 220px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  line-height: 1.45;
}

.tooltip-trigger::before {
  content: '';
  position: absolute;
  bottom: 121%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  border-width: 7px;
  border-style: solid;
  border-color: var(--border) transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
}

.tooltip-trigger:hover::after,
.tooltip-trigger:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 30px);
  width: calc(100% - 40px);
  max-width: 960px;
  background: rgba(17, 21, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cookie-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-family: 'Inter', -apple-system, sans-serif;
  text-align: left;
}

.cookie-text a, .cookie-text span.toggle-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--accent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cookie-text a:hover, .cookie-text span.toggle-link:hover {
  color: var(--accent-hover, #a6e3a1);
  border-bottom-style: solid;
}

.cookie-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cookie-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', -apple-system, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.cookie-btn:hover {
  background: var(--accent-hover, #a6e3a1);
}

.cookie-btn:active {
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    bottom: 16px;
  }
  
  .cookie-actions {
    justify-content: flex-end;
  }
  
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

