/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1877f2;
  --primary-dark: #1558b0;
  --primary-light: #e7f0fd;
  --bg: #f0f2f5;
  --surface: #ffffff;
  --border: #dddfe2;
  --text: #1c1e21;
  --muted: #65676b;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.12);
  --max-w: 1140px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo:hover { text-decoration: none; color: var(--primary-dark); }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero { padding: 64px 0 48px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.hero-badge { display: inline-block; background: var(--primary-light); color: var(--primary); border-radius: 100px; padding: 5px 14px; font-size: 0.82rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--text); }
.hero-sub { font-size: 1rem; color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ── Buttons ── */
.btn-primary { display: inline-block; background: var(--primary); color: #fff; font-weight: 600; padding: 10px 24px; border-radius: var(--radius); transition: background 0.2s; font-size: 0.95rem; border: none; cursor: pointer; font-family: var(--font); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-full { display: block; text-align: center; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); font-weight: 600; padding: 9px 20px; border-radius: var(--radius); cursor: pointer; font-size: 0.9rem; font-family: var(--font); transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ── Trust bar ── */
.trust-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 0; }
.trust-inner { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.trust-item { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* ── Reviews section ── */
.reviews-section { padding: 48px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.see-all { font-size: 0.88rem; color: var(--primary); font-weight: 500; }

/* ── Post grid ── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; transition: box-shadow 0.2s, border-color 0.2s; box-shadow: var(--shadow); overflow: hidden; }
.post-card:hover { box-shadow: var(--shadow-md); border-color: #bcc0c4; }
.post-card-image-wrap { height: 180px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.post-card-image { width: 100%; height: 180px; object-fit: contain; background: var(--bg); padding: 12px; }
.post-card-image-placeholder { width: 100%; height: 180px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--border); font-size: 0.82rem; }
.post-card-body { padding: 16px; flex: 1; }
.post-category { font-size: 0.72rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; font-weight: 700; }
.post-title { font-size: 0.95rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--text); }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary); text-decoration: none; }
.post-excerpt { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--muted); }
.quality-badge { color: var(--primary); font-weight: 700; }
.post-card-link { display: block; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 0.82rem; font-weight: 600; color: var(--primary); transition: background 0.2s; }
.post-card-link:hover { background: var(--primary-light); text-decoration: none; color: var(--primary-dark); }

/* ── Skeleton loaders ── */
.post-skeleton { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); height: 300px; animation: pulse 1.5s ease-in-out infinite; box-shadow: var(--shadow); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── About strip ── */
.about-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.about-text p { color: var(--muted); margin-bottom: 10px; font-size: 0.9rem; }
.about-stats { display: flex; flex-direction: column; gap: 20px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }

/* ── Page hero ── */
.page-hero { padding: 36px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.page-hero p { color: var(--muted); font-size: 0.9rem; }

/* ── Article ── */
.article-main { padding: 32px 0 64px; background: var(--bg); }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.article-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.article-hero-image { width: 100%; max-height: 300px; object-fit: contain; background: var(--bg); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; border: 1px solid var(--border); }
.article-category { font-size: 0.72rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 10px; }
.article-title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; line-height: 1.25; margin-bottom: 12px; color: var(--text); }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.article-excerpt { font-size: 1rem; color: var(--muted); border-left: 3px solid var(--primary); padding-left: 14px; margin-bottom: 28px; line-height: 1.7; background: var(--primary-light); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.article-body { font-size: 0.95rem; line-height: 1.8; color: var(--text); }
.article-body h2 { font-size: 1.25rem; font-weight: 700; margin: 28px 0 10px; color: var(--text); border-bottom: 2px solid var(--border); padding-bottom: 6px; }
.article-body h3 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 14px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--primary); }

/* ── Article image slots ── */
.article-image-slot { margin: 24px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.article-image-slot img { width: 100%; max-height: 320px; object-fit: contain; background: var(--bg); padding: 16px; }
.article-image-slot figcaption { padding: 8px 16px; font-size: 0.78rem; color: var(--muted); background: var(--bg); border-top: 1px solid var(--border); }

/* ── Promo cards ── */
.promo-card { margin: 24px 0; background: var(--primary-light); border: 1px solid #bfd4f7; border-left: 3px solid var(--primary); border-radius: var(--radius); padding: 14px 18px; }
.promo-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); font-weight: 700; margin-bottom: 5px; }
.promo-title { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 3px; line-height: 1.4; }
.promo-title:hover { color: var(--primary); text-decoration: none; }
.promo-score { font-size: 0.75rem; color: var(--primary); font-weight: 600; }

/* ── Sidebar ── */
.article-sidebar { position: sticky; top: 76px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.sidebar-card-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.sidebar-product-image { width: 100%; max-height: 140px; object-fit: contain; margin-bottom: 12px; border-radius: var(--radius); background: var(--bg); padding: 8px; border: 1px solid var(--border); }
.verdict-score { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 3px; }
.verdict-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; }
.cta-disclaimer { font-size: 0.68rem; color: var(--muted); margin-top: 8px; text-align: center; }
.related-post { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
.related-post:last-child { border-bottom: none; }
.related-title { font-size: 0.82rem; color: var(--text); line-height: 1.4; margin-bottom: 3px; font-weight: 500; }
.related-title:hover { color: var(--primary); }
.related-score { font-size: 0.72rem; color: var(--primary); font-weight: 600; }

/* ── Skeleton article ── */
.skeleton-title { height: 36px; background: var(--border); border-radius: 6px; margin-bottom: 14px; animation: pulse 1.5s infinite; }
.skeleton-meta { height: 18px; width: 55%; background: var(--border); border-radius: 6px; margin-bottom: 20px; animation: pulse 1.5s infinite; }
.skeleton-body { height: 400px; background: var(--border); border-radius: 6px; animation: pulse 1.5s infinite; }

/* ── Footer ── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 32px; }
.footer-brand .logo { margin-bottom: 6px; font-size: 1.2rem; }
.footer-brand p { font-size: 0.82rem; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; }
.footer-bottom p { font-size: 0.78rem; color: var(--muted); margin-bottom: 3px; }
.disclaimer { font-size: 0.72rem !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .trust-inner { gap: 16px; }
  .main-nav { gap: 16px; }
  .article-content { padding: 20px; }
}
