[hidden] { display: none !important; }
:root {
  --bg: #f6f1e8;
  --surface: #fffcf6;
  --surface-2: #efe7d9;
  --text: #26241f;
  --muted: #5a554b;
  --border: #ddd3c2;
  --primary: #2f5a4d;
  --primary-hover: #234539;
  --primary-soft: #e1ebe4;
  --accent: #8a5a00;
  --brand-yellow: #f1b138;
  --yellow-soft: #fcefd2;
  --error: #a2311c;
  --error-soft: #fbe9e4;
  --focus: #1f6fd1;
  --radius: 14px;
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Satoshi', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 65ch; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }

/* Demo banner */
.demo-banner { background: #fdf0c9; color: #4d3b05; border-bottom: 1px solid #ead9a0; font-size: 1rem; padding: 10px 20px; text-align: center; font-weight: 500; }
.demo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c98a00; margin-right: 8px; vertical-align: middle; }

/* Top bar & language */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: auto; display: block; }
.wordmark { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; color: var(--primary); letter-spacing: -.01em; }
.lang-list { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-btn { font: inherit; font-size: 1rem; font-weight: 500; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.lang-btn:hover { border-color: var(--primary); }
.lang-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Hero */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; } .hero { padding: 72px 0 56px; } }
.badge { display: inline-block; background: var(--yellow-soft); color: var(--primary); border: 1px solid #f3d590; font-weight: 700; font-size: .95rem; padding: 6px 14px; border-radius: 999px; letter-spacing: .02em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); color: var(--primary); }
h1::after { content: ''; display: block; width: 72px; height: 6px; border-radius: 3px; background: var(--brand-yellow); margin-top: 18px; }
.summary { font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.intro { font-size: 1.2rem; }
.meet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.photo { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--surface-2); border: 2px dashed #c9bda8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 1rem; margin-bottom: 20px; text-align: center; padding: 12px; }
.photo-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 20px; }
.meet h2 { font-size: 1.5rem; }

/* Buttons */
.btn { font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s; }
.btn-lg { min-height: 60px; padding: 14px 30px; font-size: 1.2rem; margin-top: 8px; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary[disabled] { opacity: .65; cursor: wait; }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; border-style: dashed; }

/* Contact strip */
.contact-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.contact-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.contact-strip h2 { font-size: 1.4rem; margin-bottom: .25em; }
.contact-strip p { margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag { font-size: .9rem; color: var(--muted); width: 100%; }

/* Survey */
.survey-section { padding: 56px 0 64px; }
.survey-section h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; margin-top: 16px; box-shadow: 0 1px 2px rgba(60, 45, 20, .05); }
@media (min-width: 640px) { .card { padding: 36px; } }
.progress { margin-bottom: 24px; }
.progress-label { font-weight: 700; margin-bottom: 8px; }
.progress-track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary) 85%, var(--brand-yellow)); width: 25%; transition: width .25s; }
.progress-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0; margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.progress-steps li.current { color: var(--primary); font-weight: 700; }
.progress-steps li.done { color: var(--text); }
@media (max-width: 420px) { .progress-steps { display: none; } }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; padding: 0; }
.label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 1rem; margin-bottom: 10px; }
.opt { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.field { margin-bottom: 22px; }
input[type="text"], input[type="tel"], input[type="email"], textarea, select {
  font: inherit; font-size: 1.125rem; width: 100%; min-height: 54px; padding: 12px 14px; border: 2px solid #b9ad98; border-radius: 10px; background: #fff; color: var(--text);
}
textarea { resize: vertical; min-height: 140px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2326241f' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
select.unanswered { color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
[aria-invalid="true"] { border-color: var(--error) !important; background-color: var(--error-soft); }
.err { color: var(--error); font-weight: 700; font-size: 1rem; margin: 6px 0 0; }
.err:empty { display: none; }

.services { display: grid; gap: 14px; margin-top: 8px; }
.service-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; }
.service-card.answered { border-color: #9cb9a8; background: #fbfdfb; }
.service-card.invalid { border-color: var(--error); background: var(--error-soft); }
.service-card h3 { font-family: var(--font-body); font-size: 1.15rem; margin-bottom: 10px; line-height: 1.35; }
.service-card label { display: block; font-size: .95rem; color: var(--muted); margin-bottom: 4px; }

.choices { display: grid; gap: 10px; }
.choices-row { grid-template-columns: 1fr; }
@media (min-width: 560px) { .choices-row { grid-template-columns: repeat(3, 1fr); } }
.choice { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500; }
.choice:hover { border-color: var(--primary); }
.choice input { width: 22px; height: 22px; accent-color: var(--primary); flex-shrink: 0; margin: 0; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choices.invalid .choice { border-color: var(--error); }

.note { font-size: 1rem; background: var(--primary-soft); padding: 12px 14px; border-radius: 10px; }
.privacy { margin-top: 12px; border: 1px solid #ddd2bf; border-radius: 10px; padding: 12px 14px; background: #fffdf8; }
.privacy-agree { font-size: .95rem; margin: 0 0 6px; }
.privacy summary { cursor: pointer; font-weight: 600; color: var(--primary, #2f5a4d); text-decoration: underline; text-underline-offset: 3px; }
.privacy-body { font-size: .92rem; line-height: 1.55; color: #3c3a36; margin-top: 8px; }
.privacy-body h4 { font-size: .95rem; margin: 14px 0 4px; font-family: inherit; }
.privacy-body p { margin: 0 0 6px; }
.privacy-body a { overflow-wrap: anywhere; color: var(--primary); }
.privacy-ph { font-size: .95rem; color: var(--muted); border: 1.5px dashed #c9bda8; padding: 12px 14px; border-radius: 10px; margin-top: 8px; }

.error-summary { background: var(--error-soft); border: 2px solid var(--error); color: var(--error); font-weight: 700; padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; }
.error-summary p { margin: 0; }
.save-error { background: var(--error-soft); border: 2px solid var(--error); color: var(--error); padding: 14px 16px; border-radius: 10px; margin-top: 16px; font-weight: 700; }
.save-error p { margin: 0; }

.nav-buttons { display: flex; gap: 12px; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; }
.nav-buttons .btn-primary { margin-left: auto; min-width: 160px; }
@media (max-width: 420px) { .nav-buttons .btn { flex: 1 1 auto; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: left; }
.thanks:focus { outline: none; }
.thanks-icon { color: var(--primary); margin-bottom: 12px; }
.thanks h3 { font-size: 2rem; }
.demo-note { background: #fdf0c9; color: #4d3b05; padding: 12px 14px; border-radius: 10px; font-size: 1rem; }

.footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 1rem; color: var(--muted); }
.linkish { font: inherit; background: none; border: 0; color: var(--primary); text-decoration: underline; cursor: pointer; padding: 8px 0; min-height: 44px; }

/* Demo data dialog */
.data-dialog { width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); color: var(--text); }
.data-dialog::backdrop { background: rgba(30, 25, 15, .5); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog-head h2 { font-size: 1.4rem; }
.rows-count { font-weight: 700; }
.table-wrap { overflow: auto; max-height: 50vh; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.table-wrap table { border-collapse: collapse; font-size: .85rem; white-space: nowrap; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.table-wrap th { position: sticky; top: 0; background: var(--surface-2); font-weight: 700; }
.table-wrap th.lang-col, .table-wrap td.lang-col { background: var(--primary-soft); }
.dialog-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
