:root {
    --swat: #581B1A;
    --black: #000;
    --white: #fff;
    --ink: #171717;
    --muted: #6b6b6b;
    --line: #dedede;
    --surface: #f5f4f2;
    --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--surface); color: var(--ink); }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(640px, calc(100% - 32px)); padding: 64px 0; }
.site-header { background: var(--black); color: var(--white); border-bottom: 5px solid var(--swat); }
.brand-row { min-height: 110px; display: flex; align-items: center; gap: 18px; }
.logo { width: 72px; height: 72px; object-fit: contain; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.7rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.12; }
h3 { font-size: 1.2rem; }
.eyebrow { display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 800; opacity: .72; }
.page-grid { display: grid; gap: 28px; padding: 34px 0 72px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 38px); box-shadow: 0 10px 35px rgba(0,0,0,.04); }
.hero { border-top: 6px solid var(--swat); }
.badge { display: inline-flex; background: var(--swat); color: #fff; padding: 7px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; margin-bottom: 18px; }
.deadline-box { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 14px; }
.deadline-box > div { background: #f3eded; border-left: 4px solid var(--swat); padding: 15px 16px; border-radius: 10px; }
.label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.deadline-box small { display: block; color: var(--muted); margin-top: 3px; }
.muted { color: var(--muted); font-size: .93rem; line-height: 1.55; }
.section-head { display: flex; justify-content: space-between; align-items: end; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.product-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.product-code { font-size: .78rem; font-weight: 800; color: var(--swat); }
.price { font-size: 1.2rem; }
.product-card p { color: var(--muted); line-height: 1.5; }
dl { margin: 20px 0; }
dl > div { display: grid; grid-template-columns: 80px 1fr; padding: 8px 0; border-top: 1px solid #eee; }
dt { font-weight: 800; } dd { margin: 0; }
.text-link { color: var(--swat); font-weight: 800; text-decoration-thickness: 1px; }
.size-card blockquote { margin: 18px 0; padding: 18px 20px; border-left: 5px solid var(--swat); background: #faf6f6; font-weight: 400; font-size: 1.05rem; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
label span { display: block; font-size: .84rem; font-weight: 800; margin-bottom: 7px; }
input, select, textarea { width: 100%; border: 1px solid #cfcfcf; border-radius: 10px; padding: 12px 13px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(88,27,26,.12); border-color: var(--swat); }
.order-lines { display: grid; gap: 12px; margin: 24px 0 12px; }
.order-line { display: grid; grid-template-columns: 2fr 1.4fr 1fr .75fr auto; gap: 10px; align-items: end; background: #f7f7f7; border: 1px solid #e7e7e7; padding: 14px; border-radius: 12px; }
.remove-line { border: 0; background: #ececec; width: 42px; height: 42px; border-radius: 10px; font-size: 1.5rem; cursor: pointer; }
.notes-label { display: block; margin: 20px 0; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 18px 0; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; }
.check-row span { font-weight: 500; line-height: 1.45; }
.checkout-bar { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.checkout-bar strong { font-size: 1.8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 12px 16px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--swat); color: #fff; }
.btn.secondary { background: #ededed; color: #111; }
.btn.full { width: 100%; }
.alert { border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.alert.danger { background: #fff0f0; border: 1px solid #e9b9b9; color: #791d1d; }
.success-card { text-align: center; border-top: 6px solid var(--swat); }
.success-card .logo, .admin-login .logo { display: block; margin: 0 auto 18px; }
.big-total { font-size: clamp(2rem, 7vw, 4rem); font-weight: 900; color: var(--swat); margin: 20px 0; }
.admin-login form { display: grid; gap: 14px; text-align: left; }
.admin-head { justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 14px; margin: 28px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat span { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; }
.stat strong { font-size: 1.8rem; }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { text-align: left; vertical-align: top; padding: 15px; border-bottom: 1px solid #ececec; }
th { background: #111; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
td small { color: var(--muted); }
.admin-item { margin-bottom: 5px; }
.empty { text-align: center; color: var(--muted); padding: 40px; }
@media (max-width: 850px) {
    .products, .deadline-box, .field-grid { grid-template-columns: 1fr; }
    .order-line { grid-template-columns: 1fr 1fr; }
    .remove-line { grid-column: 2; justify-self: end; }
    .checkout-bar { align-items: stretch; flex-direction: column; }
}
