:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  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;
}

/* Navigation */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo 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-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
  gap: 12px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: var(--canvas);
}

.hero-label {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-image {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-card);
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-border {
  border-top: 1px solid var(--hairline);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 48px;
}

/* Article Cards */
.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(--radius-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;
  object-position: center;
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
}

.article-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

/* Article page */
.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.article-header .breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-header .breadcrumb a {
  color: var(--muted);
}

.article-header .breadcrumb a:hover {
  color: var(--primary);
}

.article-header h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--muted-soft);
  border-radius: 50%;
}

.article-hero-img {
  margin: 48px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-hero-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.article-img-caption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  padding: 48px 0 80px;
}

.article-body {
  min-width: 0;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin: 16px 0 16px 24px;
}

.article-body li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 6px;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
}

.article-body a:hover {
  text-decoration-color: var(--primary);
}

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
}

.info-box p {
  font-size: 14px;
  color: var(--body-strong);
  margin: 0;
  line-height: 1.5;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-strong);
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.step-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.step-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.step-list li:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--surface-strong);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.step-content strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: var(--body);
  margin: 0;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.sidebar-card h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.sidebar-toc {
  list-style: none;
  padding: 0;
}

.sidebar-toc li {
  margin-bottom: 8px;
}

.sidebar-toc a {
  font-size: 14px;
  color: var(--body);
}

.sidebar-toc a:hover {
  color: var(--primary);
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.sidebar-links a:hover {
  color: var(--primary);
}

/* Features grid */
.features-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(--radius-lg);
  padding: 24px;
}

.feature-icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.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;
}

/* Contact form */
.contact-section {
  background: var(--canvas);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  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.5;
}

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--ink);
}

textarea.form-control {
  height: auto;
  resize: vertical;
  min-height: 100px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--primary-active);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: none;
}

.form-status.success {
  background: #e8f5f0;
  color: var(--semantic-success);
  border: 1px solid #b8ddd0;
  display: block;
}

.form-status.error {
  background: #fde8ec;
  color: var(--semantic-error);
  border: 1px solid #f4b8c5;
  display: block;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  z-index: 999;
  padding: 16px 24px;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 14px;
  color: #c8c5bc;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.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);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #4a4941;
  cursor: pointer;
  font-family: inherit;
}

/* Footer */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-top: 10px;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 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-soft);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-bottom-links a {
  font-size: 14px;
  color: var(--muted);
}

/* Page header */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
}

.page-content {
  padding: 64px 0 80px;
  max-width: 720px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 14px;
}

.page-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 14px;
}

.page-content ul, .page-content ol {
  margin: 14px 0 14px 24px;
}

.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 6px;
}

.page-content a {
  color: var(--primary);
}

.updated-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
}

/* About team */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.about-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.about-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* Disclaimer */
.disclaimer-bar {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 32px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 56px;
    letter-spacing: -1.4px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.9px;
  }

  .hero-image img {
    height: 240px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-title {
    font-size: 28px;
  }

  .article-header h1 {
    font-size: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 32px;
    letter-spacing: -0.8px;
  }

  .section {
    padding: 56px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
