/* Разбор бизнеса — экраны входа и интервью. Палитра flai из .claude/skills/razbor/assets/brands.json. Без библиотек. */
:root {
  --bg: #faf7f2; --surface: #ffffff; --soft: #f4efe7; --fg: #23272b; --muted: #6b6660; --line: #e6dfd3;
  --accent: #ff6a4d; --accent-ink: #d94a2c; --link: #b8391f; --on-accent: #1d1f22; --danger: #b3261e;
  --warn-bg: #fff5ea; --warn-line: #f1d7b5;
  --radius: 16px; --radius-big: 28px;
  --shadow: 0 1px 2px rgba(35, 39, 43, .04), 0 10px 30px rgba(35, 39, 43, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191c; --surface: #202327; --soft: #262a2f; --fg: #f2ede6; --muted: #a8a29a; --line: #33373c;
    --accent: #ff7a5e; --accent-ink: #ff9a82; --link: #ff9a82; --on-accent: #17191c; --danger: #ff8a80;
    --warn-bg: #2a2521; --warn-line: #4a3a2c; --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 10px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { max-width: 640px; margin: 0 auto; padding: 14px 16px 40px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 12px; min-height: 40px; }
.brand { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-weight: 500; }
.save { font-size: 13px; color: var(--muted); text-align: right; }
.save[data-s="offline"] { color: var(--danger); }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .55s cubic-bezier(.2, .7, .2, 1); }

.view { animation: rise .22s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section { margin: 22px 0 4px; font-size: 13px; line-height: 1.4; color: var(--muted); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.why { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
h1.q, .hero h1 { overflow-wrap: anywhere; hyphens: auto; }
h1.q { font-size: clamp(22px, 5.6vw, 28px); line-height: 1.25; letter-spacing: -.015em; font-weight: 650; margin: 6px 0 8px; }
.lead { margin: 0 0 12px; }
.note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.note.flash { color: var(--link); font-weight: 600; }
details.hint { margin: 2px 0 0; }
details.hint summary { cursor: pointer; color: var(--link); font-size: 15px; font-weight: 500; width: fit-content; padding: 4px 0; }
details.hint p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.opts { display: grid; gap: 10px; margin: 18px 0 6px; }
@media (min-width: 560px) { .opts.two { grid-template-columns: 1fr 1fr; } }
.opt { appearance: none; width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; text-align: left;
  border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 500;
  cursor: pointer; transition: border-color .15s, background-color .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.opt:hover { border-color: var(--accent); }
.opt:active { transform: scale(.99); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--accent); background: var(--soft); background: color-mix(in srgb, var(--accent) 11%, var(--surface)); }
.opt[aria-disabled="true"] { opacity: .5; }
.opt .txt { display: grid; gap: 2px; min-width: 0; }
.opt .lbl { overflow-wrap: anywhere; }
.opt .sub { color: var(--muted); font-size: 14px; font-weight: 400; }
.opt .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.opt[aria-checked="true"] .box { background: var(--accent); border-color: var(--accent); }
.opt[aria-checked="true"] .box::after { content: ""; width: 10px; height: 6px; margin-top: -2px; border-left: 2.5px solid var(--on-accent); border-bottom: 2.5px solid var(--on-accent); transform: rotate(-45deg); }

.alt { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 4px 0 0; }
.link-btn { appearance: none; background: none; border: 0; padding: 10px 2px; color: var(--link); font: inherit; font-size: 15px; font-weight: 550;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn.muted { color: var(--muted); }
.link-btn[aria-pressed="true"] { color: var(--fg); text-decoration-thickness: 2px; }
.link-btn.inline { padding: 0; font-size: inherit; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 16px 0 0; }
.btn { appearance: none; border: 0; border-radius: 999px; min-height: 52px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn.wide { width: 100%; }
.btn.quiet { background: var(--soft); color: var(--fg); }

.exact { margin: 10px 0 0; padding: 14px; border-radius: var(--radius); background: var(--soft); display: grid; gap: 10px; }
.num { display: flex; align-items: center; gap: 10px; }
.num .input { flex: 1; min-width: 0; font-size: 22px; font-weight: 650; }
.num .unit { color: var(--muted); font-size: 15px; white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-big); padding: 20px 18px; box-shadow: var(--shadow); margin: 8px 0 0; }
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field > label { font-size: 15px; font-weight: 600; }
.opt-note { color: var(--muted); font-weight: 400; }
.input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.45; }
select.input { appearance: auto; }
.input:focus { border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 14px; margin: 0; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin: 4px 0 12px; cursor: pointer; }
.check-row input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-ink); }
details.more { margin: 0 0 14px; }
details.more summary { cursor: pointer; color: var(--link); font-size: 15px; font-weight: 550; padding: 6px 0 12px; width: fit-content; }

.banner { border-radius: var(--radius); padding: 12px 14px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 15px; margin: 12px 0; }
.warn-list { display: grid; gap: 10px; margin: 16px 0 0; }
.warn-item { border-radius: var(--radius); padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--warn-line); }
.warn-item p { margin: 0 0 6px; }
.foot { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.hero h1 { font-size: clamp(28px, 7.4vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; margin: 6px 0 14px; }
.gets { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.gets li { display: flex; gap: 12px; align-items: flex-start; }
.gets li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.meta-line { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.resume { margin: 14px 0 0; text-align: center; font-size: 15px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

dialog { border: 0; border-radius: var(--radius-big); padding: 22px 20px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--surface); color: var(--fg); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
dialog::backdrop { background: rgba(18, 18, 20, .45); }
dialog h2 { font-size: 21px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.01em; }
dialog p { margin: 0 0 10px; color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
/* Impressum · Datenschutz — на каждой странице (находка лидера 27.11 04:58) */
.legal { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legal a, .legal-in a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover, .legal-in a:hover { color: var(--fg); }

/* Флаг у языка и поле «своё» у варианта «Другое» (27.11) */
.opt .flag { flex: none; width: 36px; height: 24px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); display: block; }
.opt .flag svg { display: block; width: 100%; height: 100%; }
.own { margin: 10px 0 0; padding: 14px; border-radius: var(--radius); background: var(--soft); display: grid; gap: 10px; }
.own label { font-weight: 600; }

/* 28.11 значки у вариантов */
.opt .ico { flex: none; width: 26px; height: 26px; color: var(--accent); display: block; }
.opt .ico svg { display: block; }
