/* 1001 Visa Get Consulting — сторінка опитування клієнта.
   Фірмова палітра у світлих відтінках; без зовнішніх шрифтів і ресурсів. */

:root {
  --green: #1B3B2B;
  --green-deep: #132B1F;
  --sage: #8CA192;
  --off: #F4F5F2;
  --terra: #C0603F;
  --terra-text: #9A4529;
  --gold-text: #8B5E14;   /* золото для дрібного тексту: 5.7:1 на білому */
  --focus: #A86A10;       /* кільце фокуса: 4.4:1 на білому */
  --page: #ECEFE9;        /* фон сторінки — трохи темніший за картки */
  --gold: #D3922A;

  --sage-50: #F3F6F3;
  --sage-100: #E6ECE7;
  --sage-200: #D3DDD5;
  --line: #DCE3DD;
  --line-strong: #7A8C80; /* рамки полів: 3.6:1 на білому */
  --card-border: #C5D0C8;
  --terra-50: #FBF2EE;
  --gold-50: #FBF5E9;
  --gold-200: #EFD3A2;
  --surface: #FFFFFF;
  --text: #1B3B2B;
  --text-soft: #2A3F33;
  --muted: #44554B;

  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 59, 43, .04), 0 8px 24px -12px rgba(27, 59, 43, .10);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.app { min-height: 100vh; display: flex; flex-direction: column; }

.wrap { width: 100%; max-width: 736px; margin: 0 auto; padding: 0 16px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1:focus-visible, main:focus-visible { outline: none; }

/* ---------------------------------------------------------------- шапка */

.header {
  background: var(--surface);
  border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--card-border);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 8px; border-radius: 8px;
  background: var(--green); color: var(--off);
  font-family: var(--serif); font-size: 14px; letter-spacing: .04em;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.brand-name {
  font-family: var(--serif); font-size: 17px; color: var(--green);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lang { display: flex; flex: none; border: 1px solid var(--card-border); border-radius: 999px; padding: 3px; background: var(--sage-50); }
.lang-btn {
  appearance: none; border: 0; background: transparent; color: var(--text-soft);
  font: inherit; font-size: 14px; min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
}
.lang-short { display: none; }
@media (max-width: 480px) { .lang-full { display: none; } .lang-short { display: inline; } }
.lang-btn.is-active { background: var(--surface); color: var(--green); font-weight: 600; box-shadow: 0 1px 2px rgba(27, 59, 43, .12); }
.lang-btn:focus-visible { outline-offset: 0; border-radius: 999px; }

@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  .lang-btn { padding: 0 9px; font-size: 13px; }
}
@media (max-width: 359px) { .brand-name { display: none; } }

/* ---------------------------------------------------------------- основне */

.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }

.title {
  font-family: var(--serif); font-weight: normal; color: var(--green);
  font-size: 30px; line-height: 1.2; letter-spacing: -.005em; margin: 8px 0 12px;
}
.title-person { margin-bottom: 4px; letter-spacing: .02em; }
@media (min-width: 600px) { .title { font-size: 36px; } }

.lead { font-size: 18px; color: var(--text-soft); margin: 0 0 24px; }
.muted { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 8px 0 0; }
.person-meta { margin: 0 0 16px; }

.loading { color: var(--muted); padding: 48px 0; text-align: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  margin: 0 0 16px;
}
@media (min-width: 600px) { .card { padding: 28px 32px; } }

.card-title {
  font-family: var(--serif); font-weight: normal; color: var(--green);
  font-size: 22px; line-height: 1.3; margin: 0 0 16px;
  display: flex; align-items: baseline; gap: 10px;
}
.section-num {
  flex: none; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--gold-text);
  letter-spacing: .08em; min-width: 22px; padding-bottom: 2px; border-bottom: 1px solid var(--gold-200);
}

.note {
  background: var(--sage-50); border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px; margin: 0 0 16px; color: var(--text-soft); font-size: 15px;
}
.note-child { background: var(--gold-50); border-left-color: var(--gold); margin-top: 12px; }
.note-docs { margin-bottom: 20px; }

