:root {
  --bg: #f4f6fb;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --border: #dfe4ee;
  --text: #16213e;
  --text-muted: #5b6478;
  --accent: #1d4ed8;
  --accent-dark: #17399e;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --accent-2: #16a34a;
  --gold: #eab308;
  --danger: #dc2626;
  --radius: 12px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.06);
  --footer-bg: #0f1b33;
  --footer-border: #223154;
  --footer-text: #c7d0e6;
  --footer-text-muted: #8a96b8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { color: var(--text); line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 0 0 12px; }
h3 { font-size: 1.1rem; margin: 0 0 10px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

p { color: var(--text-muted); }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
}

.brand-name { font-size: 1.1rem; }

.main-nav {
  display: flex;
  gap: 20px;
  margin-left: 12px;
  flex: 1;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a.active,
.main-nav a:hover { color: var(--accent); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--danger);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.age-badge-lg { height: 30px; min-width: 40px; font-size: 0.9rem; }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.lang-switch a { color: var(--text-muted); font-weight: 600; }
.lang-switch a.active { color: var(--accent); }
.lang-sep { color: var(--border); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 1px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 20px 16px;
}
.mobile-nav a { color: var(--text-muted); padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  .main-nav, .lang-switch { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 6px 16px rgba(29, 78, 216, 0.22); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Hero / sections ---------- */
.hero {
  padding: 72px 0 56px;
  background: radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 55%), var(--bg);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}
.hero-subtitle { max-width: 640px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-subtitle { max-width: 640px; }

.page-header {
  padding: 48px 0 32px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.link-arrow { font-weight: 600; }
.link-back { display: inline-block; margin-bottom: 16px; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Star ratings ---------- */
.stars {
  position: relative;
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 2px;
  color: #d8dee9;
}
.stars::before {
  content: '\2605\2605\2605\2605\2605';
  position: absolute;
  top: 0; left: 0;
  width: var(--rating, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}
.stars::after { content: '\2605\2605\2605\2605\2605'; visibility: hidden; }

/* ---------- Brand cards ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.brand-card, .review-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.brand-card-head, .review-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.brand-logo {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
}
.brand-logo-lg { height: 60px; }

.score-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.14);
  color: #92660a;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.score-pill-lg { font-size: 1.1rem; padding: 8px 16px; }

.review-row-score { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.score-caption { font-size: 0.75rem; color: var(--text-muted); }

.brand-tagline { margin: 6px 0 14px; }
.brand-license { font-size: 0.85rem; margin-bottom: 16px; }

.brand-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.review-list { display: flex; flex-direction: column; gap: 22px; }

.pros-cons-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 14px 0;
}
@media (max-width: 600px) { .pros-cons-compact { grid-template-columns: 1fr; } }
.pros-cons-compact ul { margin: 6px 0 0; padding-left: 18px; }
.pros-cons-compact h4 { margin: 0; font-size: 0.9rem; color: var(--text); }

.review-detail-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.check-list, .cross-list { padding-left: 20px; }
.check-list li { color: var(--text); margin-bottom: 8px; }
.check-list li::marker { color: var(--accent-2); }
.cross-list li { color: var(--text); margin-bottom: 8px; }
.cross-list li::marker { color: var(--danger); }

.tag-list { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.score-breakdown { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.score-bar-row { display: grid; grid-template-columns: 200px 1fr 56px; align-items: center; gap: 14px; }
@media (max-width: 600px) { .score-bar-row { grid-template-columns: 1fr; } }
.score-bar-label { font-size: 0.9rem; color: var(--text); }
.score-bar-track { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; height: 10px; overflow: hidden; }
.score-bar-fill { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); height: 100%; }
.score-bar-value { font-size: 0.85rem; color: #92660a; font-weight: 700; text-align: right; }

.license-info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin-bottom: 18px; }
.license-info dt { color: var(--text-muted); }
.license-info dd { margin: 0; color: var(--text); }

.fine-print { font-size: 0.82rem; color: var(--text-muted); }

.helpline { font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+ '; color: var(--accent); }
.faq-item[open] summary::before { content: '\2013 '; }
.faq-answer { padding: 0 0 16px; color: var(--text-muted); }
.faq-answer a { color: var(--accent); }

/* ---------- Forms ---------- */
.contact-form { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.contact-form input, .contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); }
.contact-form button { margin-top: 16px; align-self: flex-start; }

.contact-help {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
  box-shadow: var(--shadow);
}

.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-success { background: rgba(22, 163, 74, 0.08); border: 1px solid var(--accent-2); }
.alert-error { background: rgba(220, 38, 38, 0.08); border: 1px solid var(--danger); color: var(--text); }

/* ---------- Legal content ---------- */
.legal-content h2 { margin-top: 32px; font-size: 1.2rem; }
.legal-content ul { color: var(--text-muted); }
.legal-list { list-style: none; padding: 0; color: var(--text-muted); }
.legal-list li { margin-bottom: 6px; }

.cookie-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; overflow-x: auto; display: block; }
.cookie-table th, .cookie-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; color: var(--text-muted); }
.cookie-table th { color: var(--text); background: var(--surface-2); }

/* ---------- Not found ---------- */
.not-found { text-align: center; padding: 100px 0; }
.not-found h1 { font-size: 4rem; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding-top: 48px;
  color: var(--footer-text);
}

.site-footer h1, .site-footer h2, .site-footer h3 { color: #ffffff; }
.site-footer .brand { color: #ffffff; }
.site-footer p { color: var(--footer-text); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h3 { font-size: 0.95rem; color: var(--footer-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--footer-text); }
.footer-col ul a:hover { color: #ffffff; }

.footer-tagline { font-size: 0.9rem; margin: 10px 0 14px; max-width: 260px; color: var(--footer-text-muted); }

.footer-contact { font-size: 0.85rem; margin: 0 0 14px; line-height: 1.8; }
.footer-contact a { color: var(--footer-text); word-break: break-word; }
.footer-contact a:hover { color: #ffffff; }

.regulator-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.regulator-badges img {
  background: #fff;
  border-radius: 6px;
  padding: 6px 8px;
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.legal-disclaimer { font-size: 0.82rem; margin: 0; color: var(--footer-text-muted); }
.legal-disclaimer strong { color: var(--gold); }

.footer-copyright { padding: 14px 0 28px; font-size: 0.8rem; color: var(--footer-text-muted); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  box-shadow: 0 -6px 24px rgba(16, 24, 40, 0.18);
  color: var(--footer-text);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { color: #ffffff; }
.cookie-banner p { color: var(--footer-text-muted); }

.cookie-banner-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text h2 { font-size: 1rem; margin: 0 0 4px; }
.cookie-banner-text p { font-size: 0.88rem; margin: 0; max-width: 640px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-ghost { color: var(--footer-text-muted); }
.cookie-banner .btn-ghost:hover { color: #ffffff; }
