/* =====================================================================
   CasinoCheck Deutschland — main.css
   Crimson + Geist · Light / Modern / Minimal
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --primary:        #dc2626;
  --primary-hover:  #b91c1c;
  --primary-light:  #fef2f2;
  --primary-dark:   #991b1b;

  --bg:             #ffffff;
  --bg-soft:        #fafafa;
  --bg-ink:         #09090b;

  --text:           #18181b;
  --text-muted:     #52525b;
  --text-soft:      #71717a;
  --text-on-ink:    #fafafa;
  --text-on-ink-muted: #a1a1aa;

  --border:         #e4e4e7;
  --border-strong:  #d4d4d8;

  --amber:          #f59e0b;
  --green:          #16a34a;
  --warning-bg:     #fffbeb;
  --warning-border: #fde68a;
  --warning-text:   #78350f;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow:    0 4px 16px rgba(9, 9, 11, 0.06), 0 1px 3px rgba(9, 9, 11, 0.04);
  --shadow-lg: 0 20px 48px rgba(9, 9, 11, 0.08);

  --max-w: 1200px;
  --max-w-content: 920px;
  --nav-h: 72px;

  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem);   font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem);    margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-top: 1.75rem; }
h4 { font-size: 1.05rem; margin-top: 1.25rem; }

p { margin: 0 0 1rem; color: var(--text); }
.lead { font-size: 1.125rem; color: var(--text-muted); line-height: 1.7; }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--primary); }

strong { font-weight: 600; color: var(--text); }
em { font-style: italic; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

::selection { background: var(--primary); color: #fff; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  height: var(--nav-h);
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-right: auto;
}
.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.04em;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}
.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav__logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav__links a:hover {
  color: var(--text);
  background: var(--bg-soft);
}
.nav__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  border-radius: 2px;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top:  6px; }

/* ---------- Mobile drawer (sibling of header!) ---------- */
.mobile-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 16px 24px 32px;
}
.mobile-drawer__list li { margin: 0; border-bottom: 1px solid var(--border); }
.mobile-drawer__list a {
  display: block;
  padding: 18px 4px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 16px; font-size: 0.875rem; }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover { background: var(--bg-soft); border-color: var(--text-muted); }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  padding: 10px 14px;
}
.btn--ghost:hover { background: var(--primary-light); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 999px;
  border: 1px solid #fecaca;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 32px;
  background:
    radial-gradient(circle at 80% 10%, rgba(220, 38, 38, 0.06), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(220, 38, 38, 0.04), transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  max-width: var(--max-w-content);
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  margin: 16px 0 18px;
}
.hero .lead {
  max-width: 720px;
  margin: 0 auto 28px;
}

/* ---------- Hero stat rail ---------- */
.stat-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  padding: 18px 24px;
  margin: 24px auto 0;
  max-width: 840px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.stat-rail__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
  position: relative;
  padding-right: 24px;
}
.stat-rail__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.stat-rail__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
}
.stat-rail__label {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section h2:first-child { margin-top: 0; }
.section__head {
  max-width: var(--max-w-content);
  margin: 0 auto 36px;
  text-align: center;
}
.section__head .lead { margin: 0 auto; max-width: 680px; }

/* ---------- Prose (for article-style content) ---------- */
.prose {
  max-width: var(--max-w-content);
  margin: 0 auto;
}
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose p, .prose li { font-size: 1rem; }
.prose ul li::marker { color: var(--primary); }

/* ---------- Compact listing ---------- */
.top-list {
  max-width: var(--max-w-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.top-list__row {
  display: grid;
  grid-template-columns: 36px 80px 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.top-list__row:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.top-list__rank {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: -0.04em;
  text-align: center;
}
.top-list__rank--top { color: var(--primary); }
.top-list__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 40px;
}
.top-list__logo img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}
.top-list__logo--placeholder {
  width: 80px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.top-list__logo--placeholder.alt-1 { background: linear-gradient(135deg, #6366f1, #4338ca); }
.top-list__logo--placeholder.alt-2 { background: linear-gradient(135deg, #0891b2, #0e7490); }
.top-list__logo--placeholder.alt-3 { background: linear-gradient(135deg, #d97706, #b45309); }
.top-list__logo--placeholder.alt-4 { background: linear-gradient(135deg, #16a34a, #15803d); }
.top-list__logo--placeholder.alt-5 { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.top-list__meta { min-width: 0; }
.top-list__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}
.top-list__bonus {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.top-list__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.stars {
  color: var(--amber);
  letter-spacing: 1px;
  font-size: 0.95rem;
}

/* ---------- Detailed cards ---------- */
.detail-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.detail-card:hover { box-shadow: var(--shadow); }
.detail-card__media {
  position: relative;
  background: var(--bg-soft);
  min-height: 280px;
  display: block;
}
.detail-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.detail-card__rank {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}
.detail-card__body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}
.detail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.detail-card__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}
.detail-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.detail-card__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.detail-card p { color: var(--text); font-size: 0.95rem; }
.detail-card__facts {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  font-size: 0.9rem;
  line-height: 1.7;
}
.detail-card__facts strong { color: var(--text); }
.detail-card__pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 20px;
}
.detail-card__pros-cons h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.detail-card__pros-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}
.detail-card__pros-cons li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  line-height: 1.5;
}
.detail-card__pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.detail-card__cons li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.detail-card__cta {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}

/* ---------- Tables ---------- */
.table-wrap {
  max-width: var(--max-w-content);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
thead {
  background: var(--bg-soft);
}
th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-soft); }

/* ---------- Comparison "casino quick" table for hero zone ---------- */
.qcompare { font-size: 0.9rem; }
.qcompare td:first-child { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq {
  max-width: var(--max-w-content);
  margin: 0 auto;
}
.faq__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.faq__item:first-child { padding-top: 0; }
.faq__item:last-child { border-bottom: none; }
.faq__item h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  color: var(--text);
}
.faq__item p { margin: 0; color: var(--text-muted); }

/* ---------- Responsible Gambling banner ---------- */
.rg-banner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 28px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.rg-banner__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--amber);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}
.rg-banner__body { font-size: 0.9375rem; color: var(--warning-text); line-height: 1.6; }
.rg-banner__body strong { color: var(--warning-text); }
.rg-banner__body a { color: var(--warning-text); text-decoration: underline; font-weight: 600; }

/* ---------- Page hero (legal/contact pages) ---------- */
.page-hero {
  padding: 56px 0 32px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero__inner {
  max-width: var(--max-w-content);
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 14px 0 12px;
}
.page-hero .lead {
  font-size: 1.0625rem;
  margin: 0 auto;
  max-width: 640px;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 24px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-soft);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 500; }

/* ---------- Section prose with cards ---------- */
.section-prose .section-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.section-prose .section-card h2 {
  margin-top: 0;
  font-size: 1.375rem;
}
.section-prose .section-card h3 {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  align-items: start;
}
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.form-check a { color: var(--primary); text-decoration: underline; }

.contact-info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}
.contact-info-card h3 { margin-top: 0; font-size: 1.0625rem; }
.contact-info-card p { font-size: 0.9rem; margin-bottom: 0.85rem; color: var(--text-muted); }
.contact-info-card a { color: var(--primary); font-weight: 500; }
.contact-info-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-ink);
  color: var(--text-on-ink);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #27272a;
}
.footer-col h4 {
  color: var(--text-on-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-on-ink-muted);
  font-size: 0.9375rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-on-ink); }
