/* «Стиснути фото» gordey.pro. Канон сайту, PDF, QR і «Фото без фону»: чорне тло, біле письмо, одна залита
   кнопка-черешня в кадрі, гігант Druk капсом, текст Graphik, службові рядки JetBrains Mono. Синього немає, своїх
   box-shadow немає, ховер без інверсії. Перший екран — «Аркуш»: ліворуч гігант і налаштування, праворуч білий
   аркуш, на який кидають фото і де видно «було → стало». */

@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jbm-cyr.woff2) format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jbm-latin.woff2) format('woff2'); font-weight: 100 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 {
  --void-950: #050607; --void-900: #08090a; --void-800: #101114; --void-700: #16171a; --void-600: #1d1e22;
  --ink-050: #F7F7F7; --ink-200: #CFCFCF; --ink-400: #8A8A85; --ink-600: #5A5A57;
  --cherry: #D22440; --cherry-strong: #A81B31;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .035); --glass-2: rgba(255, 255, 255, .06);
  --paper: #f4f4f1; --paper-ink: #0d0e10; --paper-mute: #6b6b66;
  --font-giant: 'Druk Wide Cyr', system-ui, sans-serif;
  --font-body: 'Graphik LC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4.4vw, 64px);
  --wrap: 1264px;
  --r-md: 16px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--void-900); color: var(--ink-050);
  font: 400 1.0625rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
h1, h2, .lede, .seo summary, .seo p, .seo li, .opt__hint { hyphens: auto; -webkit-hyphens: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
::selection { background: rgba(255, 255, 255, .22); }
:focus-visible { outline: 2px solid var(--ink-050); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.ic { width: 20px; height: 20px; flex: none; }

/* ── шапка ── */
.top {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* дуже вузько (вікно 390 за зуму 200 %): логотип і мова — у два рядки, без прокрутки вбік */
@media (max-width: 240px) { .top { flex-wrap: wrap; row-gap: 8px; } }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-050); }
.logo { display: block; height: 14px; width: auto; aspect-ratio: 154.3 / 16.7; }
.logo .logo-mark__fill { fill: currentColor; }
.logo .logo-mark__dot { fill: var(--ink-050); }
.top__right { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang__btn {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; -webkit-user-select: none;
  min-height: 44px; padding: 0 12px 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--ink-050); transition: color .2s, border-color .2s;
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn:hover { color: var(--cherry); border-color: rgba(210, 36, 64, .45); }
.lang__chev { width: 16px; height: 16px; transition: transform .2s; }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 200px; max-height: min(70vh, 560px); overflow-y: auto;
  display: grid; padding: 6px; border-radius: var(--r-md); background: var(--void-800); border: 1px solid var(--line-2);
}
.lang__list button, .lang__list a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; text-align: left; text-decoration: none;
  font-size: .98rem; color: var(--ink-200); transition: color .2s, background-color .2s;
}
.lang__list button:hover, .lang__list a:hover { color: var(--cherry); }
.lang__list [aria-current="page"], .lang__list [aria-pressed="true"] { color: var(--ink-050); background: var(--glass-2); }
.install {
  font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-200);
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); transition: color .2s, border-color .2s;
}
.install:hover { color: var(--cherry); border-color: var(--cherry); }

/* ── сітка: телефон — одна колонка в порядку роботи, компʼютер — «Аркуш» ── */
main { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
/* телефон: гігант → заголовок → аркуш (кинути фото) → кнопки й фото → налаштування */
.hero, .out { display: contents; }
.giant { order: 1; } .hero__text { order: 2; } .paper { order: 3; } .status { order: 4; } .dl { order: 5; }
.shots { order: 6; } .opts { order: 7; }
.below { min-width: 0; }

/* ── гігант ── */
.giant {
  /* лівий відступ ставить fitGiant (app.js) — за чорнилом букв, урівень із логотипом */
  margin: clamp(10px, 3vh, 40px) 0 0; font-family: var(--font-giant); font-weight: 1000; text-transform: uppercase;
  font-size: 100px; line-height: .76; letter-spacing: -.01em; white-space: nowrap; font-feature-settings: "case" 1;
  padding-bottom: .06em;
}
.giant__w { display: inline-block; }
.hero__text { margin-top: clamp(16px, 2.6vh, 28px); display: grid; gap: 12px; max-width: 40rem; }
.lede { margin: 0; font-size: clamp(1.15rem, 2.1vw, 1.6rem); line-height: 1.3; font-weight: 500; color: var(--ink-200); letter-spacing: -.005em; }
.lede__b { color: var(--ink-050); }
.lede + .lede { margin-top: -8px; }
.facts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-600); }

