:root {
  --primary: #0d47a1;
  --primary-dark: #082f73;
  --accent: #00acc1;
  --accent-dark: #007c91;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6a7a;
  --border: #d0dce8;
  --hero-bg: #0a1628;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.header { background: var(--hero-bg); border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top: 0; z-index: 100; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 22px; height: 22px; fill: #fff; }
.logo-name { color: #fff; font-size: 1rem; font-weight: 700; display: block; line-height: 1.2; }
.logo-sub { color: rgba(255,255,255,.55); font-size: .7rem; display: block; }
.nav-menu { display: flex; list-style: none; gap: 4px; }
.nav-menu a { color: rgba(255,255,255,.8); font-size: .875rem; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: background .2s, color .2s; }
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--hero-bg) 0%, var(--primary-dark) 60%, #00607a 100%); color: #fff; padding: 80px 0 70px; }
.hero-label { display: inline-block; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; max-width: 680px; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 12px 24px; border-radius: 8px; font-size: .9rem; font-weight: 600; cursor: pointer; border: none; transition: background .2s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .8rem; }

/* ── Stats bar ── */
.stats-bar { background: var(--primary); padding: 24px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 8px 16px; border-right: 1px solid rgba(255,255,255,.15); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ── Section titles ── */
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--text); margin-bottom: 10px; }
.section-title p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── Article cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.07); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); transform: translateY(-3px); }
.card-img { height: 180px; object-fit: cover; width: 100%; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-tag { display: inline-block; background: #e3f2fd; color: var(--primary); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.card p { font-size: .875rem; color: var(--text-muted); flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: .85rem; font-weight: 600; margin-top: 14px; }
.card-link:hover { color: var(--accent-dark); }

/* ── Info cards ── */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.info-card { background: #e3f2fd; border-radius: 10px; padding: 20px; border-left: 4px solid var(--primary); }
.info-card h3 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.info-card p { font-size: .875rem; color: var(--text-muted); }

/* ── Feature list ── */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.feature-icon { width: 40px; height: 40px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.feature-text h4 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.feature-text p { font-size: .85rem; color: var(--text-muted); }

/* ── Legal pages ── */
.legal-header { background: linear-gradient(135deg, var(--hero-bg) 0%, var(--primary-dark) 100%); color: #fff; padding: 56px 0 48px; }
.legal-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 10px; }
.legal-header p { color: rgba(255,255,255,.75); max-width: 680px; }
.legal-date { display: inline-block; margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.5); }
.legal-body { padding: 56px 0; }
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.legal-content h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.legal-content p { margin-bottom: 14px; color: #333; font-size: .95rem; }
.legal-content ul, .legal-content ol { margin: 0 0 14px 22px; }
.legal-content li { margin-bottom: 6px; font-size: .95rem; color: #333; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .88rem; }
.legal-content th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.legal-content td { padding: 9px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-content tr:nth-child(even) td { background: #f0f4f8; }

/* ── Tip box ── */
.tip-box { background: #e0f7fa; border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; font-size: .9rem; color: #00607a; }

/* ── Footer ── */
.footer { background: var(--hero-bg); color: rgba(255,255,255,.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand-desc { font-size: .8rem; margin-top: 12px; line-height: 1.6; }
.footer-col h5 { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: .85rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .78rem; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ── Cookie banner ── */
#cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 3px solid var(--accent); padding: 16px 24px; z-index: 9999; box-shadow: 0 -4px 24px rgba(0,0,0,.12); }
.cookie-wrap { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-text { flex: 1; font-size: .875rem; color: #333; min-width: 200px; }
.cookie-text a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Cookie modal ── */
#cookie-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 10000; align-items: center; justify-content: center; }
#cookie-modal.open { display: flex; }
.cookie-modal-box { background: #fff; border-radius: 12px; padding: 28px; width: 100%; max-width: 440px; margin: 20px; }
.cookie-modal-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.cookie-opt { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cookie-opt:last-of-type { border-bottom: none; }
.cookie-opt input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.cookie-opt.locked { opacity: .7; }
.cookie-opt-text strong { display: block; font-size: .9rem; color: var(--text); }
.cookie-opt-text span { font-size: .8rem; color: var(--text-muted); }
.cookie-modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ── Toast ── */
#rf-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px); background: var(--primary); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: .85rem; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; z-index: 11000; white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--hero-bg); flex-direction: column; padding: 12px 16px 20px; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0 40px; }
  .cookie-wrap { flex-direction: column; align-items: flex-start; }
}
