/* Stage 0: minimal own stylesheet. Tailwind build pipeline is introduced with the questionnaire (stage 1). */
:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5f6368;
  --accent: #0057b8;   /* blue of the Ukrainian flag */
  --accent-2: #ffd700; /* yellow */
  --line: #e5e7eb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
a { color: var(--accent); }
.site-header, .site-footer, .site-main { padding-left: 16px; padding-right: 16px; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; border-bottom: 3px solid var(--accent-2);
}
.brand { font-weight: 700; letter-spacing: .04em; color: var(--accent); text-decoration: none; font-size: 1.15rem; }
.lang { display: flex; gap: 8px; align-items: center; font-size: .85rem; }
.lang-cur { font-weight: 700; }
.lang-btn { text-decoration: none; color: var(--muted); }
.site-main { flex: 1; max-width: 760px; width: 100%; margin: 0 auto; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 16px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--accent-2); padding-left: 12px; }
.legal h1 { font-size: 1.7rem; }
.site-footer { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 16px; font-size: .85rem; color: var(--muted); }

/* --- services / wizard --- */
.services { display: grid; gap: 16px; margin-top: 24px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.card h2 a { color: inherit; text-decoration: none; }
.price { color: var(--muted); }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-secondary { background: #eef2f7; color: var(--fg); }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 8px 0 24px; font-size: .85rem; counter-reset: s; }
.steps li { flex: 1; padding: 8px 6px; border-bottom: 3px solid var(--line); color: var(--muted); }
.steps li.cur { border-color: var(--accent); color: var(--fg); font-weight: 600; }
.steps li.done { border-color: var(--accent-2); }
.steps li a { color: inherit; text-decoration: none; }
.option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.option-base { background: #f8fafc; }
.total { font-size: 1.15rem; margin: 16px 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #dc2626; }
.help { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.error { color: #dc2626; font-size: .9rem; margin: 6px 0 0; }
.ok { color: #15803d; }
.req { color: #dc2626; }
.muted { color: var(--muted); }
.doc-slot { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.doc-slot.has-files { border-style: solid; border-color: #86efac; }
.doc-slot h3 { margin: 0 0 4px; font-size: 1rem; }
.files { list-style: none; padding: 0; margin: 8px 0; }
.files li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 4px 0; }
.inline { display: inline; }
.upload { display: inline-block; margin-top: 8px; cursor: pointer; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload span { display: inline-block; padding: 8px 14px; border: 1px solid var(--accent); color: var(--accent); border-radius: 8px; font-weight: 600; }
.badge-warn { background: #fef3c7; color: #92400e; border-radius: 6px; padding: 2px 8px; font-size: .8rem; }
.review h2 { font-size: 1.1rem; margin: 20px 0 8px; }
.review .edit { font-size: .8rem; font-weight: 400; margin-left: 8px; }
.review dl { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 6px 12px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; }

/* --- nav / cabinet / auth --- */
.topnav { display: flex; gap: 16px; align-items: center; font-size: .9rem; }
.topnav > a { color: var(--fg); text-decoration: none; font-weight: 600; }
.lang { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; }
.auth { max-width: 420px; margin: 0 auto; }
.auth form p, .auth form .field { margin-bottom: 14px; }
.auth input:not([type=checkbox]) { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.auth button, .auth .button { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.messages { list-style: none; padding: 0; }
.messages li { padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; background: #eef2f7; }
.messages li.success { background: #dcfce7; } .messages li.error { background: #fee2e2; } .messages li.info { background: #e0f2fe; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #e2e8f0; vertical-align: middle; }
.status-new { background: #dbeafe; color: #1e40af; } .status-in_progress { background: #fef3c7; color: #92400e; }
.status-needs_input { background: #fee2e2; color: #991b1b; } .status-submitted { background: #ede9fe; color: #5b21b6; }
.status-done { background: #dcfce7; color: #166534; } .status-cancelled { background: #f1f5f9; color: #475569; }
.status-awaiting_payment { background: #ffedd5; color: #9a3412; }
.timeline { list-style: none; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 4px 0 4px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); border: 2px solid #fff; }
.btn-danger { background: #dc2626; }
.change-items label { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-weight: 400; }

/* --- upload progress (htmx xhr:progress) --- */
.upload-progress { display: none; align-items: center; gap: 10px; margin-top: 8px; font-size: .85rem; }
form.uploading .upload-progress { display: flex; }
form.uploading .upload { opacity: .5; pointer-events: none; }
.upload-progress progress { width: 200px; height: 8px; accent-color: var(--accent); }

/* --- activities multiselect (step "Details") --- */
.acts { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.acts input[type=search] { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; margin-bottom: 10px; }
.acts-group { margin: 10px 0 4px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.acts label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; font-weight: 400; cursor: pointer; border-radius: 6px; }
.acts label:hover { background: #f8fafc; }
.acts input[type=checkbox] { margin-top: 3px; flex: 0 0 auto; }
.acts-sk { display: block; font-size: .78rem; color: var(--muted); }
.acts-count { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.actions-inline { display: flex; gap: 12px; flex-wrap: wrap; }
.error-top { margin: 0 0 20px; padding: 10px 14px; border-radius: 8px; background: #fee2e2; color: #991b1b; font-size: .95rem; }
.topnav-logout { color: var(--muted); text-decoration: none; font-size: .85rem; }
.topnav-logout:hover { text-decoration: none; color: var(--fg); }
