:root {
  --navy: #0d1b3e;
  --navy-soft: #16295a;
  --gold: #f0b429;
  --gold-dark: #c98f10;
  --ink: #16202e;
  --muted: #5c6b80;
  --line: #dfe5ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --ok: #1a7f52;
  --err: #b3261e;
  --radius: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: Poppins, Inter, sans-serif; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* ---------- header ---------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  z-index: 10;
}

header img { height: 38px; width: auto; display: block; }
header nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
header nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); }
header nav a:hover { color: var(--navy-soft); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn:hover { background: var(--navy-soft); }
.btn-gold { background: var(--gold); color: var(--ink) !important; }
.btn-gold:hover { background: var(--gold-dark); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: clamp(48px, 9vw, 96px) 0;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { max-width: 58ch; opacity: .92; font-size: 1.08rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- sections ---------- */

section { padding: clamp(40px, 7vw, 72px) 0; }
section.soft { background: var(--bg-soft); }
.lead { color: var(--muted); max-width: 60ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: .75em; }
.card .tags { font-size: .85rem; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 28px; }
.steps li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: .9rem;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }

/* ---------- forms ---------- */

.form-section { padding: clamp(32px, 6vw, 56px) 0; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .85rem; color: var(--muted); }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy-soft);
  outline-offset: 1px;
  border-color: var(--navy-soft);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { width: auto; margin-top: 4px; flex: 0 0 auto; }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; }
legend { font-weight: 600; padding: 0 8px; font-size: .95rem; }

/* ---------- price panel ---------- */

.price-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.price-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; padding: 3px 0; }
.price-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 1.15rem; }
.price-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- feedback ---------- */

.msg { padding: 12px 14px; border-radius: var(--radius); font-size: .95rem; display: none; }
.msg.show { display: block; }
.msg.error { background: #fdecea; color: var(--err); border: 1px solid #f5c6c2; }
.msg.ok { background: #e8f5ee; color: var(--ok); border: 1px solid #b8dfc9; }
.msg.info { background: #eef2fa; color: var(--navy-soft); border: 1px solid #ccd8ee; }

/* ---------- status ---------- */

.status-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.status-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.status-badge.pending { background: #fff3d6; color: #8a6100; }
.status-badge.settled { background: #e8f5ee; color: var(--ok); }
.id-display {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1.6rem; font-weight: 700; letter-spacing: .06em;
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 16px; text-align: center; margin: 14px 0;
}
dl.detail { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: .95rem; margin: 0; }
dl.detail dt { color: var(--muted); }
dl.detail dd { margin: 0; font-weight: 600; }

/* ---------- legal ---------- */

.legal { max-width: 760px; }
.legal h2 { margin-top: 2em; font-size: 1.25rem; }
.legal h3 { margin-top: 1.5em; }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: .4em; }
.doc-meta { color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; }
.notice { background: #fff8e6; border: 1px solid #f2dca8; border-radius: var(--radius); padding: 14px 16px; font-size: .92rem; }

/* ---------- footer ---------- */

footer {
  background: var(--navy);
  color: #c9d3e6;
  padding: 40px 0 28px;
  font-size: .92rem;
  margin-top: 40px;
}
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); opacity: .75; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
