/* ═══════════════════════════════════════════════════════════════
   styles.css — оригинальный дизайн brilia (не клон brila.ai)
   Светлая современная тема, индиго-акцент, без "фирменных" фишек
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Фоны */
  --bg-primary: #f6f8fc;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.85);

  /* Акценты */
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;

  /* Текст */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  /* Кнопки */
  --btn-dark-bg: #0f172a;

  /* Тени */
  --shadow-card: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.08);
  --shadow-nav: 0 1px 0 rgba(15,23,42,0.06);

  /* Радиусы */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Шрифты */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

  /* Размеры */
  --max-w: 1140px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
input { font-family: inherit; }

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--shadow-nav);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  font-size: 14px;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--text-secondary); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--accent); }
.nav-signin {
  background: var(--btn-dark-bg);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  transition: background 0.15s;
}
.nav-signin:hover { background: var(--accent); }

/* ─── HERO ─── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 0;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 760px;
  margin: 0 auto 20px;
  color: var(--text-primary);
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-subtitle a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-input {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 16px;
  background: var(--bg-card);
  padding: 8px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}
.input-field {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: var(--r-lg);
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
}
.input-field::placeholder { color: var(--text-faint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-dark {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.45); }
.btn-icon { font-size: 13px; }

.hero-sources {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-card);
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}
.source-badge img { border-radius: 2px; }

/* ─── EXAMPLES SECTION ─── */
.examples-section {
  max-width: var(--max-w);
  margin: 88px auto 0;
  padding: 0 24px 60px;
}
.examples-head { text-align: center; margin-bottom: 40px; }
.examples-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.examples-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 20px;
}
.examples-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.dot-red {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Site Cards — сетка карточек вместо списка */
.site-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.site-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15,23,42,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}
.site-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,0.1); }
.site-card-img {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
}
.site-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.site-card-info strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-card-info span {
  font-size: 12.5px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-card-loc { font-size: 12px !important; color: var(--accent) !important; font-weight: 600; }

.show-all-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.show-all-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ─── FOOTER ─── */
.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(15,23,42,0.08);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--accent); }

/* ─── PRICING PAGE ─── */
.pricing-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  text-align: center;
}
.pricing-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.pricing-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--r-md);
  padding: 5px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
}
.pricing-toggle button {
  padding: 10px 24px;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}
.pricing-toggle button.active {
  background: var(--btn-dark-bg);
  color: #fff;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pricing-table th, .pricing-table td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(15,23,42,0.05);
}
.pricing-table th {
  font-weight: 700;
  font-size: 16px;
  padding-bottom: 8px;
  background: var(--accent-soft);
}
.pricing-table .plan-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2px 0 0;
}
.pricing-table .col-pro {
  background: var(--accent-soft);
}
.pricing-table .row-label {
  font-size: 13px;
  color: var(--text-muted);
}
.pricing-table .check { color: #16a34a; font-size: 16px; font-weight: 700; }
.pricing-table .cross { color: var(--text-faint); font-size: 16px; }
.pricing-table .waitlist { color: var(--accent); font-weight: 600; }

.pricing-buttons {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}
.pricing-buttons .btn { width: 100%; }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(15,23,42,0.12);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-pro {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
}
.btn-pro:hover { opacity: 0.92; }
.btn-upgrade {
  background: var(--btn-dark-bg);
  color: #fff;
}
.btn-upgrade:hover { background: var(--accent); }

/* ─── CATALOG PAGE ─── */
.catalog-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.catalog-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.catalog-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.catalog-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 18px;
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.catalog-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15,23,42,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}
.catalog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,0.1); }
.catalog-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.catalog-card-body { padding: 18px; }
.catalog-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.catalog-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-card-body .loc { font-size: 12px; color: var(--accent); font-weight: 600; }

/* ─── LEGAL PAGES ─── */
.legal-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.legal-section h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.legal-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.legal-section p, .legal-section li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.legal-section ul { padding-left: 20px; }
.legal-section li { margin-bottom: 6px; }
.legal-section a { text-decoration: underline; color: var(--accent); }
.legal-section strong { font-weight: 600; color: var(--text-primary); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero { padding-top: 48px; }
  .hero-input { flex-direction: column; }
  .examples-title { font-size: 28px; }
  .pricing-title { font-size: 30px; }
  .catalog-title { font-size: 28px; }
  .nav-links { gap: 14px; font-size: 12px; }
  .nav-signin { padding: 8px 14px; }
  .site-cards { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}
