@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--body); font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; line-height: 1.5; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

nav.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.nav-brand span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--body); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--ink); }

.hero-band {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}
.hero-band h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 20px;
}
.hero-band .hero-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.badge-pill {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 20px;
}
.badge-pill.primary { background: var(--primary); color: var(--on-primary); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}
.hero-image-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}
.hero-image-card img { width: 100%; height: 320px; object-fit: cover; }
.hero-image-card .card-caption {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
}

.section { padding: 80px 0; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-head {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}
.feature-card .card-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}
.feature-card p { font-size: 14px; color: var(--body); line-height: 1.6; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--hairline-strong); }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-body .badge-pill { margin-bottom: 12px; }
.article-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-card-body p { font-size: 14px; color: var(--body); line-height: 1.6; flex: 1; }
.article-card-body .card-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.img-rounded {
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.img-rounded img { width: 100%; height: 360px; object-fit: cover; }

.info-list { list-style: none; padding: 0; margin-top: 24px; }
.info-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 15px;
  color: var(--body);
}
.info-list li:last-child { border-bottom: none; }
.info-list li strong { color: var(--ink); min-width: 160px; font-weight: 600; }

.article-content { max-width: 740px; margin: 0 auto; }
.article-content h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
}
.article-content .article-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-content .lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 32px;
  border-left: 3px solid var(--primary);
  padding-left: 20px;
}
.article-content p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 20px; }
.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}
.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}
.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.8;
}
.article-content figure {
  margin: 32px 0;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.article-content figure img { width: 100%; }
.article-content figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--canvas-soft);
}
.article-content .info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin: 28px 0;
}
.article-content .info-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.article-content .info-box p { margin-bottom: 0; font-size: 15px; }
.article-content .ref-list { font-size: 13px; color: var(--muted); }
.article-content .ref-list a { color: var(--primary); }

.article-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--muted-soft); }

.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 40px;
  max-width: 560px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--canvas-soft);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  height: 44px;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { height: 120px; resize: vertical; }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
  display: none;
  padding: 14px 18px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  margin-top: 16px;
}
.form-message.success { background: #e8f5f0; color: var(--success); border: 1px solid #b8e0d4; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 999;
  display: none;
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p { font-size: 14px; color: var(--canvas-soft); line-height: 1.5; }
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--canvas-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
}

.disclaimer-bar {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

footer.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--body); line-height: 1.6; margin-top: 12px; max-width: 240px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--body); }
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-hero p { font-size: 16px; color: var(--body); max-width: 560px; line-height: 1.6; }

.prose h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}
.prose h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; }
.prose p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 18px; }
.prose ul { padding-left: 24px; margin-bottom: 18px; color: var(--body); font-size: 16px; line-height: 1.8; }
.prose a { color: var(--primary); }

.updated-note {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 16px;
  margin-top: 40px;
}

.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--surface-strong); color: var(--ink); font-weight: 600; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hairline-strong); }
td { padding: 12px 16px; border-bottom: 1px solid var(--hairline-soft); color: var(--body); }
tr:last-child td { border-bottom: none; }

@media (max-width: 1024px) {
  .cards-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero-band h1 { font-size: 44px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  nav.site-nav { position: relative; }
  .hero-band h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .cards-grid, .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-content h1 { font-size: 30px; }
  .contact-form-wrap { padding: 24px; }
  .section-head { font-size: 28px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-banner-inner { flex-direction: column; }
}