/* ── налаштування: три блоки з номерами, як дії PDF і типи QR ── */
.opts { margin-top: 26px; min-width: 0; border-top: 1px solid var(--line); counter-reset: o; }
.opt { counter-increment: o; padding: 16px 0 18px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; min-width: 0; }
.opt__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.opt__t { margin: 0; display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.02rem, 1.35vw, 1.18rem); font-weight: 500; line-height: 1.25; color: var(--ink-050); }
.opt__t::before { content: '0' counter(o); font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--ink-600); }
.opt__body { display: grid; gap: 12px; }
.opt__hint { margin: 0; font-size: .92rem; color: var(--ink-400); min-height: 1.4em; }

/* перемикач з двох-трьох кнопок */
/* перемикач з двох кнопок; ціль дотику — 44 px і на компʼютері (канон сайту) */
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.seg__b {
  min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); font-size: .95rem; font-weight: 500; color: var(--ink-400);
  transition: color .2s, background-color .2s; white-space: nowrap;
}
.seg__b:hover { color: var(--cherry); }
.seg__b[aria-checked="true"] { color: var(--ink-050); background: var(--glass-2); }
.seg--sm .seg__b { padding: 0 14px; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; }

/* «чипи» — варіанти в ряд */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: .98rem; font-weight: 500; color: var(--ink-200);
  transition: color .2s, border-color .2s, background-color .2s; white-space: nowrap;
}
.chip:hover { color: var(--cherry); border-color: rgba(210, 36, 64, .55); }
.chip[aria-checked="true"], .chip.is-on { color: var(--ink-050); border-color: var(--ink-200); background: var(--glass-2); }
.chip[aria-checked="true"]::after, .chip.is-on::after { content: ''; position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--cherry); }

/* повзунок якості */
.range { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink-200) var(--p, 78%), var(--void-600) var(--p, 78%)); }
.range input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--void-600); }
.range input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink-200); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--ink-050); border: 0; }
.range input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--ink-050); border: 0; }
.range input:focus-visible { outline-offset: 0; }
.range__v { min-width: 3ch; text-align: right; font: 500 1.35rem/1 var(--font-mono); color: var(--ink-050); }

/* поля чисел */
.field { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-200); font-size: .98rem; }
.inp {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--void-800);
  color: var(--ink-050); font: 500 1rem/1 var(--font-mono); transition: border-color .2s;
}
.inp:hover { border-color: var(--ink-400); }
.inp:focus { outline: none; border-color: var(--ink-050); }
.inp--n { width: 7.5ch; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.inp--n::-webkit-outer-spin-button, .inp--n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inp::placeholder { color: var(--ink-600); }
.custom { display: grid; gap: 12px; justify-items: start; }
.custom__px { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.field--sm { font-size: .92rem; color: var(--ink-400); }
.lock { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink-600); border: 1px solid transparent; transition: color .2s, border-color .2s; }
.lock .ic { width: 18px; height: 18px; }
.lock.is-on { color: var(--ink-050); border-color: var(--line-2); }
.lock:hover { color: var(--cherry); }

.privacy { margin: 14px 0 0; display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink-400); }
.privacy .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--ink-200); }

