/* ===== ГЛАВНАЯ СТРАНИЦА ===== */

.main-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* ===== ГЕРОЙ ===== */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: none;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: unset;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-content > p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hero:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hero-ghost:hover {
  background: var(--surface-2);
  border-color: var(--text-faint);
  color: var(--text);
}

.hero-stats {
  display: flex;
  gap: 28px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-illustration {
  height: auto;
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration svg {
  max-width: 100%;
  height: auto;
}

/* ===== НАПРАВЛЕНИЯ ===== */

.directions {
  background: var(--surface);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.directions h2 {
  font-size: 22px;
  margin-bottom: 24px;
  text-align: left;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.direction-card {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: all 0.15s ease;
  cursor: pointer;
  text-align: left;
}

.direction-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 17, 45, 0.06);
  border-color: var(--primary-soft-2);
}

.direction-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.direction-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.direction-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.direction-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.direction-link:hover { color: var(--primary-hover); }

/* ===== ПРЕИМУЩЕСТВА ===== */

.advantages {
  background: var(--surface);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.advantages h2 {
  font-size: 22px;
  margin-bottom: 24px;
  text-align: left;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}

.advantage-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.advantage-card h3 { font-size: 15px; margin-bottom: 6px; color: var(--text); }
.advantage-card p  { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* ===== КАТЕГОРИИ ===== */

.categories {
  background: var(--surface);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.categories h2 {
  font-size: 22px;
  margin-bottom: 24px;
  text-align: left;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-align: left;
  transition: all 0.15s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-soft-2);
  box-shadow: 0 4px 16px rgba(20, 17, 45, 0.05);
}

.category-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.category-card h3 { font-size: 15px; margin-bottom: 4px; color: var(--text); }
.category-card p  { color: var(--text-faint); font-size: 12px; }

/* ===== СТАТИСТИКА ===== */

.stats {
  background: var(--primary);
  border-radius: 24px;
  padding: 44px 40px;
  margin-bottom: 24px;
  color: white;
}

.stats h2 {
  font-size: 22px;
  margin-bottom: 36px;
  color: white;
  text-align: center;
}

.stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  background: none;
  border: none;
  padding: 0;
}

.stat-number {
  font-size: 34px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  display: block;
}

.stats .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  display: block;
}

/* ===== ПРИЗЫВ К ДЕЙСТВИЮ ===== */

.cta {
  background: var(--surface);
  border-radius: 24px;
  padding: 56px 40px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  text-align: center;
}

.cta h2 { font-size: 28px; margin-bottom: 12px; color: var(--text); }
.cta p  { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cta:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* ===== FOOTER ===== */

.footer {
  background: var(--primary);
  border-radius: 20px;
  padding: 22px 32px;
  margin-top: 0;
}

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

.footer-logo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255,255,255,0.95);
  padding: 7px 12px;
  border-radius: 10px;
  line-height: 1.3;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  transition: color 0.15s;
}

.footer-links a:hover { color: white; }

.footer-copy {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-content h1 { font-size: 32px; }
  .hero-illustration { min-height: 200px; }
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .main-content { padding: 12px 12px 60px; }
  .hero { padding: 24px; }
  .hero-content h1 { font-size: 26px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .directions { padding: 24px; }
  .directions-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 36px 24px; }
  .cta h2 { font-size: 22px; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
}