:root {
  --bg: #f6f3ee;
  --paper: #ffffff;
  --ink: #1d2433;
  --muted: #626a7a;
  --line: #e6e0d6;
  --green: #167a5b;
  --green-soft: #e3f2ea;
  --amber: #e8a526;
  --amber-soft: #fdf1d6;
  --red: #b8432e;
  --red-soft: #fbe6e1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 36, 51, .06), 0 6px 22px rgba(29, 36, 51, .07);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-top: 1.4em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
code { background: var(--amber-soft); padding: 2px 6px; border-radius: 6px; font-size: 15px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
main { padding: 28px 0 48px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 19px; color: var(--muted); }

.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; line-height: 1.1; flex-wrap: wrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand small { display: block; width: 100%; font-weight: 600; color: var(--green); font-size: 13px; }
@media (min-width: 721px) { .brand small { width: auto; margin-left: 6px; } }
.nav { display: flex; gap: 4px 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--amber); }
@media (max-width: 720px) { .nav { margin-left: 0; width: 100%; gap: 4px 14px; } }

.hero { background: linear-gradient(135deg, #e3f2ea, #fdf1d6); border-radius: 22px; padding: clamp(24px, 5vw, 56px); margin-bottom: 36px; }
.hero-card { max-width: 640px; }
.kicker { color: var(--green); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }

.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; font-size: 16px; line-height: 1.2; }
.btn:hover { background: #115f47; color: #fff; }
.btn.ghost { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.big { font-size: 19px; padding: 16px 28px; }
.btn.small { padding: 8px 16px; font-size: 15px; }
.btn.tiny { padding: 5px 10px; font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-2px); color: var(--ink); }
.thumb { position: relative; aspect-ratio: 1; background: #eee9e0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.badge.warn { background: var(--amber-soft); color: #8a5a00; }
.thumb .badge { position: absolute; top: 10px; left: 10px; }
.card-body { padding: 12px 14px 14px; }
.card-body h3 { font-size: 16px; margin-bottom: 4px; }
.price { font-weight: 800; color: var(--green); margin: 0 0 4px; font-size: 18px; }
.price.big { font-size: 32px; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }

.search { display: flex; gap: 8px; margin-bottom: 12px; }
.search input { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }

.item { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .item { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.shot { margin: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot.main { grid-column: 1 / -1; }
.shot img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.shot.main img { aspect-ratio: 4 / 3; }
.shot figcaption { font-size: 13px; color: var(--muted); padding: 6px 10px; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.box.pay { border-color: var(--amber); background: #fffaf0; }
.box.warn { border-color: var(--red); background: var(--red-soft); }
.box h2 { margin-top: 0; font-size: 20px; }

.steps { padding-left: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding-left: 52px; margin-bottom: 14px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--amber-soft); color: #8a5a00; font-weight: 800; display: grid; place-items: center; }

.form { display: grid; gap: 14px; background: var(--paper); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form textarea, .form select, .search input { font: inherit; padding: 10px 12px; border: 1px solid #cfc8bb; border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form .check { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; }
.form .check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 10px 14px; font-weight: 600; }

.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.progress li { flex: 1; min-width: 110px; text-align: center; padding: 8px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.progress li.done { background: var(--green-soft); color: var(--green); border-color: var(--green); }

.kv { border-collapse: collapse; width: 100%; margin: 10px 0 14px; }
.kv th { text-align: left; padding: 6px 12px 6px 0; vertical-align: top; white-space: nowrap; color: var(--muted); font-weight: 600; }
.kv td { padding: 6px 0; }
.tbl { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--paper); margin-bottom: 20px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.inline { display: inline-block; margin: 2px 4px 2px 0; }
.inline input.tiny { width: 130px; padding: 4px 6px; font-size: 13px; }

.foot { border-top: 1px solid var(--line); background: var(--paper); padding: 22px 0; color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 6px; }
