:root {
  --bg: #f6f3ec; --surface: #fff; --ink: #17231d; --muted: #5b6760; --line: #e2ddd2;
  --accent: #1f6f4a; --accent-2: #25a35f; --mark: #dcefc4; --tag: #fff3c9; --danger: #a3261b; --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Heebo", system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 24px; text-decoration: none; color: var(--ink); letter-spacing: -.5px; }
.logo span { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 40px 0 10px; letter-spacing: -1px; }
h1 mark, h2 mark { background: var(--mark); color: inherit; padding: 0 6px; border-radius: 8px; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 640px; }
h2 { font-size: 24px; margin: 0 0 4px; }
.step { display: flex; gap: 12px; align-items: center; margin: 40px 0 6px; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.sub { color: var(--muted); margin: 0 0 16px; }

/* base package */
.base { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; }
.base ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.base li { display: flex; gap: 8px; }
.base li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.base .price { background: var(--mark); border-radius: 16px; padding: 16px 20px; align-self: start; text-align: center; min-width: 190px; }
.base .price .from { font-size: 14px; color: var(--muted); }
.base .price .big { font-size: 40px; font-weight: 800; line-height: 1.1; }
.base .price .per { font-size: 15px; }
.base .price .setup { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* features */
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.feat { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 6px; align-content: start; transition: border-color .15s, background .15s; }
.feat.on { border-color: var(--accent); background: #f3faee; }
.feat .row { display: flex; gap: 12px; align-items: flex-start; }
.feat .ic { font-size: 28px; line-height: 1; }
.feat .tx { flex: 1; min-width: 0; }
.feat .tx b { display: block; font-size: 17px; }
.feat .tx span { color: var(--muted); font-size: 15px; }
.feat .tog { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); display: grid; place-items: center; font-weight: 800; color: transparent; cursor: pointer; }
.feat.on .tog { background: var(--accent); border-color: var(--accent); color: #fff; }
.feat .hit { all: unset; cursor: pointer; display: block; }
.feat .more { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.feat .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.feat .opts label { display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; cursor: pointer; background: var(--bg); }
.feat .opts input { accent-color: var(--accent); }
.feat input[type=text] { margin-top: 6px; }
.feat .req { font-size: 13px; color: var(--accent); font-weight: 700; }

/* client form */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.f { display: grid; gap: 4px; font-weight: 500; font-size: 15px; }
input, textarea, select { font: inherit; color: inherit; width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-top: 14px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }
.err { color: var(--danger); font-weight: 500; min-height: 1.3em; margin-top: 10px; }

/* sticky bar */
.bar { position: sticky; bottom: 0; z-index: 15; margin-top: 28px; background: var(--ink); color: var(--bg); border-radius: 18px 18px 0 0; }
.bar .wrap { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.bar .sum { font-size: 15px; }
.bar .sum b { font-size: 18px; }
.bar .btn.primary { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.bar .btn.primary:hover:not(:disabled) { background: #fff; color: var(--ink); border-color: #fff; }
footer { color: var(--muted); font-size: 14px; padding: 28px 0 40px; text-align: center; }

@media (max-width: 700px) {
  .base { grid-template-columns: 1fr; }
  .base .price { min-width: 0; }
  .grid2 { grid-template-columns: 1fr; }
}

/* ---------- Agreement ---------- */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; margin: 28px auto 40px; padding: 36px 40px; box-shadow: 0 20px 60px -30px rgba(23, 35, 29, .35); }
.doc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
.doc-head .logo { font-size: 34px; }
.doc-head h1 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.5px; }
.doc-meta { text-align: left; font-size: 14px; color: var(--muted); display: grid; gap: 2px; }
.doc-meta b { color: var(--ink); }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.party { background: var(--bg); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.party .t { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.party b { font-size: 17px; display: block; }
table.items { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: 15px; }
table.items th { text-align: right; font-size: 13px; color: var(--muted); font-weight: 700; border-bottom: 1.5px solid var(--line); padding: 8px 6px; }
table.items th.num, table.items td.num { text-align: left; white-space: nowrap; }
table.items td { border-bottom: 1px solid var(--line); padding: 12px 6px; vertical-align: top; }
table.items td .nm { font-weight: 700; }
table.items td .ds { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
table.items td .tag { display: inline-block; font-size: 12px; font-weight: 700; background: var(--tag); border-radius: 999px; padding: 0 8px; margin-inline-start: 6px; }
table.items tr.base td { background: #f3faee; }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 6px; }
.total { border-radius: 16px; padding: 16px 18px; background: var(--bg); }
.total.main { background: var(--ink); color: var(--bg); }
.total .l { font-size: 14px; opacity: .8; }
.total .v { font-size: 32px; font-weight: 800; line-height: 1.15; }
.totals.vat { margin-top: 0; }
.totals.vat .total { padding: 10px 18px; }
.totals.vat .v { font-size: 20px; }
.fine { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.terms { margin-top: 26px; }
.terms h2 { font-size: 20px; margin-bottom: 8px; }
.terms ol { padding-inline-start: 22px; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.terms li b { display: inline; }
.sign { margin-top: 28px; border: 2px dashed var(--line); border-radius: 18px; padding: 20px; }
.sign.done { border: 2px solid var(--accent); background: #f3faee; }
.sign .sig { font-family: "Heebo", cursive; font-size: 28px; font-weight: 700; color: var(--accent); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 40px; }
.banner { background: var(--tag); border-radius: 14px; padding: 12px 16px; margin: 20px 0 0; font-weight: 500; }
.banner.bad { background: #f6d5d1; color: var(--danger); }
.loading { text-align: center; padding: 80px 0; color: var(--muted); }
@media (max-width: 700px) {
  .doc { padding: 22px 16px; border-radius: 18px; }
  .parties, .totals { grid-template-columns: 1fr; }
  .doc-meta { text-align: right; }
  table.items .hide-sm { display: none; }
}
@media print {
  body { background: #fff; font-size: 12pt; }
  header.top, .actions, .no-print, footer { display: none !important; }
  .doc { box-shadow: none; border: 0; margin: 0; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .total.main { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.items tr { break-inside: avoid; }
  @page { size: A4; margin: 16mm; }
}

/* Thank-you after sending */
.thanks { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; margin: 36px auto; max-width: 680px; display: grid; gap: 10px; justify-items: start; }
.thanks h1 { margin: 0; }
.thanks .lead { margin: 0 0 6px; }
.thanks .big-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.thanks .picked { margin: 0 0 10px; padding-inline-start: 22px; }

/* Netlify's free-plan badge sits bottom-left: leave room at the end of the page */
body { padding-bottom: 64px; }
