/* =====================================================================
   ExpertPoint Online — Design System
   Independent technology education & digital resource platform
   ===================================================================== */

:root {
  /* Color palette */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;

  --accent: var(--blue-600);
  --accent-dark: var(--blue-700);
  --accent-soft: var(--blue-50);

  --text: var(--gray-800);
  --text-muted: var(--gray-500);
  --heading: var(--gray-900);
  --border: var(--gray-200);

  --success: #059669;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);

  --header-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

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

:focus-visible {
  outline: 3px solid var(--blue-200);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-gray { background: var(--gray-50); }
.section-accent { background: var(--blue-800); color: var(--blue-100); }
.section-accent h1, .section-accent h2, .section-accent h3 { color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1.2;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--accent); border-color: var(--gray-300); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--heading); letter-spacing: -0.02em; }
.brand:hover { color: var(--heading); }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .95rem; flex-shrink: 0;
}
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .12em; color: var(--text-muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--gray-700); font-weight: 500; font-size: .96rem;
}
.nav-links a:hover { background: var(--gray-100); color: var(--heading); }
.nav-links a.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero p.lead { font-size: 1.22rem; color: var(--gray-600); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; color: var(--text-muted); font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--success); flex-shrink: 0; }

.hero-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
}
.hero-visual .hv-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.hero-visual .hv-row:last-child { border-bottom: none; }
.hero-visual .hv-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-50); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-visual .hv-t { font-weight: 600; color: var(--heading); font-size: .98rem; }
.hero-visual .hv-d { font-size: .85rem; color: var(--text-muted); }

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--heading); letter-spacing: -0.02em; }
.stat .lbl { color: var(--text-muted); font-size: .95rem; margin-top: 4px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.card .tag {
  display: inline-block; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--blue-50); padding: 5px 11px; border-radius: 20px; margin-bottom: 14px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card h3 a { color: var(--heading); }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--text-muted); font-size: .96rem; margin-bottom: 16px; }
.card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--gray-400); }
.card .read-link { font-weight: 600; color: var(--accent); font-size: .92rem; display: inline-flex; align-items: center; gap: 5px; }
.card .read-link:hover { gap: 9px; }

.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--blue-50); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}

/* feature thumb */
.thumb {
  height: 160px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600); position: relative; overflow: hidden;
}
.thumb svg { width: 56px; height: 56px; opacity: .85; }
.thumb.alt { background: linear-gradient(135deg, #e0e7ff, #eef2ff); color: #4338ca; }
.thumb.alt2 { background: linear-gradient(135deg, #ccfbf1, #f0fdfa); color: #0d9488; }

/* ---------- Resource blocks ---------- */
.resource-block {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
}
.resource-block h3 { display: flex; align-items: center; gap: 12px; }
.resource-block .rb-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.resource-block p { color: var(--gray-600); font-size: .97rem; }
.resource-block p:last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
}
.step .step-num {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
}
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; color: var(--gray-600); }

/* ---------- Article / prose ---------- */
.article-header { padding: 56px 0 36px; border-bottom: 1px solid var(--border); background: var(--gray-50); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--text-muted); font-size: .92rem; margin-top: 16px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray-300); }
.byline { display: inline-flex; align-items: center; gap: 9px; }
.byline .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; }

.prose { font-size: 1.07rem; color: var(--gray-700); }
.prose h2 { margin-top: 2em; padding-top: .3em; }
.prose h3 { margin-top: 1.6em; }
.prose p { margin-bottom: 1.25em; }
.prose ul, .prose ol { margin-bottom: 1.4em; }
.prose li { margin-bottom: .55em; }
.prose strong { color: var(--heading); }
.prose blockquote {
  margin: 1.8em 0; padding: 18px 24px; border-left: 4px solid var(--accent);
  background: var(--blue-50); border-radius: 0 10px 10px 0; color: var(--gray-700); font-style: italic;
}
.prose .callout {
  margin: 1.8em 0; padding: 22px 24px; border: 1px solid var(--blue-200);
  background: var(--blue-50); border-radius: 12px;
}
.prose .callout strong { color: var(--blue-800); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--border); width: 100%; }
.prose figcaption { font-size: .87rem; color: var(--text-muted); text-align: center; margin-top: 10px; }

.toc {
  background: var(--gray-50); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; margin: 0 0 32px;
}
.toc h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.toc li { margin-bottom: 8px; font-size: .94rem; break-inside: avoid; }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 22px; }
.sidebar-card h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 14px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { margin-bottom: 12px; font-size: .93rem; line-height: 1.45; }

