/* HALDOR — преміальний мінімалістичний стиль.
   Без зовнішніх шрифтів (GDPR: жодних запитів до сторонніх серверів). */

:root {
  --bg: #f3eee4;
  --bg-deep: #ece5d8;
  --surface: #fbf8f2;
  --surface-2: #f6f1e8;
  --line: #e2d9c8;
  --line-strong: #cfc3ad;
  --text: #1c2621;
  --graphite: #2d302d;
  --green: #1f3d2f;
  --green-700: #18301f;
  --green-600: #2b5140;
  --green-100: #e3ebe4;
  --muted: #6c6f68;
  --brass: #a4875a;
  --danger: #9e3426;
  --danger-bg: #f6e4df;
  --success: #2c6a49;
  --success-bg: #e2eee5;
  --warn-bg: #f4ead3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 38, 33, 0.04), 0 8px 28px rgba(28, 38, 33, 0.05);
  --serif: "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-600); }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- каркас ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.site-header__inner {
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 26px; width: auto; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  border: 1px solid transparent; background: none; font: inherit; font-size: 13px; letter-spacing: .08em;
  color: var(--muted); padding: 4px 8px; border-radius: 8px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { color: var(--green); border-color: var(--line-strong); }

.container { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.container--narrow { max-width: 720px; }
.container--wide { max-width: 1120px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px; text-align: center; color: var(--muted); font-size: 13px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }

/* ---------- типографіка ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--green); letter-spacing: -0.01em; margin: 0; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 14px; font-weight: 600;
}
.hero { margin-bottom: 36px; }
.hero h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.05; margin-bottom: 18px; }
.lead { font-size: 17px; color: var(--graphite); max-width: 620px; margin: 0; }
.muted { color: var(--muted); }

/* ---------- картки-секції ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.section-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.section-num {
  flex: none; font-family: var(--serif); font-size: 15px; color: var(--brass);
  border: 1px solid var(--line-strong); border-radius: 999px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.section-head h2 { font-size: 28px; line-height: 1.15; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.section-head__title { flex: 1; min-width: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap; vertical-align: middle;
}
.badge--required { background: var(--green); color: #f6f1e8; }
.badge--optional { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.badge--recommended { background: var(--warn-bg); color: #7a5d27; }

/* ---------- поля ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.grid-2 .field { margin-bottom: 0; }
.field label, .field-label { font-size: 14px; font-weight: 600; color: var(--graphite); }
.req { color: var(--brass); margin-left: 2px; }
.input, .textarea, .select {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 61, 47, .12); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; margin: 4px 0 0; }
.field-hint { color: var(--muted); font-size: 13px; margin: 0; }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* вибір типу документа */
.choice-group { display: grid; gap: 10px; margin: 6px 0 22px; }
.choice {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
  padding: 15px 16px; transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--green-600); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__dot {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
}
.choice input:checked + .choice__dot { border-color: var(--green); }
.choice input:checked + .choice__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-100); }
.choice input:focus-visible + .choice__dot { outline: 2px solid var(--green); outline-offset: 2px; }
.choice__text { font-weight: 500; }

/* ---------- завантажувач ---------- */
.uploader {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 18px; margin-bottom: 14px;
}
.uploader.has-error { border-color: var(--danger); background: var(--danger-bg); }
.uploader.is-complete { border-style: solid; border-color: var(--line); }
.uploader__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.uploader__label { font-weight: 600; color: var(--graphite); }
.uploader__count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.uploader__hint { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.uploader__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.uploader__list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.uploader__list:empty { display: none; }

.file-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.file-item__thumb {
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--green);
}
.file-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item__body { min-width: 0; }
.file-item__name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item__meta { font-size: 12px; color: var(--muted); }
.file-item__status { font-size: 13px; margin-top: 4px; }
.file-item.is-done .file-item__status { color: var(--success); }
.file-item.is-error { border-color: #e3b9b0; background: #fdf6f4; }
.file-item.is-error .file-item__status { color: var(--danger); }
.file-item__actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.progress { height: 4px; background: var(--bg-deep); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.progress__bar { height: 100%; width: 0; background: var(--green); transition: width .15s; }
.file-item:not(.is-uploading) .progress { display: none; }

.sub-block { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.sub-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.sub-block h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--graphite); margin-bottom: 4px; }
.sub-block > p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  border-radius: 999px; padding: 13px 22px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, opacity .15s;
  white-space: nowrap; position: relative;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--green); color: #f8f4ec; }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--ghost { background: #fff; color: var(--green); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--danger { background: #fff; color: var(--danger); border-color: #e0b8b0; }
