/* Палитра — из заставки PROSHKA (electron-main.js, createSplashWindow): графит, светлые чернила, латунь.
   Скобы по углам плашки и размерные линии под QR — «чертёжные» детали.
   Лендинг: экран 1 — каналы (как было), ниже — «Что умеет PROSHKA». Правки к прежнему файлу помечены «лендинг». */
:root {
  --bg: #1A1C1F; --fg: #E6E8EA; --muted: #A9AFB6; --faint: #8A9099;
  --brass: #E8B24E; --brass-hover: #F0C46C; --brass-line: rgba(232,178,78,.4);
  --plate: #222428; --plate-edge: rgba(232,178,78,.28); --btn-ink: #1A1C1F; --off-edge: #3A3E44;
  --line: #34373D; --hdr: 64px;
  --f-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
/* лендинг: плавная прокрутка к разделам; запас сверху под плавающую панель разделов */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  color: var(--fg);
  background: var(--bg) radial-gradient(60% 55% at 50% 40%, rgba(232,178,78,.07), transparent 70%);
  font-family: var(--f-sans);
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

/* ───────── экран 1: каналы ───────── */
/* лендинг: экран на всю высоту (svh — без прыжков из-за адресной строки телефона) */
.hero { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 0 16px; }
.top, .center, .foot, .more { position: relative; z-index: 1; }

.top { display: flex; align-items: center; gap: 10px; height: 56px; font-size: 15px; }
.top .brand { font-weight: 600; }
.top .dim { font-weight: 400; color: var(--faint); }

.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0 8px; }
h1 { margin: 0; font-weight: 400; font-size: clamp(26px, 4vw, 44px); letter-spacing: -.005em; line-height: 1.15; }
.accent { color: var(--brass); }
/* Вордмарк как в заставке PROSHKA: квадратный техно-моно, тяжёлый вес, широкая разрядка */
.wm { font-family: "Cascadia Mono", Consolas, "Lucida Console", ui-monospace, monospace; font-weight: 700; letter-spacing: .08em; }
.sub { margin: 10px 0 28px; font-size: clamp(14px, 1.4vw, 18px); color: var(--muted); }

.plate {
  position: relative;
  width: 100%; max-width: 560px; padding: 22px; display: flex; gap: 28px;
  background: var(--plate); border: 1px solid var(--plate-edge);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
/* Уголки-скобы, как на чертеже */
.plate::before, .plate::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--brass); pointer-events: none;
}
.plate::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.plate::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.channel { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.qrlink { display: block; width: 100%; max-width: 200px; }
.qr { display: block; width: 100%; max-width: 200px; height: auto; border-radius: 4px; }
/* Размерная линия под QR: декор, скринридеру не нужна (aria-hidden в разметке) */
.dim-line {
  margin-top: 6px; width: 100%; max-width: 200px; display: flex; align-items: center; gap: 6px;
  font: 500 10px/1 var(--f-mono); color: var(--faint);
}
.dim-line::before, .dim-line::after { content: ""; flex: 1; height: 1px; background: var(--brass-line); }
.name { margin-top: 10px; font-weight: 600; font-size: 16px; }
.btn {
  margin-top: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; border-radius: 6px; border: 1px solid transparent;
  background: var(--brass); color: var(--btn-ink);
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease;
}
.btn:hover { background: var(--brass-hover); }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover {
  background: transparent; color: var(--faint); border-color: var(--off-edge); cursor: default;
}

.foot { padding: 14px 0 6px; text-align: center; font: 500 12px/1.5 var(--f-mono); color: var(--faint); }
.hint-touch { display: none; }

/* лендинг: приглашение прокрутить вниз */
.more { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); text-decoration: none; font-size: 15px; color: var(--fg); }
.more b { color: var(--brass); font-size: .95em; }
.more:hover { color: var(--brass); }
.chev { color: var(--brass); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ───────── плавающая панель разделов (появляется, когда экран 1 уехал вверх) ───────── */
.snav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--hdr); padding-top: env(safe-area-inset-top);
  background: rgba(26,28,31,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transform: translateY(-110%); transition: transform .25s ease; }
