:root {
  color-scheme: light;
  --ink: #112443;
  --muted: #4b607d;
  --blue: #2155d9;
  --blue-hover: #1747c1;
  --line: #dce6f3;
  --soft: #edf4ff;
  --surface: #f7faff;
  --white: #fff;
  --radius: 18px;
  --max: 1232px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
p, h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; }
img { max-width: 100%; display: block; }
::selection { background: #c9ddff; }
:focus-visible { outline: 3px solid #1747c1; outline-offset: 4px; }
.container { width: min(var(--max), calc(100% - 100px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 14px; border-radius: 8px; background: white; }
.muted { color: var(--muted); }

.header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #e4ebf6; background: #fffffff5; backdrop-filter: blur(14px); }
.header-row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 750; font-size: 20px; line-height: 1.05; letter-spacing: -.045em; white-space: nowrap; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 550; letter-spacing: .01em; }
.brand-hyphen { color: var(--blue); }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: white; background: var(--blue); border-radius: 12px; box-shadow: inset 0 0 0 1px #ffffff35, 0 4px 9px #2359d321; }
.brand-mark .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { display: grid; place-items: center; min-height: 44px; padding: 0 15px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.15; text-align: center; }
.nav a:hover, .nav a[aria-current], .history-link[aria-current] { background: var(--soft); color: var(--blue); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 0 17px; min-height: 46px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 700; line-height: 1.22; text-align: center; transition: background .17s ease, border-color .17s ease, box-shadow .17s ease; }
.button-white { color: var(--ink); border-color: var(--line); background: var(--white); }
.button-white:hover { background: #f2f7ff; border-color: #bfd1f0; }
.button-primary { color: white; background: var(--blue); box-shadow: 0 5px 12px #1545c324; }
.button-primary:hover { background: var(--blue-hover); box-shadow: 0 7px 16px #1545c333; }
.button-danger { color: white; background: #a52b36; }
.button-danger:hover { background: #84202a; }
.history-link { min-height: 44px; padding-inline: 13px; font-size: 14px; }
.history-link .icon { color: var(--blue); width: 17px; height: 17px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.hero { overflow: hidden; background: radial-gradient(ellipse at 72% 47%, #e3efff 0%, #eff5ff 52%, #f5f8fd 100%); border-bottom: 1px solid #e0eafa; }
.hero-layout { display: grid; min-height: 503px; grid-template-columns: minmax(400px, 1fr) minmax(0, 1.26fr); align-items: center; gap: 34px; }
.hero-copy { position: relative; z-index: 2; padding-block: 49px 53px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #d2e1fa; border-radius: 100px; color: #214da9; background: #f5f9ff; text-transform: uppercase; font-size: 11px; font-weight: 750; letter-spacing: .11em; }
.eyebrow .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.hero h1 { margin: 19px 0 18px; font-size: clamp(52px, 5.6vw, 80px); line-height: .98; font-weight: 760; letter-spacing: -.064em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-text { max-width: 450px; font-size: 17px; line-height: 1.58; color: var(--muted); }
.hero-actions { margin-top: 25px; }
.hero-actions .button { min-height: 52px; padding-inline: 17px; }
.hero-visual { position: relative; min-width: 0; aspect-ratio: 1.41; align-self: center; margin-block: 30px; border: 1px solid #cddff8; border-radius: 25px; isolation: isolate; background: #e9f3ff; box-shadow: 0 12px 30px #5b8bca12; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; border-radius: inherit; }
.visual-label, .visual-caption { position: absolute; display: flex; align-items: center; border: 1px solid #ffffffd9; background: #f8fbfff0; box-shadow: 0 5px 14px #102f6814; }
.visual-label { top: 17px; left: 17px; gap: 8px; padding: 8px 11px; border-radius: 7px; color: #2a4c81; font-size: 10px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.visual-marker { width: 7px; height: 7px; border-radius: 50%; background: #2e63e3; outline: 3px solid #dceafe; }
.visual-caption { right: 17px; bottom: 17px; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 11px; }
.visual-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 7px; color: var(--blue); background: #e1edff; }
.visual-caption strong, .visual-caption small { display: block; }
.visual-caption strong { font-size: 13px; line-height: 1.1; }
.visual-caption small { font-size: 11px; color: var(--muted); margin-top: 4px; }

.workflow { background: white; border-bottom: 1px solid #e1e9f6; }
.step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 23px 0; list-style: none; }
.step-list li { display: flex; align-items: center; gap: 12px; padding-inline: 19px 12px; }
.step-list li:first-child { padding-left: 0; }
.step-list li + li { border-left: 1px solid #e1e9f6; }
.step-icon, .case-icon { display: grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; background: #eaf2ff; color: #2457ce; border: 1px solid #dfebff; border-radius: 11px; }
.step-list strong, .step-list small { display: block; }
.step-list strong { font-size: 15px; font-weight: 700; line-height: 1.22; }
.step-list small { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.28; }
.catalog { padding-block: 53px 70px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.kicker { margin-bottom: 7px; color: #2457ce; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2, .work-title { font-size: clamp(33px, 4.1vw, 49px); line-height: 1.08; letter-spacing: -.055em; font-weight: 750; }
.section-head p:not(.kicker), .page-intro { color: var(--muted); font-size: 16px; line-height: 1.55; margin-top: 9px; }
.filters { display: flex; align-items: center; gap: 8px; }
.filter { display: grid; position: relative; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.filter select { grid-area: 1 / 1; appearance: none; color: var(--ink); font-size: 13px; font-weight: 650; min-height: 44px; padding: 0 30px 0 12px; border: 0; background: transparent; border-radius: inherit; }
.filter:first-child select { padding-left: 34px; }
.filter > .icon { grid-area: 1 / 1; margin-left: 11px; pointer-events: none; width: 14px; height: 14px; }
.filter > .select-arrow { justify-self: end; margin: 0 10px 0 0; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.case-card, .panel, .empty, .history-item { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.case-card { display: flex; flex-direction: column; min-width: 0; padding: 21px 22px 20px; transition: border-color .17s ease, box-shadow .17s ease; }
.case-card:hover { border-color: #aec7f1; box-shadow: 0 7px 20px #253d6b0a; }
.case-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 17px; }
.case-icon { width: 45px; height: 45px; }
.case-card h3 { font-size: 23px; letter-spacing: -.035em; font-weight: 750; }
.case-card p { margin-top: 7px; margin-bottom: 20px; line-height: 1.5; color: var(--muted); }
.case-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 11px; border-top: 1px solid #e9eff8; }
.chip, .state-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; line-height: 1.28; }
.chip { padding: 5px 9px; border-radius: 6px; background: #eaf6f2; color: #19694f; }
.chip.advanced { background: #eef0ff; color: #4142a1; }
.state-label { color: var(--muted); }
.state-label::before, .mode-label > span { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #8b9bb2; }
.state-label.working::before, .state-label.draft::before { background: #3069db; }
.state-label.ready::before, .state-label.opened::before, .mode-label.live > span { background: #15875e; }
.state-label.retry::before { background: #b76924; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); min-height: 44px; padding-inline: 6px; border-radius: 7px; font-size: 14px; font-weight: 740; }
.text-link:hover { background: var(--soft); }
.text-link .icon { width: 17px; height: 17px; }
.empty { grid-column: 1 / -1; padding: 34px 24px; color: var(--muted); }
.empty h2, .empty h3 { color: var(--ink); margin-bottom: 8px; }
.empty .actions { margin-top: 18px; }
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-row { display: flex; min-height: 90px; justify-content: space-between; align-items: center; gap: 18px; }
.footer-brand { font-size: 16px; }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand .icon { width: 17px; height: 17px; }
.footer p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.mode-label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--muted); font-size: 12px; font-weight: 700; }
.mode-label.demo > span { background: #3867d9; }

.work-view { min-height: calc(100svh - 168px); padding: 27px 0 65px; }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 11px 0 24px; }
.work-title { overflow-wrap: anywhere; }
.work-heading .chip { margin-left: 9px; vertical-align: middle; letter-spacing: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.breadcrumbs .text-link { padding-inline: 7px; margin-left: -7px; }
.case-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: start; gap: 18px; }
.panel { min-width: 0; padding: 24px; overflow-wrap: anywhere; }
.case-facts { position: sticky; top: 92px; max-height: calc(100svh - 112px); overflow-y: auto; scrollbar-width: thin; }
.panel h2 { font-size: 25px; letter-spacing: -.038em; line-height: 1.16; }
.panel h3 { font-size: 18px; letter-spacing: -.02em; line-height: 1.24; }
.lead { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.case-facts .fact-section { margin-top: 17px; padding-top: 15px; border-top: 1px solid #e8eef8; }
.fact-section p { margin-top: 7px; color: #344b69; font-size: 15px; line-height: 1.52; }
.fact-id { display: inline-block; vertical-align: .07em; padding: 2px 5px; margin-right: 5px; border-radius: 4px; background: var(--soft); color: #2a50a4; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.case-facts .note { margin-top: 17px; }
.right-stack { display: grid; gap: 14px; min-width: 0; }
.answer-fields { display: grid; gap: 16px; margin-top: 20px; }
.field-label { display: block; font-size: 15px; font-weight: 720; }
.form-field textarea { display: block; width: 100%; min-width: 0; resize: vertical; margin-top: 7px; padding: 11px 12px; border: 1px solid #cddaf0; border-radius: 9px; background: #fbfdff; color: var(--ink); line-height: 1.5; }
.form-field textarea::placeholder { color: #576c88; }
.form-field textarea[aria-invalid="true"] { border-color: #a52b36; }
.field-error, .inline-error { color: #9b2936; padding-top: 5px; font-size: 14px; line-height: 1.5; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 17px; }
.form-actions .button { min-height: 48px; }
.save-note { color: var(--muted); font-size: 13px; line-height: 1.36; }
.transfer-note { margin-top: 11px; }
.note { display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; border: 1px solid #dce9fe; border-radius: 9px; background: #f3f8ff; color: #34517d; font-size: 14px; line-height: 1.45; }
.note .icon { width: 17px; height: 17px; margin-top: 1px; }
.note.warning { background: #fff5e8; border-color: #f0dec4; color: #77501b; }
.note.success { background: #edf8f4; border-color: #d4ede3; color: #1c5e49; }
.result-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: start; margin-bottom: 12px; }
.result-head .state-label { min-height: 24px; }
.panel > .actions, .panel > .note { margin-top: 15px; }
.timeline { display: grid; gap: 8px; margin-top: 16px; }
.role-row { display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 7px 9px; border: 1px solid #e2ebf8; border-radius: 8px; }
.role-row .icon { color: var(--blue); width: 17px; height: 17px; }
.role-row strong { flex: 1; font-size: 14px; }
.role-row small { font-size: 12px; color: var(--muted); }
.spinner { width: 14px; height: 14px; border: 2px solid #c5d8f9; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.read-block { margin-top: 15px; }
.read-block h3, .read-block h4 { margin-bottom: 6px; }
.read-block p, .read-block li, .argument-cell { color: #344b69; line-height: 1.53; }
.read-block ul, .read-block ol { padding-left: 22px; }
.read-block li + li { margin-top: 6px; }
.read-block q { font-weight: 700; }
.details-stack { display: grid; gap: 8px; margin-top: 12px; }
.details-stack details, .snapshot { border: 1px solid #dce7f7; background: #fbfdff; border-radius: 9px; }
summary { display: flex; align-items: center; min-height: 46px; gap: 9px; padding: 9px 11px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > .icon:first-child { color: var(--blue); }
summary > .chevron { margin-left: auto; width: 17px; height: 17px; color: var(--muted); }
details[open] > summary > .chevron { transform: rotate(180deg); }
.detail-content { padding: 0 12px 13px; font-size: 14px; }
.detail-content > .lead { margin-top: 2px; }
.detail-content .read-block { margin-top: 11px; }
.snapshot .answer-details { padding: 0 12px 13px; }
.answer-details dt { color: var(--muted); font-size: 13px; font-weight: 750; margin-top: 9px; }
.answer-details dd { margin: 3px 0 0; line-height: 1.5; white-space: pre-wrap; }
.answer-details { margin: 0; }
.hyp-table { display: grid; margin-top: 13px; }
.hyp-table-head, .hyp-table-row { display: grid; grid-template-columns: 1fr 1.25fr 1.1fr 1.1fr; min-width: 0; }
.hyp-table-head { border-radius: 8px 8px 0 0; background: #edf4ff; color: #29476f; font-size: 12px; font-weight: 760; }
.hyp-table-head > div, .argument-cell { padding: 9px 8px; }
.hyp-table-row { border-bottom: 1px solid #e4edf9; }
.argument-cell { font-size: 13px; overflow-wrap: anywhere; }
.argument-cell > ul { list-style: none; padding: 0; }
.argument-cell li + li { margin-top: 7px; }
.argument-cell:first-child strong { color: var(--ink); }
.argument-cell small { display: block; font-size: 11px; margin-top: 5px; }
.argument-cell .fact-id { margin: 0 2px 2px 0; }
.cell-label { display: none; }
.source-link { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.source-link .icon { width: 14px; height: 14px; }
.history-list { display: grid; gap: 9px; }
.history-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; }
.history-item > div { display: flex; align-items: center; gap: 12px; }
.history-item h2 { font-size: 18px; }
.history-item p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.confirm-dialog { width: min(460px, calc(100% - 30px)); padding: 24px; border: 1px solid #ccd9ee; border-radius: 16px; color: var(--ink); }
.confirm-dialog::backdrop { background: #11244366; }
.confirm-dialog p { margin: 10px 0 17px; color: var(--muted); line-height: 1.5; }
.storage-notice { position: fixed; z-index: 11; right: 14px; bottom: 14px; max-width: min(380px, calc(100% - 28px)); padding: 12px; border: 1px solid #efd8ae; background: #fff6e8; border-radius: 9px; color: #654b25; }

.consult-hero { border-bottom: 1px solid #dfebfb; background: radial-gradient(ellipse at 84% 105%, #d9eaff, transparent 58%), #eff5ff; }
.consult-intro { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 43px 41px; }
.consult-intro h1 { margin: 12px 0 8px; font-size: clamp(40px, 5.5vw, 68px); font-weight: 800; letter-spacing: -.065em; line-height: 1.05; }
.consult-intro p:last-child { max-width: 630px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.consult-emblem { display: grid; place-items: center; flex: 0 0 auto; width: 104px; height: 104px; margin: 0 28px 0 0; border: 1px solid #f7fbff; border-radius: 29px; background: linear-gradient(140deg, #f8fbff, #d3e4ff); color: #2959cc; box-shadow: 0 0 0 14px #e2edfc, 0 0 0 15px #d5e5fc, 0 13px 30px #3660aa26; }
.consult-emblem .icon { width: 53px; height: 53px; stroke-width: 1.35; }
.consult-body { padding-block: 20px 65px; }
.consult-emergency { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #ecd2d0; border-radius: 12px; background: #fff6f5; color: #703330; }
.consult-emergency > .icon { width: 21px; height: 21px; color: #a54442; }
.consult-emergency strong { display: block; font-size: 14px; }
.consult-emergency p { margin-top: 3px; font-size: 13px; line-height: 1.4; }
.consult-emergency-call { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-width: 65px; min-height: 44px; padding: 4px 10px; border: 1px solid #edd0ce; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 750; }
.consult-emergency-call:hover { background: #fce6e3; }
.consult-emergency-call .icon { width: 14px; height: 14px; }
.consult-form { margin-top: 19px; }
.consult-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 17px; align-items: start; margin: 0; min-width: 0; padding: 0; border: none; }
.consult-card { padding: 23px; }
.consult-card .lead { font-size: 15px; }
.symptom-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.symptom-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 4px 10px; border: 1px solid #d9e6f8; border-radius: 9px; background: #f7faff; color: #2b4d7c; font-size: 13px; font-weight: 650; }
.symptom-chip::before { content: '+'; display: inline-grid; place-items: center; width: 15px; color: var(--blue); font-size: 17px; font-weight: 600; }
.symptom-chip .icon { display: none; width: 15px; height: 15px; stroke-width: 2.1; }
.symptom-chip:hover { border-color: #abc6f3; background: #ebf3ff; }
.symptom-chip[aria-pressed="true"] { border-color: #a8c3f3; background: #e4efff; color: #1748a8; }
.symptom-chip[aria-pressed="true"]::before { display: none; }
.symptom-chip[aria-pressed="true"] .icon { display: block; }
.consult-description { margin-top: 20px; }
.consult-description .save-note, .consult-selects .save-note { margin-top: 6px; }
.consult-triage { min-width: 0; margin: 18px 0 0; padding: 11px 12px 10px; border: 1px solid #e4eaf5; border-radius: 8px; }
.consult-triage legend { padding-inline: 4px; font-size: 15px; font-weight: 720; }
.consult-triage p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.consult-triage-options { display: flex; flex-wrap: wrap; gap: 3px 11px; margin-top: 3px; }
.consult-triage-options label { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 14px; font-weight: 650; cursor: pointer; }
.consult-triage-options input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.consult-profile { display: flex; align-items: center; gap: 10px; margin-block: 16px 14px; padding: 10px; border: 1px solid #dce9fc; border-radius: 10px; background: #f2f7ff; }
.consult-profile strong, .consult-profile small { display: block; }
.consult-profile small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.consult-selects { display: grid; gap: 13px; }
.consult-selects select { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 6px 10px; border: 1px solid #cddaf0; border-radius: 9px; background: #fbfdff; color: var(--ink); font-size: 15px; }
.consult-send { margin-top: 17px; padding-top: 14px; border-top: 1px solid #e7eef9; }
.consult-send .button { width: 100%; min-height: 49px; }
.consult-send .button .icon:last-child { margin-left: auto; }
.consult-send .save-note { margin-top: 10px; line-height: 1.45; }
.consult-form-status:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 13px; }
.consult-result { margin-top: 18px; }
.consult-result h2 { font-size: 24px; letter-spacing: -.035em; }
.consult-result-title { display: flex; gap: 10px; align-items: center; }
.consult-progress ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin-top: 14px; list-style: none; }
.consult-progress li { display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #e1ebfa; border-radius: 8px; background: #f5f9ff; overflow-wrap: anywhere; font-size: 14px; }
.consult-progress li span { color: var(--muted); font-size: 12px; }
.consult-assessment { display: flex; gap: 12px; align-items: start; padding: 18px; border: 1px solid #dbe6f6; border-radius: 12px; background: #f0f6ff; }
.consult-assessment.urgent { border-color: #eac8c6; background: #fff6f5; color: #703330; }
.consult-assessment > .icon { flex-shrink: 0; width: 21px; height: 21px; margin-top: 3px; }
.consult-assessment p { margin-top: 7px; line-height: 1.5; }
.consult-assessment .actions { margin-top: 12px; }
.consult-summary-text { margin: 10px 0 0; line-height: 1.6; color: #344b69; }
.consult-direction { display: inline-block; margin-top: 13px; padding: 5px 9px; border-radius: 6px; background: #eaf2ff; color: #214fae; font-size: 14px; font-weight: 750; }
.consult-direction.today { background: #fff0dd; color: #774015; }
.consult-questions { margin-top: 13px; }
.consult-questions h3 { font-size: 15px; margin-bottom: 5px; }
.consult-questions ul { padding-left: 21px; color: #445a77; font-size: 14px; line-height: 1.6; }
.consult-opinions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; margin-top: 11px; }
.consult-opinion { padding: 12px; }
.consult-opinion summary { padding: 0; }
.consult-opinion summary > span { min-width: 0; overflow-wrap: anywhere; }
.consult-opinion summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.consult-opinion .consult-chevron { margin-left: auto; width: 17px; height: 17px; }
.consult-opinion[open] .consult-chevron { transform: rotate(180deg); }
.consult-opinion > p { margin: 9px 0 0; color: #344b69; font-size: 14px; line-height: 1.55; }

@media (max-width: 1080px) {
  .container { width: calc(100% - 62px); }
  .hero-layout { min-height: 455px; gap: 24px; grid-template-columns: minmax(355px, 1fr) minmax(0, 1.12fr); }
  .hero-copy { padding-block: 37px 42px; }
  .hero h1 { font-size: clamp(49px, 6.35vw, 70px); }
  .step-list li { padding-inline: 12px 8px; gap: 8px; }
  .step-list strong { font-size: 14px; }
  .step-list small { font-size: 12px; }
}

@media (max-width: 850px) {
  .container { width: calc(100% - 42px); }
  .header-row { gap: 10px; min-height: 68px; }
  .history-extra { display: none; }
  .nav { gap: 1px; }
  .nav a { padding-inline: 9px; }
  .hero-layout { min-height: 0; gap: 16px; grid-template-columns: minmax(310px, 1fr) minmax(0, 1fr); }
  .hero-copy { padding-block: 34px; }
  .hero h1 { font-size: clamp(46px, 7vw, 58px); }
  .hero-text { font-size: 16px; }
  .hero-actions { gap: 6px; margin-top: 19px; }
  .hero-actions .button { min-height: 46px; padding-inline: 10px; font-size: 13px; }
  .hero-visual { aspect-ratio: 1.03; margin: 0; border-radius: 17px; }
  .hero-visual img { object-position: center; }
  .step-list { grid-template-columns: 1fr 1fr; padding: 13px 0; column-gap: 16px; }
  .step-list li { min-height: 58px; padding: 3px 0; }
  .step-list li + li { border-left: 0; }
  .case-layout { grid-template-columns: 1fr; }
  .case-facts { position: static; max-height: none; overflow: visible; }
  .consult-layout { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); }
  .consult-opinions { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  :root { scroll-padding-top: 114px; }
  .container { width: calc(100% - 32px); }
  .header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding-top: 9px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
  .brand-mark .icon { width: 21px; height: 21px; }
  .brand small { font-size: 10px; }
  .nav { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-content: space-between; }
  .nav a { flex: 1; min-height: 44px; padding-inline: 4px; font-size: 13px; }
  .header .history-link { min-height: 44px; padding-inline: 9px; }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { padding-block: 31px 22px; }
  .hero h1 { font-size: clamp(44px, 10.6vw, 64px); margin-block: 13px 13px; }
  .hero-text { max-width: 480px; line-height: 1.48; }
  .hero-actions .button { padding-inline: 11px; }
  .hero-visual { width: 100%; aspect-ratio: 1.38; margin-bottom: 19px; }
  .visual-label { top: 10px; left: 10px; font-size: 9px; padding: 6px 8px; }
  .visual-caption { right: 10px; bottom: 10px; padding: 6px 8px 6px 6px; gap: 6px; }
  .visual-icon { width: 27px; height: 27px; }
  .visual-icon .icon { width: 16px; height: 16px; }
  .visual-caption strong { font-size: 11px; }
  .visual-caption small { font-size: 10px; }
  .step-list { column-gap: 8px; }
  .step-list li { gap: 6px; }
  .step-icon { width: 34px; height: 34px; border-radius: 8px; }
  .step-icon .icon { width: 17px; height: 17px; }
  .step-list strong { font-size: 13px; }
  .step-list small { font-size: 11px; }
  .catalog { padding-block: 35px 42px; }
  .section-head, .work-heading { align-items: start; flex-direction: column; }
  .filters { flex-wrap: wrap; }
  .case-grid { grid-template-columns: 1fr; gap: 10px; }
  .case-card { padding: 16px; }
  .footer-row { flex-wrap: wrap; justify-content: flex-start; gap: 10px 16px; padding-block: 17px; }
  .footer-row p { order: 1; width: 100%; }
  .work-view { padding-top: 13px; }
  .work-heading { margin-top: 5px; margin-bottom: 17px; }
  .work-heading .chip { margin: 6px 0 0; display: table; }
  .panel { padding: 15px; }
  .panel h2 { font-size: 22px; }
  .hyp-table { gap: 7px; }
  .hyp-table-head { display: none; }
  .hyp-table-row { grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; }
  .argument-cell + .argument-cell { border-top: 1px solid #e8eef8; }
  .cell-label { display: block; font-size: 11px; font-weight: 800; color: #304c77; margin-bottom: 4px; }
  .history-item { padding: 10px; gap: 3px; }
  .history-item > div { gap: 6px; }
  .history-item > div .case-icon { width: 33px; height: 33px; }
  .consult-intro { padding-block: 27px 24px; }
  .consult-intro p:last-child { max-width: none; font-size: 15px; }
  .consult-emblem { display: none; }
  .consult-body { padding-block: 14px 40px; }
  .consult-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .consult-card { padding: 15px; }
  .consult-emergency { gap: 8px; padding: 9px; }
  .consult-emergency-call { padding-inline: 7px; min-width: 50px; }
  .consult-emergency-call .icon { display: none; }
  .consult-progress ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