.notice { border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 16px; font-size: 15px; }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }
.notice.is-ok { background: var(--sage-50); border: 1px solid var(--sage-200); color: var(--green); }
.notice.is-warn { background: var(--gold-50); border: 1px solid var(--gold-200); }
.notice.is-error { background: var(--terra-50); border: 1px solid #EBCBBE; color: var(--terra-text); }
.notice-title { font-weight: 600; color: var(--green); }

/* ---------------------------------------------------------------- етапи */

.steps { margin: 0 0 12px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.step-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  font: inherit; font-size: 15px; color: var(--muted);
  background: none; border: 0; padding: 0; cursor: default;
}
button.step-btn { cursor: pointer; }
button.step-btn:hover .step-label { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); background: var(--surface);
}
.step.is-past .step-num { border-color: var(--sage); background: var(--sage-100); color: var(--green); }
.step.is-current .step-btn { color: var(--green); font-weight: 600; }
.step.is-current .step-num { border-color: var(--green); background: var(--green); color: var(--off); }

.draft-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  padding: 8px 0 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.draft-note { margin: 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.draft-note:not(:empty)::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); flex: none; }
.draft-note.is-warn { color: var(--terra-text); }
.draft-note.is-warn::before { background: var(--terra); }

/* ---------------------------------------------------------------- кнопки */

.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: .01em; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-primary:hover { background: var(--green-deep); }
.btn-primary:disabled { background: var(--sage-100); border-color: var(--sage-200); color: var(--muted); cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--green); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--green); background: var(--sage-50); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn-add { margin-top: 12px; min-height: 48px; font-weight: 500; }