/* ---------- Filter / search ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search-box input {
  width: 100%; padding: 12px 16px 12px 44px; border: 1px solid var(--gray-300); border-radius: 10px;
  font-size: .98rem; font-family: inherit; background: var(--white);
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--blue-100); }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border: 1px solid var(--gray-300); border-radius: 22px; background: var(--white);
  font-size: .9rem; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: .15s; font-family: inherit;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.no-results { text-align: center; padding: 60px 20px; color: var(--text-muted); display: none; }

/* ---------- Author cards ---------- */
.author-card { text-align: left; }
.author-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.author-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-200), var(--blue-100));
  color: var(--blue-800); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem; border: 3px solid var(--white); box-shadow: var(--shadow);
}
.author-head h3 { margin-bottom: 2px; }
.author-role { color: var(--accent); font-weight: 600; font-size: .9rem; }
.author-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--text-muted); margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.author-meta b { color: var(--gray-700); font-weight: 600; }
.author-card p { font-size: .95rem; color: var(--gray-600); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; }
.info-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gray-100); }
.info-list .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--blue-50); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-list .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.info-list .val { font-weight: 600; color: var(--heading); }

.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 9px;
  font-size: 1rem; font-family: inherit; color: var(--text); background: var(--white); transition: .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--blue-100);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--text-muted); }
.form-success { display: none; padding: 16px 18px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; color: #065f46; font-weight: 600; margin-bottom: 20px; }
.field-error { color: #dc2626; font-size: .85rem; margin-top: 5px; display: none; }

.map-embed {
  height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin-top: 24px;
  background: var(--gray-100);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Policy / legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); background: var(--gray-50); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.legal-nav h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 12px; }
.legal-nav ul { list-style: none; padding: 0; margin: 0; }
.legal-nav li { margin-bottom: 4px; }
.legal-nav a { display: block; padding: 7px 12px; border-radius: 7px; font-size: .9rem; color: var(--gray-600); }
.legal-nav a:hover, .legal-nav a.active { background: var(--white); color: var(--accent); box-shadow: var(--shadow-sm); }
.legal-content h2 { margin-top: 1.8em; }
.legal-content h2:first-child { margin-top: 0; }
.updated-badge { display: inline-block; font-size: .85rem; color: var(--text-muted); background: var(--gray-100); padding: 6px 14px; border-radius: 20px; margin-bottom: 8px; }

/* ---------- Policy directory ---------- */
.policy-card { display: flex; flex-direction: column; }
.policy-card .card-icon { margin-bottom: 16px; }
.policy-card h3 { font-size: 1.12rem; }
.policy-card h3 a { color: var(--heading); }

/* ---------- Disclaimer banner ---------- */
.disclaimer-box {
  background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid #f59e0b;
  border-radius: 12px; padding: 26px 30px; margin: 0 0 32px;
}
.disclaimer-box h3 { color: #92400e; display: flex; align-items: center; gap: 10px; }
.disclaimer-box p { color: #78350f; margin-bottom: .8em; }
.disclaimer-box p:last-child { margin-bottom: 0; }

/* ---------- Page header (generic) ---------- */
.page-header { background: var(--gray-50); border-bottom: 1px solid var(--border); padding: 60px 0; }
.page-header .eyebrow { margin-bottom: 12px; }
.page-header p { font-size: 1.12rem; color: var(--text-muted); max-width: 680px; margin-bottom: 0; }
.breadcrumb { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue-700), var(--blue-800)); border-radius: var(--radius-lg); padding: 52px; text-align: center; color: var(--blue-100); }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin: 0 auto 26px; color: var(--blue-100); font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--gray-800); }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .9rem; }
.site-footer p { color: var(--gray-400); margin-bottom: 14px; line-height: 1.6; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact svg { color: var(--blue-500); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: var(--gray-300); }
.footer-contact a:hover { color: #fff; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--gray-400); font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; background: var(--gray-800); display: flex; align-items: center; justify-content: center; color: var(--gray-300); }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: .88rem; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 560px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--gray-300); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.18); padding: 22px 24px; z-index: 1500;
  display: none;
}
.cookie-banner.show { display: block; animation: slideUp .3s ease; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner p { font-size: .92rem; margin-bottom: 16px; color: var(--gray-600); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 20px; font-size: .92rem; }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--gray-600); background: var(--white); border: 1px solid var(--border); padding: 7px 14px; border-radius: 22px; }
.badge svg { color: var(--accent); }

.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.value-list .vc { width: 28px; height: 28px; border-radius: 8px; background: var(--blue-50); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.value-list h4 { margin-bottom: 3px; }
.value-list p { margin-bottom: 0; color: var(--text-muted); font-size: .96rem; }

.lazy { opacity: 0; transition: opacity .4s ease; }
.lazy.loaded { opacity: 1; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; } .mb-4 { margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 36px 24px; }
  .hero { padding: 56px 0 48px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .author-meta { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
