:root {
  --petrol: #0f2a3a;
  --petrol-700: #163a4f;
  --petrol-100: #e4eef3;
  --sand: #f6f3ee;
  --accent: #c98a3b;
  --ink: #1c2b33;
  --muted: #5f6f78;
  --line: #dfe6ea;
  --ok: #1d7a4a;
  --warn: #9a5a00;
  --err: #a52a2a;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(15, 42, 58, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; }
a { color: var(--petrol-700); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--petrol); color: #fff; }
.top-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .12em; font-size: 18px; display: flex; flex-direction: column; line-height: 1.05; }
.brand span { font-weight: 400; letter-spacing: .02em; font-size: 11px; opacity: .8; text-transform: uppercase; }
.top-label { font-size: 13px; opacity: .85; }

.steps { list-style: none; display: flex; gap: 4px; padding: 20px 0 8px; margin: 0; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.steps li span { width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.steps li.active { color: var(--petrol); border-color: var(--petrol); }
.steps li.active span, .steps li.done span { background: var(--petrol); }
.steps li.done { border-color: var(--petrol); }
@media (max-width: 520px) { .steps li { font-size: 0; gap: 0; justify-content: center; } .steps li span { font-size: 12px; } }

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; margin: 14px 0; }
@media (max-width: 520px) { .panel { padding: 22px 18px; } }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--accent); font-weight: 700; margin: 0 0 6px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; color: var(--petrol); }
h2 { font-size: 17px; margin: 0 0 8px; color: var(--petrol); }
.lead { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); font-size: 14px; }

.form label, .form small { display: block; }
.form label { font-weight: 600; margin-bottom: 16px; font-size: 14px; }
.form small { font-weight: 400; color: var(--muted); margin-top: 4px; }
input[type="text"], input:not([type]), input[type="search"], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-top: 6px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px var(--petrol-100); }

.btn { display: inline-block; font: inherit; font-weight: 600; padding: 13px 20px; border-radius: 10px; border: 1.5px solid var(--petrol); background: #fff; color: var(--petrol); cursor: pointer; text-decoration: none; text-align: center; }
.btn.primary { background: var(--petrol); color: #fff; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:not(:disabled):hover { filter: brightness(1.08); }
.link { background: none; border: 0; color: var(--petrol-700); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 4px 0; white-space: nowrap; }
.actions { margin-top: 20px; }

.banner { background: #fff7e6; border: 1px dashed var(--accent); color: var(--warn); padding: 8px 12px; border-radius: 8px; font-size: 13px; margin-top: 8px; }
.error { background: #fdecec; color: var(--err); border-left: 4px solid var(--err); padding: 12px 14px; border-radius: 8px; margin: 12px 0 0; font-size: 15px; }
.info { background: var(--petrol-100); color: var(--petrol-700); padding: 12px 14px; border-radius: 10px; font-size: 14px; margin: 0 0 14px; }
.info.success { background: #e6f4ec; color: var(--ok); }
.info.warn { background: #fff4e0; color: var(--warn); }

.items { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.item { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 28px 72px 1fr; gap: 14px; align-items: start; transition: border-color .15s, background .15s; }
.item.selected { border-color: var(--petrol); background: #fbfdfe; }
.item.disabled { opacity: .55; }
.item input[type="checkbox"] { width: 22px; height: 22px; margin-top: 24px; accent-color: var(--petrol); }
.item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--petrol-100); }
.item-title { font-weight: 600; }
.item-meta { color: var(--muted); font-size: 13px; }
.item-price { font-weight: 600; margin-top: 2px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-top: 6px; background: var(--petrol-100); color: var(--petrol-700); }
.badge.warn { background: #fff4e0; color: var(--warn); }
.badge.err { background: #fdecec; color: var(--err); }
.item-controls { grid-column: 1 / -1; display: grid; grid-template-columns: 110px 1fr; gap: 10px; margin-top: 4px; }
.item-controls label { font-size: 13px; font-weight: 600; }
.item-controls select, .item-controls input { margin-top: 4px; padding: 10px 12px; }
.item-controls .note { grid-column: 1 / -1; }
@media (max-width: 520px) { .item { grid-template-columns: 24px 56px 1fr; gap: 10px; } .item img { width: 56px; height: 56px; } .item-controls { grid-template-columns: 90px 1fr; } }

.options { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 14px; }
.option { display: flex; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; align-items: flex-start; }
.option:has(input:checked) { border-color: var(--petrol); background: #fbfdfe; }
.option.disabled { opacity: .5; pointer-events: none; }
.option input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--petrol); flex: none; }
.option-body { display: flex; flex-direction: column; gap: 4px; }
.option-title { font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.option-text { color: var(--muted); font-size: 14px; }
.price { color: var(--petrol); white-space: nowrap; }

.summary { background: var(--sand); border-radius: 12px; padding: 16px; margin-top: 14px; }
.summary-items { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; }
.summary-items li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.summary-row.total { border-top: 2px solid var(--petrol); margin-top: 6px; padding-top: 10px; font-size: 17px; color: var(--petrol); }
.summary small { display: block; color: var(--muted); margin-top: 8px; font-size: 12.5px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--petrol); margin-top: 1px; }

.card { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; margin: 14px 0; }
.card .btn { margin-top: 6px; }
address { font-style: normal; line-height: 1.6; background: var(--sand); padding: 12px 14px; border-radius: 8px; display: inline-block; }
.next { padding-left: 20px; margin: 0; }
.next li { margin-bottom: 6px; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; padding: 18px 16px 28px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
