/* PixScale — стили.
   Палитра сервиса (amber + teal на тёмном) сохранена, но структура страницы
   приведена к общему виду экосистемы gornich.fun: appbar, hero, карточки,
   SEO-секции, FAQ, языковая навигация, футер. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0d10;
  --surface: #141920;
  --surface-2: #1a212a;
  --border: #252f3a;
  --border-hov: #3a4a5c;
  --text: #e8eef5;
  --text-dim: #93a3b5;
  --text-mute: #64748b;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, .14);
  --teal: #14b8a6;
  --teal-soft: rgba(20, 184, 166, .14);
  --red: #ef4444;
  --green: #10b981;
  --blue: #60a5fa;
  --radius: 14px;
  --radius-sm: 10px;
  /* Системный стек намеренно: сайт живёт на 20 языках, а веб-шрифты уровня
     DM Sans кириллицу не покрывают вовсе — половина страниц рендерилась бы
     смесью двух гарнитур. Системный шрифт корректно рисует и кириллицу,
     и арабский, и CJK, грузится мгновенно и не тянет внешний домен. */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Consolas, 'Liberation Mono', monospace;
  --maxw: 980px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(20, 184, 166, .07), transparent),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(245, 158, 11, .05), transparent);
}

a { color: var(--teal); }
a:hover { color: #5eead4; }

/* ── Шапка ── */
.appbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 18px 4px;
}
.ab-left, .ab-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ab-right { justify-content: flex-end; }
.ab-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.ab-logo img { width: 48px; height: 48px; object-fit: contain; display: block; filter: drop-shadow(0 4px 12px rgba(245, 158, 11, .3)); }
.ab-name { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: .2px; line-height: 1; }
.ab-name .ac { color: var(--amber); }
.ab-projects { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; }
.ab-projects:hover { color: var(--teal); }
.ab-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--teal-soft); border: 1px solid rgba(20, 184, 166, .45);
  color: #5eead4; border-radius: var(--radius-sm);
  padding: 7px 12px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ab-btn:hover { border-color: var(--teal); }

/* ── Переключатель языка ── */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px;
  border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600;
}
.lang-btn:hover { border-color: var(--border-hov); }
.lang-menu {
  position: absolute; top: 44px; inset-inline-end: 0; width: 190px; max-height: 340px; overflow: auto;
  background: #121820; border: 1px solid var(--border); border-radius: 13px; padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: none; z-index: 2147483600;
}
.lang-menu.open { display: block; }
.lang-opt {
  display: flex; gap: 9px; align-items: center; width: 100%; padding: 9px 11px;
  border: 0; background: none; color: var(--text); border-radius: 8px;
  cursor: pointer; font: inherit; font-size: 13.5px; text-align: start;
}
.lang-opt:hover { background: rgba(20, 184, 166, .12); }
.lang-opt.active { color: var(--teal); font-weight: 700; }
.lang-opt .lc { font-size: 11px; color: var(--text-mute); min-width: 22px; font-weight: 700; }

/* ── Каркас ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px 40px; }

.hero { text-align: center; padding: 22px 0 26px; }
.hero h1 { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.18; font-weight: 800; letter-spacing: -.5px; }
.hero-sub { color: var(--text-dim); max-width: 660px; margin: 12px auto 0; font-size: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.chip {
  font-size: 12.5px; color: var(--text-dim); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
}
.chip-accent { color: var(--amber); border-color: rgba(245, 158, 11, .4); background: var(--amber-soft); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.card-h { font-size: 17px; font-weight: 700; margin-bottom: 14px; }

/* ── Дропзона ── */
.dropzone {
  border: 2px dashed var(--border-hov); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { border-color: var(--amber); background: var(--amber-soft); }
.dz-ico { font-size: 40px; line-height: 1; }
.dz-title { margin-top: 10px; font-size: 16px; font-weight: 600; }
.dz-hint { margin-top: 6px; font-size: 13px; color: var(--text-mute); }
.linkbtn { background: none; border: 0; color: var(--amber); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--amber)); transition: width .18s; }
.bar-fill.indet { width: 40%; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { margin-inline-start: -40%; } 100% { margin-inline-start: 100%; } }

