@font-face{font-family:Inter;src:url(assets/inter-cyrillic.woff2) format("woff2");font-weight:400 800;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;src:url(assets/inter-latin.woff2) format("woff2");font-weight:400 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  color-scheme:dark;
  --bg:#111315; --panel:#191C1F; --raised:#22262B;
  --ink:#F7F8FA; --muted:#ABB3BD; --line:#373D45;
  --brand:#D4070E; --brand-hover:#B7060C; --amber:#FFD18A; --green:#83DDB0;
  --radius:20px; --motion:cubic-bezier(.2,.75,.25,1);
  font-family:Inter,system-ui,sans-serif;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--ink); min-height:100dvh; }
button,input,textarea,select { font:inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color:transparent; }
a { color:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.52; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.upload:focus-within {
  outline:2px solid #FFB3B3; outline-offset:4px;
}
h1,h2,p { margin:0; }
h1:focus,h2:focus { outline:none; }
.top { border-bottom:1px solid #2A2E33; }
.top-inner,.wrap { width:min(1120px,calc(100% - 64px)); margin:auto; }
.top-inner { height:78px; display:flex; align-items:center; gap:22px; }
.logo { display:flex; align-items:center; min-height:48px; }
.logo img { width:124px; height:auto; display:block; }
.product { padding-left:22px; border-left:1px solid var(--line); font-size:14px; font-weight:600; color:var(--muted); }
.mode { margin-left:auto; display:flex; gap:8px; align-items:center; color:var(--muted); font-size:13px; white-space:nowrap; }
.mode i,.result-label > span:first-child { width:7px; height:7px; border-radius:50%; background:var(--amber); }
.wrap { padding:36px 0 54px; }
.hero { position:relative; min-height:536px; display:flex; align-items:center; overflow:hidden; isolation:isolate; border:1px solid var(--line); border-radius:28px; background:#171A1E; }
.hero-copy { position:relative; z-index:2; width:58%; padding:64px 0 64px 56px; }
.hero h1 { font-size:clamp(48px,6.45vw,88px); font-weight:770; line-height:.98; letter-spacing:-.077em; }
.hero p { margin:24px 0 28px; max-width:350px; color:#BCC4CE; font-size:17px; line-height:1.55; }
.hero-visual { position:absolute; z-index:1; inset:0 0 0 47%; display:grid; place-items:center; overflow:hidden; background:radial-gradient(ellipse at 61% 45%,#3B272D 0%,#24282E 40%,#171A1E 72%); }
.hero-visual img { position:relative; width:auto; height:91%; min-height:0; max-height:485px; object-fit:contain; transform:rotate(-13deg) translateX(7%); filter:drop-shadow(18px 26px 25px #090709b0); animation:hero-enter 530ms var(--motion) both; }
.halo { position:absolute; width:82%; aspect-ratio:1; background:radial-gradient(circle,transparent 62%,#E34B5139 62.3%,transparent 63%,transparent 67%,#E34B5127 67.3%,transparent 68%); }
.reticle { position:absolute; width:79%; aspect-ratio:1.07; opacity:.72; background:
  linear-gradient(#F07476,#F07476) left top/22px 1px no-repeat,linear-gradient(#F07476,#F07476) left top/1px 22px no-repeat,
  linear-gradient(#F07476,#F07476) right bottom/22px 1px no-repeat,linear-gradient(#F07476,#F07476) right bottom/1px 22px no-repeat; }
.actions,.photo-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.primary,.secondary,.quiet { min-height:48px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; gap:12px; padding:0 16px; color:var(--ink); font-weight:650; font-size:14px; transition:background 140ms var(--motion),transform 140ms var(--motion); }
.primary { background:var(--brand); border:1px solid transparent; }
.primary:hover:not(:disabled) { background:var(--brand-hover); }
.secondary { background:#25292F; border:1px solid #424850; }
.secondary:hover,.quiet:hover { background:#333943; }
.quiet { background:transparent; border:1px solid transparent; color:var(--muted); }
.primary:active:not(:disabled),.secondary:active,.quiet:active { transform:scale(.98); }
.actions span,.full span,.resume > span:last-child { font-size:17px; }
.full { width:100%; justify-content:space-between; }
.resume { width:min(430px,100%); margin-top:16px; display:flex; align-items:center; justify-content:space-between; text-align:left; background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:16px; padding:16px; }
.resume small,.fact small { display:block; color:var(--muted); margin-top:5px; }
.case-heading { margin-bottom:24px; }
.back { min-height:48px; display:inline-flex; align-items:center; gap:9px; text-decoration:none; color:var(--muted); font-size:14px; }
.back:hover { color:var(--ink); }
.case-heading h1 { font-size:clamp(33px,5vw,55px); letter-spacing:-.055em; line-height:1.1; }
.case-heading p { color:var(--muted); margin-top:9px; line-height:1.5; }
.case-grid { display:grid; grid-template-columns:1.25fr 1fr; gap:16px; align-items:start; }
.surface { background:var(--panel); padding:22px; border:1px solid var(--line); border-radius:var(--radius); min-width:0; }
.surface-title { display:flex; gap:8px; justify-content:space-between; align-items:center; margin-bottom:16px; }
.surface-title h2 { font-size:18px; letter-spacing:-.02em; }
.surface-title > span { color:var(--muted); font-size:13px; white-space:nowrap; }
.photo-stage { display:grid; place-items:center; position:relative; width:100%; min-height:215px; aspect-ratio:1.43; background:#121416; border:1px solid #343A43; border-radius:15px; overflow:hidden; }
.photo-stage.sample { background:radial-gradient(ellipse at 60% 51%,#39404A,#191C21 76%); }
.photo-stage > img { position:absolute; width:100%; height:100%; object-fit:contain; }
.photo-stage.sample > img { width:68%; height:90%; filter:drop-shadow(9px 14px 18px #090A0D); }
.empty-photo { display:grid; justify-items:center; gap:10px; text-align:center; padding:16px; }
.empty-photo span:last-child { color:var(--muted); font-size:14px; }
.camera-icon { position:relative; width:40px; height:30px; border:2px solid var(--muted); border-radius:8px; margin-bottom:4px; }
.camera-icon::before { content:""; position:absolute; width:12px; height:12px; border:2px solid var(--muted); border-radius:50%; inset:0; margin:auto; }
.camera-icon::after { content:""; position:absolute; width:12px; height:5px; border-radius:3px 3px 0 0; top:-6px; left:7px; background:var(--muted); }
.photo-caption { position:absolute; bottom:12px; left:12px; background:#111315e8; color:var(--ink); border-radius:8px; font-size:12px; padding:7px 9px; }
.marker { position:absolute; top:48%; left:61%; width:48px; height:48px; border:2px solid var(--amber); border-radius:50%; background:#2B2119ed; color:var(--amber); font-weight:800; box-shadow:0 0 0 8px #FFD18A21; animation:mark 380ms var(--motion) both; }
.sweep { position:absolute; top:0; left:0; width:100%; height:3px; background:#FF777B; box-shadow:0 0 20px 3px #D4070E94; animation:sweep 900ms var(--motion) 2; }
.photo-strip { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.photo-strip:empty { margin:0 0 12px; }
.thumb { display:grid; place-items:center; position:relative; width:58px; height:58px; overflow:hidden; background:#282F36; padding:2px; border:1px solid var(--line); border-radius:10px; }
.thumb[aria-pressed=true] { border-color:var(--amber); }
.thumb img { width:100%; height:100%; min-height:0; object-fit:cover; border-radius:7px; }
.thumb span { position:absolute; bottom:2px; right:4px; background:#111315; color:var(--ink); font-size:11px; padding:1px 4px; border-radius:3px; }
.upload { position:relative; cursor:pointer; overflow:hidden; }
.upload input { opacity:0; position:absolute; inset:0; width:100%; height:100%; cursor:pointer; }
.inspection form { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.inspection form .surface-title { margin:0 0 2px; }
.inspection label { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; color:var(--muted); font-size:14px; font-weight:620; }
.inspection input,.inspection textarea,.inspection select { width:100%; min-width:0; min-height:48px; border:1px solid var(--line); background:#121416; color:var(--ink); border-radius:10px; padding:12px; font-size:16px; }
.inspection textarea { resize:vertical; }
.caption,.feedback { font-size:13px; line-height:1.5; color:var(--muted); }
.feedback:not(:empty) { margin-top:8px; }
#saved-message { color:var(--green); margin:0; }
.result-label { display:flex; gap:8px; align-items:center; margin-bottom:8px; color:var(--amber); font-size:13px; font-weight:650; }
#report h2 { font-size:clamp(29px,4vw,42px); letter-spacing:-.055em; }
.report-text { margin:8px 0 14px; color:var(--muted); line-height:1.55; font-size:15px; }
.fact { width:100%; min-height:64px; display:flex; gap:11px; align-items:center; color:var(--ink); text-align:left; background:var(--raised); border:1px solid var(--line); border-radius:12px; padding:8px 12px; }
.fact:hover { background:#313740; }
.fact > span:last-child { margin-left:auto; }
.fact-index { width:28px; height:28px; flex:none; display:grid; place-items:center; border:1px solid #715A3B; border-radius:50%; color:var(--amber); font-size:13px; }
.details { display:grid; gap:12px; margin:16px 0; }
.details > div { border-bottom:1px solid var(--line); padding-bottom:11px; }
.details dt { font-weight:680; font-size:14px; }
.details dd { color:var(--muted); font-size:14px; line-height:1.5; margin:4px 0 0; }
.progress-track { height:5px; overflow:hidden; background:var(--line); border-radius:9px; margin:18px 0 12px; }
.progress-track > div { width:35%; height:100%; background:var(--brand); animation:progress 900ms ease-in-out infinite alternate; }
#analyzing p { color:var(--muted); font-size:14px; }
#report:not([hidden]) { animation:reveal 240ms var(--motion) both; }
dialog { width:min(480px,calc(100% - 32px)); background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:var(--radius); padding:16px; }
dialog::backdrop { background:#000B; }
.detail-view { overflow:hidden; display:grid; place-items:center; height:255px; border-radius:12px; background:#282F36; }
.detail-view img { width:auto; height:240px; transform:scale(2); transform-origin:95% 45%; }
dialog > p { color:var(--muted); margin-top:12px; line-height:1.5; }
@keyframes hero-enter { from { opacity:0; transform:rotate(-10deg) translate(12%,9%); } to { opacity:1; transform:rotate(-13deg) translateX(7%); } }
@keyframes reveal { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes sweep { from { top:4%; opacity:.2; } 20%,85% { opacity:.8; } to { top:96%; opacity:0; } }
@keyframes progress { from { transform:translateX(-100%); } to { transform:translateX(275%); } }
@keyframes mark { from { opacity:0; translate:0 6px; scale:.85; } to { opacity:1; translate:0 0; scale:1; } }
@media (max-width:780px) {
  .top-inner,.wrap { width:calc(100% - 32px); }
  .top-inner { height:66px; gap:12px; }
  .logo img { width:106px; }
  .product { padding-left:12px; font-size:13px; }
  .mode { font-size:11px; gap:5px; }
  .wrap { padding-top:18px; }
  .hero { min-height:0; display:flex; flex-direction:column; border-radius:22px; align-items:stretch; }
  .hero-copy { width:100%; padding:24px 20px 20px; }
  .hero h1 { font-size:clamp(41px,9.2vw,65px); letter-spacing:-.06em; }
  .hero p { font-size:15px; margin:15px 0 16px; }
  .actions > button { flex:1 1 100%; justify-content:space-between; }
  .hero-visual { position:relative; inset:auto; height:245px; border-top:1px solid #2F343A; }
  .hero-visual img { height:93%; }
  .halo { width:clamp(200px,62%,310px); }
  .reticle { height:75%; max-width:310px; }
  .case-grid { grid-template-columns:1fr; }
  .surface { padding:16px; }
  .case-heading { margin-bottom:16px; }
}
@media (max-width:360px) { .product { display:none; } }
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; }
  .sweep { visibility:hidden; }
}

/* Claim workflow */
.mode.connected i { background:var(--green); }
.recent { margin:28px 0 0; }
.recent .surface-title { align-items:center; }
.recent .surface-title h2 { font-size:clamp(20px,4.7vw,32px); }
.recent .resume { width:100%; max-width:600px; margin:0; gap:12px; }
.resume > .status-pill { flex:none; font-size:12px; color:var(--amber); background:#3A2F1E; padding:7px 9px; border-radius:8px; }
.photo-slot { display:grid; grid-template-rows:42px minmax(16px,auto); align-items:center; justify-items:center; gap:5px; flex:1 1 78px; max-width:135px; padding:7px 5px; min-width:0; min-height:72px; border:1px dashed var(--line); background:#121416; border-radius:11px; color:var(--muted); font:inherit; font-size:11px; line-height:1.2; }
.photo-slot:hover { background:var(--raised); }
.photo-slot[aria-pressed] { border-style:solid; }
.photo-slot[aria-pressed=true] { border-color:var(--amber); color:var(--ink); }
.photo-slot img { width:100%; height:42px; object-fit:contain; border-radius:6px; }
.slot-plus { align-self:end; font-size:25px; line-height:1; font-weight:400; }
.form-row { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:10px; }
.error { color:#FFB3B3; }
.error:empty { display:none; }
.report-layout { display:block; max-width:710px; }
.report-layout .surface { padding:24px; }
.observations { display:grid; gap:8px; }
.fact > .fact-photo { width:48px; height:48px; object-fit:contain; flex:none; background:#181B1E; border-radius:8px; }
.fact.unlinked { cursor:default; font-size:14px; color:var(--muted); }
.fact.unlinked:hover { background:var(--raised); }
.saved-summary { margin:0 0 14px; padding:11px 12px; border:1px solid #395748; background:#1B2C25; border-radius:10px; font-size:14px; color:var(--green); }

dialog.viewer {
  margin:0; inset:0; width:100%; height:100dvh; max-width:none; max-height:none;
  border:0; border-radius:0; padding:0; background:#0B0D0F;
}
.viewer[open] {
  display:grid; grid-template-rows:auto minmax(0,1fr) auto;
  animation:reveal 200ms var(--motion) both;
}
.viewer-header,.viewer-footer { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:16px max(16px,calc((100% - 1050px)/2)); background:#171A1E; }
.viewer-header h2 { font-size:19px; }
.viewer-header p,.viewer-footer p { color:var(--muted); margin-top:3px; font-size:13px; line-height:1.45; }
.viewer-stage { position:relative; display:grid; place-items:center; overflow:hidden; }
.viewer-stage.sample { background:radial-gradient(ellipse at center,#303741,#101215 65%); }
.viewer-stage > img { max-height:100%; height:100%; width:100%; min-height:0; object-fit:contain; transition:transform 240ms var(--motion); }
.viewer-stage.sample > img { position:absolute; height:85%; width:auto; max-width:90%; }
.viewer-stage.zoomed > img { transform:scale(1.8); }
.viewer-stage.sample.zoomed > img { transform-origin:75% 44%; }
.view-marker { position:absolute; top:48%; left:calc(50% + min(16vh,20vw)); translate:-50% -50%; pointer-events:none; width:36px; height:36px; display:grid; place-items:center; border:2px solid var(--amber); border-radius:50%; background:#2B2119ed; color:var(--amber); }
.zoomed .view-marker { display:none; }
.viewer-actions { display:flex; align-items:center; gap:8px; white-space:nowrap; }
dialog.sheet { margin:auto auto 0; width:min(570px,100%); max-width:100%; max-height:min(90dvh,720px); overflow:auto; border-radius:24px 24px 0 0; padding:12px 22px max(20px,env(safe-area-inset-bottom)); }
.sheet-handle { width:34px; height:4px; background:#505861; border-radius:6px; margin:0 auto 7px; }
.sheet form { display:grid; gap:12px; }
.sheet fieldset { min-inline-size:0; border:0; padding:0; margin:0; display:grid; gap:8px; }
.sheet label { display:grid; gap:6px; color:var(--muted); font-size:14px; }
.sheet label.choice { grid-template-columns:24px minmax(0,1fr); align-items:center; padding:11px; gap:10px; border:1px solid var(--line); background:#121416; border-radius:11px; }
.choice:has(input:checked) { border-color:#D4070E; }
.choice input { width:18px; height:18px; accent-color:var(--brand); }
.choice strong { color:var(--ink); display:block; margin-bottom:4px; }
.choice small { display:block; line-height:1.4; }
.sheet select,.sheet textarea { width:100%; min-width:0; min-height:48px; border:1px solid var(--line); background:#121416; color:var(--ink); border-radius:10px; padding:11px; font-size:16px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:780px) {
  .report-layout .surface { padding:16px; }
  .report-layout .actions > button { flex:1 1 100%; }
  .viewer-header,.viewer-footer { padding:12px 16px; }
  .viewer-footer { align-items:stretch; flex-direction:column; gap:10px; }
  .viewer-actions { justify-content:space-between; }
  .viewer-actions #toggle-zoom { flex:1; }
  .recent .surface-title { flex-wrap:wrap; }
  .recent .surface-title > button { min-height:48px; }
  .recent .resume { flex-wrap:wrap; }
}
/* Branded controls and sheets */
.picker-field { display:grid; gap:7px; color:var(--muted); font-size:14px; font-weight:620; min-width:0; }
.picker-trigger {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  width:100%; min-height:50px; text-align:left; padding:11px 13px;
  border:1px solid var(--line); border-radius:12px; background:#121416; color:var(--ink);
  transition:border-color 140ms var(--motion),background 140ms var(--motion);
}
.picker-trigger:active,.picker-trigger:hover { background:var(--raised); border-color:#555D67; }
.picker-trigger[aria-invalid=true] { border-color:#FF8E90; }
.picker-trigger > span:first-child { min-width:0; overflow-wrap:anywhere; }
.chevron { display:block; flex:none; width:8px; height:8px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); rotate:45deg; margin:0 4px 4px 0; }
.sheet .surface-title { margin-bottom:10px; }
.sheet .surface-title .quiet { padding-inline:10px; margin-right:-10px; }
.sheet-copy { color:var(--muted); font-size:14px; line-height:1.55; margin-bottom:12px; }
.option-list,.sheet-actions { display:grid; gap:8px; }
.option {
  display:flex; align-items:center; gap:12px; min-height:64px; width:100%;
  padding:10px 12px; text-align:left; border:1px solid var(--line);
  border-radius:13px; background:#121416; color:var(--ink);
  transition:background 140ms var(--motion),border-color 140ms var(--motion),transform 140ms var(--motion);
}
.option:hover { background:#24292E; }
.option:active { transform:scale(.985); }
.option[aria-pressed=true] { border-color:#F04C51; background:#2C1C20; }
.option strong,.option small { display:block; overflow-wrap:anywhere; }
.option strong { font-size:14px; line-height:1.3; }
.option small { color:var(--muted); margin-top:4px; font-size:12px; line-height:1.4; }
.option-check,.option-arrow { margin-left:auto; flex:none; color:#FF9497; }
.option-check:not(:empty) { animation:mark 220ms var(--motion) both; }
.option-icon {
  display:grid; place-items:center; width:36px; height:36px; flex:none;
  background:#2C2427; color:#FF9497; border:1px solid #47353A; border-radius:9px; font-size:18px;
}
.sheet-actions { grid-template-columns:1fr 1fr; margin-top:14px; }
.danger { min-height:48px; padding:8px 12px; border-radius:12px; border:1px solid #A94046; background:#422024; color:#FFD8D9; font-weight:670; }
.danger:hover { background:#57252B; }
.sheet .choice input {
  appearance:none; display:grid; place-items:center; margin:0; width:20px; height:20px;
  border:1px solid #727B86; border-radius:50%; background:#191C1F; cursor:pointer;
}
.sheet .choice input:checked { background:var(--brand); border-color:#FF999C; }
.sheet .choice input:checked::after { content:""; width:8px; height:8px; border-radius:50%; background:white; animation:mark 170ms var(--motion) both; }
.toast {
  position:fixed; z-index:4; left:50%; bottom:max(16px,env(safe-area-inset-bottom)); transform:translateX(-50%);
  width:max-content; max-width:calc(100% - 32px); min-height:48px; display:flex; align-items:center; gap:10px;
  border:1px solid #446353; background:#1E3028; border-radius:12px; padding:9px 14px; color:#D8F7E5;
  font-size:14px; font-weight:650; box-shadow:0 10px 30px #0006;
  animation:toast-in 200ms var(--motion) both;
}
.toast-icon { width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:#335944; color:#A4F2C5; }
@keyframes toast-in { from { opacity:0; transform:translate(-50%,8px); } to { opacity:1; transform:translate(-50%,0); } }

dialog.sheet,dialog.viewer {
  opacity:0; transform:translateY(24px);
  transition:opacity 180ms var(--motion),transform 240ms var(--motion),display 240ms allow-discrete,overlay 240ms allow-discrete;
}
dialog.sheet[open],dialog.viewer[open] { opacity:1; transform:translateY(0); animation:none; }
dialog.sheet::backdrop,dialog.viewer::backdrop {
  opacity:0; transition:opacity 200ms var(--motion),display 240ms allow-discrete,overlay 240ms allow-discrete;
}
dialog.sheet[open]::backdrop,dialog.viewer[open]::backdrop { opacity:1; }
@starting-style {
  dialog.sheet[open],dialog.viewer[open] { opacity:0; transform:translateY(24px); }
  dialog.sheet[open]::backdrop,dialog.viewer[open]::backdrop { opacity:0; }
}
@media (prefers-reduced-motion:reduce) {
  dialog.sheet,dialog.viewer,dialog.sheet[open],dialog.viewer[open] { transform:none; }
}