/* ═══════════════════════════════════════════════════════════════
   FixIntel — Общие стили для всех страниц
   Этот файл подключается на КАЖДОЙ странице сайта
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS-ПЕРЕМЕННЫЕ (цвета, шрифты, размеры) ───
   Меняй здесь цвета — они применятся ко всему сайту */
:root {
  --bg-primary: #08080C;
  --bg-secondary: #0E1018;
  --bg-card: #131520;
  --bg-elevated: #1A1D2A;
  --accent-primary: #00D4FF;
  --accent-secondary: #FFB800;
  --accent-gradient-start: #00D4FF;
  --accent-gradient-end: #7B61FF;
  --text-primary: #F0F0F5;
  --text-secondary: #8B8FA3;
  --text-muted: #5A5E72;
  --border-subtle: #1E2030;
  --border-hover: #2A2D40;
  --glass-bg: rgba(19, 21, 32, 0.6);
  --glass-border: rgba(0, 212, 255, 0.08);
  --glass-border-hover: rgba(0, 212, 255, 0.2);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ─── БАЗОВЫЕ СТИЛИ ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ─── ШАПКА (Navigation) — подключается на каждой странице ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Логотип */
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Десктопные ссылки */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent-primary); }

/* Кнопка CTA */
.nav-cta {
  background: var(--accent-primary);
  color: #08080C;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-cta:hover { box-shadow: var(--shadow-glow); }

/* Мобильное меню */
.mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}

/* ─── TYPOGRAPHY (типографика) ─── */
.font-display {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.font-h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.font-h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.font-h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.font-body-lg {
  font-size: 18px;
  line-height: 1.6;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label span { color: var(--accent-primary); }

/* Градиентный текст */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── КНОПКИ ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  color: var(--bg-primary);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

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

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.08);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.btn-max {
  background: linear-gradient(135deg, #7B61FF, #A855F7);
  color: #fff;
  box-shadow: 0 0 30px rgba(123, 97, 255, 0.2);
}

.btn-max:hover {
  box-shadow: 0 0 40px rgba(123, 97, 255, 0.4);
  transform: scale(1.02);
}

/* ─── КАРТОЧКИ (стеклянные) ─── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  padding: 32px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.1);
}

/* ─── ОКВЭД-ТЕГИ ─── */
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 12px;
}

.tag-primary { background: rgba(0, 212, 255, 0.1); color: var(--accent-primary); }
.tag-secondary { background: rgba(255, 184, 0, 0.1); color: var(--accent-secondary); }
.tag-default { background: rgba(90, 94, 114, 0.15); color: var(--text-muted); }

/* ─── ИКОНКИ-ОБЁРТКИ ─── */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-box svg { color: var(--accent-primary); }

/* ─── СЕТКИ ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

/* ─── ОТСТУПЫ СЕКЦИЙ ─── */
.section {
  padding: 96px 24px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ─── АНИМАЦИИ ПОЯВЛЕНИЯ ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ─── ПОДВАЛ (Footer) ─── */
.footer {
  background: #06060A;
  padding: 64px 24px 32px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
}

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

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── АДАПТИВНОСТЬ (мобильные) ─── */
@media (max-width: 768px) {
  .font-display { font-size: 36px; }
  .font-h1 { font-size: 28px; }
  .font-h2 { font-size: 22px; }
  
  .nav-links { display: none; }        /* Скрыть десктопные ссылки */
  .mobile-btn { display: block; }      /* Показать кнопку ☰ */
  .nav-cta { display: none; }          /* Скрыть кнопку CTA */
  
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; } /* Одна колонка */
  
  .flex-center { gap: 24px; }
  .section { padding: 64px 24px; }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Показать десктоп на больших экранах */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ─── ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ ─── */
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.pt-nav { padding-top: 72px; } /* Отступ для фиксированной шапки */
