/* Fraunces и Golos Text (SIL Open Font License), латиница, со своего домена: без цепочки через fonts.googleapis.com */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/fraunces-italic-400-500-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/fraunces-normal-400-600-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-normal-400-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-normal-500-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-normal-600-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/golos-text-normal-700-latin.woff2) format('woff2');
  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;
}

/* Gallera Studio product site — sea-chart base with a product accent. Light: paper + ink. Dark: night sea. */
:root {
  --paper: #f4efe4; --paper-2: #ebe4d3; --paper-3: #e1d8c3;
  --ink: #14233b; --ink-2: #2a3a55;
  --muted: rgba(20, 35, 59, .68); --faint: rgba(20, 35, 59, .68);
  --line: rgba(20, 35, 59, .14); --line-2: rgba(20, 35, 59, .28);
  --brass: #b8862e; --brass-deep: #7d5b13;
  --on-accent: #fff; --grain-opacity: .5;
  --max: 1120px; --gutter: 24px; --radius: 18px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Golos Text", -apple-system, system-ui, "Segoe UI", sans-serif;
  /* the product's own screen keeps its dark palette in both themes */
  --d-panel: rgba(20, 25, 35, .6); --d-line: rgba(255, 255, 255, .1); --d-fg: #eef1f6; --d-muted: rgba(238, 241, 246, .62);
  --d-accent: #e2a33c; --d-accent-2: #8be0a4; --d-chrome: #161b26; --d-well: #0f131b;
  color-scheme: light;
  --accent: #9c6111; --accent-deep: #8f5a0f; --accent-soft: rgba(184, 117, 22, .16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1526; --paper-2: #101d33; --paper-3: #162742;
    --ink: #ece5d6; --ink-2: #d9d1bf;
    --muted: rgba(236, 229, 214, .68); --faint: rgba(236, 229, 214, .66);
    --line: rgba(236, 229, 214, .14); --line-2: rgba(236, 229, 214, .3);
    --brass: #d6a844; --brass-deep: #e6be66;
    --on-accent: #0b1526; --grain-opacity: .25;
    color-scheme: dark;
    --accent: #e9b25a; --accent-deep: #f0c47e; --accent-soft: rgba(233, 178, 90, .2);
  }
}
:root[data-theme="dark"] {
  --paper: #0b1526; --paper-2: #101d33; --paper-3: #162742;
  --ink: #ece5d6; --ink-2: #d9d1bf;
  --muted: rgba(236, 229, 214, .68); --faint: rgba(236, 229, 214, .66);
  --line: rgba(236, 229, 214, .14); --line-2: rgba(236, 229, 214, .3);
  --brass: #d6a844; --brass-deep: #e6be66;
  --on-accent: #0b1526; --grain-opacity: .25;
  color-scheme: dark;
  --accent: #e9b25a; --accent-deep: #f0c47e; --accent-soft: rgba(233, 178, 90, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; z-index: 100; }
.skip:focus { top: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* type */
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-variation-settings: "opsz" 144, "SOFT" 30; }
h1 { font-size: clamp(44px, 7vw, 88px); line-height: .98; letter-spacing: -.025em; }
h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; max-width: 20ch; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.lede, .sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }
.sub { margin-top: 18px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.brand .logo { width: 28px; height: 28px; border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav nav a:not(.btn) { color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav nav a:not(.btn):hover { color: var(--ink); border-color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: 16px; border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn.ghost { border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.big { padding: 16px 30px; font-size: 18px; }
.link { color: var(--accent-deep); font-weight: 500; border-bottom: 1px solid var(--accent-soft); transition: border-color .2s; }
.link:hover { border-color: var(--accent-deep); }

/* layout */
section { padding: clamp(72px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; padding: clamp(64px, 9vw, 120px) 0 clamp(36px, 4vw, 56px); }
.hero .lede { margin: 28px 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.trust { font-size: 14px; color: var(--faint); margin-top: 18px; }

/* demo window: a device on the desk */
.demo { border-top: 0; padding-top: 0; }
.window { border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--paper-2); box-shadow: 0 40px 90px -50px rgba(20, 35, 59, .55); overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--paper-3); border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.tab { margin-left: 12px; font-size: 12px; color: var(--muted); background: var(--paper); padding: 5px 14px; border-radius: 8px; }
.caption { text-align: center; color: var(--faint); font-size: 14.5px; margin-top: 20px; }

/* cards */
.card { padding: 26px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.num { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-deep); font-size: 30px; line-height: 1; margin-bottom: 14px; }

/* privacy split */
.privacy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.privacy .link { display: inline-block; margin-top: 22px; }
.privacy ul { display: grid; gap: 12px; }
.privacy li { padding: 18px 22px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.privacy li b { display: block; color: var(--ink); font-weight: 500; font-family: var(--serif); font-size: 19px; margin-bottom: 2px; }

/* faq */
.faq .qa { max-width: 820px; margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 1.5px solid var(--accent-deep); border-bottom: 1.5px solid var(--accent-deep); transform: rotate(45deg); transition: transform .25s; margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 66ch; }

/* final */
.final { text-align: center; }
.final h2 { margin: 0 auto; }
.final .btn { margin-top: 30px; }
.also { font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.also a, .faq details p a { color: var(--accent-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; }
.made { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-size: 17px; }
.made .mark { width: 28px; height: 28px; color: var(--ink); }
.made:hover { color: var(--accent-deep); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
footer nav a:hover { color: var(--ink); }
footer .fine { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* doc pages */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 100px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 10px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; max-width: none; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc li b { color: var(--ink); font-weight: 500; }
.doc code { background: var(--paper-3); padding: 2px 6px; border-radius: 5px; font-size: 14px; color: var(--ink); }
.doc a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-soft); }

/* motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .nav nav a:not(.btn) { display: none; }
  .privacy { grid-template-columns: 1fr; gap: 28px; }
  footer .wrap { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
}
@media (max-width: 640px) { :root { --gutter: 16px; } .faq summary { font-size: 18px; } }

/* ===== Image to Text OCR ===== */
.window { position: relative; max-width: 960px; margin: 0 auto; cursor: pointer; }
.chrome { position: relative; padding: 12px 14px; font-size: 13px; }
.tab { min-width: 90px; }
.omni { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 10px; height: 28px; border-radius: 8px; background: var(--paper); color: var(--muted); padding: 4px 12px; font-size: 12.5px; line-height: 20px; border: 1px solid var(--line); }
.ext { position: relative; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.ext img { border-radius: 4px; }
.badge { position: absolute; right: -2px; bottom: -2px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 4px; font-size: 9px; line-height: 14px; font-weight: 700; color: #fff; text-align: center; }
.badge:empty { display: none; }
.badge.wait { background: var(--d-accent); } .badge.ok { background: #2e9e5b; }
.demo .screen { position: relative; display: grid; grid-template-columns: 1fr; aspect-ratio: 16 / 8.6; background: #f6f7f9; overflow: hidden; color: #202124; }
.pane-page { position: relative; padding: 22px 26px; }
.bubble { max-width: 520px; }
.bubble .who { font-size: 12.5px; color: #5f6368; margin-bottom: 4px; }
.bubble .txt { font-size: 14px; margin-bottom: 8px; }
.bubble .pic { width: 100%; max-width: 520px; height: auto; border-radius: 8px; border: 1px solid #dadce0; box-shadow: 0 1px 3px rgba(0,0,0,.08); background: #fff; transition: box-shadow .2s; }
.bubble .pic.hl { box-shadow: 0 0 0 2px var(--d-accent); }
.menu { position: absolute; left: 240px; top: 150px; width: 218px; padding: 6px 0; border-radius: 8px; background: #fff; border: 1px solid #dadce0; box-shadow: 0 8px 28px rgba(0,0,0,.18); font-size: 13px; opacity: 0; transform: scale(.96); transform-origin: 0 0; transition: opacity .15s, transform .15s; pointer-events: none; z-index: 3; }
.menu.in { opacity: 1; transform: none; }
.menu .mi { display: flex; align-items: center; gap: 8px; padding: 6px 14px; color: #3c4043; }
.menu .mi img { width: 14px; height: 14px; border-radius: 3px; }
.menu .mi.ours { color: #202124; font-weight: 500; }
.menu .mi.hover { background: #f1f3f4; }
.menu .sep { height: 1px; background: #e8eaed; margin: 5px 0; }
.cursor { position: absolute; z-index: 5; left: 60px; top: 260px; width: 18px; height: 18px; opacity: 0; pointer-events: none; transition: top .8s cubic-bezier(.3,.7,.3,1), left .8s cubic-bezier(.3,.7,.3,1), opacity .3s, transform .1s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 9-6 1.5L16 20l-2.5 1-3-6.5L6 18z' fill='%23fff' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.cursor.in { opacity: 1; }
.cursor.click { transform: scale(.8); }
.pane-sheet { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; background: #fff; border-left: 1px solid #dadce0; box-shadow: -12px 0 30px rgba(0,0,0,.08); transform: translateX(104%); transition: transform .45s cubic-bezier(.3,.7,.3,1); z-index: 2; }
.sheet-open .pane-sheet { transform: none; }
.sheet-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12.5px; color: #3c4043; border-bottom: 1px solid #dadce0; background: #f8f9fa; }
.sheet-bar b { color: #188038; font-weight: 600; }
.pane-sheet table { border-collapse: collapse; width: 100%; font-size: 11.5px; table-layout: fixed; }
.pane-sheet td, .pane-sheet th { border: 1px solid #e0e0e0; padding: 4px 6px; height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; font-weight: 400; }
.pane-sheet th { background: #f8f9fa; color: #5f6368; text-align: center; width: 26px; font-size: 10.5px; }
.pane-sheet thead th { width: auto; }
.pane-sheet td.n { text-align: right; font-variant-numeric: tabular-nums; }
.pane-sheet td.fill { background: #fff8e6; transition: background .6s; }
.pane-sheet td.fill.done { background: transparent; }
.toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 16px); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(15, 20, 30, .92); border: 1px solid rgba(139, 224, 164, .4); color: var(--d-accent-2); font-size: 14px; font-weight: 500; opacity: 0; transition: opacity .3s, transform .3s; z-index: 4; white-space: nowrap; }
.toast svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* how */
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step kbd { font-family: var(--sans); font-size: 13px; padding: 2px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--paper); }

/* goodbye page */
.reasons { display: grid; gap: 10px; margin: 26px 0 8px; }
.reasons a { display: block; padding: 14px 18px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s; }
.reasons a:hover { border-color: var(--accent); }

@media (max-width: 860px) { .omni { display: none; } .demo .screen { aspect-ratio: 16 / 12; } .steps { grid-template-columns: 1fr; } .pane-sheet { width: 62%; } .menu { left: 120px; top: 170px; } .bubble .pic { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cursor, .pane-sheet, .menu { transition: opacity .3s; } }

/* use cases, comparison, facts */
.uses-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.use { display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s; }
.use:hover { border-color: var(--accent); transform: translateY(-2px); }
.use h3 { font-size: 21px; }
.use p { color: var(--muted); font-size: 15px; flex: 1; }
.use .link { align-self: flex-start; font-size: 14px; }
.compare { margin-top: 48px; }
.compare h3 { font-size: 22px; margin-bottom: 14px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.compare tbody td:first-child { color: var(--muted); }
.compare tbody td:nth-child(2) { font-weight: 500; }
.facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts div { padding: 14px 16px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.facts dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15.5px; }
.facts a { color: var(--accent-deep); }
.guides-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 8px 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.guides-nav span { color: var(--faint); }
.guides-nav a:hover { color: var(--ink); }

/* guide pages */
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--faint); margin-bottom: 22px; }
.crumbs a { color: var(--accent-deep); }
.guide .updated { font-size: 14px; color: var(--faint); margin-bottom: 26px; }
.guide .updated a { color: var(--accent-deep); }
.guide .lead { font-size: 19px; color: var(--ink); }
.guide h2 { margin-top: 44px; }
.how-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.how-steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.how-steps li::before { content: counter(s, upper-roman); position: absolute; left: 20px; top: 16px; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent-deep); }
.how-steps h3 { font-size: 20px; margin-bottom: 4px; }
.how-steps p { margin: 0; }
.guide .qa { border-top: 1px solid var(--line); }
.guide details { border-bottom: 1px solid var(--line); }
.guide summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 0; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--accent-deep); border-bottom: 1.5px solid var(--accent-deep); transform: rotate(45deg); transition: transform .25s; margin-right: 6px; }
.guide details[open] summary::after { transform: rotate(-135deg); }
.guide details p { padding: 0 0 18px; }
.guide-cta { margin: 44px 0 0; padding: 28px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); text-align: center; }
.guide-cta p { margin-top: 14px; font-size: 14.5px; color: var(--faint); }
.more { list-style: none !important; padding-left: 0 !important; }
.more a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-soft); }
@media (max-width: 860px) { .uses-grid, .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uses-grid, .facts { grid-template-columns: 1fr; } .compare table { font-size: 14px; } .compare th, .compare td { padding: 10px 8px; } }

/* Рабочий инструмент на главной: зона для файла и результат. */
.tool { border-top: 0; padding: 0 0 clamp(40px, 5vw, 64px); }
.tool-box { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper-2); overflow: hidden; }
.tool-in { padding: clamp(24px, 4vw, 44px); border: 2px dashed transparent; border-radius: var(--radius); transition: border-color .15s, background .15s; }
.tool-in.over { border-color: var(--accent); background: var(--accent-soft); }
.tool-in.busy { opacity: .7; pointer-events: none; }
.tool-in h2 { max-width: none; }
.tool-hint { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 60ch; }
.tool kbd { font-family: var(--sans); font-size: 13px; padding: 2px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--paper); }
.tool-cta { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 24px; }
.tool button { font-family: inherit; cursor: pointer; }
.tool .btn.ghost { background: transparent; }
.tool .nowrap { white-space: nowrap; }
.tool-note { margin-top: 18px; font-size: 14px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.tool-note select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; padding: 3px 8px; margin-left: 6px; }
.tool-out { border-top: 1px solid var(--line); padding: clamp(18px, 3vw, 32px) clamp(24px, 4vw, 44px) clamp(24px, 4vw, 40px); background: var(--paper); }
.tool-status { font-size: 15.5px; color: var(--muted); margin-bottom: 14px; }
.tool-status[data-kind="warn"] { color: var(--accent-deep); font-weight: 500; margin-bottom: 0; }
.tool-status[data-kind="busy"]::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; vertical-align: -1px; animation: tool-spin .8s linear infinite; }
@keyframes tool-spin { to { transform: rotate(360deg); } }
.tool-quota { margin-top: 10px; font-size: 14px; color: var(--accent-deep); }
.tool-limit h3 { margin-bottom: 8px; }
.tool-limit p { color: var(--muted); max-width: 58ch; margin-bottom: 18px; }
.tool-limit .tool-limit-when { margin: 16px 0 0; font-size: 14px; color: var(--faint); }
.tool-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tool-tabs button { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 14.5px; }
.tool-tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tool-tabs button:disabled { opacity: .5; cursor: default; }
#t-text { display: block; width: 100%; min-height: 220px; max-height: 420px; resize: vertical; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink); font: 14.5px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.tool-table { max-height: 420px; overflow: auto; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper-2); }
.tool-table table { border-collapse: collapse; font-size: 14.5px; min-width: 100%; }
.tool-table td { border: 1px solid var(--line); padding: 7px 12px; white-space: nowrap; }
.tool-table tr:first-child td { font-weight: 600; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.tool-actions .btn:disabled { opacity: .45; cursor: default; }
.tool-more { margin-top: 18px; font-size: 15.5px; color: var(--muted); }
.tool-more a { color: var(--accent-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }

/* Инструмент внутри страниц-запросов: узкая колонка документа. */
.guide .tool { padding: 30px 0 0; }
.guide .tool-in h2 { margin-top: 0; font-size: clamp(24px, 3vw, 30px); }
.guide .tool .eyebrow { margin-bottom: 12px; }
.guide .tool-in, .guide .tool-out { padding-left: clamp(18px, 3vw, 28px); padding-right: clamp(18px, 3vw, 28px); }
.doc .tool a.btn { color: var(--on-accent); border-bottom: 1px solid transparent; }
.doc .tool .tool-more a { color: var(--accent-deep); border-bottom: 0; }
.guide .tool-limit h3 { font-size: 22px; }

/* Сравнительная страница: широкая таблица с прокруткой, своя строка выделена */
.doc.wide { max-width: 1080px; }
.doc.wide > p, .doc.wide > ul, .doc.wide > .qa, .doc.wide > h1, .doc.wide > h2, .doc.wide > h3 { max-width: 760px; }
.guide h3 { font-size: 20px; margin: 26px 0 6px; }
.cmp { overflow-x: auto; margin: 16px 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.cmp table { width: 100%; min-width: 940px; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; }
.cmp th, .cmp td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.cmp thead th { color: var(--ink); font-weight: 600; font-size: 13px; background: var(--paper-2); }
.cmp tbody th { color: var(--ink); font-weight: 600; min-width: 150px; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tr.own th, .cmp tr.own td { background: var(--accent-soft); color: var(--ink); }
.own-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--accent-deep); color: var(--accent-deep); font-size: 11.5px; font-weight: 500; vertical-align: 1px; }
.doc .src { font-size: 14px; color: var(--faint); }
/* Строка сверки на страницах выписок */
.tool-status[data-kind="ok"] { color: #1f7a4d; font-weight: 500; }
@media (prefers-color-scheme: dark) { .tool-status[data-kind="ok"] { color: #8be0a4; } }
.tool-actions .btn:disabled { opacity: .45; cursor: default; }

/* Ревью 2026-10-05: якоря под липкой шапкой, попадание пальцем, баланс заголовков, текущий раздел, длина строки */
[id] { scroll-margin-top: 84px; }
h1, h2, h3 { text-wrap: balance; }
.btn, button, a, summary { touch-action: manipulation; }
.nav nav a:not(.btn), footer nav a { display: inline-block; padding: 8px 6px; margin: 0 -6px; }
.nav nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent, var(--brass)); }
.doc > p, .doc > ul, .doc > ol, .logpage > p, .logpage > ul, .logpage > ol { max-width: 70ch; }
@media (pointer: coarse) {
  .btn.small { padding: 12px 16px; }
  .tool-note select { min-height: 44px; padding: 8px 12px; }
  .guides-nav a, .guide-links a, .more a, .crumbs a { display: inline-block; padding: 6px 0; }
}
