:root {
  --ink: #20201d;
  --muted: #6f6a62;
  --line: #ded8cf;
  --paper: #fffaf2;
  --cream: #f4efe7;
  --wood: #8a572d;
  --leaf: #526f53;
  --leaf-dark: #2f4d39;
  --danger: #a13f35;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(32, 32, 29, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(255, 250, 242, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a, .button, button, input[type="submit"] {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.primary, button.primary, input[type="submit"].primary {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
  color: var(--white);
}

.button.danger, button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--white);
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, 560px) 1fr;
  align-items: end;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(255,250,242,.96) 0%, rgba(255,250,242,.78) 42%, rgba(255,250,242,.08) 100%),
    url("images/hero-woodcraft.png") center right / cover no-repeat;
}

.hero h1 {
  max-width: 10ch;
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: .9;
  font-weight: 700;
}

.hero p {
  max-width: 48ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

.band {
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 64px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2, .panel h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(32, 32, 29, .06);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 16px;
}

.price {
  color: var(--leaf-dark);
  font-weight: 800;
  font-size: 1.1rem;
}

.muted { color: var(--muted); }

.panel {
  width: min(980px, calc(100% - 36px));
  margin: 34px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 32px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

label { font-weight: 750; }

input, textarea, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: #fffdf9;
}

textarea { min-height: 110px; resize: vertical; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { color: var(--muted); font-size: .9rem; }

.notice {
  padding: 12px 14px;
  margin: 14px 0;
  background: #eef5ed;
  border: 1px solid #c9dcc8;
  border-radius: 6px;
}

.error {
  background: #fff0ed;
  border-color: #e6b5ae;
}

footer {
  padding: 28px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: var(--cream);
}

@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; min-height: 560px; align-items: start; }
  .form-grid { grid-template-columns: 1fr; }
}
