:root {
  --bg: #f7f4ef;
  --panel: #ffffff;
  --text: #1f1f1f;
  --muted: #66645f;
  --line: #e6e0d7;
  --accent: #1f2937;
  --accent-2: #3b82f6;
  --soft: #f1ece4;
  --success: #166534;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(24, 24, 24, 0.06);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.hero {
  padding: 70px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-top: 18px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 18px 0 0;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-dark {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.btn-dark:hover { transform: translateY(-1px); }
.btn-light {
  background: var(--panel);
  border-color: var(--line);
}
.btn-light:hover { background: #fafafa; }
.btn-wide { width: 100%; }

.card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 26px;
}

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

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

.stat {
  background: var(--soft);
  border-radius: 20px;
  padding: 20px;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
}

.muted,
.meta,
small,
.text-muted {
  color: var(--muted);
}

.section {
  padding: 28px 0;
}

.section-head {
  margin-bottom: 18px;
}

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

.article-card {
  padding: 24px;
}

.article-card .pill,
.pill {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
}

.article-card p,
.product-card p,
.page-intro p,
.content p,
.content li {
  color: var(--muted);
}

.side-panel {
  background: var(--accent);
  color: white;
}

.side-panel .text-muted,
.side-panel p,
.side-panel label,
.side-panel small {
  color: rgba(255,255,255,0.78);
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: white;
}

textarea { min-height: 140px; resize: vertical; }

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 14px;
  color: var(--muted);
}

.hero-list,
.check-list,
.quick-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.hero-list li,
.check-list li,
.quick-list li {
  padding-left: 26px;
  position: relative;
  margin: 10px 0;
}

.hero-list li::before,
.check-list li::before,
.quick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
}

.page-hero {
  padding: 56px 0 22px;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
}

.content.card,
.sidebar.card,
.product-card,
.notice,
.checklist-box {
  padding: 26px;
}

.content h2,
.content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.content ul,
.content ol {
  padding-left: 22px;
}

.product-card {
  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.product-meta div {
  background: var(--soft);
  border-radius: 16px;
  padding: 12px;
  font-size: 14px;
}

.notice {
  border: 1px dashed #c7bda9;
  background: #fffaf2;
  border-radius: 20px;
  margin: 22px 0;
}

.checklist-box {
  background: var(--soft);
  border-radius: 22px;
}

.sidebar .panel + .panel,
.sidebar .widget + .widget {
  margin-top: 16px;
}

.widget {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.widget h3 {
  margin-bottom: 10px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.link-list li:last-child { border-bottom: 0; }

.note {
  font-size: 13px;
  color: var(--muted);
}

.affiliate-button[href="#"] {
  opacity: 0.78;
}

.center {
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.table th,
.table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.table th {
  background: var(--soft);
}

.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .content-wrap,
  .footer-grid,
  .grid-3,
  .grid-2,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: min(var(--max), calc(100% - 24px)); }
  .panel, .content.card, .sidebar.card, .widget, .product-card { padding: 20px; }
  .nav-links { gap: 12px; }
  .btn { width: 100%; }
  .actions { display: grid; grid-template-columns: 1fr; }
}
