* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.07), transparent 28%),
    radial-gradient(circle at top right, rgba(15,23,42,.06), transparent 22%),
    linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);
  color: #0f172a;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 24px; }

.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.brand { margin:0; font-size:38px; letter-spacing:-0.04em; font-weight:800; }
.tagline, .meta { color:#64748b; }

.nav { display:flex; gap:12px; flex-wrap:wrap; }
.nav a,
.button-primary,
.button-secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  font-weight:600;
  transition:all .18s ease;
}

.nav a,
.button-secondary {
  border:1px solid #e5e7eb;
  background:#fff;
}
.nav a:hover,
.button-secondary:hover {
  background:#f8fafc;
  transform:translateY(-1px);
}

.button-primary {
  background:#0f172a;
  color:#fff;
  border:1px solid #0f172a;
}
.button-primary:hover {
  background:#111827;
  transform:translateY(-1px);
}

.card, .hero-card, .side-card, .promo-card,
.article-link, .event-link, .source-item {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:24px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.card, .hero-card, .side-card, .promo-card {
  padding:24px;
}

.home-stack { display:grid; gap:18px; }
.hero-grid { display:grid; grid-template-columns:1.45fr .9fr; gap:18px; }
.news-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:18px 0; }

.form-grid label { display:grid; gap:6px; font-size:14px; }
.form-grid input,
.form-grid textarea,
.form-grid select {
  width:100%;
  padding:13px 14px;
  border-radius:16px;
  border:1px solid #e2e8f0;
  font:inherit;
  background:#fff;
}

.stat-card {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:18px;
  display:grid;
  gap:6px;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}
.stat-card strong { font-size:30px; }

.article-list { display:grid; gap:14px; }

.article-link, .event-link, .source-item {
  display:block;
  padding:18px;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.article-link:hover,
.event-link:hover,
.source-item:hover {
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(15,23,42,.08);
  border-color:#dbe3ee;
}

.title {
  font-size:24px;
  font-weight:800;
  line-height:1.2;
  margin:8px 0;
  letter-spacing:-0.02em;
}
.lead {
  font-size:17px;
  line-height:1.75;
  color:#334155;
}

.badge, .badge-light {
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.badge {
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}
.badge-light {
  background:#f8fafc;
  color:#334155;
}

.hero-card {
  min-height:360px;
  background:linear-gradient(135deg,#ffffff 0%,#eff6ff 52%,#f8fafc 100%);
}
.hero-title {
  font-size:46px;
  line-height:1.04;
  margin:18px 0 12px;
  letter-spacing:-0.045em;
}
.hero-lead {
  font-size:19px;
  line-height:1.8;
  color:#334155;
}
.hero-actions, .chip-row {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.section-title {
  margin:0 0 14px;
  font-size:28px;
  letter-spacing:-0.03em;
}
.text-link {
  color:#2563eb;
  font-size:14px;
  font-weight:600;
}

.article-page {
  max-width:860px;
  margin:0 auto;
  display:grid;
  gap:24px;
}
.article-title {
  font-size:50px;
  line-height:1.06;
  font-weight:800;
  letter-spacing:-0.045em;
}
.article-lead {
  font-size:21px;
  line-height:1.75;
  color:#334155;
}
.article-body {
  font-size:18px;
  line-height:1.95;
}
.article-body p {
  margin:0 0 20px;
}

.alert {
  padding:15px 16px;
  border-radius:16px;
  margin:16px 0;
  font-size:15px;
}
.alert.error {
  background:#fef2f2;
  border:1px solid #fecaca;
}
.alert.success {
  background:#ecfdf5;
  border:1px solid #a7f3d0;
}

.site-footer { padding-bottom:40px; }

@media (max-width: 1100px) {
  .hero-grid,
  .news-grid,
  .stats {
    grid-template-columns:1fr;
  }
}

@media (max-width: 900px) {
  .form-grid { grid-template-columns:1fr; }
  .hero-title { font-size:38px; }
  .article-title { font-size:40px; }
}
