:root {
  --forest: #10261c;
  --forest-2: #1a3d2c;
  --moss: #2f6b45;
  --leaf: #3f8f58;
  --mint: #d5edd9;
  --cream: #eef2ea;
  --paper: #f7f6f1;
  --ink: #141916;
  --muted: #5a675e;
  --line: #c9cfc6;
  --steel: #3d4742;
  --amber: #d35400;
  --amber-soft: #f6d3b5;
  --danger: #8f2d2d;
  --ok: #1f7a45;
  --shadow: 0 16px 36px rgba(16, 38, 28, 0.14);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(63,143,88,.18), transparent 32%),
    linear-gradient(180deg, #e7ece4 0%, var(--cream) 40%);
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><path d='M0 40h80M40 0v80' stroke='%2310261c' stroke-width='1'/><path d='M10 70l12-18 8 6 14-22' fill='none' stroke='%2310261c' stroke-width='2'/></svg>");
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: #0c1b14;
  color: #d7e6db;
  font-size: 13px;
  border-bottom: 3px solid var(--amber);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 700; }
.top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.langs { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; overflow: hidden; }
.langs button {
  background: transparent;
  color: #d7e6db;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
}
.langs button.active { background: var(--amber); color: #fff; }

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 241, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, #4ea66a, #163426);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}
.brand strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand span { display: block; font-size: 12px; color: var(--muted); margin-top: -3px; }

.menu { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.menu a {
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--forest);
  font-weight: 650;
  font-size: 14px;
}
.menu a:hover, .menu a.active { background: #e3efe6; color: var(--amber); }

.nav-actions { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 750;
  cursor: pointer;
  transition: .16s transform, .16s background;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-accent { background: var(--amber); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--forest); }
.btn-amber { background: #f3e0c8; color: #7a3b00; }
.btn-danger { background: var(--danger); color: #fff; }
.cart-btn { position: relative; }
.badge {
  position: absolute;
  top: -6px;
  right: -4px;
  background: var(--amber);
  color: #fff;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,20,15,.82) 0%, rgba(10,20,15,.45) 52%, rgba(10,20,15,.2) 100%),
    linear-gradient(180deg, transparent 30%, rgba(8,16,12,.75) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 80px 0 48px; }
.kicker {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}
.hero h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(36px, 7vw, 68px);
  line-height: .95;
  margin: 16px 0 12px;
  max-width: 14ch;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.hero p { max-width: 48ch; font-size: 18px; color: #e6eee8; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.section { padding: 62px 0; }
.section h2, .form-card h3, aside h3 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.lead { color: var(--muted); max-width: 64ch; margin: 0 0 28px; }
.grid-3, .grid-4, .products { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.products { grid-template-columns: repeat(3, 1fr); }

.card, .product, .service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service img, .product img { height: 190px; width: 100%; object-fit: cover; }
.service .body, .product .body { padding: 16px; }
.service h3, .product h3 {
  margin: 8px 0 6px;
  font-size: 22px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.muted { color: var(--muted); font-size: 14px; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.tag-new { background: #d9f0df; color: var(--forest); }
.tag-used { background: var(--amber-soft); color: #8a3a00; }
.tag-rent { background: #dce7f5; color: #1d3c66; }
.tag-off { background: #eee; color: #777; }
.price { font-size: 22px; font-weight: 800; color: var(--forest); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 650;
}
.chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }

.notice {
  background: #fff4e5;
  border-left: 4px solid var(--amber);
  color: #6b4b12;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

form.stack { display: grid; gap: 14px; }
label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card { background: var(--paper); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }

table.cart, table.admin { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
table.cart th, table.cart td, table.admin th, table.admin td {
  padding: 11px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}
table.admin input, table.admin select { padding: 7px 8px; }
.qty { width: 72px; }

.hours-table td:first-child { font-weight: 800; width: 140px; }
.closed { color: var(--danger); font-weight: 800; }
.open-now { color: var(--ok); font-weight: 800; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button.active { background: var(--forest); color: #fff; }

footer.site {
  background: #0c1b14;
  color: #d7e8de;
  padding: 42px 0 20px;
  margin-top: 28px;
  border-top: 4px solid var(--amber);
}
footer.site a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.tiny { font-size: 12px; color: #a9c0b3; margin-top: 24px; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--forest);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
  z-index: 80;
}

.menu-toggle { display: none; background: none; border: 0; font-size: 26px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 28px; }
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.stat b { display: block; font-family: "Oswald", sans-serif; font-size: 28px; }

@media (max-width: 900px) {
  .grid-3, .grid-4, .products, .split, .form-grid, .foot-grid, .stat-row { grid-template-columns: 1fr; }
  .menu { display: none; }
  .menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 16px; right: 16px; top: 108px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
  }
  .menu-toggle { display: block; }
  .hero { min-height: 62vh; }
  table.admin { display: block; overflow-x: auto; }
}

.admin-list { display: grid; gap: 16px; }
.admin-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.admin-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: start; }
.admin-photos img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line);
}
.photo-add {
  display: grid; place-items: center; text-align: center;
  width: 96px; min-height: 96px; padding: 8px;
  border: 1px dashed var(--line); border-radius: 8px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  background: #f4f7f4;
}
.photo-add input { display: none; }
.admin-fields { display: grid; gap: 8px; }
.admin-fields textarea { width: 100%; padding: 8px; resize: vertical; }
table.specs { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
table.specs th, table.specs td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }
table.specs th { width: 40%; color: var(--muted, #5b6b62); font-weight: 700; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs .thumb { border: 2px solid transparent; padding: 0; background: none; border-radius: 8px; cursor: pointer; }
.thumbs .thumb.active { border-color: var(--amber); }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 800px) {
  .admin-card { grid-template-columns: 1fr; }
}