.snav.show { transform: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.snav .wrap { height: 100%; display: flex; align-items: center; gap: 14px; }
.sbrand { position: relative; flex: none; font-size: 14px; color: var(--brass); text-decoration: none; }
.sbrand::after { content: ""; position: absolute; inset: -14px -6px; }
.chips { position: relative; flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 28px 4px 14px; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid transparent; border-radius: 999px; padding: 0 14px; transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: var(--fg); border-color: var(--line); }
.chip.on { background: var(--brass); color: var(--bg); border-color: var(--brass); font-weight: 600; }
.chip.soon { border-style: dashed; border-color: var(--line); }
.chip.soon.on { border-style: solid; }
.tochan { flex: none; min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; background: var(--plate); }
.tochan:hover { border-color: var(--brass); color: var(--brass); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); }

/* ───────── «Что умеет PROSHKA» ───────── */
.rest { position: relative; z-index: 1; background: var(--bg); }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.intro { padding-block: 72px 56px; }
.intro h2, .soonbox h2 { font-weight: 600; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -.01em; margin: 14px 0 0; text-wrap: balance; }
.lead { color: var(--muted); font-size: 18px; max-width: 56ch; margin: 16px 0 0; line-height: 1.6; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.tile { display: grid; gap: 8px; align-content: start; min-height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--plate); text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--brass); transform: translateY(-2px); }
.tile .n { font: 500 12px/1 var(--f-mono); color: var(--brass); letter-spacing: .1em; }
.tile .t { font-weight: 600; font-size: 16px; line-height: 1.25; }
.tile .arr { color: var(--muted); font-size: 13px; }
.tile.soon { background: none; border-style: dashed; }
.tile.soon .n { color: var(--faint); }

/* возможность: ролик + текст */
.feat { border-top: 1px solid var(--line); padding-block: 72px; min-height: calc(100vh - var(--hdr)); display: flex; align-items: center; }
.feat .wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.feat.alt .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
.feat.alt .frame { order: 2; }
.frame { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 80px -30px rgba(0,0,0,.75), 0 0 0 1px var(--line); background: #EDEEF0; }
.frame video, .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame video { cursor: pointer; }
/* кнопка паузы ролика: видна всегда (и на телефоне), доступна с клавиатуры */
.vctl { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(26,28,31,.78); color: var(--fg); cursor: pointer; padding: 0; transition: background-color .18s, border-color .18s; }
.vctl:hover { border-color: var(--brass); color: var(--brass); }
.vctl .i-play, .vctl.is-paused .i-pause { display: none; }
.vctl.is-paused .i-play { display: block; }
.text { display: grid; gap: 14px; align-content: center; min-width: 0; }
.count { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--faint); }
.count b { color: var(--brass); font-weight: 500; }
.badge { font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: var(--brass); color: var(--bg); padding: 4px 7px; border-radius: 4px; }
.copy { position: relative; margin-left: auto; min-height: 32px; font: 500 12px/1 var(--f-mono); color: var(--faint); background: none; border: 0; padding: 0 6px; cursor: pointer; border-radius: 4px; }
.copy::after, .next::after { content: ""; position: absolute; inset: -6px -4px; } /* зона нажатия ≥44 px без изменения вида */
.copy:hover { color: var(--brass); }
.text h3 { font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; margin: 0; text-wrap: balance; }
.text p { margin: 0; color: #C9CDD2; font-size: 18px; max-width: 42ch; line-height: 1.6; }
.text ul { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.text li { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 8px; }
.text li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); margin-top: .62em; }
.next { position: relative; justify-self: start; margin-top: 10px; padding-block: 10px 6px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line); }
.next:hover { color: var(--brass); border-color: var(--brass); }

