:root {
  color-scheme: light;
  --ink: #3b2b1d;
  --muted: #695747;
  --cream: #fdf4eb;
  --paper: #fffbf6;
  --lime: #d5ff40;
  --orange: #f35703;
  --rust: #a63b08;
  --dark: #231910;
  --line: #dfd2c5;
  --soft: #efe3d6;
  --ease: cubic-bezier(.22,.75,.22,1);
  --font: "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Menlo, "Courier New", monospace;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 89px; }
body { margin: 0; min-width: 280px; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
p { margin: 0; line-height: 1.53; }
h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #aa430d; outline-offset: 4px; }
.hero :focus-visible, .pilot :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }
.wrap { width: min(100% - 112px, 1360px); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 20; padding: 10px 15px; background: var(--lime); transform: translateY(-160%); }
.skip:focus { transform: none; }

.loader { display: none; }
.intro .loader {
  display: grid; align-content: center; justify-items: center; gap: 30px;
  position: fixed; inset: 0; z-index: 15; background: var(--dark);
  pointer-events: none; animation: loader-out .34s .54s var(--ease) both;
}
.loader img { width: min(42vw, 190px); }
.beam { width: min(54vw, 245px); display: grid; grid-template-columns: repeat(6,1fr); gap: 4px; }
.beam i { height: 7px; background: var(--lime); border-radius: 1px; transform-origin: left center; animation: beam-fill .22s var(--ease) both; }
.beam i:nth-child(2) { animation-delay: .055s; }
.beam i:nth-child(3) { animation-delay: .11s; }
.beam i:nth-child(4) { animation-delay: .165s; }
.beam i:nth-child(5) { animation-delay: .22s; }
.beam i:nth-child(6) { animation-delay: .275s; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes beam-fill { from { opacity: .14; transform: scaleX(.24); } to { opacity: 1; transform: scaleX(1); } }
@keyframes arrive { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }

.site-header { position: sticky; top: 0; z-index: 8; background: rgb(253 244 235 / 94%); backdrop-filter: blur(17px); border-bottom: 1px solid rgb(59 43 29 / 14%); }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 146px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px,2.4vw,36px); }
.site-nav > a { position: relative; font-size: .9rem; font-weight: 600; text-decoration: none; padding-block: 7px; }
.site-nav > a::after, .back-link::after { content: ''; position: absolute; inset: auto 0 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .24s var(--ease); }
.site-nav > a:hover::after, .site-nav > a[aria-current]::after, .back-link:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 650; font-size: .94rem; text-decoration: none; text-align: center;
  padding: 0 21px; min-height: 50px; border: 1px solid transparent; border-radius: 6px;
  color: var(--ink); background: var(--soft);
  transition: background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease), transform .24s var(--ease), box-shadow .24s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button-lime { background: var(--lime); color: #271d12; }
.button-lime:hover { background: #e4ff88; box-shadow: 0 7px 25px rgb(213 255 64 / 16%); }
.button-outline { background: transparent; border-color: rgb(59 43 29 / 32%); }
.button-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.login-link { min-height: 38px; padding-inline: 18px; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 600 .79rem/1.35 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.cross { width: 14px; height: 14px; display: inline-block; flex: none; position: relative; color: var(--rust); }
.cross::before, .cross::after { content: ''; position: absolute; background: currentColor; }
.cross::before { width: 12px; height: 1px; top: 6px; left: 1px; }
.cross::after { height: 12px; width: 1px; left: 6px; top: 1px; }

.hero { position: relative; isolation: isolate; overflow: clip; background: #21170f; color: var(--cream); min-height: max(660px, min(770px, 82svh)); display: grid; align-items: stretch; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0 87px, rgb(253 244 235 / 5%) 87px 88px),
              repeating-linear-gradient(0deg, transparent 0 87px, rgb(253 244 235 / 5%) 87px 88px),
              radial-gradient(ellipse at 63% 62%, #50321e, #1d140e 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: .96fr 1fr; align-items: center; min-height: inherit; }
.hero-copy { z-index: 2; position: relative; padding: 60px 0 78px; }
.hero-copy > * { position: relative; }
.intro .hero-copy > *, .intro .hero-overlay { animation: arrive .45s var(--ease) both; }
.intro .hero-copy .eyebrow { animation-delay: .55s; }
.intro .hero-copy h1 { animation-delay: .62s; }
.intro .hero-copy .hero-description { animation-delay: .68s; }
.intro .hero-copy .actions { animation-delay: .74s; }
.intro .hero-overlay { animation-delay: .8s; }
.hero .eyebrow { color: #e5cec0; margin-bottom: 21px; }
.hero .cross { color: var(--lime); }
.hero h1 { font-size: clamp(3rem, 5.15vw, 5.5rem); line-height: .98; letter-spacing: -.052em; font-weight: 550; text-wrap: pretty; }
.hero h1 em { font-style: normal; color: var(--lime); white-space: nowrap; }
.hero-description { margin-top: 26px; max-width: 445px; font-size: clamp(1rem, 1.37vw, 1.2rem); color: #f0dfd0; }
.hero .actions { margin-top: 32px; }
.hero .button-outline { border-color: rgb(253 244 235 / 55%); color: var(--cream); background: rgb(39 26 17 / 29%); backdrop-filter: blur(9px); }
.hero .button-outline:hover { background: var(--cream); color: var(--ink); }
.hero-figure { align-self: stretch; position: static; min-width: 0; }
.hero-image { position: absolute; z-index: -1; inset: 0 calc((min(100vw - 112px, 1360px) - 100vw) / 2) 0 calc((min(100vw - 112px, 1360px) - 100vw) / 2); overflow: hidden; }
.project-photo, .project-photo img { width: 100%; height: 100%; position: absolute; inset: 0; }
.project-photo img { object-fit: cover; object-position: center 49%; transform: translate3d(var(--pan-x, 0),var(--pan-y, 0),0) scale(1.055); transition: transform .36s var(--ease); }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#21170f 0%,rgb(33 23 15 / 91%) 18%,rgb(33 23 15 / 44%) 39%,transparent 61%), linear-gradient(0deg,#21170f 0%,transparent 31%); }
.viewfinder { position: absolute; inset: 8% max(56px, calc((100vw - 1360px) / 2)) 20% 51%; z-index: 1; pointer-events: none; }
.viewfinder i { border: solid rgb(253 244 235 / 41%); position: absolute; width: 16px; height: 16px; }
.viewfinder i:nth-child(1) { border-width: 1px 0 0 1px; left: 0; top: 0; }
.viewfinder i:nth-child(2) { border-width: 1px 1px 0 0; right: 0; top: 0; }
.viewfinder i:nth-child(3) { border-width: 0 0 1px 1px; left: 0; bottom: 0; }
.viewfinder i:nth-child(4) { border-width: 0 1px 1px 0; right: 0; bottom: 0; }
.object-label { z-index: 1; display: flex; align-items: center; gap: 8px; position: absolute; right: max(69px,calc((100vw - 1332px) / 2)); top: calc(8% + 13px); padding: 8px 10px; background: rgb(39 26 17 / 82%); border: 1px solid rgb(253 244 235 / 23%); border-radius: 4px; color: var(--cream); font: .78rem var(--mono); }
.hero-overlay { position: absolute; right: 0; bottom: 7%; width: min(44%, 550px); color: var(--cream); background: rgb(37 25 16 / 85%); border: 1px solid rgb(253 244 235 / 31%); backdrop-filter: blur(16px); border-radius: 9px; padding: 17px 19px; box-shadow: 0 12px 45px rgb(0 0 0 / 19%); }
.overlay-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: .76rem/1.3 var(--mono); color: #f5dfcc; }
.overlay-head span { color: #cfb098; }
.overlay-chain { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 7px; margin-block: 13px 10px; }
.overlay-chain div { display: flex; align-items: center; gap: 6px; font-size: .79rem; white-space: nowrap; position: relative; padding: 8px 6px; border-top: 1px solid rgb(253 244 235 / 25%); }
.overlay-chain i { flex: 0 0 6px; height: 6px; border-radius: 1px; background: var(--lime); }
.overlay-chain div:first-child i { background: var(--orange); transform: rotate(45deg); }
.hero-overlay p { font-size: .83rem; color: #ecd7c5; }
.hero-overlay strong { color: #ffad79; font-weight: 650; }
.hero-overlay a { color: var(--lime); text-underline-offset: .2em; }
.hero-overlay a:hover { color: var(--cream); }

.section { padding-block: clamp(70px, 9.3vw, 140px); }
.section h2 { font-size: clamp(2.5rem,5.25vw,5rem); line-height: .98; font-weight: 550; letter-spacing: -.064em; }
.section .eyebrow { color: var(--muted); margin-bottom: 15px; }
.section-head { display: grid; grid-template-columns: 1fr .65fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.section-head > p { max-width: 385px; justify-self: end; color: var(--muted); font-size: 1.1rem; }
.section-end { margin-top: 28px; }
.comparison { background: var(--cream); border-bottom: 1px solid var(--line); }
.comparison-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.case-card { display: block; text-decoration: none; color: var(--ink); position: relative; min-width: 0; min-height: 253px; border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: var(--paper); overflow: hidden; transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease); }
.case-card:hover, .case-card:focus-visible { transform: translateY(-4px); box-shadow: 0 15px 32px #4e301515; border-color: #9f8b70; }
.case-card[data-case="replacement"] { background: #ecf6c4; border-color: #dbe5b0; }
.case-card[data-case="delay"] { background: #fae5d7; border-color: #eed2c0; }
.case-card h3 { font-weight: 650; font-size: 1rem; margin-bottom: 26px; }
.case-date { font-size: clamp(1.7rem,3.8vw,3.8rem); line-height: .99; letter-spacing: -.06em; font-weight: 550; }
.case-metrics { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 23px; border-top: 1px solid #3b2b1d28; padding-top: 13px; font-size: .91rem; }
.case-metrics strong { margin-top: 3px; display: block; font-size: 1rem; }
.case-line { margin-top: 16px; height: 6px; background: repeating-linear-gradient(90deg,#3b2b1d30 0 1px, transparent 1px 9%); }
.case-line i { display: block; width: var(--case-range); height: 5px; background: #866c52; }
[data-case="delay"] .case-line i { background: var(--orange); }
[data-case="replacement"] .case-line i { background: #55750c; }

.how { background: var(--paper); }
.how-grid { margin-top: 35px; display: grid; grid-template-columns: .84fr 1fr; align-items: start; gap: clamp(20px,7vw,100px); }
.how-step { border-top: 1px solid var(--line); padding-block: 19px; min-height: 150px; opacity: .81; transition: opacity .25s, border-color .25s; }
.how-step:last-child { border-bottom: 1px solid var(--line); }
.how-step.is-current, .how-step:hover { opacity: 1; border-color: #a4917c; }
.how-step button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 0; border: 0; background: none; font-size: clamp(1.08rem,2.1vw,1.55rem); font-weight: 620; letter-spacing: -.035em; }
.step-icon { display: block; flex: none; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 5px; position: relative; transition: background-color .25s, border-color .25s; }
.is-current .step-icon { background: var(--lime); border-color: #b7d63f; }
.step-icon::before, .step-icon::after { content: ''; position: absolute; }
.step-grid::before { inset: 7px; border: 1px solid; background: repeating-linear-gradient(0deg,transparent 0 4px,currentColor 4px 5px); }
.step-nodes::before { width: 5px; height: 5px; top: 9px; left: 7px; background: currentColor; box-shadow: 12px 0, 6px 11px; }
.step-nodes::after { inset: 8px 10px 9px; border: solid; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.step-delay::before { inset: 6px; border: 1px solid; border-radius: 50%; }
.step-delay::after { width: 5px; height: 6px; left: 14px; top: 9px; border: solid; border-width: 0 0 1px 1px; }
.step-report::before { inset: 6px 8px; border: 1px solid; border-radius: 1px; background: repeating-linear-gradient(0deg,transparent 0 5px,currentColor 5px 6px); background-clip: content-box; padding: 3px; }
.how-step p { max-width: 410px; padding: 9px 0 0 42px; color: var(--muted); }
.how-preview { position: sticky; top: 103px; min-height: 356px; overflow: hidden; border-radius: 10px; padding: clamp(18px,3vw,38px); display: grid; align-items: center; background: radial-gradient(ellipse at 100% 10%,#60402a,transparent 80%), repeating-linear-gradient(0deg,transparent 0 24px,#fdf4eb12 24px 25px),repeating-linear-gradient(90deg,transparent 0 24px,#fdf4eb12 24px 25px),#302219; color: var(--cream); }
.preview-card { padding: clamp(13px,2vw,23px); border-radius: 7px; border: 1px solid #fdf4eb48; background: rgb(33 23 15 / 72%); backdrop-filter: blur(10px); animation: arrive .32s var(--ease) both; }
.preview-card h3 { margin-bottom: 22px; font-size: 1.25rem; }
.preview-card .eyebrow { color: #ddc4af; margin-bottom: 9px; font-size: .72rem; }
.preview-card .mini-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid #fdf4eb2b; font-size: .86rem; }
.preview-card .mini-row strong { text-align: right; color: var(--lime); }
.preview-card .mini-row .hot { color: #ffad79; white-space: nowrap; }
.preview-card .paper-lines { display: grid; gap: 8px; margin-block: 16px; }
.paper-lines i { width: var(--line-width, 93%); height: 6px; border-radius: 2px; background: #e2c6af55; }

.pilot { background: var(--dark); color: var(--cream); position: relative; isolation: isolate; overflow: hidden; }
.pilot::before { content: ''; z-index: -1; position: absolute; inset: 0; background: radial-gradient(ellipse at 86% 100%,#7b3718 0%,transparent 58%), repeating-linear-gradient(90deg,transparent 0 61px,#fdf4eb14 61px 62px),repeating-linear-gradient(0deg,transparent 0 61px,#fdf4eb14 61px 62px); }
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; }
.pilot .eyebrow { color: #edd0b9; }
.pilot .cross { color: var(--lime); }
.pilot h2 + p { max-width: 405px; color: #edd0b9; margin: 19px 0 27px; }
.pilot-list { padding: 0; margin: 0; list-style: none; }
.pilot-list li { padding: 17px 0; display: flex; align-items: baseline; gap: 12px; border-top: 1px solid #fdf4eb43; font-size: clamp(1rem,1.65vw,1.32rem); }
.pilot-list li:last-child { border-bottom: 1px solid #fdf4eb43; }
.pilot-list li::before { content: ''; width: 6px; height: 6px; background: var(--lime); transform: rotate(45deg) translateY(-3px); flex: none; }
.site-footer { background: #20170f; color: #f6e5d6; border-top: 1px solid #fdf4eb26; }
.footer-inner { min-height: 108px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: .88rem; }
.footer-inner > a:last-child { text-underline-offset: 4px; }
.js [data-reveal]:not(.shown) { opacity: 0; translate: 0 20px; }
[data-reveal] { transition: opacity .37s var(--ease), translate .37s var(--ease); }

.interior { min-height: 72vh; padding: 36px 0 86px; animation: arrive .31s var(--ease) both; }
.back-link { position: relative; display: inline-block; font-size: .91rem; text-decoration: none; border-bottom: 1px solid #3b2b1d55; padding-bottom: 4px; }
.interior-head { margin: 28px 0 28px; }
.interior-head h1 { max-width: 900px; margin-top: 12px; font-size: clamp(2.4rem,5.4vw,5rem); font-weight: 550; line-height: .98; letter-spacing: -.061em; }
.interior-head > p:not(.eyebrow) { color: var(--muted); max-width: 635px; margin-top: 16px; font-size: 1.08rem; }
.check-grid { display: grid; grid-template-columns: 2.45fr 1fr; gap: 14px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: clamp(16px,2.6vw,32px); min-width: 0; }
.panel h2 { font-weight: 615; font-size: clamp(1.3rem,2.5vw,2.03rem); line-height: 1.13; letter-spacing: -.035em; }
.panel h3 { font-size: 1.13rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.panel + .panel { margin-top: 0; }
.tag { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 4px; font: 600 .76rem/1.35 var(--mono); background: #ecf6c4; border: 1px solid #d5e59a; }
.tag-soft { background: var(--soft); border-color: var(--line); }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 13px; }
.fields .wide { grid-column: 1/-1; }
label { display: grid; align-content: start; gap: 6px; color: var(--ink); font-size: .91rem; font-weight: 600; min-width: 0; }
input, select { width: 100%; min-width: 0; min-height: 43px; padding: 8px 10px; border: 1px solid #cbb9a6; border-radius: 5px; background: #fffdf9; color: var(--ink); font-size: 1rem; }
input::placeholder { color: #786651; opacity: 1; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg,transparent 53%,var(--ink) 53%),linear-gradient(135deg,var(--ink) 53%,transparent 53%); background-position: right 17px center,right 12px center; background-repeat: no-repeat; background-size: 5px 5px; }
input[aria-invalid="true"] { border-color: var(--rust); }
.manual-fact { margin: 20px 0 18px; }
.manual-fact summary { font-size: .94rem; font-weight: 600; cursor: pointer; width: fit-content; }
.manual-fact .fields { margin-top: 12px; }
.assistant-id { background: #ecf6c4; border-color: #d5e59a; }
.assistant-heading { display: flex; align-items: center; gap: 12px; }
.slavik-avatar { display: block; flex: none; width: 52px; height: 52px; object-fit: cover; border-radius: 50%; border: 1px solid #bfcb91; background: #e9f4b9; }
.assistant-id .slavik-avatar { width: 64px; height: 64px; }
.assistant-id p { margin-top: 10px; }
.muted { color: var(--muted); }
.error { color: #9e340d; font-size: .85rem; }
.error:empty { display: none; }
.check-output { margin-top: 18px; }
.check-output .panel + .panel { margin-top: 12px; }
.fact-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-top: 18px; }
.fact-group article { padding: 14px; border: 1px solid var(--line); border-radius: 6px; }
.fact-group p { margin-top: 5px; }
.fact-group h3 { margin-bottom: 9px; }
.registry-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); margin: 10px 0; gap: 5px 8px; font-size: .88rem; }
.registry-fields dd { margin: 0; overflow-wrap: anywhere; }
.fact-group a { text-underline-offset: 3px; }
.assistant-output { background: #f4f3dc; }
.check-output .actions { margin-top: 20px; }
.recommendations { display: grid; gap: 9px; margin-top: 16px; }
.recommendations details { padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.recommendations summary { cursor: pointer; font-weight: 650; }
.recommendations dl { margin-bottom: 0; }
.recommendations dt { font-weight: 650; }
.recommendations dd { margin: 2px 0 9px; }
.skeleton { padding: 25px; border: 1px solid var(--line); border-radius: 8px; }
.skeleton .beam { margin-top: 13px; }
.skeleton .beam i { border: 1px solid #9fac54; border-bottom: 2px solid #727b31; background: repeating-linear-gradient(130deg,#cfde8e 0 5px,#ecf2d3 5px 10px); }

.object-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; padding-bottom: 24px; }
.object-head .interior-head { margin-bottom: 0; }
.tabs { display: flex; align-items: stretch; overflow-x: auto; gap: 3px; border-bottom: 1px solid #bba78f; margin-bottom: 16px; }
.tabs button { flex: none; background: transparent; padding: 12px 17px; font-weight: 600; border: solid transparent; border-width: 0 0 3px; }
.tabs button:hover { background: #f1e4d7; }
.tabs button[aria-selected="true"] { border-color: var(--ink); background: #f1e4d7; }
.tabs button:focus-visible { outline-offset: -4px; }
#object-panel { outline-offset: 4px; }
#object-panel .panel + .panel { margin-top: 12px; }
.space-top { margin-top: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.metric { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: clamp(10px,2vw,18px); }
.metric span { display: block; color: var(--muted); font-size: .83rem; }
.metric strong { display: block; margin-top: 6px; font-weight: 550; font-size: clamp(1.05rem,3vw,2.54rem); letter-spacing: -.045em; }
.metric.warn { background: #fae5d7; border-color: #eed2c0; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .83rem; font-weight: 650; color: var(--muted); }
td { font-size: .91rem; }
.row-link { display: inline; border: 0; background: none; padding: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 630; text-align: left; }
.timeline { width: 25%; min-width: 140px; }
.timeline-track { position: relative; height: 15px; background: repeating-linear-gradient(90deg,#ebe0d2 0 1px,transparent 1px 10%); }
.timeline-track i { position: absolute; left: var(--start); width: var(--width); min-width: 6px; height: 8px; top: 3px; background: #9e876a; border-radius: 2px; }
.timeline-track .critical { background: #597410; }
.timeline-track .point { transform: rotate(45deg); border-radius: 1px; }
.timeline-track .affected { background: var(--orange); }
.object-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.object-filter input { flex: 1; max-width: 320px; }
.object-filter label { display: flex; gap: 7px; align-items: center; }
.object-filter input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--ink); }
.scenario-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.scenario-presets button { font-size: .88rem; min-height: 38px; }
.scenario-presets button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.scenario-form .fields { grid-template-columns: repeat(4,minmax(0,1fr)); }
.scenario-form .actions { margin-top: 15px; }
.scenario-form h3 { margin-block: 17px 9px; }
.mini-section + .mini-section { margin-top: 15px; }
.expense-list { margin: 10px 0 0; }
.expense-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.expense-list dd { margin: 0; text-align: right; }
.result-note { margin-top: 13px; }
.report-box { display: grid; gap: 18px; }
.report-box h3 { margin-bottom: 5px; }
.report-box h2 { font-size: 1.65rem; }
.report-box .tag { width: fit-content; }
.report-print { display: none; }

dialog { border: 1px solid var(--line); color: var(--ink); background: var(--paper); border-radius: 10px; width: min(100% - 26px,550px); max-height: 88svh; padding: clamp(19px,4vw,34px); }
dialog[open] { animation: arrive .27s var(--ease) both; }
dialog::backdrop { background: rgb(33 23 15 / 66%); backdrop-filter: blur(4px); }
dialog h2 { font-size: clamp(1.55rem,4vw,2.15rem); letter-spacing: -.047em; padding-inline-end: 26px; margin-bottom: 10px; }
dialog p { margin-bottom: 17px; }
dialog .fields + p { margin-block: 13px; }
.close { position: absolute; right: 10px; top: 9px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; border: 1px solid transparent; background: transparent; font-size: 1.5rem; }
.close:hover { background: var(--soft); }
.noscript { padding: 15px; background: var(--lime); color: var(--ink); }

@media (min-width: 1450px) { .hero-grid { grid-template-columns: .93fr 1fr; } }
@media (max-width: 1100px) {
  .wrap { width: min(100% - 72px,1360px); }
  .hero-image { inset-inline: -36px; }
  .viewfinder { right: 36px; }
  .object-label { right: 47px; }
  .hero h1 { font-size: clamp(3rem,6.1vw,4.35rem); }
  .site-nav { gap: 16px; }
  .hero-overlay { width: 46%; }
}
@media (max-width: 880px) {
  .wrap { width: min(100% - 44px,1360px); }
  .header-inner { min-height: 63px; }
  .site-nav { gap: 12px; }
  .site-nav > a { font-size: .81rem; }
  .brand img { width: 121px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-image { inset-inline: -22px; }
  .viewfinder { right: 22px; }
  .object-label { right: 32px; }
  .overlay-chain { grid-template-columns: 1.4fr 1fr 1fr; gap: 2px; }
  .overlay-chain div { padding-inline: 2px; gap: 4px; font-size: .73rem; }
  .section-head { grid-template-columns: 1fr .8fr; }
  .check-grid { grid-template-columns: 2fr 1fr; }
  .scenario-form .fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 735px) {
  html { scroll-padding-top: 69px; }
  .site-header { position: sticky; }
  .header-inner { min-height: 60px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: transparent; font-size: .89rem; font-weight: 650; }
  .menu-toggle span { display: block; width: 15px; height: 10px; border: solid; border-width: 1px 0; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; position: absolute; gap: 0; top: 100%; left: 0; right: 0; padding: 8px 22px 14px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px #24180e1e; }
  .site-nav.is-open, html:not(.js) .site-nav { display: flex; }
  .site-nav > a { font-size: .97rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav > a::after { content: none; }
  .site-nav .login-link { align-self: flex-start; margin-top: 10px; }
  .hero { display: block; min-height: auto; }
  .hero-grid { display: block; }
  .hero-copy { padding: 53px 0 0; }
  .hero h1 { max-width: 535px; font-size: clamp(2.7rem,9vw,4.7rem); }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero-description { margin-top: 16px; }
  .hero .actions { margin-top: 21px; }
  .hero-figure { position: relative; margin-inline: -22px; padding: min(52vw,310px) 22px 22px; margin-top: 12px; }
  .hero-image { inset: 0 0 30px; }
  .project-photo img { object-position: 76% 57%; }
  .project-photo { mask-image: linear-gradient(180deg,transparent 0%,black 25% 80%,transparent 100%); }
  .hero-image::after { background: linear-gradient(90deg,#21170f38,transparent 33%); }
  .viewfinder { inset: 8% 22px 21% 22px; }
  .object-label { right: 30px; top: 13%; }
  .hero-overlay { width: 100%; position: relative; bottom: auto; padding: 13px; }
  .overlay-chain { gap: 7px; }
  .overlay-chain div { font-size: .79rem; }
  .section { padding-block: 62px; }
  .section-head { grid-template-columns: 1fr; gap: 11px; margin-bottom: 22px; }
  .section-head > p { justify-self: start; }
  .comparison-grid { gap: 8px; }
  .case-card { min-height: 0; padding: 12px; }
  .case-card h3 { margin-bottom: 16px; }
  .case-date { font-size: clamp(1.45rem,4.55vw,2.85rem); }
  .case-metrics { margin-top: 13px; font-size: .82rem; }
  .case-metrics strong { font-size: .87rem; }
  .how-grid { grid-template-columns: 1fr; gap: 17px; margin-top: 25px; }
  .how-step { min-height: auto; padding-block: 12px; }
  .how-step p { padding-top: 5px; }
  .how-preview { position: static; min-height: 250px; }
  .pilot-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { min-height: auto; padding-block: 22px; }
  .interior { padding-top: 24px; padding-bottom: 55px; }
  .check-grid { grid-template-columns: 1fr; }
  .assistant-id { grid-row: 1; }
  .assistant-id > .muted { display: none; }
  .assistant-id .slavik-avatar { width: 48px; height: 48px; }
  .tabs button { padding: 11px 12px; font-size: .88rem; }
}
@media (max-width: 490px) {
  .wrap { width: calc(100% - 32px); }
  .hero-figure { margin-inline: -16px; padding-inline: 16px; }
  .hero-copy { padding-top: 42px; }
  .hero .actions .button { padding-inline: 12px; font-size: .85rem; }
  .comparison-grid { grid-template-columns: 1fr; }
  .case-card { padding: 15px; }
  .case-card h3 { margin-bottom: 9px; }
  .case-date { font-size: 2.1rem; }
  .case-line { margin-top: 12px; }
  .overlay-chain div { font-size: .74rem; }
  .overlay-head, .overlay-head span { font-size: .69rem; }
  .fields, .fact-group { grid-template-columns: 1fr; gap: 11px; }
  .scenario-form .fields { gap: 11px 8px; }
  .scenario-form .fields:first-child > :first-child { grid-column: 1/-1; }
  .tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tabs button { padding-inline: 4px; font-size: .82rem; }
  .metric-grid { gap: 5px; }
  .metric { padding: 9px 7px; }
  .metric span { font-size: .75rem; }
  .footer-inner > span { flex-basis: 100%; order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .intro .loader { display: none; }
  .js [data-reveal]:not(.shown) { opacity: 1; translate: 0; }
  .project-photo img { transform: none; }
}
@media print {
  body { min-width: auto; background: white; }
  body:has(.report-print) > :not(.report-print) { display: none !important; }
  .report-print { display: block; color: #27221c; padding: 15mm; }
  .report-print h1 { font-size: 28pt; margin-block: 10px; }
  .report-print h2 { font-size: 18pt; }
  .report-print .mini-section { break-inside: avoid; }
  .report-print table { font-size: 10pt; }
}

.source-evidence { list-style: none; padding: 0; margin: 8px 0; }
.source-evidence li { padding: 8px 0; border-top: 1px solid var(--line); }
.source-evidence small { color: var(--muted); display: block; margin-top: 3px; }
.source-evidence p { margin: 4px 0 0; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; }
.evidence-external { margin-top: 15px; }
.evidence-external p { margin: 5px 0; }
