*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

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: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary); }

img { display: block; max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }
.container--article { max-width: 780px; }

.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link--active { color: var(--ink); background: var(--surface-strong); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.badge-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.hero-band {
  padding: 80px 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.hero-badge { margin-bottom: 20px; }
.hero-headline {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 760px;
}
.hero-sub {
  font-size: 18px;
  color: var(--body);
  max-width: 580px;
  line-height: 1.6;
}

.section-band { padding: 80px 0; }
.section-band--alt { background: var(--canvas-soft); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-label { margin-bottom: 16px; }
.section-headline {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  margin-bottom: 32px;
  line-height: 1.2;
}
.section-note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.section-intro { color: var(--body); margin-bottom: 32px; font-size: 16px; }

.content-grid { display: grid; gap: 32px; }
.content-grid--2col { grid-template-columns: repeat(2, 1fr); }
.content-grid--3col { grid-template-columns: repeat(3, 1fr); }

.content-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); border: 1px solid var(--hairline); }
.card-figure { margin: 0; }
.card-figure img { width: 100%; height: 280px; object-fit: cover; }
.card-figure figcaption { font-size: 13px; color: var(--muted); padding: 10px 16px; border-top: 1px solid var(--hairline); }

.content-text { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.content-text p { color: var(--body); line-height: 1.6; }

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.feature-card__level {
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.feature-card__text { font-size: 14px; color: var(--body); line-height: 1.6; }

.method-item { padding: 24px; background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.method-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.method-item p { font-size: 15px; color: var(--body); line-height: 1.6; }

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card__figure { margin: 0; }
.article-card__figure img { width: 100%; height: 200px; object-fit: cover; }
.article-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card__title { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.article-card__title a { color: var(--ink); text-decoration: none; }
.article-card__title a:hover { color: var(--primary); text-decoration: underline; }
.article-card__excerpt { font-size: 14px; color: var(--body); line-height: 1.5; flex: 1; }
.article-card__date { font-size: 13px; color: var(--muted); margin-top: auto; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row--actions { flex-direction: row; align-items: center; gap: 16px; }
.form-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.form-input {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s;
  height: 44px;
}
.form-input:focus { outline: none; border-color: var(--ink); }
.form-input.is-invalid { border-color: var(--error); }
.form-textarea { height: auto; resize: vertical; }
.form-error { font-size: 13px; color: var(--error); min-height: 18px; }
.form-status { font-size: 14px; color: var(--success); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.btn-secondary:hover { background: var(--surface-strong); }

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 999;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner { display: flex; flex-direction: column; gap: 16px; }
.cookie-banner__text { font-size: 14px; line-height: 1.5; color: #ccc; }
.cookie-banner__text a { color: var(--canvas); }
.cookie-banner__actions { display: flex; gap: 12px; }

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 24px 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}
.footer-brand { font-size: 18px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 8px; }
.footer-tagline { font-size: 14px; color: var(--muted); line-height: 1.5; }
.footer-heading { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-address p { font-size: 14px; color: var(--body); line-height: 1.6; font-style: normal; }
.footer-address a { color: var(--body); }
.footer-address a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.footer-bottom p { font-size: 13px; color: var(--muted); }

.article-main { padding: 40px 0 80px; }
.breadcrumb { margin-bottom: 32px; }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.breadcrumb ol li + li::before { content: '/'; margin-right: 8px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.article-header { margin-bottom: 32px; }
.article-headline {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 16px 0;
}
.article-meta { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.article-meta__sep { color: var(--hairline-strong); }

.article-figure { margin: 0 0 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline); }
.article-figure img { width: 100%; height: 360px; object-fit: cover; }
.article-figure figcaption { font-size: 13px; color: var(--muted); padding: 10px 16px; border-top: 1px solid var(--hairline); background: var(--canvas-soft); }
.article-figure--inline { margin: 32px 0; }
.article-figure--inline img { height: 260px; }

.article-lead { font-size: 18px; color: var(--body-strong); line-height: 1.6; margin-bottom: 32px; }

.article-body { display: flex; flex-direction: column; gap: 24px; }
.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin-top: 8px;
  margin-bottom: -8px;
}
.article-body h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: -8px; }
.article-body p { font-size: 16px; color: var(--body); line-height: 1.7; }
.article-list { padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.article-list li { font-size: 16px; color: var(--body); line-height: 1.6; }
.article-list strong { color: var(--ink); }

.article-related {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
}
.article-related h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.article-related ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.article-related a { font-size: 15px; color: var(--body); }
.article-related a:hover { color: var(--primary); }

.page-header { padding: 40px 0 32px; border-bottom: 1px solid var(--hairline); margin-bottom: 40px; }
.page-headline { font-size: clamp(28px, 4vw, 48px); font-weight: 400; color: var(--ink); letter-spacing: -0.72px; margin-bottom: 16px; }
.page-lead { font-size: 18px; color: var(--body); max-width: 640px; line-height: 1.6; }
.page-meta { font-size: 14px; color: var(--muted); margin-top: 8px; }
.page-body { display: flex; flex-direction: column; gap: 24px; padding-bottom: 80px; }
.page-body h2 { font-size: 22px; font-weight: 400; color: var(--ink); letter-spacing: -0.25px; margin-top: 8px; }
.page-body p { font-size: 16px; color: var(--body); line-height: 1.7; }
.page-list { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.page-list li { font-size: 16px; color: var(--body); line-height: 1.6; }
.contact-block { font-style: normal; background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.contact-block a { color: var(--body); }

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-links.is-open { display: flex; }
  .nav-inner { position: relative; }

  .content-grid--2col { grid-template-columns: 1fr; }
  .content-grid--3col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero-band { padding: 48px 0; }
  .section-band { padding: 48px 0; }
  .cookie-banner { bottom: 16px; left: 16px; right: 16px; }
  .article-figure img { height: 220px; }
  .form-row--actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-headline { letter-spacing: -1px; }
  .cookie-banner__actions { flex-wrap: wrap; }
}
