* { box-sizing: border-box; }
:root {
  --ink: #211b19;
  --muted: #756b66;
  --paper: #f6f1ed;
  --card: #fffdfa;
  --line: #ded5cf;
  --accent: #8c6d5a;
  --dark: #211b19;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button:disabled { opacity: .65; cursor: not-allowed; }
.hidden { display: none !important; }
.topbar {
  min-height: 76px;
  padding: 18px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(246,241,237,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { font-size: 1.25rem; font-weight: 700; }
.brand span { font-weight: 400; font-size: .82rem; margin-left: 8px; color: var(--muted); }
nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
nav a { font-size: .92rem; margin-right: 6px; }
.hero {
  max-width: 1200px;
  margin: auto;
  min-height: 620px;
  padding: 90px 5vw;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
}
.eyebrow { letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--accent); }
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1.03; margin: 16px 0 24px; }
h1 em { font-style: normal; font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; margin: 10px 0 30px; }
h3 { margin-top: 0; }
.lead { max-width: 680px; font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}
.button-primary { background: var(--ink); color: #fff; }
.button-light { background: var(--card); border-color: var(--line); }
.button-outline { background: transparent; border-color: var(--ink); }
.hero-card {
  background: var(--dark);
  color: #fff;
  min-height: 360px;
  border-radius: 28px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  font-size: 1.1rem;
  letter-spacing: .08em;
}
.hero-card strong { color: #c9b09f; font-size: 1.6rem; }
.section { padding: 100px 7vw; max-width: 1400px; margin: auto; }
.section-dark { max-width: none; background: var(--dark); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid article { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.section-dark .grid article { background: #2b2421; border-color: #443a35; }
.grid p { color: var(--muted); }
.section-dark .grid p { color: #d3c9c4; }
footer { padding: 30px 7vw; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); }
.session-state { min-height: 24px; margin-top: 20px; color: var(--muted); font-size: .92rem; }
.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,15,13,.6); }
.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--card);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.modal-close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
label { display: grid; gap: 7px; margin: 16px 0; font-weight: 700; }
input, select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
input:focus, select:focus { outline: 2px solid rgba(140,109,90,.24); border-color: var(--accent); }
.full { width: 100%; }
.link-button { border: 0; background: transparent; text-decoration: underline; cursor: pointer; padding: 12px 0; color: var(--muted); }
.form-msg { min-height: 24px; color: var(--muted); margin: 12px 0 0; }
.modal-intro { color: var(--muted); margin-top: -12px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.auth-tab { border: 0; background: transparent; padding: 10px 4px 12px; color: var(--muted); cursor: pointer; font-weight: 700; position: relative; }
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
@media (max-width: 820px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
