:root {
  --bg: #fffaf3;
  --bg-alt: #f6ecdd;
  --text: #2b1d14;
  --muted: #7a6657;
  --accent: #b5651d;
  --accent-dark: #8c4a10;
  --card: #ffffff;
  --radius: 16px;
}
body.dark {
  --bg: #1a1310;
  --bg-alt: #241a15;
  --text: #f3e7da;
  --muted: #b9a594;
  --accent: #e0914a;
  --accent-dark: #f0a965;
  --card: #2d211b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }

.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid rgba(128,128,128,.2);
}
.logo { font-weight: 700; font-size: 1.3rem; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a:hover { color: var(--accent); }
.theme, .burger {
  background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text);
}
.burger { display: none; }

.hero {
  text-align: center;
  padding: 110px 24px;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.15; margin-bottom: 16px; }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; font-size: 1.1rem; }

.btn {
  display: inline-block; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  padding: 13px 28px; border-radius: 999px;
  font-size: 1rem; font-weight: 600;
  transition: transform .15s, background .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }

.section { max-width: 960px; margin: 0 auto; padding: 72px 24px; }
.section.alt { max-width: none; background: var(--bg-alt); }
.section.alt > * { max-width: 912px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: 2rem; margin-bottom: 28px; }
.muted { color: var(--muted); margin-bottom: 24px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); padding: 26px; border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.card span { font-size: 2rem; }
.card h3 { margin: 10px 0 6px; }
.card p { color: var(--muted); }

.filters { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--accent); background: transparent; color: var(--text);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: .95rem;
}
.chip.active { background: var(--accent); color: #fff; }

.menu { list-style: none; display: grid; gap: 12px; }
.menu li {
  display: flex; justify-content: space-between; gap: 16px;
  background: var(--card); padding: 16px 20px; border-radius: 12px;
}
.menu small { display: block; color: var(--muted); }
.price { font-weight: 700; color: var(--accent); white-space: nowrap; }

.form { display: grid; gap: 14px; max-width: 520px; }
.form input, .form textarea {
  padding: 13px 16px; border-radius: 12px; font: inherit;
  border: 1px solid rgba(128,128,128,.35);
  background: var(--card); color: var(--text);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); }
.form .btn { justify-self: start; }
.status { min-height: 1.4em; font-weight: 600; }
.status.ok { color: #2e8b57; }
.status.err { color: #c0392b; }

.footer { text-align: center; padding: 28px; color: var(--muted); border-top: 1px solid rgba(128,128,128,.2); }

@media (max-width: 640px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 18px; background: var(--bg);
    border-bottom: 1px solid rgba(128,128,128,.2);
  }
  .nav.open { display: flex; }
  .hero { padding: 70px 20px; }
}
