@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;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
  --section: 80px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); 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; }

/* TOP NAV */
.top-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-nav .container {
  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.5px;
}
.nav-brand span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* HERO */
.hero-band {
  padding: var(--section) 0;
  background: var(--canvas);
}
.hero-band .container { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-label {
  display: inline-flex;
  align-items: center;
  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;
}
.hero-h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 820px;
}
.hero-sub {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  max-width: 560px;
}
.hero-meta {
  font-size: 13px;
  color: var(--muted);
}

/* SECTION */
.section { padding: var(--section) 0; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.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);
  line-height: 1.5;
  max-width: 600px;
}

/* DIVIDER */
.hairline { border: none; border-top: 1px solid var(--hairline); }

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}
.feature-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: 16px;
}
.feature-card-tag {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 3px 8px;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}
.feature-card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}
.feature-card-link:hover { color: var(--primary-active); }

/* ARTICLE PAGE */
.article-hero { padding: 60px 0 40px; }
.article-hero h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 20px;
}
.article-hero .hero-meta { margin-bottom: 0; }
.article-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  margin: 32px 0;
  border: 1px solid var(--hairline);
}
.article-body { max-width: 760px; }
.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  line-height: 1.25;
  color: var(--ink);
  margin: 40px 0 14px;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}
.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.article-body li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}
.article-body a { color: var(--primary); }
.article-body a:hover { color: var(--primary-active); text-decoration: underline; }
.article-infobox {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 28px 0;
}
.article-infobox p { margin-bottom: 0; font-size: 15px; }

/* RELATED GRID */
.related-section { padding: 60px 0; border-top: 1px solid var(--hairline); margin-top: 40px; }
.related-section h2 { font-size: 22px; font-weight: 400; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.11px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px;
}
.related-card h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.related-card p { font-size: 14px; color: var(--body); }

/* PAGE LAYOUT */
.page-header { padding: 60px 0 32px; border-bottom: 1px solid var(--hairline); }
.page-header h1 { font-size: 48px; font-weight: 400; letter-spacing: -1.2px; color: var(--ink); }
.page-content { padding: 48px 0; max-width: 760px; }
.page-content h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); margin: 36px 0 12px; }
.page-content p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 16px; }
.page-content ul { padding-left: 24px; margin-bottom: 16px; }
.page-content li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }
.page-content a { color: var(--primary); }

/* CONTACT FORM */
.contact-section { padding: var(--section) 0; background: var(--canvas); }
.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 40px;
  max-width: 520px;
}
.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(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }
.form-group textarea { height: 110px; 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;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
  display: none;
  background: #ecfaf4;
  border: 1px solid #b3e6d1;
  border-radius: var(--rounded-md);
  padding: 14px 18px;
  color: var(--semantic-success);
  font-size: 15px;
  margin-top: 16px;
}
.form-error-msg {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

/* 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;
}
.footer-brand { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-brand span { color: var(--primary); }
.footer-desc { font-size: 14px; color: var(--body); line-height: 1.5; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: 0.3px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 14px; color: var(--muted); }
.footer-bottom a { font-size: 14px; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 20px 28px;
  max-width: 600px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}
#cookie-banner p { font-size: 14px; color: var(--canvas-soft); line-height: 1.5; }
#cookie-banner a { color: var(--canvas-soft); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--canvas-soft);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 9px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.5); }

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted-soft); }

/* INFO TABLE */
.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.info-table th {
  background: var(--surface-strong);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.info-table td {
  font-size: 14px;
  color: var(--body);
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-soft);
}
.info-table tr:last-child td { border-bottom: none; }

/* ABOUT LAYOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 48px; }
.about-img { border-radius: var(--rounded-lg); border: 1px solid var(--hairline); width: 100%; }
.about-text h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin-bottom: 16px; }
.about-text p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 14px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-h1 { font-size: 36px; letter-spacing: -1px; }
  .section-head { font-size: 26px; }
  .article-hero h1 { font-size: 32px; }
  .page-header h1 { font-size: 32px; }
  .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 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .top-nav { position: relative; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-band { padding: 48px 0; }
  .section { padding: 48px 0; }
}
