*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #181d26;
  --primary-active: #0d1218;
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --hairline: #dddddd;
  --canvas: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #e0e2e6;
  --surface-dark: #181d26;
  --sig-coral: #aa2d00;
  --sig-forest: #0a2e0e;
  --sig-cream: #f5e9d4;
  --sig-peach: #fcab79;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --link: #1b61c9;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  --nav-h: 64px;
  --section: 96px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--body); background: var(--canvas); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* NAV */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--canvas); height: var(--nav-h);
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--ink); }
.brand-tagline { font-size: 11px; color: var(--muted); margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { padding: 8px 14px; border-radius: var(--radius-md); font-size: 14px; font-weight: 400; color: var(--body); }
.site-nav a:hover { background: var(--surface-soft); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 200; background: var(--canvas); flex-direction: column; padding: 24px; }
.mobile-nav.open { display: flex; }
.mobile-nav-close { align-self: flex-end; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--ink); margin-bottom: 24px; }
.mobile-nav a { font-size: 20px; font-weight: 500; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--hairline); }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--primary); color: var(--on-primary);
  padding: 16px 24px; border-radius: var(--radius-lg);
  font-size: 16px; font-weight: 500; border: none; cursor: pointer;
  font-family: var(--font); transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-secondary {
  display: inline-flex; align-items: center;
  background: var(--canvas); color: var(--ink);
  padding: 15px 24px; border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 500; border: 1px solid var(--hairline);
  cursor: pointer; font-family: var(--font); transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-on-dark {
  display: inline-flex; align-items: center;
  background: var(--canvas); color: var(--ink);
  padding: 14px 24px; border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 500; border: none; cursor: pointer;
  font-family: var(--font);
}

/* HERO */
.hero { padding: var(--section) 0 80px; background: var(--canvas); }
.hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 400; color: var(--ink); line-height: 1.2; max-width: 780px; margin-bottom: 20px; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 32px; line-height: 1.5; }
.hero-tag { font-size: 14px; font-weight: 500; letter-spacing: 0.16px; color: var(--muted); text-transform: uppercase; font-size: 12px; margin-bottom: 16px; }

/* SECTIONS */
.section { padding: var(--section) 0; }
.section-dark { background: var(--surface-dark); color: var(--on-dark); }
.section-coral { background: var(--sig-coral); color: var(--on-dark); }
.section-cream { background: var(--sig-cream); color: var(--ink); }
.section-soft { background: var(--surface-soft); }
.section-title { font-size: 32px; font-weight: 400; color: inherit; margin-bottom: 16px; line-height: 1.2; }
.section-lead { font-size: 18px; color: var(--muted); margin-bottom: 40px; max-width: 560px; }
.section-dark .section-title, .section-coral .section-title { color: var(--on-dark); }
.section-dark .section-lead, .section-coral .section-lead { color: rgba(255,255,255,0.7); }

