@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

: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;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--canvas);
  color: var(--body);
  line-height: 1.5;
  font-weight: 400;
}

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;
}

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.4;
}

.site-logo span {
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mobile-nav {
  display: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.hero-section {
  padding: 80px 0;
  background: var(--canvas);
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin-top: 48px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface-card);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: 16px;
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: var(--primary-active);
}

.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
}

.article-date {
  font-size: 13px;
  color: var(--muted);
}

.article-title {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.84px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 16px;
}

.article-intro {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
  max-width: 680px;
}

.article-body {
  padding: 48px 0 80px;
}

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.56px;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.2;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 8px;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(245,78,0,0.3);
}

.article-content a:hover {
  text-decoration-color: var(--primary);
}

.article-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin: 32px 0;
}

.article-img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: -24px;
  margin-bottom: 32px;
  line-height: 1.4;
}

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 32px 0;
}

.info-box p {
  margin-bottom: 0;
  font-size: 15px;
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  border-bottom: 1px solid var(--hairline-soft);
  padding: 10px 0;
}

.sidebar-links li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-links a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.sidebar-links a:hover {
  color: var(--primary);
}

.two-col-article {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.contact-section {
  padding: 80px 0;
  background: var(--surface-card);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}

.contact-detail-item {
  font-size: 14px;
  color: var(--body);
  display: flex;
  gap: 8px;
}

.contact-detail-label {
  font-weight: 600;
  color: var(--ink);
  min-width: 60px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.15s ease;
  height: 44px;
}

.form-textarea {
  height: auto;
  resize: vertical;
  min-height: 100px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--semantic-error);
}

.form-error {
  font-size: 12px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease;
  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: rgba(31,138,101,0.08);
  border: 1px solid rgba(31,138,101,0.3);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--semantic-success);
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}

.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 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--primary);
}

.footer-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.footer-links 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-copyright {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom-links a:hover {
  color: var(--body);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 16px 24px;
  z-index: 1000;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  color: rgba(247,247,244,0.85);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--canvas);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-cookie-accept:hover {
  background: var(--primary-active);
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(247,247,244,0.7);
  border: 1px solid rgba(247,247,244,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cookie-reject:hover {
  border-color: rgba(247,247,244,0.6);
  color: var(--canvas);
}

.page-header {
  padding: 60px 0;
  border-bottom: 1px solid var(--hairline);
}

.page-title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.84px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
}

.page-content {
  padding: 48px 0 80px;
  max-width: 720px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 12px;
  line-height: 1.25;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
  line-height: 1.4;
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 18px;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 6px;
}

.page-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(245,78,0,0.3);
}

.page-content a:hover {
  text-decoration-color: var(--primary);
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--body);
}

.breadcrumb-sep {
  color: var(--muted-soft);
}

.divider {
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

.updated-tag {
  font-size: 12px;
  color: var(--muted-soft);
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 44px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .two-col-article {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .hero-title {
    font-size: 32px;
    letter-spacing: -0.8px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .section-title {
    font-size: 28px;
  }
  .card-grid,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-title {
    font-size: 28px;
  }
  .page-title {
    font-size: 28px;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 48px 0;
  }
  .section {
    padding: 48px 0;
  }
}