.link-btn {
  appearance: none; background: none; border: 0; padding: 6px 0; min-height: 36px;
  font: inherit; font-size: 14px; color: var(--green); text-align: left;
  text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { text-decoration-color: var(--green); }
.link-danger { color: var(--terra-text); text-decoration-color: #E2B4A3; }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 8px; flex-wrap: wrap-reverse; }
.actions .btn-primary { margin-left: auto; }
.actions-center { justify-content: center; }
@media (max-width: 480px) {
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
  .actions > span:empty { display: none; }
}

.form-error { color: var(--terra-text); font-size: 15px; margin: 4px 0 0; text-align: right; }
.form-error:empty { display: none; }

/* ---------------------------------------------------------------- питання */

.group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group-legend { font-family: var(--serif); font-size: 20px; color: var(--green); padding: 0; margin: 0 0 14px; }

.q { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.q:last-child { margin-bottom: 0; }
.q-label { display: block; padding: 0; margin: 0 0 8px; font-weight: 600; color: var(--green); font-size: 17px; line-height: 1.4; }
.q-text { white-space: pre-line; }
.q-hint { margin: -2px 0 10px; color: var(--muted); font-size: 16px; line-height: 1.5; white-space: pre-line; }
.q-err { margin: 6px 0 0; color: var(--terra-text); font-size: 14px; }

.req {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-left: 7px; vertical-align: .3em;
}
.legend-req { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.legend-req .req { margin: 0 2px 0 0; vertical-align: .15em; }

.q-info p { margin: 0 0 6px; color: var(--text-soft); }
.q-info {
  background: var(--sage-50); border-radius: var(--radius-sm); padding: 12px 14px;
}

.q-children {
  margin: 18px 0 0 4px; padding: 2px 0 2px 16px; border-left: 2px solid var(--sage-100);
}
.q-children:not(:has(> .q:not([hidden]))) { display: none; }

.q-other { margin: 12px 0 0; }
.q-other .q-label { font-weight: 500; font-size: 15px; }

.input {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.input:hover { border-color: var(--green); }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 0 0 4px rgba(168, 106, 16, .45); }
.input-area { min-height: 112px; resize: vertical; line-height: 1.5; }
.input-latin { text-transform: uppercase; letter-spacing: .04em; }
.input-short { max-width: 140px; }
select.input {
  padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.is-invalid .input, .is-missing > .input, .is-missing > .money > .input { border-color: var(--terra); }

.money { position: relative; display: flex; align-items: stretch; }
.money .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.money-cur {
  display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-strong); border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--sage-50);
  color: var(--text-soft); font-size: 15px; font-weight: 600; letter-spacing: .04em;
}
.input-num { max-width: 260px; }
.money .input-num { max-width: none; }
.money { max-width: 320px; }

.date { display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 8px; max-width: 460px; }
.date .input { padding-left: 12px; padding-right: 32px; background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; }

/* Варіанти: справжні radio/checkbox, оформлені як картки. */
.opt { display: block; position: relative; cursor: pointer; }
.opt-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opt-box {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.opt:hover .opt-box { border-color: var(--green); background: var(--sage-50); }
.opt-input:focus-visible + .opt-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt-input:checked + .opt-box { border-color: var(--green); background: var(--sage-50); box-shadow: inset 0 0 0 1px var(--green); }
.opt-title { flex: 1; min-width: 0; }

.opt-radio::before, .opt-check::before {
  content: ''; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line-strong); background: var(--surface);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.opt-radio::before { border-radius: 50%; }
.opt-check::before { border-radius: 5px; }
.opt-input:checked + .opt-radio::before { border-color: var(--green); box-shadow: inset 0 0 0 5px var(--surface); background: var(--green); }
.opt-input:checked + .opt-check::before {
  border-color: var(--green); background-color: var(--green);
  background-image: linear-gradient(45deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%), linear-gradient(-45deg, transparent 46%, #fff 46%, #fff 58%, transparent 58%);
  background-size: 7px 7px, 12px 12px; background-position: 3px 8px, 6px 3px; background-repeat: no-repeat;
}

.opt-list { display: grid; gap: 8px; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.opt-center { justify-content: center; font-weight: 600; min-height: 56px; }
.opt-input:checked + .opt-center { color: var(--green); }

.dest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 600px) { .dest-grid { grid-template-columns: 1fr 1fr 1fr; } }
.opt-dest .opt-box { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 72px; }
.opt-dest .opt-title { font-family: var(--serif); font-size: 18px; color: var(--green); flex: none; }
.opt-soon { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.opt.is-disabled { cursor: not-allowed; }
.opt.is-disabled .opt-box { background: var(--off); border-style: dashed; border-color: var(--card-border); }
.opt.is-disabled .opt-title { color: var(--muted); }
.opt.is-disabled:hover .opt-box { background: var(--off); border-color: var(--card-border); }
.card > .group + .group { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Повторювані блоки */
.entries { display: grid; gap: 12px; }
.entries-empty { margin: 0; }
.entry { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sage-50); padding: 12px 14px 16px; }
.entry .q { margin-bottom: 16px; }
.entry .q:last-child { margin-bottom: 0; }
.entry .opt-box, .entry .input { background-color: var(--surface); }
.entry-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.entry-title { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Незаповнене обов'язкове */
.q.is-missing { border-left: 3px solid var(--terra); padding-left: 12px; margin-left: -15px; }
@media (min-width: 600px) { .q.is-missing { padding-left: 16px; margin-left: -19px; } }
.q.is-missing > .q-label { color: var(--terra-text); }
.q.is-flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--gold-50); box-shadow: 0 0 0 8px var(--gold-50); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .q.is-flash { animation: none; } }

/* ---------------------------------------------------------------- анкети учасників */

.tabs { margin: 0 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs-list { list-style: none; margin: 0; padding: 2px 2px 6px; display: flex; gap: 8px; width: max-content; min-width: 100%; }
.tab {
  appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  min-height: 52px; padding: 7px 14px; max-width: 220px;
  font: inherit; font-size: 15px; text-align: left; color: var(--text-soft);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
}
.tab:hover { background: var(--surface); border-color: var(--sage); }
.tab.is-active { background: var(--surface); border-color: var(--green); color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); }
.tab-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; letter-spacing: .02em; }
.tab-status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.tab.is-complete .tab-status { color: var(--green); }
.tab.is-complete .tab-status::before {
  content: ''; width: 9px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg) translateY(-2px);
}
.tab-review { justify-content: center; font-weight: 600; }

.progress-wrap { margin: 0 0 12px; }
.progress {
  display: block; width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden;
  background: var(--sage-100); color: var(--gold); -webkit-appearance: none; appearance: none;
}
.progress::-webkit-progress-bar { background: var(--sage-100); border-radius: 999px; }
.progress::-webkit-progress-value { background: var(--gold); border-radius: 999px; transition: width .3s; }
.progress::-moz-progress-bar { background: var(--gold); border-radius: 999px; }
.progress-label { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.section .card-title { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }

.missing-box { margin: 8px 0 0; }
.missing { margin: 0; }
.missing summary {
  cursor: pointer; padding: 10px 0; min-height: 44px; list-style-position: inside;
  font-size: 15px; color: var(--green);
}
.missing-count { font-weight: 600; }
.missing-toggle { color: var(--muted); }
.missing-list { margin: 0 0 8px; padding: 0 0 0 4px; list-style: none; display: grid; gap: 2px; }
.missing-list li { padding-left: 14px; position: relative; font-size: 14px; }
.missing-list li::before { content: ''; position: absolute; left: 0; top: 18px; width: 5px; height: 5px; border-radius: 50%; background: var(--terra); }
.missing-list li.muted::before { display: none; }
.missing-list .link-btn { font-size: 14px; }
.missing-box > .missing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 16px; }
.missing-all .missing + .missing { border-top: 1px solid var(--gold-200); }

/* ---------------------------------------------------------------- перевірка */

.summary-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.summary-head .card-title { margin: 0; letter-spacing: .02em; }
.summary-head .muted { margin-top: 2px; }
.summary-sec {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text);
  margin: 20px 0 6px; padding-top: 14px; border-top: 1px solid var(--line);
}
.summary-list { margin: 0; }
.summary-row { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row.is-child dt { padding-left: 14px; border-left: 2px solid var(--sage-100); }
.summary-row dt { font-size: 15px; color: var(--muted); margin: 0 0 2px; }
.summary-row dd { margin: 0; white-space: pre-line; color: var(--text); }
@media (min-width: 600px) {
  .summary-row { display: grid; grid-template-columns: 2fr 3fr; gap: 16px; }
  .summary-row dt { margin: 0; }
}

.docs { border-top: 3px solid var(--gold-200); }
.docs-list { list-style: none; margin: 0; padding: 0; counter-reset: doc; }
.doc {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); counter-increment: doc;
}
.doc:last-child { border-bottom: 0; }
.doc::before {
  content: counter(doc); position: absolute; left: 0; top: 13px;
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--gold-200);
  font-size: 13px; color: var(--gold-text); display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.doc-text { color: var(--text); }
.doc-hint { font-size: 15px; color: var(--muted); }
.doc-meta { font-size: 14px; color: var(--text-soft); }

.submit-area { margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.submit-area .muted { text-align: center; }
.submit-msg:empty { display: none; }

/* ---------------------------------------------------------------- готово / помилка посилання */

.done { text-align: center; padding: 24px 0 12px; }
.done .lead { margin-left: auto; margin-right: auto; max-width: 520px; }
.done-mark {
  display: inline-block; width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--gold-200); background: var(--gold-50); position: relative; margin-bottom: 8px;
}
.done-mark::after {
  content: ''; position: absolute; left: 21px; top: 22px; width: 22px; height: 11px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}

.bad-link { margin-top: 32px; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.bad-link .title { font-size: 26px; }
.bad-link .lead { margin: 0; }

/* ---------------------------------------------------------------- підвал */

.footer { border-top: 1px solid var(--card-border); background: var(--surface); }
.footer p { margin: 0; padding-top: 18px; padding-bottom: 18px; font-size: 14px; color: var(--muted); text-align: center; }

@media print {
  .header .lang, .steps, .draft-bar, .tabs, .actions, .submit-area, .missing-box { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* ---------------------------------------------------------------- дрібниці */

.person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.person-head .card-title { margin: 0; }
.center { text-align: center; margin: 4px 0 0; }
.center .link-btn { text-align: center; }
.form-msg { text-align: left; margin: 0 0 12px; }

.input-date { max-width: 220px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.input-date::placeholder { color: #6B7A71; letter-spacing: .06em; }
.input::placeholder { color: #6B7A71; }
@media (min-width: 600px) {
  .q-hint, .muted { font-size: 15px; }
}

/* ---------------------------------------------------------------- список з пошуком (combobox) */

.cb { position: relative; }
.cb-input { padding-right: 46px; scroll-margin-top: 84px; }
.cb.is-plain .cb-input { padding-right: 14px; }
.cb.is-plain .cb-toggle { display: none; }
.cb-toggle {
  position: absolute; top: 1px; right: 1px; bottom: 1px; width: 44px;
  border: 0; background: transparent; cursor: pointer; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.cb-toggle::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: translate(-50%, -70%) rotate(45deg); transition: transform .15s;
}
.cb.is-open .cb-toggle::after { transform: translate(-50%, -25%) rotate(-135deg); }
.cb.is-open .cb-input { border-color: var(--green); }
.cb-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 300px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: 0 14px 36px -10px rgba(27, 59, 43, .28);
}
.cb-opt {
  display: flex; align-items: center; min-height: 46px; padding: 10px 12px; border-radius: 8px;
  font-size: 17px; line-height: 1.3; color: var(--text); cursor: pointer;
}
.cb-opt:hover, .cb-opt.is-active { background: var(--sage-100); }
.cb-opt.is-selected { font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.cb-group {
  padding: 12px 12px 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text);
}
.cb-group:first-child { padding-top: 6px; }
.cb-empty { padding: 12px; color: var(--muted); font-size: 15px; }
