:root {
  --ink: #1c1914;
  --paper: #f6f0e6;
  --card: #fffdf8;
  --olive: #3d5a3a;
  --olive-dark: #2a3d28;
  --gold: #c4a35a;
  --terra: #9c4a2b;
  --muted: #6b6458;
  --line: #e4d9c5;
  --ok: #2f6b3a;
  --err: #9c2b2b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 25, 20, 0.08);
  font-family: "Segoe UI", "David", "Arial Hebrew", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  direction: rtl;
}

a { color: var(--olive-dark); }
img { max-width: 100%; }

.wrap { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  background: var(--olive-dark);
  color: #f6f0e6;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}
.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 1.25rem;
}
.brand span { color: var(--gold); }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a {
  color: #efe6d4;
  text-decoration: none;
  font-weight: 600;
}
nav a[aria-current="page"] { color: var(--gold); }

.hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(196,163,90,.25), transparent 40%),
    linear-gradient(180deg, #31492f, #1f2d1e);
  color: #f6f0e6;
  padding: 4.5rem 0 3.5rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .6rem; line-height: 1.15; }
.hero p { max-width: 38rem; font-size: 1.1rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: .75rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}
.btn-primary { background: var(--gold); color: #1c1914; }
.btn-ghost { background: transparent; color: inherit; outline: 1px solid #efe6d4; }
.btn-terra { background: var(--terra); color: #fff; }

section { padding: 3rem 0; }
h2 { font-size: 1.8rem; margin: 0 0 1rem; }
.muted { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.price { color: var(--terra); font-weight: 800; }

form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  gap: .85rem;
  box-shadow: var(--shadow);
}
label { font-weight: 700; display: block; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: 10px;
  border: 1px solid #d7ccb6;
  font: inherit;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.note {
  background: #efe6d0;
  border-radius: 12px;
  padding: .8rem 1rem;
  color: var(--olive-dark);
}
.status { min-height: 1.4rem; font-weight: 700; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

.cart {
  position: sticky;
  bottom: 1rem;
  background: var(--olive-dark);
  color: #f6f0e6;
  border-radius: 14px;
  padding: .9rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
}

form:tool-form-active {
  outline: 2px dashed var(--gold);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
}
