:root {
  --ink: #16241B; --forest: #0D2818; --forest-soft: #1D4530; --gold: #C6A15B; --gold-light: #E4C989;
  --cream: #F6F1E7; --paper: #FBF8F1; --muted: rgba(22,36,27,0.62); --line: rgba(22,36,27,0.16); --error: #A33A2A;
  --serif: "Alegreya", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; }
header { background: var(--forest); color: var(--cream); }
header .bar { display: flex; justify-content: space-between; align-items: center; max-width: 1080px; margin: 0 auto; padding: 22px 20px; }
.logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.16em; text-decoration: none; color: var(--cream); }
.langs button { background: none; border: 0; font: inherit; font-size: 0.78rem; color: rgba(246,241,231,0.6); cursor: pointer; padding: 4px 6px; }
.langs button[aria-pressed="true"] { color: var(--gold-light); font-weight: 600; }
main { max-width: 1080px; margin: 0 auto; padding: 36px 20px 72px; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin: 8px 0 32px; }
h1 em { color: var(--gold); font-style: italic; }
.grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } .summary { order: -1; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } .card { padding: 20px; } }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea { width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
textarea { min-height: 72px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item .name { font-weight: 600; }
.item .note { color: var(--muted); font-size: 0.85rem; }
.item .price { text-align: right; font-variant-numeric: tabular-nums; }
.qty { justify-self: start; display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; border-radius: 999px; }
.qty span { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.add { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.add button { font: inherit; font-size: 0.82rem; border: 1px dashed var(--line); background: none; color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.totals { margin-top: 16px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--serif); font-size: 1.7rem; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.empty { color: var(--muted); padding: 10px 0; }
.pay { width: 100%; margin-top: 8px; padding: 16px; font: inherit; font-weight: 600; border: 0; border-radius: 999px;
  background: var(--forest); color: var(--cream); cursor: pointer; transition: background .25s; }
.pay:hover { background: var(--forest-soft); }
.pay[disabled] { opacity: .6; cursor: progress; }
.errors { color: var(--error); margin: 14px 0 0; }
.errors:empty { display: none; }
.fine { color: var(--muted); font-size: 0.82rem; text-align: center; margin: 12px 0 0; }
.center { text-align: center; max-width: 560px; margin: 8vh auto; }
.center header, .center .bar {} 
.btn-link { display: inline-block; margin-top: 18px; padding: 13px 26px; border-radius: 999px; background: var(--forest); color: var(--cream); text-decoration: none; font-weight: 600; }
