/* ═══════════════════════════════════════════════════════
   byily.com — Professional Personal Finance Guide
   Modern, Clean, AdSense-Ready Design
   ═══════════════════════════════════════════════════════ */

/* ───── CSS Reset ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a365d;
  --primary-dark: #0f2942;
  --primary-light: #2c5282;
  --accent: #d69e2e;
  --accent-light: #f6e05e;
  --accent-dark: #b7791f;
  --success: #38a169;
  --success-bg: #c6f6d5;
  --bg: #f7fafc;
  --bg-white: #ffffff;
  --bg-light: #edf2f7;
  --bg-card: #ffffff;
  --text: #1a202c;
  --text-light: #4a5568;
  --text-muted: #718096;
  --text-inverse: #ffffff;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --header-h: 70px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* ───── Utilities ───── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container--narrow { max-width: 800px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-inverse);
}
.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--accent);
  color: var(--text-inverse);
}
.btn--accent:hover {
  background: var(--accent-dark);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn--sm { padding: 8px 18px; font-size: 0.85rem; }

.btn--tag {
  padding: 5px 14px;
  font-size: 0.75rem;
  background: var(--bg-light);
  color: var(--text-light);
  border-radius: 20px;
}
.btn--tag:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

/* ───── Header ───── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.nav a:hover { color: var(--primary); background: var(--bg-light); }
.nav a.active { color: var(--primary); font-weight: 600; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ───── Hero Section ───── */
.hero {
  padding: 70px 0 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.02);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent-light); }

.hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero .btn--accent { font-size: 1rem; padding: 14px 36px; }

/* Trust badges in hero */
.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-trust-item {
  text-align: center;
}
.hero-trust-item .number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-light);
  display: block;
  line-height: 1.2;
}
.hero-trust-item .label {
  font-size: 0.82rem;
  opacity: 0.7;
  display: block;
  margin-top: 4px;
}

/* ───── Page Header / Intro ───── */
.page-header {
  padding: 50px 0 40px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.page-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ───── Breadcrumbs ───── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 16px 0 0;
}
.breadcrumbs a { color: var(--text-light); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--text-muted); font-size: 0.7rem; }

/* ───── Sections ───── */
.section {
  padding: 60px 0;
}
.section--alt {
  background: var(--bg-white);
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: -32px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ───── Cards Grid ───── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card-category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(214,158,46,0.12);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.card h3 a { color: inherit; transition: color var(--transition); }
.card h3 a:hover { color: var(--accent); }
.card-excerpt {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}
.card-footer {
  padding: 0 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-read-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ───── Featured Section ───── */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.featured-main .card {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.featured-main .card-body {
  flex: 1;
  padding: 40px;
}
.featured-main .card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.featured-main .card-excerpt {
  font-size: 1rem;
  margin-bottom: 20px;
}
.featured-main .card-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.featured-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.featured-side .card {
  flex: 1;
}

/* ───── Why Trust Section ───── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}
.trust-icon--navy { background: var(--primary); color: var(--text-inverse); }
.trust-icon--gold { background: rgba(214,158,46,0.15); color: var(--accent-dark); }
.trust-icon--green { background: rgba(56,161,105,0.15); color: var(--success); }
.trust-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.trust-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ───── Article Page Styles ───── */
.article-page {
  padding: 32px 0 64px;
}
.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.article-meta .tag {
  background: rgba(214,158,46,0.12);
  color: var(--accent-dark);
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.article-page h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.article-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 700px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  letter-spacing: -0.01em;
}
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 10px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol {
  margin: 0 0 18px 28px;
  list-style: disc;
}
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 10px; }
.article-content strong { color: var(--primary); font-weight: 600; }
.article-content a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(44,82,130,0.3);
}
.article-content a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* Highlight Box */
.highlight-box {
  background: rgba(214,158,46,0.08);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text-light);
}
.highlight-box strong { color: var(--accent-dark); font-weight: 600; }

