/* ============================================
   LIKE EUROPE — style.css
   Спільний файл стилів для всіх сторінок
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; transition: color .2s; }
a:hover { color: #1d4ed8; }
::selection { background: #fbbf24; color: #1a1a2e; }

/* --- Header --- */
.site-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  border-bottom-color: #fbbf24;
}
.mobile-toggle {
  display: none;
  background: none; border: none;
  color: #fff; font-size: 26px;
  cursor: pointer; line-height: 1;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 16px;
}
.mobile-menu a { color: rgba(255,255,255,.9); font-size: 16px; }
.mobile-menu.open { display: flex; }

/* --- Hero (index page) --- */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 50%, #1e3a5f 100%);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.65;
  opacity: .9;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-block;
  background: #fbbf24;
  color: #1e3a5f;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251,191,36,.4);
  color: #1e3a5f;
}

/* --- Category Filter --- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: #e5e7eb;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { background: #d1d5db; }
.filter-btn.active { background: #1e3a5f; color: #fff; }

/* --- Article Cards Grid --- */
.section-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 36px;
  color: #1a1a2e;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.card a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-body { padding: 24px 24px 0; flex: 1; }
.card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 12px;
}
.cat-democracy { background: #2563eb; }
.cat-economy { background: #059669; }
.cat-law { background: #7c3aed; }
.cat-education { background: #d97706; }
.cat-culture { background: #db2777; }
.card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #1a1a2e;
}
.card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
}
.card-footer {
  padding: 16px 24px;
  font-size: 14px;
  color: #2563eb;
  font-weight: 600;
}

/* --- Article Page --- */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.back-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 24px;
}
.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.article-container h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 24px;
  color: #1a1a2e;
}
.article-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  font-style: italic;
  border-left: 4px solid #fbbf24;
  padding-left: 20px;
  margin-bottom: 40px;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 48px 0 16px;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2d5a8e;
  margin: 36px 0 12px;
  line-height: 1.35;
}
.article-body p {
  font-size: 17px;
  line-height: 1.78;
  color: #333;
  margin-bottom: 20px;
}
.article-body blockquote {
  border-left: 4px solid #2563eb;
  padding: 16px 24px;
  margin: 28px 0;
  background: #f0f4ff;
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  line-height: 1.7;
  color: #1e3a5f;
}
.article-body ul, .article-body ol {
  margin: 16px 0 20px 24px;
  font-size: 17px;
  line-height: 1.78;
  color: #333;
}
.article-body li { margin-bottom: 8px; }

/* --- Article Illustration --- */
.article-illustration {
  margin: 36px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.article-illustration svg {
  width: 100%;
  height: auto;
}
.illustration-caption {
  font-size: 13px;
  color: #888;
  text-align: center;
  padding: 10px 16px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

/* --- Info Box --- */
.info-box {
  background: #f0f4ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}
.info-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 10px;
}
.info-box p {
  font-size: 15px;
  line-height: 1.65;
  color: #444;
  margin: 0;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}
.comparison-table th {
  background: #1e3a5f;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.comparison-table tr:nth-child(even) td {
  background: #f9fafb;
}
.comparison-table tr:hover td {
  background: #f0f4ff;
}

/* --- Sources --- */
.sources {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid #e5e7eb;
}
.sources h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 16px;
}
.sources ol {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  padding-left: 20px;
}
.sources li { margin-bottom: 6px; }
.sources a { font-size: 13px; word-break: break-all; }

/* --- Footer --- */
.site-footer {
  background: #0f2744;
  color: rgba(255,255,255,.7);
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  margin-top: auto;
}
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 13px;
  opacity: .6;
  margin-top: 8px;
}

/* --- About Page --- */
.about-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.about-container h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
}
.about-container h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 32px 0 14px;
}
.about-container p {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .cards-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 60px;
  }
  .hero { padding: 48px 16px; }
  .article-container, .about-container { padding: 24px 16px 60px; }
  .article-body h2 { font-size: 21px; margin-top: 36px; }
  .article-body p { font-size: 16px; line-height: 1.72; }
  .article-lead { font-size: 16px; padding-left: 16px; }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
  .header-inner { height: 56px; }
  .logo { font-size: 17px; }
  .logo-icon { width: 30px; height: 30px; font-size: 15px; }
  .filter-btn { padding: 6px 14px; font-size: 13px; }
  .card h3 { font-size: 16px; }
  .section-title { font-size: 22px; }
}
