:root {
  --bg: #f6f5f2; --card: #ffffff; --ink: #15151a; --muted: #6b6b75; --line: #dcdad4;
  --accent: #1f4cff; --accent-ink: #ffffff; --soft: #eef1ff; --err: #c0262d;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f0f12; --card: #19191e; --ink: #f2f2f4; --muted: #9a9aa6; --line: #2e2e36;
          --accent: #7f93ff; --accent-ink: #0f0f12; --soft: #20243a; --err: #ff6b70; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.hero { padding: 48px 0 28px; }
.hero h1 { font-size: clamp(40px, 9vw, 64px); line-height: 1; margin: 6px 0 14px; letter-spacing: -0.02em; font-weight: 800; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--muted); }
.lede { margin: 0; color: var(--muted); max-width: 52ch; }
.lang { float: right; display: flex; gap: 4px; }
.lang a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.lang a.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 8px; margin: 0 0 16px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 16px; }
h3 { font-size: 15px; margin: 18px 0 12px; }

.field { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
[data-req] > span::after, [data-req] > legend::after { content: " *"; color: var(--muted); font-weight: 400; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
input, textarea, select {
  width: 100%; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; min-height: 46px; appearance: none; -webkit-appearance: none; }
textarea { resize: vertical; min-height: 64px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.bad input, .bad textarea, .bad .chips { outline: 2px solid var(--err); outline-offset: -1px; border-radius: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row.three { grid-template-columns: 1fr 1.4fr 1.4fr; }
@media (max-width: 560px) { .row, .row.three { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 15px; background: var(--bg); user-select: none; }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.money { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.vat { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 10px; cursor: pointer; min-height: 46px; padding: 0 18px; }
button.ghost { background: var(--soft); color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }

.ac { position: relative; }
.sugg { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.sugg li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.sugg li b { font-weight: 600; }
.sugg li small { display: inline; margin: 0 0 0 6px; }
.sugg li:hover, .sugg li.on { background: var(--soft); }
.nomaps .maps-only { display: none; }

.submit { padding: 8px 0 60px; }
#send { width: 100%; background: var(--accent); color: var(--accent-ink); font-size: 17px; min-height: 54px; }
.err { color: var(--err); font-weight: 600; margin: 0 0 12px; }
.fine { color: var(--muted); font-size: 13px; text-align: center; }
.hp { position: absolute; left: -9999px; }
.done { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; margin-bottom: 60px; }
.done h2 { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 22px; }
@media (hover: hover) { .chip span:hover { border-color: var(--muted); } }
[hidden] { display: none !important; }
