:root {
  --bg: #f3efe4;
  --bg-2: #e8e1d2;
  --paper: #fffaf1;
  --ink: #171c16;
  --muted: #5b6154;
  --line: #d4ccba;
  --forest: #1e3329;
  --forest-2: #15241d;
  --cream: #f4efe4;
  --copper: #c4541c;
  --copper-2: #a34416;
  --ok: #2c6b4a;
  --err: #9a2f2f;
  --shadow: 0 18px 40px rgba(23, 28, 22, 0.08);
  --radius: 18px;
  --max: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
a:hover { color: var(--copper); }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--forest);
  color: var(--cream);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus { top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--forest);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover { color: var(--forest-2); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 20px;
}

.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--bg-2);
  color: var(--forest);
}

.header-cta {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.nav-cta { margin-top: 8px; }
.nav-cta .btn { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
}

.btn-primary:hover {
  background: var(--copper-2);
  color: #fff;
}

.btn-dark {
  background: var(--forest);
  color: var(--cream);
}

.btn-dark:hover {
  background: var(--forest-2);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.hero {
  padding: 36px 0 20px;
}

.hero-panel {
  background: var(--forest);
  color: var(--cream);
  border-radius: 28px;
  padding: 32px 22px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border: 18px solid rgba(244, 239, 228, 0.08);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: #d7c7a8;
}

.hero h1,
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 6vw, 3.4rem);
}

.lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  max-width: 42rem;
  color: #e6dece;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.section { padding: 56px 0; }

.section h2,
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head p,
.muted { color: var(--muted); }

.grid {
  display: grid;
  gap: 14px;
}

.cards-2,
.cards-3,
.cards-4 { display: grid; gap: 14px; }

.card,
.cat-card,
.audience-card,
.step,
.faq-item,
.article-card,
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.cat-card,
.audience-card,
.article-card {
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cat-card:hover,
.audience-card:hover,
.article-card:hover {
  transform: translateY(-2px);
  border-color: #b9b09c;
  color: inherit;
}

.cat-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.cat-card h3,
.audience-card h3,
.article-card h3,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.cat-card p,
.audience-card p,
.article-card p,
.card p { margin: 0; color: var(--muted); }

.benefits { display: grid; gap: 12px; }

.benefit {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.benefit-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #efe3cf;
  color: var(--forest);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.steps { display: grid; gap: 12px; counter-reset: step; }

.step { position: relative; padding-left: 72px; min-height: 96px; }

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--copper);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--copper); }

.page-hero { padding: 28px 0 10px; }
.page-hero .lead { color: var(--muted); }

.prose { max-width: 46rem; }
.prose p,
.prose li { font-size: 1.02rem; }
.prose h3 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
}
.prose ul,
.prose ol { padding-left: 1.2rem; }

.faq-list { display: grid; gap: 10px; }

.faq-item details { border: 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item details p { margin: 10px 0 0; color: var(--muted); }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}

.form-grid { display: grid; gap: 12px; }

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

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

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--muted);
}

.consent input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 3px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.form-status.is-ok {
  display: block;
  background: #e5f3ea;
  color: var(--ok);
}

.form-status.is-err {
  display: block;
  background: #fde8e8;
  color: var(--err);
}

.field-error { color: var(--err); font-size: 0.85rem; font-weight: 600; }

.site-footer {
  margin-top: 40px;
  background: var(--forest-2);
  color: #d9d1c2;
  padding: 40px 0 24px;
}

.site-footer a { color: #f4efe4; text-decoration: none; }
.site-footer a:hover { color: #e7b089; }

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--cream);
  text-decoration: none;
}

.footer-col h2 {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8beab;
  margin: 0 0 12px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 228, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  font-size: 0.9rem;
}

.meta-list {
  display: grid;
  gap: 12px;
}

.meta-list div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.meta-list dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.meta-list dd { margin: 0; font-weight: 700; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 16px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { color: var(--muted); font-size: 0.85rem; }

.notice {
  background: #efe6d2;
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--ink);
}

.article-meta {
  color: var(--muted);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .wrap { width: min(calc(100% - 48px), var(--max)); }
  .nav-toggle { display: none; }
  .header-cta {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .nav-cta { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .site-nav ul {
    display: flex;
    gap: 4px;
  }
  .site-nav a { padding: 8px 10px; font-size: 0.95rem; }
  .hero-panel { padding: 56px 48px; }
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .cards-3,
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .page-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
}

@media (min-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 359px) {
  .hero h1 { font-size: 1.55rem; }
  .btn { width: 100%; }
}
