*, *::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;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

html { 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;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link--active {
  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;
}

.hero-band {
  padding: 80px 0 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.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-title {
  font-size: 48px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 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-desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 48px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.article-card:hover {
  border-color: var(--hairline-strong);
}

.article-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card__body {
  padding: 24px;
}

.article-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.article-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-card__desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.article-card__link:hover {
  color: var(--primary-active);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.feature-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.contact-section {
  padding: 80px 0;
  background: var(--canvas);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-detail {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--body);
}

.contact-detail strong {
  color: var(--ink);
  font-weight: 600;
}

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s;
  height: 44px;
}

.form-textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-soft);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-active);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-top: 16px;
}

.form-message--success {
  background: #d4edda;
  color: var(--success);
  border: 1px solid #b8dfc8;
}

.article-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline-soft);
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.article-meta__tag {
  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);
}

.article-title {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 800px;
}

.article-subtitle {
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
  max-width: 680px;
}

.article-body {
  padding: 48px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  line-height: 1.25;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

.article-content .article-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  margin: 32px 0;
}

.article-content .img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: -24px;
  margin-bottom: 32px;
}

.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: 24px 0;
}

.info-box p {
  margin-bottom: 0;
  font-size: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline);
}

.data-table td {
  padding: 10px 16px;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.article-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-link {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: color 0.15s;
}

.sidebar-link:last-child {
  border-bottom: none;
}

.sidebar-link:hover {
  color: var(--ink);
}

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline-soft);
}

.page-title {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
}

.page-content {
  padding: 48px 0 80px;
  max-width: 760px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin: 40px 0 16px;
}

.page-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-content ul {
  margin: 0 0 20px 24px;
}

.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 1000;
  display: none;
}

.cookie-banner.is-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: var(--canvas);
  line-height: 1.5;
  flex: 1;
}

.cookie-text a {
  color: var(--canvas);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.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;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.footer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
}

.footer-list li,
.footer-list a {
  font-size: 14px;
  color: var(--body);
  line-height: 2;
}

.footer-list a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .articles-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-band .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 38px;
  }
}

@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: 0;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline-soft);
    width: 100%;
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .articles-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .hero-title {
    font-size: 32px;
  }
  .section-title,
  .article-title,
  .page-title {
    font-size: 28px;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-hero,
  .page-hero {
    padding: 40px 0 32px;
  }
  .section {
    padding: 48px 0;
  }
}