/* скоро */
.soonbox { border-top: 1px solid var(--line); padding-block: 72px 80px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.card { border: 1px dashed var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.card .ph { aspect-ratio: 4 / 3; border-radius: 8px; background: repeating-linear-gradient(45deg, #202226 0 10px, #1D1F23 10px 20px); display: grid; place-items: center; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--faint); }
.card h4 { margin: 0; font-weight: 600; font-size: 20px; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.endfoot { border-top: 1px solid var(--line); padding-block: 36px calc(48px + env(safe-area-inset-bottom)); }
.endfoot .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; }
.endfoot p { margin: 0; color: var(--muted); max-width: 52ch; }
.endfoot .btn { margin: 0; padding-inline: 22px; font-size: 14px; }

.totop { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 9; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--plate); color: var(--fg); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { border-color: var(--brass); color: var(--brass); }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--plate); border: 1px solid var(--brass); padding: 10px 16px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── «Попробуйте сами»: демо в браузере ───────── */
.trywrap { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
/* главная кнопка страницы: сплошная латунь, крупнее кнопок каналов, чтобы было видно, что на неё нажимают */
.trylink { position: relative; min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 26px 0 22px;
  border-radius: 8px; border: 0; background: var(--brass); color: var(--btn-ink); text-decoration: none;
  font-size: 17px; font-weight: 700; line-height: 1.2; text-align: left;
  box-shadow: 0 12px 34px rgba(232,178,78,.30), 0 2px 0 rgba(0,0,0,.25);
  transition: background-color .18s, transform .18s, box-shadow .18s; }
.trylink b { font-size: .94em; font-weight: 700; }
.trylink svg { flex: none; }
.trylink .go { transition: transform .18s; }
.trylink:hover { background: var(--brass-hover); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(232,178,78,.38), 0 2px 0 rgba(0,0,0,.25); }
.trylink:hover .go { transform: translateX(4px); }
.trylink:active { transform: translateY(0); }
.trynote { font-size: 13px; color: var(--muted); }

.try { padding-block: 72px 24px; }
.try h2 { font-weight: 600; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -.01em; margin: 14px 0 0; text-wrap: balance; }
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.demo { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--plate); text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s; }
.demo:hover { border-color: var(--brass); transform: translateY(-3px); box-shadow: 0 24px 60px -24px rgba(0,0,0,.7); }
.shot { display: block; aspect-ratio: 4 / 3; background: #EDEEF0; overflow: hidden; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.demo:hover .shot img { transform: scale(1.025); }
.dbody { display: grid; gap: 8px; padding: 18px 20px 22px; justify-items: start; }
.dt { font-weight: 600; font-size: 22px; line-height: 1.2; }
.dd { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 48ch; }
.demo .btn { margin-top: 10px; }
.demo:hover .btn { background: var(--brass-hover); }
.tryfacts { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; font: 500 14px/1.5 var(--f-mono); color: var(--muted); }
.tryfacts li { display: flex; align-items: center; gap: 8px; }
.tryfacts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); flex: none; }
.chip.chip-try { border-color: var(--brass-line); color: var(--brass); }
.chip.chip-try.on { color: var(--bg); }
.intro { padding-top: 56px; }

/* ───────── планшет ───────── */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat { min-height: 0; padding-block: 48px; }
  .feat .wrap, .feat.alt .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
  .feat.alt .frame { order: 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .intro { padding-block: 56px 40px; }
  .try { padding-block: 56px 16px; }
  .demos { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── телефон ───────── */
@media (max-width: 640px) {
  :root { --hdr: 56px; }
  /* QR остаются, но в один ряд и меньше, чтобы весь экран 1 помещался без прокрутки */
  .plate { gap: 14px; padding: 14px; }
  .qrlink, .qr, .dim-line { max-width: 150px; }
  .name { margin-top: 8px; font-size: 15px; }
  .btn .long { display: none; }
  .btn { width: 100%; max-width: 150px; }
  .sub { margin-bottom: 20px; }
  .sbrand { display: none; }
  .tc-t { display: none; }
  .tochan { padding: 0 14px; }
  .intro { padding-block: 44px 32px; }
  .try { padding-block: 44px 8px; }
  .demos { gap: 14px; margin-top: 28px; }
  .dbody { padding: 16px; }
  .dt { font-size: 20px; }
  .demo .btn { width: 100%; max-width: none; }
  .trywrap { margin-top: 20px; }
  .trylink { width: 100%; max-width: 420px; min-height: 54px; font-size: 16px; padding: 0 18px; }
  .lead, .text p { font-size: 16px; }
  .tiles { gap: 10px; margin-top: 28px; }
  .tile { padding: 14px; min-height: 88px; }
  .tile .t { font-size: 15px; }
  .feat { padding-block: 36px; }
  .soonbox { padding-block: 48px 56px; }
  .totop { right: 12px; }
  .endfoot .btn { width: 100%; max-width: none; }
}
/* на сенсорных экранах «наведите камеру» бессмысленно: телефон не может отсканировать сам себя */
@media (hover: none) and (pointer: coarse) {
  .hint-pc { display: none; }
  .hint-touch { display: inline; }
}
/* ландшафт телефона: высоты мало, экран 1 не растягиваем */
@media (max-height: 520px) { .hero { min-height: 0; } .feat { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile, .snav, .demo, .shot img, .trylink, .vctl { transition: none; } .chev { animation: none; } }
