:root {
  --bg: #f4f8f5;
  --surface: #ffffff;
  --text: #183224;
  --muted: #5c7265;
  --line: rgba(24, 50, 36, 0.1);
  --accent: #dff25d;
  --accent-strong: #1c3927;
  --shadow: 0 18px 48px rgba(28, 57, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #edf4ef 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

.page {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero {
  padding: 24px 0 28px;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(223, 242, 93, 0.45);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 30px 24px;
}

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.toc a {
  display: block;
  text-decoration: none;
  color: var(--accent-strong);
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 600;
}

.section + .section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

.footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer a, .nav a {
  color: var(--accent-strong);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.contact {
  margin-top: 24px;
}

.contact-copy p {
  max-width: 640px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7fbf8;
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #7b8f84;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(28, 57, 39, 0.35);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(223, 242, 93, 0.28);
}

.submit-button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 700;
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  box-shadow: 0 10px 24px rgba(28, 57, 39, 0.12);
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(28, 57, 39, 0.16);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(28, 57, 39, 0.18);
  outline-offset: 3px;
}

.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px 20px;
}

.link-card h2 {
  margin-bottom: 8px;
}

.link-card p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 880px);
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .card {
    border-radius: 22px;
    padding: 22px 18px;
  }

  .submit-button {
    width: 100%;
    justify-self: stretch;
  }
}