/* CARDS */
.cards-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: var(--canvas); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--hairline);
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.card-img { width: 100%; aspect-ratio: 16/9; background: var(--surface-soft); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.card-body { padding: 20px; }
.card-tag { font-size: 11px; font-weight: 500; letter-spacing: 0.16px; text-transform: uppercase; color: var(--sig-coral); margin-bottom: 8px; }
.card-title { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 8px; line-height: 1.35; }
.card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; }
.card-meta { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* SIGNATURE CARD */
.sig-card {
  border-radius: var(--radius-lg); padding: 48px;
  margin: 0;
}
.sig-card h2 { font-size: 32px; font-weight: 400; color: var(--on-dark); margin-bottom: 16px; line-height: 1.2; }
.sig-card p { font-size: 16px; color: rgba(255,255,255,0.8); max-width: 560px; margin-bottom: 28px; line-height: 1.6; }
.sig-card-coral { background: var(--sig-coral); }
.sig-card-dark { background: var(--surface-dark); }
.sig-card-cream { background: var(--sig-cream); }
.sig-card-cream h2 { color: var(--ink); }
.sig-card-cream p { color: var(--body); }

/* FEATURED */
.featured-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feat-img { width: 100%; aspect-ratio: 4/3; background: var(--surface-soft); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.feat-content h2 { font-size: 28px; font-weight: 400; color: var(--ink); margin-bottom: 16px; line-height: 1.3; }
.feat-content p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 24px; }
.feat-tag { font-size: 12px; font-weight: 500; letter-spacing: 0.16px; text-transform: uppercase; color: var(--sig-coral); margin-bottom: 10px; display: block; }

/* ARTICLE */
.article-header { padding: 48px 0 32px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--link); text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }
.article-tag-badge { display: inline-block; background: var(--sig-coral); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 0.16px; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 16px; }
.article-title { font-size: clamp(24px, 3vw, 40px); font-weight: 400; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.article-meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 16px; }
.article-summary { background: var(--sig-cream); border-radius: var(--radius-md); padding: 24px; margin: 32px 0; font-size: 16px; color: var(--body); line-height: 1.6; font-style: italic; }
.article-toc { background: var(--surface-soft); border-radius: var(--radius-md); padding: 24px; margin: 24px 0; }
.article-toc h3 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16px; color: var(--muted); margin-bottom: 12px; }
.article-toc ol { padding-left: 20px; }
.article-toc li { font-size: 14px; color: var(--link); margin-bottom: 4px; }
.article-toc a { color: var(--link); }
.article-body { font-size: 16px; line-height: 1.75; color: var(--body); }
.article-body h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: 40px 0 16px; }
.article-body h3 { font-size: 20px; font-weight: 400; color: var(--ink); margin: 28px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; }
.key-context { background: var(--surface-soft); border-radius: var(--radius-md); padding: 24px; margin: 32px 0; }
.key-context h3 { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16px; color: var(--sig-coral); margin-bottom: 12px; }
.key-context ul { padding-left: 20px; }
.key-context li { font-size: 15px; color: var(--body); margin-bottom: 8px; line-height: 1.5; }
.not-covered { background: var(--surface-strong); border-radius: var(--radius-md); padding: 24px; margin: 32px 0; }
.not-covered h3 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.not-covered ul { padding-left: 20px; }
.not-covered li { font-size: 14px; color: var(--body); margin-bottom: 6px; }
.article-img-wrap { margin: 32px 0; }
.article-img-wrap .img-ph { width: 100%; aspect-ratio: 16/9; background: var(--surface-soft); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.article-img-wrap figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-box { background: var(--surface-soft); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; }
.sidebar-box h4 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16px; color: var(--muted); margin-bottom: 12px; }
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.related h3 { font-size: 20px; font-weight: 400; color: var(--ink); margin-bottom: 24px; }

/* GALLERY */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { background: var(--surface-soft); border-radius: var(--radius-md); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; overflow: hidden; }

/* STATIC */
.static-header { padding: 48px 0 32px; border-bottom: 1px solid var(--hairline); }
.static-header h1 { font-size: 40px; font-weight: 400; color: var(--ink); }
.static-content { padding: 48px 0; max-width: 800px; }
.static-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: 32px 0 12px; }
.static-content p { font-size: 16px; line-height: 1.75; color: var(--body); margin-bottom: 16px; }
.static-content ul { padding-left: 24px; margin-bottom: 16px; }
.static-content li { font-size: 16px; line-height: 1.6; color: var(--body); margin-bottom: 6px; }
.static-content a { color: var(--link); text-decoration: underline; }

/* FORMS */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font);
  color: var(--ink); background: var(--canvas); height: 44px;
}
textarea { height: auto; min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 2px rgba(27,97,201,0.15); }
.form-submit { background: var(--primary); color: var(--on-primary); padding: 16px 32px; border: none; border-radius: var(--radius-lg); font-size: 16px; font-weight: 500; cursor: pointer; font-family: var(--font); }
.form-submit:hover { background: var(--primary-active); }
.form-msg { display: none; background: var(--surface-soft); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 16px; margin-top: 16px; font-size: 15px; color: var(--ink); }

/* FOOTER */
.site-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-col h5 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16px; color: var(--ink); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-copyright { font-size: 13px; color: var(--muted); }

/* COOKIE */
.cookie-banner { position: fixed; bottom: 24px; left: 24px; z-index: 300; max-width: 420px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.cookie-banner p { font-size: 14px; line-height: 1.5; color: var(--body); margin-bottom: 16px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.12px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font); }
.cookie-btn-accept { background: var(--link); color: #fff; }
.cookie-btn-reject { background: var(--surface-strong); color: var(--ink); }
.cookie-btn-settings { background: transparent; color: var(--link); text-decoration: underline; padding: 12px 8px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .featured-wrap, .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 24px; }
  .sig-card { padding: 32px; }
}
@media (max-width: 600px) {
  .site-nav { display: none; }
  .burger { display: flex; flex-direction: column; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  :root { --section: 64px; }
}