/* ── Карточка файла ── */
.fc-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.fc-thumb {
  width: 108px; height: 108px; object-fit: contain; border-radius: var(--radius-sm);
  background: repeating-conic-gradient(#1e252e 0 25%, #171d25 0 50%) 50% / 16px 16px;
  border: 1px solid var(--border); flex: 0 0 auto;
}
.fc-meta { flex: 1 1 260px; min-width: 0; }
.fc-name { font-weight: 600; margin-bottom: 8px; overflow-wrap: anywhere; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.fc-grid div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.fc-grid span { display: block; font-size: 11.5px; color: var(--text-mute); }
.fc-grid b { font-family: var(--mono); font-size: 14px; }

/* ── Честная оценка ── */
.verdict { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.v-head { display: flex; gap: 12px; align-items: flex-start; }
.v-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; background: var(--text-mute); }
.v-dot.big_gain { background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }
.v-dot.good_gain { background: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); }
.v-dot.small_gain { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.v-dot.fix_first { background: var(--blue); box-shadow: 0 0 0 4px rgba(96, 165, 250, .18); }
.v-dot.no_gain { background: var(--red); box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); }
.v-title { font-weight: 700; font-size: 15px; }
.v-desc { color: var(--text-dim); font-size: 14px; margin-top: 2px; }
.v-issues { margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.v-issues b { color: var(--amber); font-weight: 600; }
.v-more { margin-top: 10px; }
.v-more summary { cursor: pointer; font-size: 12.5px; color: var(--text-mute); }
.v-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.v-metrics div { background: var(--bg); border-radius: 8px; padding: 7px 9px; }

/* ── Задачи ── */
.tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.task {
  display: flex; flex-direction: column; gap: 3px; text-align: start;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 14px; cursor: pointer; color: var(--text); font: inherit;
}
.task:hover { border-color: var(--border-hov); }
.task.active { border-color: var(--amber); background: var(--amber-soft); }
.t-ico { font-size: 20px; line-height: 1; }
.t-name { font-weight: 700; font-size: 15px; }
.t-desc { font-size: 12.5px; color: var(--text-mute); }

.panel { display: none; }
.panel.active { display: block; }

.field { margin-bottom: 18px; }
.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.hint { font-size: 12.5px; color: var(--text-mute); margin-top: 8px; }
.hint.warn { color: var(--amber); }

.btnrow { display: flex; gap: 8px; }
.btnrow.wrap { flex-wrap: wrap; }
.opt {
  flex: 1 1 auto; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.opt:hover { border-color: var(--border-hov); }
.opt.active { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.opt:disabled { opacity: .4; cursor: not-allowed; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.mode {
  display: flex; flex-direction: column; gap: 3px; text-align: start;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; color: var(--text); font: inherit;
}
.mode:hover { border-color: var(--border-hov); }
.mode.active { border-color: var(--teal); background: var(--teal-soft); }
.mode[disabled] { opacity: .45; cursor: not-allowed; }
.mode b { font-size: 14.5px; }
.mode span { font-size: 12.5px; color: var(--text-mute); }

.dims { display: flex; align-items: flex-end; gap: 10px; }
.dim { flex: 1; }
.dim span { display: block; font-size: 12px; color: var(--text-mute); margin-bottom: 4px; }
input[type=number], select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text);
  font: inherit; font-family: var(--mono); font-size: 14px;
}
input[type=number]:focus, select:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.lockbtn {
  width: 42px; height: 42px; border-radius: var(--radius-sm); flex: 0 0 auto;
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; font-size: 16px;
}
.lockbtn.active { border-color: var(--amber); background: var(--amber-soft); }

.adv { margin-bottom: 18px; }
.adv summary { cursor: pointer; font-size: 13px; color: var(--text-dim); padding: 6px 0; }

.qrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.qrow .lbl { margin: 0; white-space: nowrap; }
.qrow input[type=range] { flex: 1; accent-color: var(--amber); }
.qrow output { font-family: var(--mono); min-width: 32px; text-align: end; }

.go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.primary {
  background: linear-gradient(135deg, var(--amber), #ea8c00); color: #17120a;
  border: 0; border-radius: var(--radius-sm); padding: 13px 24px;
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.primary:hover { filter: brightness(1.07); color: #17120a; }
.primary:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.ghost {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 11px 16px; font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer;
}
.ghost:hover { border-color: var(--border-hov); }
.eta { font-size: 13px; color: var(--text-mute); }

/* ── Очередь ── */
.job { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 14px; margin-bottom: 10px; }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job-name { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.job-state { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.job.err .job-state { color: var(--red); }
.job.ok .job-state { color: var(--green); }
.job-act { display: flex; gap: 8px; flex: 0 0 auto; }
.job-act button { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.job-act button:hover { border-color: var(--border-hov); color: var(--text); }
.job .bar { margin: 10px 0 0; }

/* ── Результат ── */
.ba { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); user-select: none; touch-action: pan-y; }
.ba img { display: block; width: 100%; height: auto; }
.ba-before { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-before img { width: auto; height: 100%; max-width: none; object-fit: cover; object-position: left top; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--amber); cursor: ew-resize; }
.ba-handle::after {
  content: '⇄'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: #17120a;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.ba-tag { position: absolute; top: 10px; font-size: 12px; background: rgba(0, 0, 0, .6); padding: 3px 9px; border-radius: 999px; }
.ba-tag.left { inset-inline-start: 10px; }
.ba-tag.right { inset-inline-end: 10px; }

/* ── Модалки ── */
.modal { position: fixed; inset: 0; background: rgba(4, 7, 10, .82); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-width: 620px; max-height: 88vh; overflow: auto; padding: 20px; }
.modal-box.wide { max-width: 1100px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-head h2 { font-size: 18px; }
.x { background: none; border: 0; color: var(--text-dim); font-size: 20px; cursor: pointer; line-height: 1; }
.x:hover { color: var(--text); }

.zoom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.zoom-pane { position: relative; overflow: auto; max-height: 66vh; background: var(--surface-2); border-radius: var(--radius-sm); }
.zoom-pane img { display: block; max-width: none; image-rendering: pixelated; }
.zt { position: sticky; top: 6px; inset-inline-start: 6px; float: inline-start; font-size: 11.5px; background: rgba(0, 0, 0, .7); padding: 2px 8px; border-radius: 999px; z-index: 2; }

.lib-item { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; }
.lib-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--bg); }
.lib-info { flex: 1; min-width: 0; }
.lib-info b { display: block; font-size: 13.5px; overflow-wrap: anywhere; }
.lib-info span { font-size: 12px; color: var(--text-mute); }
.lib-act { display: flex; gap: 6px; }
.lib-act a, .lib-act button { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 8px; padding: 6px 9px; font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: none; }
.lib-empty { text-align: center; color: var(--text-mute); padding: 26px 10px; }

.adm-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.adm-row label { flex: 1; font-size: 13.5px; color: var(--text-dim); }
.adm-row input { width: 110px; }

/* ── Тосты ── */
.toasts { position: fixed; inset-block-end: 18px; inset-inline-end: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 4000; max-width: min(380px, 90vw); }
.toast { background: #121820; border: 1px solid var(--border); border-inline-start: 3px solid var(--teal); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.toast.err { border-inline-start-color: var(--red); }
.toast.warn { border-inline-start-color: var(--amber); }

/* ── SEO-текст ── */
.seo { max-width: 780px; margin: 34px auto 0; }
.seo h2 { font-size: 20px; margin: 26px 0 10px; }
.seo h3 { font-size: 15.5px; margin-bottom: 6px; }
.seo p, .seo li { color: var(--text-dim); font-size: 14.5px; margin-bottom: 10px; }
.steps { padding-inline-start: 22px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 12px 0; }
.col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.col.good { border-inline-start: 3px solid var(--green); }
.col.bad { border-inline-start: 3px solid var(--red); }
.faq .q { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; }
.faq .q summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.faq .q p { margin: 10px 0 0; }

.langnav { max-width: var(--maxw); margin: 30px auto 14px; padding: 0 18px; text-align: center; font-size: 12.5px; line-height: 2.1; opacity: .72; }
.langnav a { color: inherit; text-decoration: none; }
.langnav a:hover { color: var(--teal); }

footer { text-align: center; padding: 18px; color: var(--text-mute); font-size: 13px; }
footer p { margin-bottom: 6px; }

[hidden] { display: none !important; }

@media (max-width: 640px) {
  .wrap { padding: 0 12px 30px; }
  .card { padding: 15px; }
  .fc-thumb { width: 78px; height: 78px; }
  .tasks { grid-template-columns: 1fr; }
  .zoom-grid { grid-template-columns: 1fr; }
  .btnrow { flex-wrap: wrap; }
  .opt { flex: 1 1 calc(33% - 8px); }
  .go { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--surface) 30%); padding-top: 10px; margin: 0 -15px -15px; padding-inline: 15px; padding-bottom: 15px; }
  .toasts { inset-inline: 12px; inset-block-end: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}


/* ── Оформление и движение (2026-08-26) ── */

/* Иконки задач — контурные SVG вместо системных эмодзи: держат одну толщину
   линии, красятся текущим цветом и не зависят от шрифта ОС. */
.t-ico svg { width: 22px; height: 22px; display: block; }
.task .t-ico { color: var(--text-mute); transition: color .2s ease, transform .25s cubic-bezier(.2,.8,.3,1); }
.task:hover .t-ico { color: var(--text-dim); transform: translateY(-2px); }
.task.active .t-ico { color: var(--amber); }

/* Логотип: лёгкий отклик на наведение, чтобы шапка не была мёртвой */
.ab-logo img { transition: transform .35s cubic-bezier(.2,.8,.3,1); }
.ab-logo:hover img { transform: rotate(-4deg) scale(1.07); }

/* ── Появление блоков ── */
@keyframes pix-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pix-fade { from { opacity: 0; } to { opacity: 1; } }

.card, .verdict { animation: pix-rise .4s cubic-bezier(.22,.7,.3,1) both; }
#verdict  { animation-delay: .05s; }
#taskCard { animation-delay: .1s; }
#jobsCard, #resultCard { animation-delay: .05s; }

/* Чипы в шапке въезжают по очереди — оживляет первый экран, но не отвлекает */
.chips .chip { animation: pix-rise .45s cubic-bezier(.22,.7,.3,1) both; }
.chips .chip:nth-child(1) { animation-delay: .05s; }
.chips .chip:nth-child(2) { animation-delay: .11s; }
.chips .chip:nth-child(3) { animation-delay: .17s; }
.chips .chip:nth-child(4) { animation-delay: .23s; }
.chips .chip:nth-child(5) { animation-delay: .29s; }

/* ── Вердикт ── */
/* Точка мягко пульсирует: взгляд сам приходит к главному выводу страницы */
.v-dot { position: relative; }
.v-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0;
  animation: pix-ping 2.6s cubic-bezier(0,.2,.6,1) infinite;
}
@keyframes pix-ping {
  0%   { transform: scale(.6); opacity: .5; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Тип содержимого («графика, скриншот или рисунок») раньше висел голой
   строкой и читался как отладочный вывод — оформляем как метку. */
.v-issues {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px; font-size: 13px; color: var(--text-dim);
}

/* ── Раскрывашки: свой шеврон вместо системного треугольника ── */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details.q > summary, details.v-more > summary, details.adv > summary {
  display: flex; align-items: center; gap: 9px;
}
details.q > summary::before,
details.v-more > summary::before,
details.adv > summary::before {
  content: ''; flex: none; width: 7px; height: 7px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg); opacity: .55;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), opacity .2s;
}
details[open].q > summary::before,
details[open].v-more > summary::before,
details[open].adv > summary::before { transform: rotate(45deg); opacity: .9; }
details.q > summary:hover::before,
details.v-more > summary:hover::before,
details.adv > summary:hover::before { opacity: 1; }

details.q { transition: border-color .2s ease, background .2s ease; }
details.q:hover { border-color: var(--border-hov); }
details.q[open] > p,
details.v-more[open] > .v-metrics,
details.adv[open] > * { animation: pix-rise .26s cubic-bezier(.22,.7,.3,1) both; }

/* ── Ссылки на соседние сервисы: чипы вместо подчёркнутой строки ── */
.tool-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-links a {
  display: inline-block; padding: 7px 13px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-dim);
  font-size: 13.5px; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s, transform .18s cubic-bezier(.2,.8,.3,1);
}
.tool-links a:hover {
  border-color: var(--teal); color: var(--teal);
  background: var(--teal-soft); transform: translateY(-2px);
}

/* ── Отклик на нажатие ── */
button, .btn, .task, .mode, .chip { will-change: auto; }
.btn:active, .task:active, .mode:active, .ghost:active { transform: translateY(1px); }
.btn, .ghost, .mode, .task {
  transition: background .2s, border-color .2s, color .2s, transform .12s ease;
}

/* ── Идёт обработка ── */
/* Полоса прогресса подсвечивается бегущим бликом: видно, что процесс живой,
   даже когда проценты стоят на месте (большой тайл считается долго). */
.bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation: pix-sheen 1.5s ease-in-out infinite;
}
.bar { position: relative; overflow: hidden; }
.bar-fill { position: relative; overflow: hidden; }
@keyframes pix-sheen {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Ползунок сравнения ── */
.ba-handle { transition: box-shadow .2s, transform .15s; }
.ba-handle:hover { box-shadow: 0 0 0 6px rgba(245,158,11,.16); }
.ba-handle:active { transform: scale(1.06); }

/* Зона перетаскивания: при наведении слегка приподнимается */
.dropzone { transition: border-color .2s, background .2s, transform .2s cubic-bezier(.2,.8,.3,1); }
.dropzone:hover { transform: translateY(-2px); }

.dz-ico svg { width: 42px; height: 42px; display: block; margin: 0 auto; color: var(--text-mute); }
.dropzone:hover .dz-ico svg, .dropzone.over .dz-ico svg { color: var(--teal); }
.dz-ico svg { transition: color .2s ease; }

/* Метки замечаний под вердиктом */
.v-lbl { align-self: center; font-size: 13px; color: var(--text-mute); margin-inline-end: 2px; }
.v-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 12.5px; color: var(--text-dim); line-height: 1.5;
}
.v-chip-warn { border-color: rgba(245,158,11,.4); background: var(--amber-soft); color: #fbbf24; }


/* ── Типографика и демонстрация (2026-08-26) ── */

/* Раньше заголовки шли системным шрифтом в 800-м начертании: на Windows это
   Segoe UI Black — широкий и тяжёлый, отчего первый экран выглядел грубо.
   Inter создан для интерфейсов, у него ровный ритм и нормальная кириллица;
   вес снижен до 700, а межбуквенное сжатие переведено в em, чтобы оно
   масштабировалось вместе с кеглем. */
body { font-synthesis-weight: none; letter-spacing: -0.006em; }

.hero { padding: 20px 0 22px; }
.hero h1 {
  /* Было clamp(28px, 4.2vw, 46px) — 46 px перекрывали собой всё остальное
     на первом экране. Уменьшено до 34 px: заголовок остаётся главным, но не
     отжимает зону загрузки вниз. */
  font-size: clamp(23px, 3.1vw, 34px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.028em;
  /* Единица ch привязана к ширине нуля, а не к средней букве: при кегле 46 px
     17ch дают всего ~390 px, и длинный русский заголовок ломался на четыре
     строки узкой колонкой. Задаём предел в пикселях — тогда он держит две-три
     строки на любом из 20 языков. */
  max-width: 640px;
  margin: 0 auto;
  text-wrap: balance;              /* не оставлять одно слово на последней строке */
}
.hero-sub {
  max-width: 60ch;
  margin: 12px auto 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-dim);
  text-wrap: pretty;
}
.chips { margin-top: 16px; }

.seo h2, .faq h2 {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.seo p, .seo li { line-height: 1.65; }
.card-h { font-size: 17px; font-weight: 650; letter-spacing: -0.012em; }
.v-title { letter-spacing: -0.01em; }

/* Числа — моноширинные по ширине знака, иначе размеры «прыгают» при обновлении */
.mono, .fc-val, .v-metrics, code, kbd { font-variant-numeric: tabular-nums; }

/* ── Демонстрация на главной ── */
.demo { margin: 22px auto 0; max-width: 640px; }
.demo-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); line-height: 0;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.demo-cv { display: block; width: 100%; height: auto; }

/* Левая часть — низкое разрешение поверх полного. Обрезка ездит, а не сами
   картинки: браузер двигает только маску, перерисовки холста нет. */
.demo-cv-low {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--demo-x, 46%)) 0 0);
  animation: demo-sweep 9s cubic-bezier(.55, 0, .45, 1) infinite;
}
.demo-line {
  position: absolute; top: 0; bottom: 0; left: var(--demo-x, 46%);
  width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, var(--amber) 12%, var(--teal) 88%, transparent);
  box-shadow: 0 0 14px rgba(245, 158, 11, .55);
  animation: demo-line 9s cubic-bezier(.55, 0, .45, 1) infinite;
}
@keyframes demo-sweep {
  0%, 8%   { clip-path: inset(0 calc(100% - 20%) 0 0); }
  46%, 54% { clip-path: inset(0 calc(100% - 82%) 0 0); }
  92%, 100%{ clip-path: inset(0 calc(100% - 20%) 0 0); }
}
@keyframes demo-line {
  0%, 8%   { left: 20%; }
  46%, 54% { left: 82%; }
  92%, 100%{ left: 20%; }
}

.demo-tag {
  position: absolute; top: 10px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.5;
  letter-spacing: .01em;
  background: rgba(10, 13, 16, .72); backdrop-filter: blur(6px);
  border: 1px solid var(--border);
}
/* Стороны здесь ФИЗИЧЕСКИЕ, а не логические: clip-path режет холст всегда
   слева направо, независимо от направления письма. С inset-inline-* метки
   в арабском и фарси уехали бы на противоположные стороны от своих половин. */
.demo-tag-a { left: 10px; color: #fbbf24; }
.demo-tag-b { right: 10px; color: #5eead4; }

.demo-cap {
  margin-top: 12px; text-align: center;
  font-size: 13.5px; line-height: 1.55; color: var(--text-mute);
  max-width: 60ch; margin-inline: auto;
}

/* Без движения демонстрация остаётся понятной: граница просто стоит посередине */
@media (prefers-reduced-motion: reduce) {
  .demo-cv-low { animation: none; clip-path: inset(0 50% 0 0); }
  .demo-line { animation: none; left: 50%; }
}

@media (max-width: 560px) {
  .demo { margin-top: 20px; }
  .demo-tag { font-size: 10.5px; padding: 3px 8px; top: 8px; }
  .demo-cap { font-size: 12.5px; }
}


/* ── Первый экран на телефоне (2026-08-26) ── */
@media (max-width: 560px) {
  .appbar { padding: 9px 12px 2px; gap: 8px; }
  .ab-left, .ab-right { gap: 8px; }
  .ab-logo img { width: 34px; height: 34px; }
  .ab-logo { gap: 8px; }
  .ab-name { font-size: 18px; }
  .ab-projects { display: none; }   /* ссылка живёт и в футере */

  .hero { padding: 12px 0 14px; }
  .hero h1 { font-size: clamp(21px, 6.2vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
  .hero-sub { font-size: 14px; line-height: 1.5; margin-top: 9px; }
  .chips { margin-top: 11px; gap: 6px; }
  .chip { font-size: 11.5px; padding: 4px 9px; }

  /* Эти два чипа дословно дублируют подсказку внутри зоны загрузки,
     которая находится прямо под ними. На узком экране они занимали
     отдельный ряд ради уже сказанного. */
  .chips .chip:nth-child(3), .chips .chip:nth-child(4) { display: none; }

  .dropzone { padding: 22px 14px; }
  .dz-ico svg { width: 34px; height: 34px; }
  .dz-title { margin-top: 8px; font-size: 15px; }
  .dz-hint { margin-top: 5px; font-size: 12px; }
}
