/* Сброс */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #1a1e30;
  color: #c3c6cb;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* Content */
.content { padding: 40px; }

/* Hero */
.hero {
  text-align: center; /* центрируем весь блок */
}
.hero h1 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center; /* центрируем заголовок */
  margin-top: 40px;   /* отступ сверху, чтобы не перекрывал бургер */
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto; /* центрируем форму */
}
.search-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #22263d;
  color: #c3c6cb;
}
.search-form input::placeholder { color: #727c95; }
.search-form input:focus {
  outline: none;
  background: #2a2f4a;
  box-shadow: 0 0 8px rgba(21,62,255,0.6);
}

.btn-primary {
  padding: 12px 20px;
  background: linear-gradient(135deg, #153eff, #2a4fff);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  background: #1c46ff;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(21,62,255,0.7);
}
.btn-primary:active { transform: scale(0.95); }

/* Sections */
.section { margin-top: 40px; }
.section h2 { margin-bottom: 20px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: #22263d;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(21,62,255,0.3);
  transition: background 0.3s, transform 0.2s;
}
.card:hover { background: #2a2f4a; transform: translateY(-3px); }
.card-title { color: #c3c6cb; font-weight: bold; margin-bottom: 8px; }
.card-meta { color: #727c95; font-size: 14px; }

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}
.stat {
  background: #2a2f4a;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: background 0.3s, transform 0.2s;
}
.stat:hover { background: #333a5c; transform: scale(1.05); }
.stat-num { font-size: 22px; color: #153eff; font-weight: bold; }
.stat-label { color: #727c95; font-size: 14px; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.feature {
  background: #22263d;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  transition: background 0.3s, transform 0.2s;
}
.feature:hover { background: #2a2f4a; transform: translateY(-3px); }

/* FAQ */
.faq-intro { margin-bottom: 15px; color: #727c95; }
.faq-list details {
  background: #22263d;
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
}
.faq-list summary {
  font-weight: bold;
  color: #c3c6cb;
}
.faq-list p { margin-top: 8px; color: #c3c6cb; }

/* Адаптивность контента */
@media (max-width: 900px) {
  .layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 700px) {
  .layout { grid-template-columns: 1fr; }
  .content { padding: 20px; }

  /* Статистика в одну колонку на телефоне */
  .stat-grid {
    grid-template-columns: 1fr;
  }
}