.footer-brand__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-on-ink);
  margin-bottom: 12px;
}
.footer-brand__name .nav__logo-mark { background: var(--primary); }
.footer-brand p {
  color: var(--text-on-ink-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-18 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  font-size: 0.8125rem;
  color: var(--text-on-ink);
}
.footer-18__mark {
  display: inline-flex;
  width: 26px; height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.7rem;
}
.footer-rg-text {
  font-size: 0.8125rem;
  color: var(--text-on-ink-muted);
  line-height: 1.55;
  margin-top: 12px;
}
.footer-rg-text a { color: var(--text-on-ink); text-decoration: underline; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-on-ink-muted);
  flex-wrap: wrap;
}
.footer-bottom__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom__links a { color: var(--text-on-ink-muted); }
.footer-bottom__links a:hover { color: var(--text-on-ink); }

/* ---------- Helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detail-card { grid-template-columns: 1fr; }
  .detail-card__media { min-height: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  body.is-drawer-open { overflow: hidden; }

  .hero { padding: 36px 0 24px; }
  .section { padding: 40px 0; }
  .page-hero { padding: 36px 0 24px; }

  .stat-rail {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px;
    gap: 0;
  }
  .stat-rail__item {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
  }
  .stat-rail__item:last-child { border-bottom: none; }
  .stat-rail__item::after { display: none !important; }
  .stat-rail__num { font-size: 1.25rem; }

  .top-list__row {
    grid-template-columns: 28px 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 14px;
    padding: 14px;
  }
  .top-list__logo { grid-column: 2 / 3; grid-row: 1 / 2; width: 64px; height: 32px; justify-self: start; }
  .top-list__logo img { max-height: 32px; }
  .top-list__logo--placeholder { width: 64px; height: 32px; font-size: 0.85rem; }
  .top-list__meta { grid-column: 2 / 3; grid-row: 2 / 3; }
  .top-list__rating { grid-column: 3 / 4; grid-row: 1 / 2; }
  .top-list__row .btn { grid-column: 3 / 4; grid-row: 2 / 3; }
  .top-list__rank { grid-column: 1 / 2; grid-row: 1 / 3; align-self: center; }

  .detail-card__body { padding: 22px 22px; }
  .detail-card__pros-cons { grid-template-columns: 1fr; gap: 12px; }

  .section-prose .section-card { padding: 22px 22px; }
  .form-card { padding: 22px 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav__logo-sub { display: none; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.375rem; }
  .hero .lead { font-size: 1rem; }
}