/* 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: #5b8def; --d-accent-2: #8be0a4; --d-chrome: #161b26; --d-well: #0f131b;
  color-scheme: light;
  --accent: #1f7a6d; --accent-deep: #175f52; --accent-soft: rgba(31, 122, 109, .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: #63c9b4; --accent-deep: #86d8c7; --accent-soft: rgba(99, 201, 180, .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: #63c9b4; --accent-deep: #86d8c7; --accent-soft: rgba(99, 201, 180, .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; }

/* 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; } }

/* ===== Linklet ===== */
.window { position: relative; max-width: 900px; 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; font-variant-numeric: tabular-nums; border: 1px solid var(--line); }
.ext { position: relative; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; transition: background .12s, transform .12s; }
.ext img { border-radius: 4px; }
.ext.pressed { background: var(--line); transform: scale(.92); }
.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(--accent); } .badge.ok { background: #2e9e5b; }
.cursor { position: absolute; z-index: 5; right: 8px; top: 120px; width: 18px; height: 18px; opacity: 0; pointer-events: none; transition: top .9s cubic-bezier(.3,.7,.3,1), right .9s 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; right: 22px; top: 14px; }
.cursor.click { transform: scale(.8); }
.demo .screen { position: relative; aspect-ratio: 16 / 8; background: radial-gradient(120% 100% at 20% 0%, #182337 0%, #0f1520 45%, #0b0f16 100%); overflow: hidden; color: var(--d-fg); }
.meet { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; background: #202124; }
.meet-open .meet { opacity: 1; transform: none; }
.meet-card { width: min(380px, 80%); padding: 26px 28px; border-radius: 12px; background: #fff; color: #202124; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.meet-title { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.meet-link { font-size: 14.5px; color: #3c4043; background: #f1f3f4; padding: 10px 12px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.toast { position: absolute; left: 50%; bottom: 20px; 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; }
.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); }

@media (max-width: 860px) { .omni { display: none; } .demo .screen { aspect-ratio: 16 / 11; } .steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cursor { transition: opacity .3s; } }

/* Страницы-запросы: шаги, вопросы, сравнение. Тот же блок, что на сайте OCR. */
.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); }
.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; }
.guide 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); }
.guide .compare { margin-top: 8px; overflow-x: auto; }
.guide-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15.5px; }
.guide-links span { color: var(--faint); }
.guide-links a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-soft); }

/* Сравнительная страница: широкая таблица с прокруткой, своя строка выделена */
.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: 900px; 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: 140px; }
.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); }

/* Инструмент на странице: поле для длинной ссылки и результат */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.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); }
.tool-in h2 { max-width: none; }
.tool-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tool-form.busy { opacity: .7; pointer-events: none; }
.tool-form input { flex: 1 1 280px; min-width: 0; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 13px 20px; }
.tool-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.tool-form input::placeholder { color: var(--faint); }
.tool button { font-family: inherit; cursor: pointer; }
.tool-note { margin-top: 16px; font-size: 14px; color: var(--faint); max-width: 64ch; }
.tool-quota { margin-top: 10px; font-size: 14px; color: var(--accent-deep); }
.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-short { display: inline-block; font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); color: var(--ink); border-bottom: 2px solid var(--accent); line-height: 1.2; word-break: break-all; }
.tool-long { margin-top: 10px; font-size: 14px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.tool-via { margin-top: 12px; font-size: 14px; color: var(--faint); }
.tool-more { margin-top: 14px; font-size: 15.5px; color: var(--muted); }
.tool-more a { color: var(--accent-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.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); }
.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 a.tool-short { color: var(--ink); border-bottom: 2px solid var(--accent); }
.doc .tool .tool-more a { color: var(--accent-deep); border-bottom: 0; }
.guide .tool-limit h3 { font-size: 22px; }

/* Ревью 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; }
}
