:root {
  color-scheme: light;
  --paper: #fff;
  --ice: #f2f5fb;
  --ink: #101e35;
  --muted: #46536a;
  --blue: #1643dc;
  --blue-hover: #1132af;
  --navy: #101e34;
  --line: #b9c6d8;
  --dark-line: #667997;
  --sans: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 4.35vw, 70px);
  --space: clamp(66px, 7.3vw, 115px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.56 var(--sans); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .24em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #6689ff; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--sans); font-weight: 750; line-height: 1.04; letter-spacing: -.051em; }
h1 { font-size: clamp(44px, 5.35vw, 84px); }
h2 { font-size: clamp(36px, 4.25vw, 62px); }
h3 { font-size: clamp(22px, 2.05vw, 31px); letter-spacing: -.034em; }
em { font-family: var(--serif); font-weight: 400; letter-spacing: -.038em; }
img { max-width: 100%; height: auto; }
section[id], #project-list { scroll-margin-top: 22px; }
.wrap { width: min(1330px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--space); }
.icon { flex: none; display: inline-block; width: 24px; height: 24px; }
.label { font-size: .71rem; font-weight: 740; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }
.label + h1, .label + h2 { margin-top: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 15; top: 10px; left: 10px; transform: translateY(calc(-100% - 20px)); padding: 12px 17px; color: white; background: var(--blue); }
.skip:focus { transform: none; }

.header { position: relative; z-index: 5; border-bottom: 1px solid #dae1ee; background: var(--paper); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: clamp(13px, 1.5vw, 23px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font: 650 clamp(23px, 2.2vw, 31px)/1.05 var(--sans); letter-spacing: -.06em; white-space: nowrap; }
.wordmark img { width: 28px; height: 28px; }
.main-nav { display: flex; align-items: center; gap: clamp(13px, 1.65vw, 27px); margin-inline: auto; }
.main-nav > a, .directions summary { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .92rem; font-weight: 570; white-space: nowrap; }
.main-nav a:hover, .directions summary:hover, .main-nav [aria-current] { color: var(--blue); text-decoration: underline; }
.directions { position: relative; }
.directions summary { cursor: pointer; gap: 5px; list-style: none; }
.directions summary::-webkit-details-marker { display: none; }
.directions summary .icon { width: 15px; height: 15px; }
.directions[open] summary .icon { transform: rotate(180deg); }
.directions ul { position: absolute; top: calc(100% + 7px); left: -16px; z-index: 2; min-width: 268px; width: max-content; padding: 8px 15px; margin: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 13px 25px #101e3416; }
.directions li + li { border-top: 1px solid var(--line); }
.directions li a { display: flex; justify-content: space-between; align-items: center; gap: 17px; min-height: 45px; padding: 7px 2px; font-size: .9rem; text-decoration: none; }
.directions li .icon { width: 15px; height: 15px; }
.menu-toggle { display: none; }
.header-actions, .quick-contacts { display: flex; align-items: center; gap: 7px; }
.header-actions { flex: none; gap: 12px; }
.quick-contacts { padding: 0; margin: 0; list-style: none; }
.contact-channel { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-width: 44px; min-height: 44px; color: var(--channel); border: 1px solid var(--line); border-radius: 6px; background: white; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.contact-channel:hover { border-color: var(--channel); background: var(--ice); }
.contact-channel .icon { width: 22px; height: 22px; }
.contact-channel--phone { --channel: #b63345; }
.contact-channel--telegram { --channel: #087eaf; }
.contact-channel--whatsapp { --channel: #087a4b; }
.contact-channel--max { --channel: #6332d4; }
.quick-contacts--section { flex-wrap: wrap; }
.quick-contacts--section .contact-channel { padding-inline: 9px; }
.quick-contacts--section .contact-channel span { color: var(--ink); font-size: .81rem; font-weight: 640; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 12px 20px; border: 1px solid var(--blue); background: var(--blue); color: #fff; text-decoration: none; font-size: .95rem; font-weight: 720; line-height: 1.3; transition: background .2s ease, border-color .2s ease; }
.button:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.button .icon, .text-action .icon { width: 18px; height: 18px; }
.header .button { min-height: 45px; font-size: .85rem; padding-inline: 16px; }
.button-outline { color: var(--blue); background: transparent; }
.button-outline:hover { color: white; }
.text-action { display: inline-flex; align-items: center; gap: 12px; width: fit-content; min-height: 44px; color: var(--blue); font-size: .95rem; font-weight: 670; text-decoration-thickness: 1px; }
.text-action:hover { text-decoration-thickness: 2px; }

.hero { background: var(--ice); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.05fr); align-items: center; gap: clamp(22px, 3.75vw, 64px); }
.hero-copy { min-width: 0; }
.home-hero { padding-block: clamp(53px, 5vw, 78px) clamp(58px, 5.05vw, 82px); }
.home-hero h1 { font-size: clamp(38px, 4.95vw, 77px); line-height: .98; }
.home-hero h1 span { display: block; }
.hero-intro { max-width: 49ch; margin-top: 23px; color: var(--muted); font-size: clamp(17px, 1.46vw, 21px); line-height: 1.47; }
.home-hero .hero-intro { color: var(--ink); font-weight: 530; max-width: 56ch; }
.hero-note { margin-top: 9px; font: italic clamp(16px, 1.63vw, 24px)/1.4 var(--serif); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 26px; margin-top: 27px; }
.hero-actions .button { padding-inline: 20px; }
.home-hero .hero-actions .button { padding-inline: 22px; }
.home-map { position: relative; min-width: 0; margin: 0 -8px; }
.map-lines { display: block; width: 100%; height: auto; overflow: visible; }
.map-dotted, .map-dashed, .map-axis, .map-hub, .map-leaders { stroke: var(--blue); }
.map-dotted { stroke-width: 2; stroke-dasharray: 1 7; }
.map-dashed { stroke-width: 1; stroke-dasharray: 3 4; opacity: .82; }
.map-axis, .map-hub, .map-leaders { stroke-width: 1.2; }
.arc-fine { stroke: #4c70ee; stroke-width: 1.02; }
.arc-bold { stroke: var(--blue); stroke-width: 7.5; }
.map-center { fill: var(--blue); }
.map-leaders circle { fill: var(--ice); stroke-width: 2.4; }
.map-labels { position: absolute; inset: 0; padding: 0; margin: 0; list-style: none; pointer-events: none; }
.map-node { position: absolute; display: flex; align-items: baseline; gap: 6px; max-width: 29%; color: var(--ink); font-size: clamp(.65rem, 1.31vw, 1.2rem); line-height: 1.08; letter-spacing: -.04em; }
.map-node::before { content: ""; width: .54em; height: .54em; flex: none; background: var(--blue); transform: translateY(-.04em); }
.map-node.revenue { left: 3.3%; top: 8.8%; }
.map-node.margin { right: 3.3%; top: 8.8%; }
.map-node.output { left: 3.3%; top: 89.5%; max-width: 44%; }
.map-node.capital { right: 3.3%; top: 89.5%; max-width: 23%; }

.economics { color: white; background: var(--navy); padding-block: clamp(45px, 4.05vw, 68px); }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .6fr); gap: 25px 55px; align-items: end; }
.split-heading > p { max-width: 33ch; color: var(--muted); padding-bottom: 4px; }
.economics .split-heading > p { color: #d2def4; }
.lever-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid #a8b6cf; }
.lever-grid article { min-width: 0; padding: 16px clamp(14px, 2.25vw, 35px) 5px; }
.lever-grid article + article { border-left: 1px solid var(--dark-line); }
.lever-grid article:first-child { padding-left: 0; }
.lever-grid h3 { font-size: clamp(19px, 1.8vw, 26px); }
.lever-grid p { margin-top: 8px; color: #d2def4; }

.services-layout, .symptoms-layout { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.3fr); gap: 35px clamp(35px, 6vw, 100px); }
.service-list, .check-list { border-top: 1px solid var(--line); }
.service-link { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) 23px; align-items: center; gap: 14px; min-height: 82px; border-bottom: 1px solid var(--line); padding: 13px 7px 13px 0; text-decoration: none; transition: color .18s ease, background .18s ease; }
.service-link:hover { color: var(--blue); background: var(--ice); }
.service-link strong { font-size: clamp(19px, 1.75vw, 26px); font-weight: 740; line-height: 1.12; letter-spacing: -.035em; }
.service-link > span { color: var(--muted); font-size: .93rem; }
.service-link .service-arrow { justify-self: end; width: 20px; height: 20px; color: var(--blue); }

.scope, .emphasis { color: white; background: var(--blue-hover); }
.scope-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); gap: 34px clamp(38px, 6vw, 100px); align-items: center; }
.scope .label, .emphasis .label, .contact .label { color: #d0ddff; }
.scope p:not(.label), .emphasis p:not(.label) { max-width: 49ch; margin-top: 14px; color: #e7efff; }
.scope-figure { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(12px, 2.5vw, 32px); align-items: center; }
.scope-figure svg { width: 100%; max-height: 185px; }
.scope-lines { list-style: decimal-leading-zero; margin: 0; padding-inline-start: 35px; }
.scope-lines li { padding: 11px 0 12px 5px; font-weight: 680; line-height: 1.2; }
.scope-lines li + li { border-top: 1px solid #a8beff; }
.scope-lines li::marker { color: #c5d5ff; font-size: .76rem; font-weight: 650; }

.cases { background: var(--ice); }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(275px, 100%), 1fr)); margin-top: 37px; border-top: 1px solid var(--line); }
.case { display: grid; align-content: start; min-width: 0; padding: 21px clamp(14px, 2.5vw, 33px) 5px; }
.case + .case { border-left: 1px solid var(--line); }
.case:first-child { padding-left: 0; }
.case:only-child { max-width: 740px; }
.case h3 { margin-top: 13px; max-width: 19ch; }
.case p { margin-block: 12px 10px; font-size: 1rem; color: var(--muted); }
.case .text-action { font-size: .86rem; }
.steps h2 { max-width: 19ch; }
.step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 23px; list-style: none; padding: 0; margin: 43px 0 0; }
.step-grid li { padding-top: 13px; border-top: 1px solid var(--line); }
.step-index { display: block; margin-bottom: 16px; color: var(--blue); font-size: .77rem; font-weight: 730; font-variant-numeric: tabular-nums; }
.step-grid p, .related p { margin-top: 9px; color: var(--muted); font-size: .94rem; }
.people { border-top: 1px solid var(--line); background: var(--ice); }
.people-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin-top: 36px; }
.people-grid article { min-width: 0; }
.people-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e2e8f0; filter: saturate(.32); }
.people-grid h3 { margin-top: 12px; font-size: clamp(18px, 1.75vw, 25px); }
.people-grid p { margin-top: 6px; color: var(--muted); font-size: .86rem; }
.contact { background: var(--navy); color: white; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 24px 55px; align-items: center; }
.contact p:not(.label) { margin-top: 14px; color: #d9e3f5; }
.contact-actions { display: grid; justify-items: start; gap: 13px; }
.contact .button { color: var(--blue-hover); background: #fff; border-color: #fff; }
.contact .button:hover { background: #dce6ff; border-color: #dce6ff; }
.email { overflow-wrap: anywhere; }

.breadcrumbs { margin-bottom: 32px; color: var(--muted); font-size: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 9px; color: #60718b; }
.service-hero { padding-block: 24px clamp(68px, 7.1vw, 110px); border-bottom: 1px solid var(--line); }
.service-hero h1 { font-size: clamp(43px, 4.75vw, 73px); max-width: 15ch; }
.hero-process h1, .hero-turnaround h1 { font-size: clamp(41px, 4.38vw, 69px); max-width: 18ch; }
.hero-process .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
.hero-accounting { background: #f7f9fd; }
.hero-accounting .hero-grid { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
.hero-accounting h1 { max-width: 13ch; }
.hero-ai, .hero-turnaround { color: #fff; border-color: #42526b; }
.hero-ai { background: #0d1b34; }
.hero-turnaround { background: #242c3a; }
.hero-ai .label, .hero-ai .text-action, .hero-turnaround .label, .hero-turnaround .text-action { color: #cad7ff; }
.hero-ai .hero-intro, .hero-ai .breadcrumbs, .hero-turnaround .hero-intro, .hero-turnaround .breadcrumbs { color: #e0e7f6; }
.hero-ai .breadcrumbs li + li::before, .hero-turnaround .breadcrumbs li + li::before { color: #a4b1c7; }
.hero-ai .button, .hero-turnaround .button { color: var(--navy); border-color: white; background: white; }
.hero-ai .button:hover, .hero-turnaround .button:hover { background: #dce6ff; }

.diagram { --diagram-ink: var(--blue); min-width: 0; max-width: 680px; width: 100%; margin-inline: auto; }
.diagram-title { padding-block: 10px; border-top: 1px solid var(--line); font-size: .75rem; font-weight: 730; letter-spacing: .07em; text-transform: uppercase; color: var(--diagram-ink); }
.diagram-content { min-width: 0; padding-block: clamp(20px, 3vw, 43px); }
.diagram-foot { border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: .83rem; color: var(--muted); }
.decision-track, .process-nodes, .report-streams, .recovery-track, .ai-systems { list-style: none; padding: 0; margin: 0; }
.decision-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.decision-track li { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 1.5px solid var(--blue); border-radius: 50%; font-size: clamp(.66rem, 1.26vw, 1.08rem); font-weight: 740; line-height: 1.1; letter-spacing: -.035em; }
.decision-track li:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: 100%; width: 11px; border-top: 1.5px solid var(--blue); }
.decision-track li:not(:last-child)::before { content: ""; position: absolute; z-index: 1; left: calc(100% + 4px); top: 50%; width: 5px; height: 5px; border: solid var(--blue); border-width: 1.5px 1.5px 0 0; transform: translateY(-38%) rotate(45deg); }
.decision-track li:last-child { background: var(--blue); color: white; }
.feedback { width: 69%; margin: -2px 12% 0 auto; color: var(--blue); text-align: center; font-size: .95rem; }
.feedback svg { display: block; width: 100%; height: clamp(37px, 5.6vw, 76px); stroke: currentColor; stroke-width: 2; fill: none; }
.process-compare { display: grid; gap: 21px; }
.process-compare > div > strong { font-size: 1.01rem; }
.process-compare > div > strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--blue); }
.process-nodes { display: flex; justify-content: space-between; gap: 4px; margin-top: 16px; }
.process-nodes li { position: relative; flex: 1; display: grid; gap: 9px; justify-items: center; min-width: 0; text-align: center; color: var(--muted); font-size: clamp(.64rem, 1vw, .88rem); }
.process-nodes li::before { content: ""; position: relative; z-index: 1; display: block; width: 24px; height: 24px; border: 1.5px solid var(--blue); border-radius: 50%; background: var(--ice); }
.process-nodes li:not(:last-child)::after { content: ""; position: absolute; inset: 12px auto auto 50%; width: calc(100% + 4px); border-top: 1.5px solid var(--blue); }
.process-compare > div:first-child li:nth-child(3)::before { background: var(--blue); box-shadow: 0 0 0 4px #d8e1ff, 0 0 0 5px #7795f3; }
.process-compare > div:first-child li:nth-child(3) { color: var(--blue); font-weight: 730; }
.report-streams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.report-streams li { display: grid; justify-items: center; gap: 5px; }
.report-streams .icon { width: clamp(37px, 5.2vw, 68px); height: auto; color: var(--blue); }
.report-lines { display: block; width: 65.5%; height: 37px; margin: 6px auto; stroke: var(--blue); stroke-width: 1.5; fill: none; }
.report-plan, .report-total { padding: 7px; border: 1px solid var(--blue); text-align: center; font-weight: 700; font-size: clamp(.75rem, 1.15vw, 1rem); }
.report-total { margin-top: 7px; background: var(--blue); color: white; }
.view-ai, .view-turnaround { --diagram-ink: #b5caff; --line: #647692; --muted: #dfe7f7; }
.ai-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .72fr); align-items: center; gap: 21px; }
.ai-source, .ai-core { position: relative; display: grid; justify-items: center; gap: 7px; padding: 13px 3px; border: 1px solid #a8bbf0; text-align: center; font-size: clamp(.69rem, 1.25vw, 1rem); background: #0d1b34; }
.ai-core { border-color: #dbe6ff; background: #1a3772; }
.ai-source::after, .ai-core::after { content: ""; position: absolute; left: 100%; top: 50%; width: 22px; border-top: 1px solid #a8bbf0; }
.ai-flow .icon { width: clamp(25px, 3vw, 47px); height: auto; color: #c3d4ff; }
.ai-systems { display: grid; gap: 5px; }
.ai-systems li { border: 1px solid #a8bbf0; padding: 5px; text-align: center; font-size: .88rem; font-weight: 700; }
.ai-return { height: 34px; width: 77%; margin: 0 auto; border: solid #a8bbf0; border-width: 0 1px 1px; display: grid; justify-items: center; }
.ai-return span { align-self: end; padding-inline: 7px; transform: translateY(50%); background: #0d1b34; color: #e1e9ff; font-size: .9rem; font-weight: 660; }
.view-ai .diagram-content { padding-bottom: 28px; }
.recovery-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; text-align: center; }
.recovery-track li { position: relative; display: grid; justify-items: center; gap: 13px; align-content: start; color: #f5f7ff; font-size: clamp(.68rem, 1.3vw, 1.1rem); line-height: 1.19; }
.recovery-ring { position: relative; display: grid; place-items: center; width: 91%; max-width: 140px; aspect-ratio: 1; border: 1px solid #a4bafa; border-radius: 50%; }
.recovery-ring::before, .recovery-ring::after { content: ""; position: absolute; inset: 9%; border: solid #a4bafa; border-width: 2px 0 0 1px; border-radius: 50%; transform: rotate(28deg); }
.recovery-ring::after { inset: 17%; border: 1px solid #eff3ff; }
.recovery-ring .icon { width: 34%; height: auto; }
.recovery-arrow { position: absolute; top: min(3.8vw, 58px); right: -19px; width: 25px; height: 25px; color: #d5dfff; }
.recovery-track li:not(:last-child) .recovery-ring::before { border-top-color: #6a91ff; }

.symptoms { background: white; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: 8px 1fr; align-items: baseline; gap: 11px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.check-list li::before { content: ""; width: 6px; height: 6px; transform: translateY(-2px); background: var(--blue); }
.work { background: var(--ice); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin-top: 34px; }
.work-grid article { padding: 19px 0 26px; border-top: 1px solid var(--line); min-width: 0; }
.work-grid p { margin-top: 7px; color: var(--muted); }
.work-ai { background: #eef3ff; }
.work-ai .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
.work-accounting .work-grid { grid-template-columns: 1fr; }
.work-accounting .work-grid article { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: baseline; gap: 10px 30px; max-width: 1000px; padding-block: 15px; }
.work-accounting .work-grid p { margin-top: 0; }
.section-tail { margin-top: 14px; color: var(--muted); }
.related { padding-block: clamp(42px, 5.5vw, 80px); border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(29px, 3.5vw, 46px); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 23px; }
.related-grid article { border-top: 1px solid var(--line); padding-top: 8px; }
.related .text-action { font-size: clamp(20px, 1.85vw, 28px); }

.footer { padding-top: 43px; background: var(--paper); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); gap: 20px; }
.footer h2 { margin-bottom: 8px; font: 730 .82rem/1.3 var(--sans); letter-spacing: 0; }
.footer p { margin-top: 13px; color: var(--muted); font-size: .86rem; }
.footer nav a { display: block; width: fit-content; min-height: 31px; font-size: .86rem; text-decoration: none; }
.footer a:hover, .footer [aria-current] { text-decoration: underline; }
.footer-contact > a { font-size: .93rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 7px 21px; align-items: center; margin-top: 26px; padding-block: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 38px; }
.legal { max-width: 840px; padding-block: 36px var(--space); }
.legal h1 { font-size: clamp(35px, 5.1vw, 64px); overflow-wrap: anywhere; }
.legal section { margin-top: 26px; }
.legal h2 { font-size: clamp(24px, 3vw, 36px); }
.legal p { margin-top: 8px; color: var(--muted); }
.legal > .email { display: inline-block; margin-top: 25px; }

dialog { max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 0; color: var(--ink); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 65px #07172851; }
dialog::backdrop { background: #0d1b37a8; }
body:has(dialog[open]) { overflow: hidden; }
.lead-dialog { width: 580px; }
.analytics-dialog { width: 500px; }
.dialog-content { position: relative; padding: clamp(18px, 4vw, 35px); }
.dialog-content h2 { padding-right: 36px; font-size: clamp(27px, 4vw, 39px); }
.dialog-close { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; color: var(--blue); background: transparent; }
.dialog-close:hover { background: var(--ice); }
#lead-form { display: grid; gap: 10px; margin-top: 17px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: .87rem; font-weight: 670; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 7px 10px; color: var(--ink); border: 1px solid #8295b0; border-radius: 0; background: var(--paper); }
.field textarea { resize: vertical; }
.contact-fields { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; }
.consent-form { display: flex; align-items: start; gap: 8px; font-size: .84rem; }
.consent-form input { flex: none; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--blue); }
.consent-form label { cursor: pointer; }
.form-legal { display: flex; gap: 4px 13px; flex-wrap: wrap; color: var(--blue); font-size: .8rem; }
.form-legal a { min-height: 24px; display: inline-flex; align-items: center; }
.submit { justify-self: start; min-height: 47px; }
.submit:disabled { cursor: wait; opacity: .68; }
.form-status:not(:empty) { margin-top: 10px; font-size: .92rem; }
.form-status[data-error] { color: #992f2b; }
.form-fallback { display: inline-block; margin-top: 5px; color: var(--blue); }
.analytics-dialog p { margin-block: 10px; color: var(--muted); }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.analytics-banner { position: fixed; z-index: 8; inset: auto 20px 20px auto; width: min(365px, calc(100% - 40px)); padding: 15px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 10px 35px #102b4020; }
.analytics-banner p { margin-bottom: 9px; font-size: .9rem; }
.analytics-banner .button { min-height: 44px; }

@media (max-width: 1240px) {
  .header-inner { gap: 14px; }
  .main-nav { gap: 15px; }
  .main-nav > a, .directions summary { font-size: .83rem; }
  .header .button { padding-inline: 10px; gap: 8px; }
  .header-actions, .quick-contacts--header { gap: 5px; }
}

@media (min-width: 961px) {
  .home-hero .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(26px, 2.4vw, 37px); }
  .home-hero .hero-intro span { display: block; }
  .home-hero .hero-actions .button { padding-inline: 24px; font-size: 1rem; }
}

@media (max-width: 1120px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; min-height: 65px; padding-block: 8px; }
  .header-actions { grid-column: 1 / -1; padding-block: 2px 3px; border-top: 1px solid #dae1ee; }
  .header .button { display: none; }
  .main-nav { grid-column: 1 / -1; width: 100%; flex-wrap: wrap; padding-bottom: 6px; }
  .main-nav > a, .directions summary { font-size: .91rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 4px 9px; border: 0; color: var(--ink); background: transparent; font-size: .96rem; font-weight: 710; }
  .menu-lines { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines { transform: translateY(2px) rotate(225deg); }
  .menu-toggle[aria-expanded="false"] + .main-nav { display: none; }
  .menu-toggle[aria-expanded="true"] + .main-nav { display: flex; }
}

@media (max-width: 960px) {
  .hero-grid, .hero-process .hero-grid, .hero-accounting .hero-grid { gap: 20px; }
  .hero .hero-actions { gap: 4px 15px; }
  .scope-figure { grid-template-columns: 1fr; }
  .scope-figure svg { display: none; }
  .work-ai .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lever-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lever-grid article:nth-child(3) { padding-left: 0; border-left: 0; }
  .lever-grid article:nth-child(n+3) { border-top: 1px solid var(--dark-line); }
  .lever-grid h3 { font-size: clamp(20px, 2.6vw, 25px); }
  .lever-grid p { font-size: .89rem; }
}

@media (max-width: 710px) {
  .header-inner { column-gap: 12px; }
  .main-nav { display: grid; gap: 0; }
  .menu-toggle[aria-expanded="true"] + .main-nav { display: grid; }
  .directions { width: 100%; }
  .directions summary { justify-content: space-between; }
  .directions ul { width: 100%; min-width: 0; position: static; padding: 0 9px; box-shadow: none; }
  .main-nav > a { border-top: 1px solid var(--line); }
  .home-hero { padding-block: 35px 39px; }
  .service-hero { padding-block: 16px 42px; }
  .breadcrumbs { margin-bottom: 24px; }
  .hero-grid, .hero-process .hero-grid, .hero-accounting .hero-grid, .split-heading, .services-layout, .symptoms-layout, .scope-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-grid, .hero-process .hero-grid, .hero-accounting .hero-grid { gap: 33px; }
  .hero h1 { font-size: clamp(39px, 10.8vw, 63px); }
  .home-hero h1 { font-size: clamp(38px, 10.35vw, 63px); }
  .hero-intro { margin-top: 15px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .button { min-height: 48px; padding-inline: 11px; font-size: .91rem; gap: 9px; }
  .hero-actions .text-action { font-size: .86rem; gap: 5px; }
  .home-hero .hero-actions { gap: 4px 10px; }
  .home-hero .hero-actions .button { padding-inline: 10px; font-size: .83rem; gap: 7px; }
  .home-hero .hero-actions .text-action { font-size: .82rem; }
  .home-hero .hero-actions .icon { width: 16px; height: 16px; }
  .home-map { margin: 0 -7px; padding-block: 9px 16px; overflow: clip; }
  .map-lines { transform: scale(1.08); }
  .map-node { font-size: clamp(.71rem, 3vw, .95rem); }
  .map-node.capital { max-width: 28%; }
  .split-heading { gap: 12px; }
  .lever-grid { margin-top: 25px; }
  .lever-grid article { padding: 12px 13px 17px; }
  .lever-grid h3 { font-size: clamp(16px, 4.6vw, 24px); }
  .services-layout, .symptoms-layout { gap: 23px; }
  .service-link { grid-template-columns: minmax(0, 1fr) 22px; gap: 5px 12px; min-height: 76px; }
  .service-link > span { grid-column: 1; }
  .service-link .service-arrow { grid-column: 2; grid-row: 1 / 3; }
  .scope-figure { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .scope-figure svg { display: block; }
  .case-grid, .people-grid, .step-grid, .work-grid { margin-top: 24px; }
  .case-grid { grid-template-columns: 1fr; }
  .case, .case + .case { border-left: 0; padding: 18px 0 14px; }
  .case + .case { border-top: 1px solid var(--line); }
  .case h3 { margin-top: 7px; }
  .case p { margin-block: 8px 3px; }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 15px; }
  .step-index { margin-bottom: 9px; }
  .step-grid h3, .work-grid h3 { font-size: clamp(19px, 5.1vw, 27px); overflow-wrap: anywhere; }
  .step-grid p, .work-grid p { font-size: .91rem; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .people-grid h3 { font-size: 21px; }
  .diagram-content { padding-block: 19px; }
  .decision-track { gap: 7px; }
  .decision-track li:not(:last-child)::after { width: 9px; }
  .decision-track li:not(:last-child)::before { left: calc(100% + 3px); width: 4px; height: 4px; }
  .ai-flow { gap: 12px; }
  .ai-source::after, .ai-core::after { width: 13px; }
  .recovery-arrow { top: clamp(32px, 10.5vw, 60px); right: -16px; width: 17px; height: 17px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer nav a { min-height: 42px; }
  .footer-bottom { gap: 0 17px; }
}

@media (max-width: 410px) {
  .work-accounting .work-grid article { grid-template-columns: 1fr; gap: 6px; }
  .hero-ai h1, .hero-turnaround h1, .hero-process h1 { font-size: clamp(37px, 10.3vw, 43px); }
}

@media (max-width: 520px) {
  .lever-grid { grid-template-columns: 1fr; }
  .lever-grid article, .lever-grid article:nth-child(even) { padding: 14px 0; }
  .lever-grid article + article { border-left: 0; border-top: 1px solid var(--dark-line); }
  .lever-grid h3 { font-size: 23px; }
}

@media (max-width: 380px) {
  .contact-fields { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