/* ── аркуш: сюди кидають фото, тут «було → стало» ── */
.paper {
  position: relative; display: grid; place-items: center; align-content: center; min-height: clamp(250px, 36vh, 340px);
  margin: 26px 6px 12px; border-radius: 6px; background: var(--paper); color: var(--paper-ink);
  padding: 50px clamp(14px, 3.4vw, 36px) 22px;
}
.paper::before, .paper::after { content: ''; position: absolute; inset: 0; border-radius: 6px; z-index: -1; pointer-events: none; }
.paper::before { background: #141518; border: 1px solid var(--line-2); transform: rotate(-3.5deg) translate(-10px, 8px); }
.paper::after { background: #2b2c31; transform: rotate(1.8deg) translate(10px, 6px); }
.paper > * { position: relative; }
.paper :focus-visible { outline-color: var(--paper-ink); }
.paper__name, .paper__fmt { position: absolute; top: 22px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-mute); }
.paper__name { left: 24px; max-width: calc(100% - 100px - 14em); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paper__fmt { right: 64px; white-space: nowrap; }
.paper__fold { position: absolute; top: 0; right: 0; width: 44px; height: 44px; background: linear-gradient(225deg, var(--void-900) 50%, #d2d2cb 50%); border-bottom-left-radius: 5px; }
.paper.is-empty .paper__fmt { visibility: hidden; }
.paper.is-empty { padding-bottom: 40px; }

.drop {
  display: grid; justify-items: center; gap: 12px; text-align: center; cursor: pointer; width: 100%; max-width: 440px;
  padding: 30px 18px 22px; border: 1.5px dashed #c9c9c2; border-radius: 12px; color: var(--paper-ink); transition: border-color .2s;
}
.drop:hover { border-color: var(--paper-ink); }
.drop__ic { width: 36px; height: 36px; color: #6f6f6a; }
.drop__t { font-family: var(--font-giant); font-weight: 1000; text-transform: uppercase; font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.05; }
.drop__btn { min-width: min(100%, 260px); margin-top: 4px; }
.drop__s { font-size: .92rem; color: #5f5f5a; max-width: 32ch; }
/* що буде з фото — одним рядком; дотик — до налаштувань */
.drop__sum {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--paper-mute); text-decoration: underline; text-decoration-color: #c9c9c2; text-underline-offset: 4px;
}
.drop__sum:hover { color: var(--paper-ink); }
/* на телефоні тягнути нічого — лише кнопка */
.is-touch .drop__t { display: none; }
.is-touch .drop { border: 0; padding: 4px 0; }
.paper__drag { display: none; position: absolute; inset: 14px; margin: 0; place-items: center; text-align: center; padding: 20px; border: 2px dashed var(--paper-ink); border-radius: 10px; background: rgba(244, 244, 241, .92); font-family: var(--font-giant); font-weight: 1000; text-transform: uppercase; font-size: clamp(1.05rem, 2.2vw, 1.4rem); z-index: 3; }
body.is-drag .paper__drag { display: grid; }

/* порівняння: оригінал під низом, результат зверху праворуч від лінії */
.view { width: 100%; display: grid; place-items: center; }
.cmp { position: relative; max-width: 100%; line-height: 0; border-radius: 2px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.cmp img { display: block; }
/* розмір кадру задає результат (у потоці); оригінал лежить під ним на весь кадр */
.cmp__b { position: relative; max-width: 100%; max-height: min(56vh, 580px); width: auto; height: auto; clip-path: inset(0 0 0 var(--x, 50%)); }
.cmp__a { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 899.98px) { .cmp__b { max-height: 46vh; } }
.cmp.is-alpha { background-color: #fff; background-image: linear-gradient(45deg, #e4e4e0 25%, transparent 25%), linear-gradient(-45deg, #e4e4e0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e4e4e0 75%), linear-gradient(-45deg, transparent 75%, #e4e4e0 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.cmp__line { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.cmp__line i { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; border: 1px solid rgba(13, 14, 16, .18); }
.cmp__line i::before, .cmp__line i::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid var(--paper-ink); border-left: 2px solid var(--paper-ink); }
.cmp__line i::before { left: 8px; transform: rotate(-45deg); }
.cmp__line i::after { right: 8px; transform: rotate(135deg); }
.cmp__tag { position: absolute; top: 10px; padding: 5px 8px; border-radius: 6px; background: rgba(13, 14, 16, .62); color: #fff; font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.cmp__tag--a { left: 10px; }
.cmp__tag--b { right: 10px; }
/* сам повзунок — прозорий на весь кадр: тягнути можна будь-де, стрілки клавіатури теж працюють */
.cmp__r { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.cmp__r::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.cmp__r::-moz-range-thumb { width: 44px; height: 100%; border: 0; }
.cmp:has(.cmp__r:focus-visible) { outline: 2px solid var(--paper-ink); outline-offset: 3px; }
.view.is-one .cmp__a, .view.is-one .cmp__line, .view.is-one .cmp__tag, .view.is-one .cmp__r { display: none; }
.view.is-one .cmp__b { clip-path: none; }
/* поки стискається — кадр притемнений і по ньому йде світла смуга */
.view.is-work .cmp { opacity: .6; }
.view__scan { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.view__scan::after { content: ''; position: absolute; top: 0; bottom: 0; width: 38%; left: -40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { to { left: 102%; } }

/* «було → стало» під кадром */
.stat { width: 100%; margin-top: 16px; padding-top: 14px; border-top: 1px solid #deded8; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.stat__w { display: inline-flex; align-items: baseline; gap: 10px; font: 500 1.05rem/1.2 var(--font-mono); }
.stat__from { color: var(--paper-mute); text-decoration: line-through; text-decoration-color: rgba(107, 107, 102, .5); }
.stat__arr { color: var(--paper-mute); }
.stat__to { font-weight: 700; font-size: 1.35rem; color: var(--paper-ink); }
.stat__save { font-family: var(--font-giant); font-weight: 1000; font-size: 1.3rem; line-height: 1; color: var(--cherry); letter-spacing: -.01em; }
.stat__save.is-plus { color: var(--paper-mute); }
.stat__meta { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 11px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--paper-mute); }
.stat__meta span { display: inline-flex; align-items: center; gap: 6px; }
.stat__meta .ic { width: 14px; height: 14px; }

.status { margin: 0; min-height: 1.5em; display: flex; align-items: flex-start; gap: 8px; font-size: .95rem; color: var(--ink-400); }
.status .ic { width: 18px; height: 18px; margin-top: 2px; }
.status.is-ok { color: var(--ink-200); }
.status.is-ok .ic { color: var(--ink-050); }
.status.is-bad { color: var(--ink-050); }
.status.is-bad .ic { color: var(--cherry); }
.status small { display: block; color: var(--ink-400); font-size: .88rem; margin-top: 2px; }
.status .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin-left: 2px; vertical-align: middle; text-decoration: underline; text-underline-offset: 3px; }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn--main { background: var(--cherry); color: #fff; }
.btn--main:hover { background: var(--cherry-strong); }
.btn--main:disabled { background: var(--void-600); color: var(--ink-400); opacity: 1; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink-050); background: transparent; }
.btn--ghost:hover { color: var(--cherry); border-color: var(--cherry); }
.link { font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); min-height: 44px; padding: 0 4px; transition: color .2s; }
.link:hover { color: var(--cherry); }
.dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.dl .btn { min-width: 0; padding: 6px 14px; flex: 1 1 0; white-space: normal; text-align: center; line-height: 1.15; }
.dl .dl__main { flex-basis: 100%; }

/* ── ваші фото: стрічка мініатюр з «−87 %» ── */
.shots { margin-top: 14px; display: grid; gap: 6px; }
.shots__list { display: flex; gap: 10px; overflow-x: auto; padding: 6px 6px 8px; scrollbar-width: thin; }
.shot {
  position: relative; flex: none; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--paper);
  outline: 1px solid var(--line-2); outline-offset: 2px; transition: outline-color .2s;
}
.shot:hover { outline-color: var(--ink-400); }
.shot[aria-pressed="true"] { outline: 2px solid var(--ink-050); }
.shot:focus-visible { outline: 2px solid var(--ink-050); outline-offset: 4px; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot__st { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 9, 10, .6); color: var(--ink-050); font: 500 10px/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 4px; }
.shot.is-done .shot__st { inset: auto 0 0 0; padding: 3px 2px; background: rgba(8, 9, 10, .72); font-size: 10.5px; }
.shot.is-done .shot__st:empty { display: none; }
.shot.is-err .shot__st { background: rgba(8, 9, 10, .7); }
.shot.is-err::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--cherry); border-radius: inherit; pointer-events: none; }
.shot.is-work .shot__st::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--ink-050); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shots__sum { margin: 0; font: 500 12px/1.5 var(--font-mono); letter-spacing: .04em; color: var(--ink-200); }
.shots__acts { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ── компʼютер: «Аркуш» ── */
@media (min-width: 900px) {
  /* четвертий рядок забирає зайву висоту правої колонки — ліва не розсувається */
  .tool { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(40px, 6vw, 104px); align-items: start; }
  .hero { display: contents; }
  .out { display: block; grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 16px; margin-top: clamp(14px, 3vh, 40px); }
  .giant { grid-column: 1; grid-row: 1; }
  .hero__text { grid-column: 1; grid-row: 2; }
  .opts { grid-column: 1; grid-row: 3; margin-top: clamp(26px, 4vh, 40px); }
  .paper { margin-top: 6px; min-height: clamp(380px, 54vh, 600px); }
  .status { margin-top: 4px; }
}
/* телефон: другий рядок героя ховаємо — перший екран: гігант, заголовок, факти й аркуш із кнопкою */
@media (max-width: 899.98px) {
  .lede__b { display: none; }
  .opts { margin-top: 30px; }
  .paper__fmt { right: 54px; }
  .paper__name { max-width: calc(100% - 80px - 13em); }
}

/* ── як це працює / тексти під інструментом ── */
.how { border-top: 1px solid var(--line); margin-top: clamp(40px, 7vh, 80px); padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); display: grid; gap: 18px; }
@media (min-width: 900px) { .how { grid-template-columns: 1fr 2fr; } }
.how__title { margin: 0; font-family: var(--font-giant); font-weight: 1000; text-transform: uppercase; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1; }
.how__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: h; }
.how__list li { counter-increment: h; display: grid; grid-template-columns: 2.4em 1fr; color: var(--ink-200); }
.how__list li::before { content: '0' counter(h); font: 500 12.5px/1.9 var(--font-mono); color: var(--ink-400); }

.seo { display: grid; gap: clamp(28px, 4vw, 44px); }
@media (min-width: 900px) { .seo { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 104px); } }
.seo h2 { margin: 0 0 16px; font-family: var(--font-giant); font-weight: 1000; text-transform: uppercase; font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1; }
.seo ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.seo ol li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; color: var(--ink-200); }
.seo ol li::before { content: '0' counter(s); font: 500 12.5px/1.9 var(--font-mono); color: var(--ink-400); }
.seo details { border-bottom: 1px solid var(--line); }
.seo details:first-of-type { border-top: 1px solid var(--line); }
.seo summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 500; color: var(--ink-050); }
.seo summary::-webkit-details-marker { display: none; }
.seo summary::after { content: '+'; font-family: var(--font-mono); color: var(--ink-400); transition: transform .2s; }
.seo details[open] summary::after { transform: rotate(45deg); }
.seo summary:hover { color: var(--cherry); }
.seo details p { margin: 0 0 16px; color: var(--ink-200); }
.seo__note { margin: 16px 0 0; color: var(--ink-400); font-size: .95rem; }
.seo__more { grid-column: 1 / -1; display: grid; gap: 10px; }
.seo__more h3 { margin: 0; font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.seo__links { display: flex; flex-wrap: wrap; gap: 8px; }
.seo__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); text-decoration: none; color: var(--ink-200); transition: color .2s, border-color .2s; }
.seo__links a:hover { color: var(--cherry); border-color: var(--cherry); }

/* ── підвал ── */
.foot { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.foot__link { display: grid; gap: 4px; padding: 22px 0 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink-400); }
.foot__by { font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.foot__what { color: var(--ink-200); font-size: 1rem; }
.foot__arrow { font-weight: 600; color: var(--ink-050); transition: color .2s; }
.foot__link:hover .foot__arrow { color: var(--cherry); }

/* ── сповіщення ── */
.toasts { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 60; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 520px; padding: 12px 16px; border-radius: var(--r-md); background: var(--void-700); border: 1px solid var(--line-2); color: var(--ink-050); font-size: .95rem; animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.noscript { padding: 20px; text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .view__scan { display: none; } }