/* Info Box */
.info-box {
  background: rgba(26,54,93,0.04);
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  font-size: 0.95rem;
}
.info-box strong { color: var(--primary); }

/* Article Ad Slots (professional, empty for AdSense) */
.ad-slot {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot--sidebar {
  margin: 0;
  padding: 20px;
  min-height: 250px;
}

/* ───── Author Box ───── */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 40px 0 0;
}
.author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.author-box__info { flex: 1; }
.author-box__info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.author-box__info .author-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.author-box__info p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ───── Article Navigation ───── */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}
.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.article-nav a:hover {
  border-color: var(--primary);
  color: var(--text-muted);
  background: rgba(26,54,93,0.02);
}
.article-nav a:last-child { text-align: right; align-items: flex-end; }
.article-nav a strong {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.4;
}

/* ───── Newsletter ───── */
.newsletter {
  background: var(--primary);
  color: var(--text-inverse);
  text-align: center;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  max-width: 700px;
  position: relative;
  overflow: hidden;
}
.newsletter h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.newsletter p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  outline: 2px solid transparent;
  transition: outline var(--transition);
  background: rgba(255,255,255,0.95);
  color: var(--text);
}
.newsletter-form input:focus { outline-color: var(--accent); }
.newsletter-form .btn { flex-shrink: 0; padding: 14px 28px; }

/* ───── CTA Section ───── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  color: var(--text-inverse);
  text-align: center;
}
.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ───── Tools Page ───── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.tool-card .tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  background: rgba(214,158,46,0.12);
  color: var(--accent-dark);
}
.tool-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.tool-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ───── Reviews Page ───── */
.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.review-item .rv-score {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.review-item .rv-body { flex: 1; }
.review-item .rv-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.review-item .rv-body .rv-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.review-item .rv-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}
.rv-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-right: 6px;
}
.rv-badge--best { background: rgba(56,161,105,0.12); color: var(--success); }
.rv-badge--good { background: rgba(214,158,46,0.12); color: var(--accent-dark); }

/* ───── Footer ───── */
.footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-white);
  padding: 48px 0 28px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 280px;
}
.footer-brand .footer-disclosure {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ───── Cookie Banner ───── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
  font-size: 0.88rem;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}
.cookie-banner a {
  color: var(--accent-light);
  text-decoration: underline;
}
.cookie-banner a:hover { color: #fff; }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-banner__actions .btn {
  font-size: 0.82rem;
  padding: 8px 18px;
}
.cookie-banner__actions .btn--outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--text-inverse);
}
.cookie-banner__actions .btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--text-inverse);
}

/* ───── Responsive ───── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-main .card { flex-direction: column; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-trust { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .trust-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .tools-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .article-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter { padding: 40px 24px; }
  .hero-trust { padding-top: 24px; margin-top: 28px; }
  .hero-trust-item .number { font-size: 1.2rem; }
  .author-box { flex-direction: column; text-align: center; align-items: center; }
  .article-nav a:last-child { text-align: left; align-items: flex-start; }
  .review-item { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .hamburger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 44px 0; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner { text-align: center; padding: 16px; }
  .cookie-banner__actions { justify-content: center; width: 100%; }
  .page-header { padding: 36px 0 28px; }
  .article-page { padding: 20px 0 44px; }
  .container { padding: 0 16px; }
  .card-body { padding: 20px; }
  .trust-card { padding: 28px 20px; }
}

/* ───── Print Styles ───── */
@media print {
  .header, .footer, .cookie-banner, .newsletter, .ad-slot, .article-nav, .hamburger { display: none !important; }
  .article-content { font-size: 12pt; line-height: 1.5; }
  .article-content h2 { font-size: 14pt; margin: 20px 0 10px; }
  .article-content p { margin-bottom: 12px; }
  a { text-decoration: none; color: var(--text); }
  .author-box { border: 1px solid #ccc; page-break-inside: avoid; }
}