.btn--danger:hover { background: var(--danger-bg); }
.btn--danger-solid { background: var(--danger); color: #fff; }
.btn--text { background: none; border: 0; color: var(--muted); padding: 6px 8px; font-weight: 500; font-size: 13px; }
.btn--text:hover { color: var(--danger); }
.btn--sm { font-size: 13px; padding: 9px 14px; }
.btn--lg { font-size: 17px; padding: 18px 30px; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label.btn input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 1px; height: 1px; }
label.btn:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.checklist .check-icon {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: transparent;
}
.checklist .is-required .check-icon { border-color: var(--green); }
.checklist li.is-done .check-icon { background: var(--green); border-color: var(--green); color: #fff; }
.checklist li.is-done .check-icon::before { content: "✓"; }
.checklist .check-label { flex: 1; font-weight: 500; }
.checklist li.is-optional .check-label { color: var(--muted); font-weight: 400; }
.checklist li.is-optional.is-done .check-label { color: var(--text); }

/* ---------- конфіденційність ---------- */
.privacy-card { background: var(--green); border-color: var(--green); color: #e9e3d6; }
.privacy-card h2 { color: #f6f1e8; }
.privacy-card .section-num { color: #d8c49f; border-color: rgba(246, 241, 232, .3); }
.privacy-card p { color: #d9d4c6; }
.privacy-card a { color: #f6f1e8; }
.consent {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; cursor: pointer;
  border-top: 1px solid rgba(246, 241, 232, .14); font-size: 15px; color: #f1ece1;
}
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box {
  flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid rgba(246, 241, 232, .55);
  margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.consent input:checked + .consent__box { background: #f6f1e8; border-color: #f6f1e8; color: var(--green); }
.consent input:checked + .consent__box::before { content: "✓"; font-weight: 700; }
.consent input:focus-visible + .consent__box { outline: 2px solid #f6f1e8; outline-offset: 2px; }
.consent__tag { display: block; font-size: 12px; color: #c7bfa9; margin-top: 4px; }
.consent.has-error .consent__box { border-color: #ffb4a6; }
.privacy-card .field-error { color: #ffc2b5; }

/* ---------- відправлення ---------- */
.submit-block { margin-top: 28px; text-align: center; }
.submit-block .disclaimer { font-size: 13px; color: var(--muted); max-width: 520px; margin: 16px auto 0; }
.form-alert {
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; font-size: 14px; text-align: left;
  background: var(--danger-bg); color: var(--danger);
}
.form-alert--warn { background: var(--warn-bg); color: #6b5021; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- успіх ---------- */
.success { text-align: center; padding: 56px 32px; }
.success__icon {
  width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #f6f1e8;
  display: inline-flex; align-items: center; justify-content: center; font-size: 40px; margin-bottom: 26px;
}
.success h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 16px; }
.success p { color: var(--graphite); max-width: 520px; margin: 0 auto; }
.ref-number {
  display: inline-block; margin-top: 30px; padding: 16px 26px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface-2);
}
.ref-number small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ref-number strong { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--green); letter-spacing: .04em; }

/* ---------- політика ---------- */
.prose h1 { font-size: 44px; margin-bottom: 12px; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--graphite); }
.prose ul { padding-left: 20px; }
.prose .placeholder { background: var(--warn-bg); padding: 0 4px; border-radius: 4px; }

/* ---------- сторінка посилання ---------- */
.share-card { padding: 36px; }
.share-card--message { text-align: center; padding: 56px 32px; }
.share-title { font-size: 34px; margin-bottom: 16px; }
.share-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 28px; }
.share-meta div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.share-meta dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.share-meta dd { margin: 4px 0 0; font-weight: 600; color: var(--green); }
.share-group { margin-bottom: 22px; }
.share-group__title { font-size: 22px; margin-bottom: 10px; }
.share-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.share-file {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.share-file__type {
  width: 46px; height: 46px; border-radius: 8px; background: var(--bg-deep); color: var(--green);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.share-file__name { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 500; }
.share-file__name small { display: block; color: var(--muted); font-weight: 400; }
.share-file__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.share-note { font-size: 13px; color: var(--muted); margin: 24px 0 0; }
.share-card form { margin-top: 26px; }

/* ---------- мобільна версія ---------- */
@media (max-width: 640px) {
  .site-header__inner { padding: 14px 16px; }
  .container { padding: 28px 14px 56px; }
  .card { padding: 22px 18px; border-radius: 16px; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .grid-2 .field { margin-bottom: 18px; }
  .section-head { gap: 12px; flex-wrap: wrap; }
  .section-head h2 { font-size: 24px; }
  .uploader { padding: 14px; }
  .uploader__actions .btn { flex: 1 1 140px; }
  .file-item { grid-template-columns: 48px 1fr; }
  .file-item__thumb { width: 48px; height: 48px; }
  .file-item__actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .share-meta { grid-template-columns: 1fr; }
  .share-file { grid-template-columns: 40px 1fr; }
  .share-file__type { width: 40px; height: 40px; }
  .share-file__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .share-card { padding: 24px 18px; }
}

.grid-2 + .grid-2, .grid-2 + .field { margin-top: 18px; }
@media (max-width: 640px) { .grid-2 + .grid-2, .grid-2 + .field { margin-top: 0; } }
/* Кнопка камери потрібна лише на телефонах/планшетах */
@media (hover: hover) and (pointer: fine) { .camera-btn { display: none; } }
/* Мобільні заголовки секцій: бейдж переноситься під заголовок */
@media (max-width: 640px) {
  .section-head__title { flex: 1 1 calc(100% - 52px); }
  .section-head > .badge { order: 3; margin-left: 48px; margin-top: -6px; }
}
.consent .field-error { display: block; }

/* =====================================================================
   HALDOR 2026: стиль як у кабінеті — графіт, біле, сіре, темно-зелений.
   Діє на форму, політику й сторінку посилання (не на кабінет).
   ===================================================================== */
body:not(.admin) {
  --bg: #eceeed; --bg-deep: #e2e5e3; --surface: #ffffff; --surface-2: #f4f5f4;
  --line: #dcdfdd; --line-strong: #c9cdcb; --text: #121413; --graphite: #2b2f2d; --muted: #6e7471;
  --green: #1d4a35; --green-700: #153a29; --green-600: #245b42; --green-100: #e8f0eb;
  --brass: #6e7471; --danger: #8f2a20; --danger-bg: #f7e9e6; --success: #1d4a35; --success-bg: #e8f0eb; --warn-bg: #f8efe8;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(17, 20, 19, .04);
  --serif: var(--sans);
  background: var(--bg);
}
body:not(.admin) h1, body:not(.admin) h2, body:not(.admin) h3 { font-family: var(--sans); font-weight: 600; color: var(--text); letter-spacing: -0.015em; }

/* шапка: чорна, як бокове меню кабінету */
body:not(.admin) .site-header { background: #0f1110; border-bottom: 1px solid #262a28; backdrop-filter: none; }
body:not(.admin) .site-header__inner { padding: 14px 24px; }
.logo { gap: 10px; color: #fff; }
.logo__mark { flex: none; color: #fff; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 16px; font-weight: 700; letter-spacing: .28em; color: #fff; }
.logo__sub { font-size: 9px; font-weight: 600; letter-spacing: .32em; color: #a7adaa; margin-top: 5px; }
body:not(.admin) .lang-switch button { color: #a7adaa; }
body:not(.admin) .lang-switch button[aria-pressed="true"] { color: #fff; border-color: #3a3f3c; }

/* заголовок сторінки */
body:not(.admin) .container { padding-top: 40px; }
body:not(.admin) .hero { margin-bottom: 28px; }
body:not(.admin) .eyebrow { color: var(--muted); letter-spacing: .18em; font-size: 11px; margin-bottom: 10px; }
body:not(.admin) .hero h1 { font-size: clamp(30px, 4.6vw, 42px); line-height: 1.1; margin-bottom: 12px; }
body:not(.admin) .lead { font-size: 16px; color: var(--muted); }

/* картки-кроки: компактніші */
body:not(.admin) .card { padding: 26px 28px; margin-bottom: 14px; border-radius: var(--radius); }
body:not(.admin) .section-head { margin-bottom: 18px; gap: 14px; align-items: flex-start; }
body:not(.admin) .section-head h2 { font-size: 20px; line-height: 1.25; }
body:not(.admin) .section-head p { font-size: 14px; margin-top: 4px; }
body:not(.admin) .section-num {
  width: 30px; height: 30px; font-family: var(--sans); font-size: 12px; font-weight: 700;
  background: var(--text); color: #fff; border: 0;
}
body:not(.admin) .badge { font-size: 10px; padding: 4px 9px; }
body:not(.admin) .badge--required { background: var(--text); color: #fff; }
body:not(.admin) .badge--recommended { background: transparent; color: var(--green); border: 1px solid #9fbdad; }

/* поля */
body:not(.admin) .field label, body:not(.admin) .field-label { font-size: 13px; }
body:not(.admin) .req { color: var(--danger); }
body:not(.admin) .input, body:not(.admin) .textarea, body:not(.admin) .select { background: #fff; padding: 12px 14px; }
body:not(.admin) .input:focus, body:not(.admin) .textarea:focus { box-shadow: 0 0 0 3px rgba(29, 74, 53, .12); }
body:not(.admin) .choice-group { margin-bottom: 16px; gap: 8px; }
body:not(.admin) .choice { padding: 13px 14px; }

/* завантаження */
body:not(.admin) .uploader { background: #fafbfa; border-color: var(--line-strong); padding: 16px; margin-bottom: 10px; }
body:not(.admin) .sub-block { padding-top: 18px; margin-top: 18px; }
body:not(.admin) .file-item__thumb { color: var(--text); }

/* кнопки: прямокутні, як у кабінеті */
body:not(.admin) .btn { border-radius: 8px; }
body:not(.admin) .btn--primary { color: #fff; }
body:not(.admin) .btn--ghost { color: var(--text); }
body:not(.admin) .btn--lg { padding: 17px 26px; font-size: 16px; }

/* перевірка перед відправленням: компактний список */
body:not(.admin) .checklist { gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
body:not(.admin) .checklist li { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; background: transparent; }
body:not(.admin) .checklist li:last-child { border-bottom: 0; }
body:not(.admin) .checklist .check-icon { width: 20px; height: 20px; font-size: 11px; }
body:not(.admin) .checklist .check-label { font-size: 14px; }

/* конфіденційність: графітова картка */
body:not(.admin) .privacy-card { background: #141615; border-color: #141615; color: #d5d9d7; }
body:not(.admin) .privacy-card h2 { color: #fff; }
body:not(.admin) .privacy-card .section-num { background: #fff; color: #141615; }
body:not(.admin) .privacy-card p { color: #b9bfbc; }
body:not(.admin) .privacy-card a { color: #fff; }
body:not(.admin) .consent { color: #eef0ef; border-top-color: rgba(255, 255, 255, .1); font-size: 14px; }
body:not(.admin) .consent__box { border-color: rgba(255, 255, 255, .5); }
body:not(.admin) .consent input:checked + .consent__box { background: #fff; border-color: #fff; color: #141615; }
body:not(.admin) .consent__tag { color: #8f9693; }

/* успіх і посилання */
body:not(.admin) .success__icon { background: var(--green); color: #fff; }
body:not(.admin) .ref-number { background: #fff; }
body:not(.admin) .ref-number strong { font-family: var(--sans); font-weight: 700; color: var(--text); font-size: 26px; }
body:not(.admin) .share-meta dd { color: var(--text); }
body:not(.admin) .share-file__type { color: var(--text); }
body:not(.admin) .site-footer { border-top-color: var(--line); }

@media (max-width: 640px) {
  body:not(.admin) .site-header__inner { padding: 12px 16px; }
  body:not(.admin) .container { padding: 24px 12px 48px; }
  body:not(.admin) .card { padding: 20px 16px; }
  body:not(.admin) .section-head h2 { font-size: 18px; }
  body:not(.admin) .section-head > .badge { margin-left: 44px; margin-top: -8px; }
  body:not(.admin) .input, body:not(.admin) .textarea { font-size: 16px; }
  body:not(.admin) .uploader__actions .btn { min-height: 48px; }
}
body:not(.admin) .section-num { margin-top: -2px; }
body:not(.admin) .section-head > .badge { margin-top: 3px; }

/* ---------- Паспорти / ID: декілька документів ---------- */
.id-intro { margin-bottom: 16px; }
.id-docs { display: grid; gap: 14px; }
.id-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 18px 6px; }
.id-card.is-complete { border-color: #9fbdad; }
.id-card__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.id-card__num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--bg-deep); color: var(--text);
}
.id-card.is-complete .id-card__num { background: var(--green); color: #fff; }
.id-card__titles { flex: 1; min-width: 0; }
.id-card__title { font-weight: 600; font-size: 15px; color: var(--text); line-height: 1.3; }
.id-card__sub { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.id-card__sub:empty { display: none; }
.id-card__remove { flex: none; margin: -4px -6px 0 0; }
.id-card .choice-group { grid-template-columns: 1fr 1fr; }
.id-group__hint { margin: -4px 0 12px; }
.id-add { margin-top: 14px; width: 100%; justify-content: center; border-style: dashed; }
#id-limit { margin-top: 12px; }
#id-docs-error { margin-top: 10px; }
.file-item__doc { font-size: 12px; color: var(--muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item--id .file-item__actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
.file-item__actions label.btn { position: relative; overflow: hidden; }
.file-item__actions label.btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body:not(.admin) .btn--danger { color: var(--danger); }

@media (max-width: 640px) {
  .id-card { padding: 14px 12px 2px; }
  .id-card .choice-group { grid-template-columns: 1fr; }
  .file-item--id .file-item__actions { justify-content: stretch; }
  .file-item--id .file-item__actions .btn { flex: 1; justify-content: center; min-height: 40px; }
}
