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

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --success: #1f8a65;
  --error: #cf2d56;
  --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --section: 80px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

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-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.btn-primary {
  display: inline-block;
  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;
  line-height: 1;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  display: inline-block;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.hero-band {
  padding: var(--section) 0;
  background: var(--canvas);
}
.hero-band .container { max-width: 900px; }
.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: 24px;
}
.hero-band h1 {
  font-size: 56px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}
.hero-band .hero-sub {
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 600px;
}
.hero-image {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  max-height: 460px;
}
.hero-image img { width: 100%; object-fit: cover; max-height: 460px; }

.section-band {
  padding: var(--section) 0;
}
.section-band + .section-band { border-top: 1px solid var(--hairline-soft); }

.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;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.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;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex-grow: 1;
}
.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-top: auto;
}
.card-link:hover { color: var(--primary-active); }

.article-hero {
  padding: 48px 0 40px;
}
.article-hero .container { max-width: 800px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-meta .tag {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.article-meta .date { font-size: 13px; color: var(--muted); }
.article-hero h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.article-hero .lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 28px;
}
.article-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-top: 32px;
}
.article-hero-img img { width: 100%; max-height: 420px; object-fit: cover; }

.article-body {
  padding-bottom: var(--section);
}
.article-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-layout h2 {
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-top: 48px;
  margin-bottom: 16px;
}
.article-layout h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-layout p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}
.article-layout ul, .article-layout ol {
  margin: 0 0 20px 20px;
}
.article-layout li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 8px;
}
.article-layout a { color: var(--primary); }
.article-layout a:hover { color: var(--primary-active); }

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}
.info-box p { margin-bottom: 0; }

.steps-list {
  list-style: none;
  margin: 0 0 24px 0;
  counter-reset: steps;
}
.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.steps-list li::before {
  content: counter(steps);
  min-width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
}
td {
  font-size: 14px;
  color: var(--body);
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-soft);
}
tr:last-child td { border-bottom: none; }

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 0;
  margin-bottom: 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }

.page-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--hairline-soft);
}
.page-header h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
}

.prose {
  max-width: 800px;
  padding: var(--section) 0;
}
.prose h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-top: 40px;
  margin-bottom: 14px;
}
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
}
.prose p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 20px; }
.prose li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }

.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-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(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}
.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }
.form-group input.error,
.form-group textarea.error { border-color: var(--error); }
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; display: none; }
.form-error.visible { display: block; }
.form-success {
  display: none;
  background: #eaf6f1;
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--success);
  margin-top: 16px;
}
.form-success.visible { display: block; }
.form-loading { display: none; font-size: 14px; color: var(--muted); margin-top: 12px; }
.form-loading.visible { display: block; }

.disclaimer-band {
  background: var(--surface-strong);
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.disclaimer-band p {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  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);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 14px; color: var(--body); }
.footer-col ul a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-links-inline a { font-size: 13px; color: var(--muted); }
.footer-links-inline a:hover { color: var(--ink); }

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(38,37,30,0.10);
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: 14px; color: var(--body); flex: 1; min-width: 200px; }
.cookie-inner a { color: var(--primary); }
.cookie-actions { display: flex; gap: 10px; }

@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--hairline-soft); }
  .nav-links a { display: block; padding: 12px 24px; }
  .nav-toggle { display: flex; }
  .site-nav { position: relative; }
  .hero-band h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .article-hero h1 { font-size: 30px; }
  .page-header h1 { font-size: 30px; }
  .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 24px; }
  .footer-col:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 640px) {
  .hero-band h1 { font-size: 28px; letter-spacing: -0.5px; }
  .article-hero .lead { font-size: 16px; }
}
