/* ==========================================================================
   🎨 КОРПОРАТИВНЫЕ ПЕРЕМЕННЫЕ (СВЕТЛАЯ ТЕМА)
   ========================================================================== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --brand-primary: #1e40af; /* Глубокий корпоративный синий */
  --brand-accent: #428bca;  /* Яркий акцентный синий */
  --brand-success: #16a34a; /* Индикатор надежности / галочки */
  
  --border-color: #e2e8f0;
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   🛠️ БАЗОВЫЕ СТИЛИ
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ==========================================================================
   🏗️ ШАПКА САЙТА (Top Sidebar)
   ========================================================================== */
.topsidebar {
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.topsidegrid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrapper .logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon-box {
  background-color: var(--bg-tertiary);
  color: var(--brand-primary);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

.user-section .nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link--secondary {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-link--secondary:hover {
  color: var(--text-main);
}

.nav-button-cta {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.nav-button-cta:hover {
  background-color: var(--border-color);
}

/* ==========================================================================
   🚀 ГЛАВНЫЙ ЭКРАН (Hero Section)
   ========================================================================== */
.landing-hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.landing-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Мягкая светлая сетка на фоне */
.landing-hero__grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px), 
                    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
}

/* Едва заметный световой блик для глубины */
.landing-hero__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, rgba(255,255,255,0) 70%);
}

.landing-hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.landing-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.landing-hero__badge-icon {
  display: flex;
  color: var(--brand-accent);
}

.landing-hero__title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 20px;
}

.landing-hero__title-accent {
  color: var(--brand-accent);
}

.landing-hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  font-weight: 400;
}

/* Главная конверсионная кнопка */
.landing-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--brand-accent);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.landing-hero__cta:hover {
  background-color: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
  transform: translateY(-1px);
}

.landing-hero__cta-icon {
  transition: transform 0.2s ease;
}

.landing-hero__cta:hover .landing-hero__cta-icon {
  transform: translateX(4px);
}

/* Блок доверия */
.landing-hero__trust-proof {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}

.trust-stars {
  color: #eab308; /* Благородный золотой */
  font-weight: bold;
}

.trust-text {
  color: var(--text-light);
  font-weight: 500;
}

/* ==========================================================================
   🎯 КЕЙСЫ ИСПОЛЬЗОВАНИЯ (Use Cases)
   ========================================================================== */
.landing-use-cases {
  padding: 60px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.landing-section__title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.landing-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.landing-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.landing-card:hover {
  border-color: var(--brand-accent);
}

.landing-card__icon-box {
  color: var(--brand-accent);
  background-color: var(--bg-secondary);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.landing-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.landing-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   💎 ПРЕИМУЩЕСТВА И СТРОГИЙ ФИНАЛЬНЫЙ CTA
   ========================================================================== */
.landing-features {
  padding: 80px 0;
}

.features-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto 60px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-item__check {
  color: var(--brand-success);
  background-color: rgba(22, 163, 74, 0.1);
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Финальная карточка конверсии */
.landing-bottom-cta {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  border-radius: 16px;
  text-align: center;
}

.landing-bottom-cta h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.landing-hero__note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
  font-weight: 500;
}

/* ==========================================================================
   📱 АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
   ========================================================================== */
@media (max-width: 768px) {
  .landing-hero__title {
    font-size: 32px;
  }
  .landing-hero__subtitle {
    font-size: 16px;
  }
  .topsidegrid {
    padding: 10px 16px;
  }
  .nav-link--secondary {
    display: none; /* Прячем второстепенные элементы на мобильных */
  }
}
