:root {
  --bg: #f7f3ec;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #657080;
  --line: #ddd6cc;
  --brand: #8b3f16;
  --brand-dark: #5c270d;
  --accent: #0f4c5c;
  --success: #edf7ed;
  --shadow: 0 20px 45px rgba(31, 41, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  background: var(--brand);
  color: white;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.nav-links { display: flex; gap: 18px; color: var(--muted); font-size: 15px; }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 20px 40px;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 32px;
  align-items: center;
}
.eyebrow { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -2px; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -1px; }
h3 { font-size: 22px; }
.hero-text { font-size: 20px; color: var(--muted); max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card, .product-card, .modal-card, .checkout-panel, .admin-box {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 26px;
}
.hero-card { padding: 28px; }
.hero-card ul { padding-left: 20px; margin: 12px 0 0; color: var(--muted); }
.mini-title { font-weight: 800; margin: 0; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.primary { background: var(--brand); color: white; }
.primary:hover { background: var(--brand-dark); }
.ghost { background: white; color: var(--brand); border: 1px solid var(--line); }
.full { width: 100%; }

.section { max-width: 1180px; margin: 0 auto; padding: 54px 20px; }
.section-head { margin-bottom: 24px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-5px); }
.product-badge { color: white; background: var(--accent); padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; display: inline-block; margin-bottom: 18px; width: fit-content; }
.price { font-size: 34px; font-weight: 900; margin: 16px 0; }
.product-card p { color: var(--muted); }
.card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hover-info {
  position: absolute;
  inset: 0;
  padding: 24px;
  background: rgba(15, 76, 92, .96);
  color: white;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-card:hover .hover-info { opacity: 1; transform: translateY(0); }
.hover-info p { color: white; }

.split { display: grid; grid-template-columns: .7fr 1fr; gap: 24px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.steps div { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.steps span { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: white; display: grid; place-items: center; font-weight: 900; }
.steps p { margin-bottom: 0; color: var(--muted); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 40;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.checkout-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 94vw);
  height: 100vh;
  z-index: 50;
  border-radius: 26px 0 0 26px;
  padding: 28px;
  overflow-y: auto;
  transform: translateX(110%);
  transition: .25s ease;
}
.checkout-panel.open { transform: translateX(0); }
.close-btn { border: 0; background: transparent; font-size: 34px; cursor: pointer; float: right; }
.lead-form { display: grid; gap: 14px; margin-top: 18px; }
.lead-form label { display: grid; gap: 7px; font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: white;
}
.pay-options { display: grid; gap: 12px; margin-top: 18px; }
.pay-options a { text-align: center; }
.paypal { background: #ffc439; color: #111; }
.stripe { background: #635bff; color: white; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.success-box { background: var(--success); border: 1px solid #b8dfb8; border-radius: 16px; padding: 16px; margin-top: 16px; }
.hidden { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.45);
}
.modal.open { display: grid; }
.modal-card { width: min(520px, 96vw); padding: 28px; }
.footer { max-width: 1180px; margin: 0 auto; padding: 34px 20px; color: var(--muted); }

.admin-page { max-width: 980px; margin: 0 auto; padding: 40px 20px; }
.admin-box { padding: 24px; margin-top: 20px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
textarea { min-height: 110px; }
.code-box { white-space: pre-wrap; background: #111827; color: #e5e7eb; padding: 16px; border-radius: 16px; overflow-x: auto; }

@media (max-width: 850px) {
  .hero, .split { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
}
