/* Шрифты сайта (SIL OFL), скачаны site/tools/fetch_fonts.py с Google Fonts. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/inter-400-900-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/inter-400-900-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/inter-400-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/inter-400-900-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-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;
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/orbitron-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;
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(fonts/orbitron-900-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: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/rajdhani-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/rajdhani-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: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/rajdhani-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/rajdhani-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: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/rajdhani-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/rajdhani-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;
}
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/share-tech-mono-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;
}

/* PRIVOX PTT — интерфейс приложения (рация T320, телефон, пульт диспетчера) в HTML.
   Общий файл для сайта demo.privox.tech и демо-ролика (video/02-product-demo). Цвета и шрифты сняты с приложения
   ptt.privox.tech/app (тема ptt-*: #0a0c0a, #111411, #161c16, #284028, #3ddc84, #4a9eff, #ff4444, #ffb800) и со
   скриншотов Photos/Service Interface. Экраны масштабируются единицей --u (доля ширины экрана, container query units). */

:root {
  --ptt-dark: #0a0c0a; --ptt-panel: #111411; --ptt-card: #161c16; --ptt-line: #1b261b; --ptt-border: #284028;
  --ptt-green: #3ddc84; --ptt-blue: #4a9eff; --ptt-red: #ff4444; --ptt-amber: #ffb800;
  --ptt-muted: #5f7a5f; --ptt-text: #afc4af; --ptt-soft: #c9d6c9; --ptt-white: #e8efe8; --ptt-faint: #4f604f;
  --ptt-mono: "Share Tech Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ptt-sans: "Rajdhani", "Inter", system-ui, sans-serif;
  --ptt-text-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ptt-logo: "Orbitron", "Rajdhani", sans-serif;
}

/* ============================================================ рация Inrico T320 (картинка + живой экран) */
/* Кадрирование: --x0..--x1, --y0..--y1 — доли исходной картинки (720×1637), которые видно в рамке. */
.t320 { --x0: 0; --x1: 1; --y0: 0; --y1: 1; --ar: 2.27361; position: relative; flex: none; overflow: hidden;
  aspect-ratio: calc((var(--x1) - var(--x0)) / ((var(--y1) - var(--y0)) * var(--ar))); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.t320.fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 99%); mask-image: linear-gradient(to bottom, #000 82%, transparent 99%); }
.t320-body { position: absolute; left: calc(-100% * var(--x0) / (var(--x1) - var(--x0))); top: 0;
  margin-top: calc(-100% * var(--y0) * var(--ar) / (var(--x1) - var(--x0)));
  width: calc(100% / (var(--x1) - var(--x0))); aspect-ratio: calc(1 / var(--ar)); }
.t320-img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.t320-screen { position: absolute; left: 23.301%; top: 28.382%; width: 53.937%; height: 31.039%; overflow: hidden;
  container-type: size; background: var(--ptt-dark); border-radius: 1px; }
.t320-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 30;
  background: linear-gradient(125deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 32%, transparent 33%); }
.t320-key { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 10px;
  -webkit-tap-highlight-color: transparent; touch-action: none; }
.t320-key:focus-visible { outline: 2px solid var(--ptt-green); outline-offset: 1px; }
.t320-key.pressed, .t320-key:active { background: rgba(255, 255, 255, .10); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); }
.t320-key.k-ptt { border-radius: 8px; }
/* зона клика PTT шире клавиши (легко попасть), а светится только сама клавиша */
.t320-key.k-ptt.pressed, .t320-key.k-ptt:active { background: transparent; box-shadow: none; }
.t320-key.k-ptt::after { content: ""; position: absolute; inset: 5% 26%; border-radius: 999px; opacity: 0; pointer-events: none;
  background: rgba(255, 150, 60, .38); box-shadow: 0 0 8px 1px rgba(255, 140, 40, .55); transition: opacity .15s ease; }
.m-t320 .t320-key.k-ptt::after { left: 33%; right: 27%; top: 6%; bottom: 8%; }
.t320-key.k-ptt.pressed::after, .t320.is-tx .t320-key.k-ptt::after { opacity: 1; }
.t320-key.hint { animation: keyhint 1.6s ease-in-out infinite; }
.t320-key.k-ptt.hint { animation: none; }
.t320-key.k-ptt.hint::after { animation: ptthint 1.6s ease-in-out infinite; }
@keyframes ptthint { 0%, 100% { opacity: 0; } 50% { opacity: .9; background: rgba(61, 220, 132, .35); box-shadow: 0 0 8px 1px rgba(61, 220, 132, .6); } }
@keyframes keyhint { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } 50% { box-shadow: 0 0 0 4px rgba(61, 220, 132, .55), 0 0 22px rgba(61, 220, 132, .5); } }
.t320-led { position: absolute; left: 53.6%; top: 19.55%; width: 1.4%; aspect-ratio: 1; border-radius: 50%; background: transparent; transition: background .15s, box-shadow .15s; }
.t320.is-tx .t320-led { background: #ff3b30; box-shadow: 0 0 8px #ff3b30; }
.t320.is-rx .t320-led { background: #30d158; box-shadow: 0 0 8px #30d158; }

/* ---------------------------------------------------------------- экран рации: 240×320 виртуальных точек */
.rv, .pv { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: viewin .2s ease-out; }
.cui [data-k] { animation: viewin .2s ease-out; }
.cui .msg[data-k], .cui .cl-row[data-k], .cui .p-date[data-k] { animation: none; }
.cui .msg[data-k] { animation: msgin .25s ease-out; }
@keyframes viewin { from { opacity: 0; } to { opacity: 1; } }
.rui { --u: calc(100cqw / 240); position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--ptt-dark); color: var(--ptt-white); font: 400 calc(9 * var(--u)) / 1.2 var(--ptt-mono); -webkit-font-smoothing: antialiased; }
.rui svg { display: block; flex: none; }
.rui .caps, .pui .caps, .cui .caps { text-transform: uppercase; letter-spacing: .16em; }
.r-hd { flex: none; height: calc(26 * var(--u)); display: flex; align-items: center; gap: calc(5 * var(--u)); padding: 0 calc(8 * var(--u));
  background: var(--ptt-panel); border-bottom: 1px solid var(--ptt-border); }
.dot { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: var(--ptt-green); box-shadow: 0 0 calc(5 * var(--u)) var(--ptt-green); flex: none; }
.r-me { color: var(--ptt-green); font-size: calc(10.5 * var(--u)); letter-spacing: .16em; }
.r-net { margin-left: auto; display: flex; align-items: center; gap: calc(3 * var(--u)); color: var(--ptt-text); font-size: calc(8 * var(--u)); letter-spacing: .12em; }
.r-net svg { width: calc(10 * var(--u)); height: calc(8 * var(--u)); }
.r-spk { width: calc(11 * var(--u)); height: calc(11 * var(--u)); color: var(--ptt-text); margin-left: calc(4 * var(--u)); }
.r-ch { flex: none; height: calc(36 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u)); padding: 0 calc(8 * var(--u));
  background: var(--ptt-card); border-bottom: 1px solid var(--ptt-border); }
.chdot { width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; flex: none; background: var(--ptt-green); }
.c-red { background: var(--ptt-red) !important; } .c-amber { background: var(--ptt-amber) !important; }
.c-green { background: var(--ptt-green) !important; } .c-blue { background: var(--ptt-blue) !important; }
.r-chname { font: 700 calc(12.5 * var(--u)) / 1.05 var(--ptt-sans); color: #fff; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-chmeta { font-size: calc(8 * var(--u)); color: var(--ptt-soft); margin-top: calc(2 * var(--u)); white-space: nowrap; }
.r-chev { margin-left: auto; width: calc(11 * var(--u)); height: calc(11 * var(--u)); color: var(--ptt-text); }
.r-st, .p-st { transition: background-color .3s ease, color .3s ease; }
.r-st { flex: none; height: calc(20 * var(--u)); display: flex; align-items: center; gap: calc(5 * var(--u)); padding: 0 calc(8 * var(--u));
  border-bottom: 1px solid var(--ptt-line); font-size: calc(8 * var(--u)); color: var(--ptt-muted); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.r-st.rx { background: #0c1522; color: var(--ptt-blue); }
.r-st.tx { background: #0f1f15; color: var(--ptt-green); }
.r-st.al { background: #2a1607; color: var(--ptt-amber); }
.r-st .dot.b { background: var(--ptt-blue); box-shadow: 0 0 calc(5 * var(--u)) var(--ptt-blue); }
.r-st .dot.a { background: var(--ptt-amber); box-shadow: 0 0 calc(5 * var(--u)) var(--ptt-amber); }
.r-main { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(8 * var(--u)); }
.ring { --d: calc(92 * var(--u)); position: relative; width: var(--d); height: var(--d); border-radius: 50%; border: calc(3 * var(--u)) solid var(--ptt-green);
  display: flex; align-items: center; justify-content: center; background: var(--ptt-card);
  transition: background-color .28s ease, box-shadow .35s ease, border-color .28s ease, color .28s ease, transform .18s ease;
  padding: 0; color: var(--ptt-green); cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; font: inherit; }
.ring svg { width: 34%; height: 34%; }
.ring .ri { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .2, 1); }
.ring .ri.w { opacity: 0; transform: scale(.7); }
.ring.rx .ri.w { opacity: 1; transform: none; }
.ring.rx .ri.m { opacity: 0; transform: scale(.7); }
.ring:active { transform: scale(.97); }
.ring.rx { border-color: var(--ptt-blue); background: rgba(74, 158, 255, .14); color: var(--ptt-blue);
  box-shadow: 0 0 0 calc(5 * var(--u)) rgba(74, 158, 255, .10), 0 0 calc(22 * var(--u)) rgba(74, 158, 255, .45); }
.ring.tx { background: var(--ptt-green); color: var(--ptt-dark); box-shadow: 0 0 0 calc(5 * var(--u)) rgba(61, 220, 132, .14), 0 0 calc(24 * var(--u)) rgba(61, 220, 132, .55); }
.ring.busy { border-color: var(--ptt-muted); color: var(--ptt-muted); }
.ring:focus-visible { outline: 2px solid var(--ptt-white); outline-offset: 3px; }
.ring .wave { width: 52%; height: 34%; }
.wave i { transform-origin: center; animation: bar .9s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -.3s; } .wave i:nth-child(3n) { animation-delay: -.55s; } .wave i:nth-child(5n) { animation-delay: -.15s; }
@keyframes bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.wave { display: flex; align-items: center; justify-content: center; gap: 8%; }
.wave i { display: block; width: 7%; height: 100%; border-radius: 99px; background: currentColor; }
.ring.tx::after, .ring.rx::after { content: ""; position: absolute; inset: calc(-3 * var(--u)); border-radius: 50%; border: calc(2 * var(--u)) solid currentColor; opacity: 0; animation: ripple 1.4s ease-out infinite; }
.ring.tx::after { border-color: var(--ptt-green); }
@keyframes ripple { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.35); opacity: 0; } }
.r-lbl { font-size: calc(8 * var(--u)); letter-spacing: .2em; color: var(--ptt-soft); text-transform: uppercase; white-space: nowrap; }
.r-lbl.rx { color: var(--ptt-blue); } .r-lbl.tx { color: var(--ptt-green); }
.r-btns { flex: none; display: flex; gap: calc(5 * var(--u)); padding: 0 calc(7 * var(--u)) calc(7 * var(--u)); }
.pbtn { flex: 1; height: calc(24 * var(--u)); border: 1px solid; border-radius: calc(3 * var(--u)); display: flex; align-items: center; justify-content: center;
  gap: calc(3 * var(--u)); font: 400 calc(7 * var(--u)) / 1 var(--ptt-mono); letter-spacing: .14em; text-transform: uppercase; background: transparent; padding: 0; cursor: pointer; white-space: nowrap; }
.pbtn svg { width: calc(9 * var(--u)); height: calc(9 * var(--u)); }
.pbtn.alert { border-color: #2a5585; color: var(--ptt-blue); }
.pbtn.sos { border-color: #852827; color: var(--ptt-red); flex: .8; }
.pbtn.arr { border-color: #237447; color: var(--ptt-green); }
.pbtn:focus-visible { outline: 2px solid var(--ptt-white); outline-offset: 1px; }
.pbtn:active { filter: brightness(1.5); }
.r-subs { flex: none; background: var(--ptt-panel); border-top: 1px solid var(--ptt-border); }
.r-sub { height: calc(22 * var(--u)); display: flex; align-items: center; gap: calc(7 * var(--u)); padding: 0 calc(8 * var(--u)); font-size: calc(9 * var(--u));
  letter-spacing: .14em; border-bottom: 1px solid var(--ptt-line); text-transform: uppercase; white-space: nowrap; }
.r-sub.sel { background: #14231a; }
.r-sub .d { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; flex: none; }
.r-sub .ic { margin-left: auto; width: calc(10 * var(--u)); height: calc(10 * var(--u)); }

/* список групп (как на экране рации в презентации) */
.r-act { flex: none; display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(6 * var(--u)) calc(8 * var(--u)); background: var(--ptt-card); border-bottom: 1px solid var(--ptt-green); }
.r-act .chdot { width: calc(13 * var(--u)); height: calc(13 * var(--u)); box-shadow: 0 0 0 calc(2 * var(--u)) #1c1f1c; }
.r-act small { display: block; font-size: calc(7 * var(--u)); color: var(--ptt-green); letter-spacing: .24em; text-transform: uppercase; }
.r-act b { display: block; font: 700 calc(13 * var(--u)) / 1.1 var(--ptt-sans); color: #fff; white-space: nowrap; }
.r-sec { flex: none; padding: calc(4 * var(--u)) calc(8 * var(--u)); font-size: calc(7.5 * var(--u)); letter-spacing: .22em; color: var(--ptt-muted); text-transform: uppercase; border-bottom: 1px solid var(--ptt-line); }
.r-list { flex: 1; min-height: 0; overflow: hidden; }
.r-gi { display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(7 * var(--u)) calc(8 * var(--u)); border-bottom: 1px solid var(--ptt-line); }
.r-gi .chdot { width: calc(8 * var(--u)); height: calc(8 * var(--u)); }
.r-gi b { display: block; font: 700 calc(12 * var(--u)) / 1.1 var(--ptt-sans); color: #fff; }
.r-gi small { font-size: calc(7.5 * var(--u)); color: var(--ptt-text); letter-spacing: .06em; }
.r-gi.on { background: #13301f; } .r-gi.on b { color: var(--ptt-green); }
.r-gi.cur { box-shadow: inset calc(2 * var(--u)) 0 0 var(--ptt-green); }
.r-gi .ck { margin-left: auto; width: calc(11 * var(--u)); height: calc(11 * var(--u)); color: var(--ptt-green); }
.r-foot { flex: none; height: calc(30 * var(--u)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(10 * var(--u));
  border-top: 1px solid var(--ptt-border); background: var(--ptt-panel); font-size: calc(8 * var(--u)); color: var(--ptt-muted); letter-spacing: .12em; text-transform: uppercase; }
.r-foot svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }

/* личный вызов на рации */
.r-call { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(6 * var(--u)); text-align: center; }
.r-call small { font-size: calc(7.5 * var(--u)); letter-spacing: .24em; color: var(--ptt-green); text-transform: uppercase; }
.r-call b { font: 700 calc(19 * var(--u)) / 1 var(--ptt-sans); letter-spacing: .06em; }
.r-call span { font-size: calc(8 * var(--u)); color: var(--ptt-text); }
.r-call .ring { --d: calc(66 * var(--u)); }
.r-call .ring.ringing { animation: ringpulse 1.2s ease-in-out infinite; }
@keyframes ringpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .0); } 50% { box-shadow: 0 0 0 calc(7 * var(--u)) rgba(61, 220, 132, .18); } }
.r-call .st { font-size: calc(8.5 * var(--u)); letter-spacing: .2em; color: var(--ptt-soft); text-transform: uppercase; }
.r-keys { flex: none; display: flex; justify-content: space-between; padding: calc(5 * var(--u)) calc(10 * var(--u)); border-top: 1px solid var(--ptt-border);
  background: var(--ptt-panel); font-size: calc(7.5 * var(--u)); letter-spacing: .14em; text-transform: uppercase; color: var(--ptt-muted); }
.r-keys .g { color: var(--ptt-green); } .r-keys .r { color: var(--ptt-red); }

/* оверлеи: тревога группы, SOS */
.ov { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: calc(6 * var(--u)); padding: calc(10 * var(--u)); }
.ov.alert { background: rgba(8, 16, 30, .96); color: var(--ptt-blue); }
.ov.sos { background: #2b0b0b; color: #ffd0d0; animation: sosbg 1s steps(2) infinite; }
@keyframes sosbg { 0% { background: #2b0b0b; } 50% { background: #4a0f0f; } }
.ov b { font: 700 calc(22 * var(--u)) / 1 var(--ptt-sans); letter-spacing: .1em; color: #fff; }
.ov small { font-size: calc(7.5 * var(--u)); letter-spacing: .22em; text-transform: uppercase; }
.ov .big { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.ov.alert .big { animation: shake .5s ease-in-out infinite; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* ============================================================ телефон */
.dev-phone { --pw: 300px; position: relative; flex: none; width: var(--pw); aspect-ratio: 390 / 844; padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .155); background: linear-gradient(145deg, #2a2f35, #0e1114 40%, #1b1f24);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 calc(var(--pw) * .008) #06080a; user-select: none; -webkit-user-select: none; }
.dev-phone::before, .dev-phone::after { content: ""; position: absolute; width: calc(var(--pw) * .012); border-radius: 2px; background: #22272d; }
.dev-phone::before { left: calc(var(--pw) * -.01); top: 22%; height: 7%; box-shadow: 0 calc(var(--pw) * .16) 0 #22272d; }
.dev-phone::after { right: calc(var(--pw) * -.01); top: 27%; height: 11%; }
.ph-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * .125); background: var(--ptt-dark); container-type: size; }
.ph-island { position: absolute; z-index: 40; left: 50%; top: 1.3%; width: 30%; height: 3.5%; transform: translateX(-50%); background: #000; border-radius: 99px; }
.ph-home { position: absolute; z-index: 40; left: 50%; bottom: .9%; width: 34%; height: .55%; transform: translateX(-50%); background: rgba(255, 255, 255, .55); border-radius: 99px; }

/* экран телефона: 390 виртуальных точек по ширине */
.pui { --u: calc(100cqw / 390); position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--ptt-dark); color: var(--ptt-white);
  font: 400 calc(13 * var(--u)) / 1.25 var(--ptt-mono); -webkit-font-smoothing: antialiased; }
.pui svg { display: block; flex: none; }
.p-sb { flex: none; height: calc(50 * var(--u)); display: flex; align-items: center; justify-content: space-between; padding: calc(8 * var(--u)) calc(30 * var(--u)) 0 calc(36 * var(--u));
  font: 600 calc(15 * var(--u)) / 1 var(--ptt-text-font); color: #fff; letter-spacing: 0; }
.p-sb .ico { display: flex; gap: calc(6 * var(--u)); align-items: center; }
.p-sb .ico svg { height: calc(12 * var(--u)); width: auto; }
.p-hd { flex: none; height: calc(46 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u)); padding: 0 calc(14 * var(--u));
  background: var(--ptt-panel); border-bottom: 1px solid var(--ptt-border); }
.p-hd .dot { width: calc(8 * var(--u)); height: calc(8 * var(--u)); }
.p-me { color: var(--ptt-green); font-size: calc(14.5 * var(--u)); letter-spacing: .18em; }
.p-net { display: flex; align-items: center; gap: calc(4 * var(--u)); color: var(--ptt-soft); font-size: calc(11 * var(--u)); letter-spacing: .12em; margin-left: calc(6 * var(--u)); }
.p-net svg { width: calc(13 * var(--u)); height: calc(10 * var(--u)); }
.p-tools { margin-left: auto; display: flex; align-items: center; gap: calc(9 * var(--u)); }
.p-chat { position: relative; display: flex; align-items: center; gap: calc(5 * var(--u)); height: calc(28 * var(--u)); padding: 0 calc(9 * var(--u));
  border: 1px solid rgba(255, 184, 0, .55); border-radius: calc(4 * var(--u)); color: var(--ptt-amber); background: rgba(255, 184, 0, .06);
  font: 400 calc(10.5 * var(--u)) / 1 var(--ptt-mono); letter-spacing: .14em; cursor: pointer; }
.p-chat svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.p-chat.none { border-color: rgba(74, 158, 255, .5); color: var(--ptt-blue); background: rgba(74, 158, 255, .06); }
.p-badge { position: absolute; right: calc(-8 * var(--u)); top: calc(-10 * var(--u)); min-width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: 99px;
  background: #b3302d; color: #fff; font: 600 calc(10 * var(--u)) / calc(18 * var(--u)) var(--ptt-text-font); text-align: center; letter-spacing: 0; padding: 0 calc(4 * var(--u)); }
.p-ic { width: calc(19 * var(--u)); height: calc(19 * var(--u)); color: var(--ptt-text); padding: 0; border: 0; background: none; cursor: pointer; }
.p-ic.blue { color: var(--ptt-blue); }
.p-ch { flex: none; height: calc(58 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); padding: 0 calc(16 * var(--u));
  background: var(--ptt-card); border-bottom: 1px solid var(--ptt-border); cursor: pointer; }
.p-ch .chdot { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.p-chname { font: 700 calc(16 * var(--u)) / 1.05 var(--ptt-sans); color: #fff; letter-spacing: .03em; }
.p-chmeta { font-size: calc(11 * var(--u)); color: var(--ptt-soft); margin-top: calc(3 * var(--u)); letter-spacing: .04em; }
.p-ch .r-chev { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.p-st { flex: none; height: calc(46 * var(--u)); display: flex; align-items: center; gap: calc(7 * var(--u)); padding: 0 calc(16 * var(--u));
  border-bottom: 1px solid var(--ptt-line); font-size: calc(11 * var(--u)); letter-spacing: .2em; color: var(--ptt-muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.p-st.rx { background: #0c1522; color: var(--ptt-blue); }
.p-st.tx { background: #0f1f15; color: var(--ptt-green); }
.p-st.al { background: #2a1607; color: var(--ptt-amber); }
.p-st .dot { width: calc(7 * var(--u)); height: calc(7 * var(--u)); }
.p-st .dot.b { background: var(--ptt-blue); box-shadow: 0 0 calc(6 * var(--u)) var(--ptt-blue); }
.p-st .dot.a { background: var(--ptt-amber); box-shadow: 0 0 calc(6 * var(--u)) var(--ptt-amber); }
.p-main { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(14 * var(--u)); padding: calc(6 * var(--u)) 0; }
.p-main .ring { --d: calc(158 * var(--u)); }
.p-lbl { font-size: calc(12 * var(--u)); letter-spacing: .22em; color: var(--ptt-soft); text-transform: uppercase; text-align: center; }
.p-lbl small { display: block; margin-top: calc(7 * var(--u)); font-size: calc(10.5 * var(--u)); letter-spacing: .1em; color: var(--ptt-faint); text-transform: none; }
.p-lbl.rx { color: var(--ptt-blue); } .p-lbl.tx { color: var(--ptt-green); }
.p-btns { flex: none; display: flex; gap: calc(9 * var(--u)); padding: 0 calc(14 * var(--u)) calc(14 * var(--u)); }
.p-btns .pbtn { height: calc(36 * var(--u)); font-size: calc(10 * var(--u)); gap: calc(6 * var(--u)); border-radius: calc(4 * var(--u)); }
.p-btns .pbtn svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.p-subs { flex: none; background: var(--ptt-panel); border-top: 1px solid var(--ptt-border); }
.p-subh { height: calc(34 * var(--u)); display: flex; align-items: center; gap: calc(9 * var(--u)); padding: 0 calc(16 * var(--u)); border-bottom: 1px solid var(--ptt-line);
  font-size: calc(10.5 * var(--u)); letter-spacing: .22em; color: var(--ptt-soft); text-transform: uppercase; }
.p-subh svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: var(--ptt-muted); }
.p-subh .n { margin-left: auto; color: var(--ptt-green); letter-spacing: .12em; }
.p-sub { height: calc(38 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); padding: 0 calc(16 * var(--u)); border-bottom: 1px solid var(--ptt-line);
  font-size: calc(12.5 * var(--u)); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.p-sub .d { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; flex: none; }
.p-sub .un { margin-left: auto; min-width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: var(--ptt-green); color: var(--ptt-dark);
  font: 600 calc(11 * var(--u)) / calc(22 * var(--u)) var(--ptt-text-font); text-align: center; letter-spacing: 0; }
.p-sub .call { margin-left: auto; width: calc(30 * var(--u)); height: calc(30 * var(--u)); display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.p-sub .un + .call { margin-left: calc(6 * var(--u)); }
.p-sub .call svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.p-sub .call:focus-visible { outline: 2px solid var(--ptt-white); }
.st-online .d { background: var(--ptt-green); } .st-online { color: var(--ptt-white); } .st-online .call { color: var(--ptt-green); }
.st-reachable .d { background: var(--ptt-blue); } .st-reachable { color: var(--ptt-blue); } .st-reachable .call { color: var(--ptt-blue); }
.st-offline .d { background: #4b5563; } .st-offline { color: var(--ptt-muted); } .st-offline .call { color: var(--ptt-muted); }
.st-me .d { background: var(--ptt-green); box-shadow: 0 0 calc(5 * var(--u)) var(--ptt-green); } .st-me { color: var(--ptt-green); }
.st-speaking { background: #0c1522 !important; }
.p-gap { flex: none; height: calc(26 * var(--u)); background: var(--ptt-panel); }

/* push-уведомление и выпадающий список групп */
.p-push { position: absolute; z-index: 35; left: calc(10 * var(--u)); right: calc(10 * var(--u)); top: calc(50 * var(--u)); display: flex; gap: calc(10 * var(--u)); align-items: flex-start;
  padding: calc(11 * var(--u)) calc(12 * var(--u)); border-radius: calc(16 * var(--u)); background: rgba(38, 41, 38, .96); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, .6); font-family: var(--ptt-text-font); animation: pushin .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pushin { from { transform: translateY(calc(-30 * var(--u))); opacity: 0; } to { transform: none; opacity: 1; } }
.p-push .app { width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: calc(8 * var(--u)); flex: none; background: #101820 url("img/privox-icon-64.png") center / cover; }
.p-push b { display: block; font-size: calc(13 * var(--u)); color: #fff; letter-spacing: 0; }
.p-push b span { float: right; font-weight: 400; color: #9aa59a; font-size: calc(11 * var(--u)); }
.p-push p { margin: calc(2 * var(--u)) 0 0; font-size: calc(12.5 * var(--u)); color: #dfe6df; line-height: 1.3; }
.p-push.al b { color: var(--ptt-amber); }
.p-drop { position: absolute; z-index: 25; left: 0; right: 0; top: calc(154 * var(--u)); background: var(--ptt-panel); border-bottom: 1px solid var(--ptt-green);
  box-shadow: 0 calc(16 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, .7); }
.p-drop .r-gi { padding: calc(12 * var(--u)) calc(16 * var(--u)); gap: calc(12 * var(--u)); cursor: pointer; }
.p-drop .r-gi .chdot { width: calc(11 * var(--u)); height: calc(11 * var(--u)); }
.p-drop .r-gi b { font-size: calc(15 * var(--u)); }
.p-drop .r-gi small { font-size: calc(10.5 * var(--u)); }
.p-drop .r-gi .ck { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }

/* чат */
.p-chd { flex: none; height: calc(62 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); padding: 0 calc(14 * var(--u));
  background: var(--ptt-panel); border-bottom: 1px solid var(--ptt-border); }
.p-chd .back { width: calc(30 * var(--u)); height: calc(30 * var(--u)); color: var(--ptt-muted); padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.p-chd .back svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.p-chd .usr { width: calc(24 * var(--u)); height: calc(24 * var(--u)); color: var(--ptt-blue); }
.p-chd b { display: block; font: 700 calc(17 * var(--u)) / 1 var(--ptt-sans); color: #fff; letter-spacing: .03em; }
.p-chd small { display: block; margin-top: calc(4 * var(--u)); font-size: calc(10.5 * var(--u)); color: var(--ptt-muted); letter-spacing: .14em; text-transform: uppercase; }
.p-chd .trash { margin-left: auto; width: calc(20 * var(--u)); height: calc(20 * var(--u)); color: var(--ptt-muted); }
.p-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: calc(10 * var(--u)); padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(10 * var(--u)); scrollbar-width: none; }
.p-msgs::-webkit-scrollbar { display: none; }
.p-date { align-self: center; padding: calc(4 * var(--u)) calc(12 * var(--u)); border-radius: 99px; background: var(--ptt-card); border: 1px solid var(--ptt-border); font-size: calc(10 * var(--u)); color: var(--ptt-muted); letter-spacing: .1em; }
.msg { max-width: 78%; padding: calc(9 * var(--u)) calc(12 * var(--u)) calc(6 * var(--u)); border-radius: calc(8 * var(--u)); border: 1px solid; font: 400 calc(13.5 * var(--u)) / 1.35 var(--ptt-text-font); color: #fff; letter-spacing: 0; animation: msgin .25s ease-out; }
@keyframes msgin { from { transform: translateY(calc(8 * var(--u))); opacity: 0; } to { transform: none; opacity: 1; } }
.msg.out { align-self: flex-end; background: #112b1c; border-color: #1f603b; }
.msg.in { align-self: flex-start; background: var(--ptt-card); border-color: var(--ptt-border); }
.msg .who { display: block; margin-bottom: calc(3 * var(--u)); font: 400 calc(10 * var(--u)) / 1 var(--ptt-mono); color: var(--ptt-blue); letter-spacing: .14em; text-transform: uppercase; }
.msg .meta { display: flex; justify-content: flex-end; align-items: center; gap: calc(4 * var(--u)); margin-top: calc(3 * var(--u)); font: 400 calc(9.5 * var(--u)) / 1 var(--ptt-mono); color: var(--ptt-muted); }
.msg .meta svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.msg .meta .read { color: var(--ptt-blue); }
.msg.voice { min-width: 62%; }
.vm { display: flex; align-items: center; gap: calc(9 * var(--u)); }
.msg.voice { width: min(78%, calc(250 * var(--u))); }
.vm .play { width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; border: 0; padding: 0; background: rgba(74, 158, 255, .16); color: var(--ptt-blue); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.vm .play svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.vm .bars { flex: 1; height: calc(22 * var(--u)); display: flex; align-items: center; gap: calc(2 * var(--u)); }
.vm .bars i { flex: 1; border-radius: 99px; background: rgba(175, 196, 175, .45); min-height: 12%; }
.vm .bars i.on { background: var(--ptt-blue); }
.vm .len { font: 400 calc(10.5 * var(--u)) / 1 var(--ptt-mono); color: var(--ptt-soft); }
.msg.photo { padding: calc(4 * var(--u)) calc(4 * var(--u)) calc(6 * var(--u)); }
.msg.photo .ph { width: calc(190 * var(--u)); height: calc(130 * var(--u)); border-radius: calc(6 * var(--u)); background: linear-gradient(160deg, #31413a, #1b2620 60%, #263129); position: relative; overflow: hidden; }
.msg.photo .ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.msg.photo .ph[data-act] { cursor: zoom-in; }
.msg.photo .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.p-view, .c-view { position: absolute; z-index: 45; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(12 * var(--u));
  padding: calc(18 * var(--u)); background: rgba(0, 0, 0, .9); cursor: zoom-out; animation: fadein .2s ease-out; }
.p-view img, .c-view img { max-width: 100%; max-height: 74%; border-radius: calc(8 * var(--u)); box-shadow: 0 calc(16 * var(--u)) calc(40 * var(--u)) rgba(0, 0, 0, .6); animation: zoomin .26s cubic-bezier(.2, .8, .2, 1); }
.p-view p, .c-view p { margin: 0; max-width: 92%; text-align: center; font: 400 calc(13 * var(--u)) / 1.4 var(--ptt-text-font); color: #e6efe6; }
.p-view .x, .c-view .x { position: absolute; top: calc(14 * var(--u)); right: calc(14 * var(--u)); width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.p-view .x svg, .c-view .x svg { width: 52%; height: 52%; }
.c-view { --u: 1px; border-radius: 0; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomin { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.msg.photo .cap { padding: calc(5 * var(--u)) calc(6 * var(--u)) 0; }
.typing { align-self: flex-start; display: flex; gap: calc(4 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--ptt-card); border: 1px solid var(--ptt-border); }
.typing i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: var(--ptt-muted); animation: typ 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(calc(-3 * var(--u))); } }
.p-comp { flex: none; display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)) calc(30 * var(--u)); background: var(--ptt-panel); border-top: 1px solid var(--ptt-border); }
.p-comp .tool { width: calc(30 * var(--u)); height: calc(30 * var(--u)); color: var(--ptt-muted); padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; touch-action: none; }
.p-comp .tool svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.p-comp .tool.mic.rec { color: #fff; background: var(--ptt-red); box-shadow: 0 0 0 calc(6 * var(--u)) rgba(255, 68, 68, .25); }
.p-comp .tool.hint, .p-ch.hint, .p-chat.hint, .p-sub .call.hint, .ring.hint { animation: uihint 1.6s ease-in-out infinite; }
@keyframes uihint { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } 50% { box-shadow: 0 0 0 calc(4 * var(--u)) rgba(61, 220, 132, .6), 0 0 calc(20 * var(--u)) rgba(61, 220, 132, .45); } }
.p-in { flex: 1; min-width: 0; height: calc(40 * var(--u)); display: flex; align-items: center; padding: 0 calc(11 * var(--u)); border: 1px solid var(--ptt-border); border-radius: calc(4 * var(--u));
  background: #0d100d; color: #fff; font: 500 calc(14 * var(--u)) / 1 var(--ptt-sans); letter-spacing: .02em; outline: none; }
.p-in::placeholder { color: var(--ptt-muted); }
.p-in:focus { border-color: var(--ptt-green); }
.p-send { width: calc(46 * var(--u)); height: calc(40 * var(--u)); border-radius: calc(4 * var(--u)); border: 0; padding: 0; background: var(--ptt-green); color: var(--ptt-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.p-send svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.p-rec { flex: 1; display: flex; align-items: center; gap: calc(9 * var(--u)); height: calc(40 * var(--u)); padding: 0 calc(10 * var(--u)); border: 1px solid #5a2222; border-radius: calc(4 * var(--u)); background: #1a0d0d; color: #ffb3b3; font: 400 calc(12 * var(--u)) / 1 var(--ptt-mono); letter-spacing: .1em; }
.p-rec .rd { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: var(--ptt-red); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.p-rec .bars { flex: 1; height: calc(20 * var(--u)); display: flex; align-items: center; gap: calc(2 * var(--u)); }
.p-rec .bars i { flex: 1; border-radius: 99px; background: #ff7b7b; min-height: 10%; transition: height .08s; }

/* звонок и входящая побудка на телефоне */
.p-call { flex: 1; display: flex; flex-direction: column; align-items: center; padding: calc(54 * var(--u)) calc(24 * var(--u)) calc(44 * var(--u)); text-align: center;
  background: radial-gradient(120% 70% at 50% 18%, #13281c 0%, var(--ptt-dark) 60%); }
.p-call small { font-size: calc(11 * var(--u)); letter-spacing: .26em; color: var(--ptt-green); text-transform: uppercase; }
.p-call .av { margin: calc(26 * var(--u)) 0 calc(18 * var(--u)); width: calc(118 * var(--u)); height: calc(118 * var(--u)); border-radius: 50%; border: calc(3 * var(--u)) solid var(--ptt-green);
  display: flex; align-items: center; justify-content: center; background: var(--ptt-card); color: var(--ptt-green); }
.p-call .av svg { width: 40%; height: 40%; }
.p-call .av.ringing { animation: ringpulse2 1.2s ease-in-out infinite; }
@keyframes ringpulse2 { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } 50% { box-shadow: 0 0 0 calc(14 * var(--u)) rgba(61, 220, 132, .16); } }
.p-call b { font: 700 calc(30 * var(--u)) / 1 var(--ptt-sans); letter-spacing: .06em; color: #fff; }
.p-call .nm { margin-top: calc(6 * var(--u)); font: 500 calc(14 * var(--u)) / 1.2 var(--ptt-text-font); color: var(--ptt-text); letter-spacing: 0; }
.p-call .st { margin-top: calc(14 * var(--u)); font-size: calc(13 * var(--u)); letter-spacing: .2em; color: var(--ptt-soft); text-transform: uppercase; }
.p-call .dx { margin-top: calc(6 * var(--u)); font-size: calc(10 * var(--u)); color: var(--ptt-muted); letter-spacing: .12em; text-transform: uppercase; }
.p-call .acts { margin-top: auto; display: flex; gap: calc(26 * var(--u)); align-items: flex-end; }
.cbtn { display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--u)); font-size: calc(10 * var(--u)); color: var(--ptt-text); letter-spacing: .12em; text-transform: uppercase; border: 0; background: none; padding: 0; cursor: pointer; font-family: var(--ptt-mono); }
.cbtn i { width: calc(60 * var(--u)); height: calc(60 * var(--u)); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1d241d; color: #fff; }
.cbtn i svg { width: 42%; height: 42%; }
.cbtn.on i { background: #e8efe8; color: var(--ptt-dark); }
.cbtn.end i { background: var(--ptt-red); }
.cbtn.ans i { background: var(--ptt-green); color: var(--ptt-dark); }
.cbtn:focus-visible i { outline: 2px solid #fff; outline-offset: 3px; }
.p-call.alert { background: radial-gradient(120% 70% at 50% 18%, #0f2238 0%, var(--ptt-dark) 62%); }
.p-call.alert small, .p-call.alert .av { color: var(--ptt-blue); border-color: var(--ptt-blue); }
.p-call.sos { background: radial-gradient(120% 70% at 50% 18%, #4a1010 0%, #1a0707 70%); }
.p-call.sos small, .p-call.sos .av { color: var(--ptt-red); border-color: var(--ptt-red); }

/* ============================================================ пульт диспетчера в окне браузера */
.win { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: var(--ptt-dark); border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(6, 182, 212, .06); container-type: inline-size; }
.win-bar { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #161a20; border-bottom: 1px solid #262c34; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a414b; }
.win-bar i:nth-child(1) { background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-url { margin: 0 auto; transform: translateX(-24px); min-width: 40%; height: 22px; padding: 0 12px; border-radius: 6px; background: #0d1015; color: #8b95a3;
  font: 500 12px/22px var(--ptt-text-font); text-align: center; letter-spacing: .01em; }
.win-url b { color: #d6dde6; font-weight: 500; }
.cui { --u: 1px; display: grid; grid-template-columns: 168px 186px 200px minmax(0, 1fr) 206px 170px; grid-template-rows: 42px minmax(0, 1fr); height: 580px; background: var(--ptt-dark); color: var(--ptt-white);
  font: 400 12px/1.3 var(--ptt-mono); -webkit-font-smoothing: antialiased; }
.cui svg { display: block; flex: none; }
.c-side { grid-row: 1 / 3; display: flex; flex-direction: column; background: var(--ptt-panel); border-right: 1px solid var(--ptt-border); }
.c-logo { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--ptt-border); font: 900 15px/1 var(--ptt-logo); color: #fff; letter-spacing: .02em; }
.c-logo span { color: var(--ptt-green); }
.c-logo img { width: 22px; height: 22px; border-radius: 6px; }
.c-nav { padding: 8px 6px; display: grid; gap: 2px; }
.c-nav a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 4px; color: var(--ptt-white); font: 600 14px/1 var(--ptt-sans); letter-spacing: .03em; text-decoration: none; cursor: pointer; }
.c-nav a:hover { background: #142019; }
.c-nav a svg { width: 15px; height: 15px; color: var(--ptt-text); }
.c-nav a.on { background: #163322; color: var(--ptt-green); }
.c-nav a.on svg { color: var(--ptt-green); }
.c-nav .n { margin-left: auto; min-width: 18px; height: 18px; border-radius: 99px; background: #b3302d; color: #fff; font: 600 10px/18px var(--ptt-text-font); text-align: center; }
.c-who { margin-top: auto; padding: 12px; border-top: 1px solid var(--ptt-border); font-size: 11px; letter-spacing: .14em; }
.c-who b { display: block; color: var(--ptt-green); font-weight: 400; }
.c-who span { display: block; color: var(--ptt-soft); }
.c-who small { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ptt-muted); font-size: 10px; letter-spacing: .14em; }
.c-who small svg { width: 12px; height: 12px; }
.c-top { grid-column: 2 / -1; height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--ptt-panel); border-bottom: 1px solid var(--ptt-border);
  font-size: 11px; letter-spacing: .26em; color: var(--ptt-soft); text-transform: uppercase; }
.c-top .msgs { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border: 1px solid #2a5585; border-radius: 3px; color: var(--ptt-blue); font-size: 9.5px; letter-spacing: .18em; }
.c-top .msgs svg { width: 12px; height: 12px; }
.c-top .dc { display: flex; align-items: center; gap: 7px; color: var(--ptt-white); letter-spacing: .06em; text-transform: none; font-size: 12px; }
.c-col { min-height: 0; overflow: hidden; border-right: 1px solid var(--ptt-border); display: flex; flex-direction: column; }
.c-h { flex: none; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid var(--ptt-border); font-size: 10.5px; letter-spacing: .24em; color: var(--ptt-soft); text-transform: uppercase; }
.c-h svg { width: 13px; height: 13px; color: var(--ptt-text); }
.c-h .r { margin-left: auto; letter-spacing: .14em; }
.c-h .r.red { color: var(--ptt-red); } .c-h .r.grn { color: var(--ptt-green); }
.c-chan { display: flex; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--ptt-line); }
.c-chan .chdot { width: 8px; height: 8px; margin-top: 4px; }
.c-chan b { display: block; font: 700 13px/1.1 var(--ptt-sans); color: #fff; letter-spacing: .03em; }
.c-chan small { font-size: 10.5px; color: var(--ptt-text); letter-spacing: .04em; }
.c-chan.on { background: #13281b; box-shadow: inset 3px 0 0 var(--ptt-green); }
.c-chan.live b::after { content: " ●"; color: var(--ptt-blue); font-size: 10px; }
.c-sen { padding: 9px 12px; border-bottom: 1px solid var(--ptt-line); transition: background .3s; }
.c-sen .t { display: flex; align-items: center; gap: 7px; }
.c-sen .t .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ptt-green); flex: none; }
.c-sen .t svg { width: 13px; height: 13px; color: var(--ptt-text); }
.c-sen .t b { font: 700 13px/1 var(--ptt-sans); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-sen .t em { margin-left: auto; font-style: normal; font-size: 9.5px; letter-spacing: .16em; color: var(--ptt-green); }
.c-sen .v { display: flex; justify-content: space-between; margin-top: 6px; padding-left: 14px; font-size: 10.5px; color: var(--ptt-text); }
.c-sen .v b { color: #fff; font-weight: 400; }
.c-sen .v span { color: var(--ptt-muted); font-size: 9.5px; }
.c-sen.alarm { background: linear-gradient(180deg, #3a1414, #2a1010); box-shadow: inset 0 -1px 0 #8a2a2a; animation: alarmflash 1s ease-in-out 3; }
.c-sen.alarm .t .d { background: var(--ptt-red); box-shadow: 0 0 6px var(--ptt-red); }
.c-sen.alarm .t em { color: var(--ptt-red); }
.c-sen.stale .t .d { background: #4b5563; } .c-sen.stale .t em { color: var(--ptt-muted); }
@keyframes alarmflash { 50% { background: #5a1a1a; } }
.c-mid { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--ptt-border); }
.c-mh { flex: none; height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--ptt-border); }
.c-mh .chdot { width: 11px; height: 11px; }
.c-mh b { font: 700 16px/1 var(--ptt-sans); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-mh .cg { margin-left: auto; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border: 1px solid #2a5585; border-radius: 3px; color: var(--ptt-blue); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.c-mh .cg svg { width: 13px; height: 13px; }
.c-ms { flex: none; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--ptt-line); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ptt-soft); }
.c-ms .dot { width: 6px; height: 6px; background: var(--ptt-text); box-shadow: none; }
.c-ms.rx { background: #0c1522; color: var(--ptt-blue); } .c-ms.rx .dot { background: var(--ptt-blue); box-shadow: 0 0 6px var(--ptt-blue); }
.c-ms.tx { background: #0f1f15; color: var(--ptt-green); } .c-ms.tx .dot { background: var(--ptt-green); }
.c-ms.al { background: #2a1607; color: var(--ptt-amber); } .c-ms.al .dot { background: var(--ptt-amber); }
.c-ptt { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.c-ptt .ring { --u: 1px; --d: 108px; }
.c-ptt .lbl { font-size: 11px; letter-spacing: .24em; color: var(--ptt-soft); text-transform: uppercase; }
.c-ptt .sub { font-size: 11px; color: var(--ptt-white); letter-spacing: .06em; }
.c-feed { flex: none; max-height: 132px; overflow: hidden; border-top: 1px solid var(--ptt-line); padding: 8px 14px 10px; display: grid; gap: 5px; }
.c-feed div { display: flex; gap: 8px; font-size: 10.5px; color: var(--ptt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: msgin .25s ease-out; }
.c-feed time { color: var(--ptt-muted); flex: none; }
.c-feed .al { color: var(--ptt-amber); } .c-feed .rd { color: var(--ptt-red); } .c-feed .bl { color: var(--ptt-blue); } .c-feed .gr { color: var(--ptt-green); }
.c-subr { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid var(--ptt-line); }
.c-subr .d { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.c-subr b { display: block; font-weight: 400; font-size: 11px; letter-spacing: .16em; }
.c-subr small { display: block; font-size: 10.5px; color: var(--ptt-white); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-subr svg { margin-left: auto; width: 15px; height: 15px; }
.c-subr.st-online b { color: var(--ptt-green); } .c-subr.st-online .d { background: var(--ptt-green); } .c-subr.st-online svg { color: var(--ptt-green); }
.c-subr.st-reachable b { color: var(--ptt-blue); } .c-subr.st-reachable .d { background: var(--ptt-blue); } .c-subr.st-reachable svg { color: var(--ptt-blue); }
.c-subr.st-offline b { color: var(--ptt-muted); } .c-subr.st-offline .d { background: #4b5563; } .c-subr.st-offline svg { color: var(--ptt-muted); } .c-subr.st-offline small { color: var(--ptt-muted); }
.c-subr.speaking { background: #0c1522; } .c-subr.speaking small::after { content: " · speaking"; color: var(--ptt-blue); }
.c-subr.oncall { background: #0f1f15; } .c-subr.oncall small::after { content: " · on call"; color: var(--ptt-green); }
.c-ol { padding: 7px 12px; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .16em; color: var(--ptt-green); }
.c-ol .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ptt-green); }
.c-banner { position: absolute; left: 50%; top: 52px; z-index: 5; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 6px;
  background: #3b0d0d; border: 1px solid #a12a2a; color: #ffd2d2; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); animation: sosbg 1s steps(2) infinite; white-space: nowrap; }
.c-banner svg { width: 16px; height: 16px; color: var(--ptt-red); }
.cui-wrap { position: relative; }
@container (max-width: 1240px) { .cui { grid-template-columns: 160px 180px 196px minmax(0, 1fr) 204px; } .c-all { display: none; } }
@container (max-width: 1000px) { .cui { grid-template-columns: 150px 170px 186px minmax(0, 1fr); } .c-all, .c-col.c-subs { display: none; } }
@container (max-width: 860px) { .cui { grid-template-columns: 52px 180px minmax(0, 1fr); } .c-side .lbl, .c-logo .w, .c-who, .c-nav .n { display: none; } .c-chans { display: none; } .c-nav a { justify-content: center; padding: 0; } }
@container (max-width: 640px) { .cui { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: auto; } .c-side, .c-chans, .c-top { display: none; } .c-mid { grid-column: 1 / -1; order: -1; min-height: 300px; border-right: 0; border-bottom: 1px solid var(--ptt-border); } }

/* карта смены (светлая подложка, как CARTO в приложении) */
.c-map { position: relative; width: 100%; height: 100%; background: #e8e6e1; overflow: hidden; }
.c-map svg.base { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4px; transition: left 1.2s linear, top 1.2s linear; }
.mk i { width: 16px; height: 22px; border-radius: 3px; background: #0a0c0a; border: 2px solid var(--ptt-green); box-shadow: 0 0 8px rgba(61, 220, 132, .7); display: flex; align-items: center; justify-content: center;
  color: var(--ptt-green); font: 700 9px/1 var(--ptt-mono); font-style: normal; }
.mk span { padding: 2px 5px; border-radius: 3px; background: rgba(10, 12, 10, .85); color: var(--ptt-green); font: 400 10px/1.2 var(--ptt-mono); letter-spacing: .1em; white-space: nowrap; }
.mk span small { color: var(--ptt-text); }
.mk.target i { border-color: var(--ptt-red); color: var(--ptt-red); box-shadow: 0 0 10px rgba(255, 68, 68, .8); }


/* ---- приложение на сенсорной рации (Hytera P60, Sonim XP10): компактный экран Android */
.pui.compact .p-sb { height: calc(30 * var(--u)); padding: 0 calc(16 * var(--u)); font-size: calc(12 * var(--u)); }
.pui.compact .p-main .ring { --d: calc(118 * var(--u)); }
.pui.compact .p-main { gap: calc(10 * var(--u)); }
.pui.compact .p-subs .p-sub:nth-child(n+5) { display: none; }
.pui.compact .p-comp { padding-bottom: calc(12 * var(--u)); }
.pui.compact .p-push { top: calc(34 * var(--u)); }

/* ---- интерактивные части интерфейса (всё, что нажимается) */
.p-sub .nm { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-align: left; }
.p-sub .nm:hover { text-decoration: underline; text-underline-offset: 3px; }
.r-sub, .r-ch, .r-gi, .p-ch, .p-push, .cl-row, .c-chan, .c-sen, .c-subr, .mk { cursor: pointer; }
.r-sub:hover, .r-gi:hover { background: #142019; }
.p-date.sys { color: var(--ptt-green); border-color: #1f603b; }
.cl { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.cl-row { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); border-bottom: 1px solid var(--ptt-line); }
.cl-row:hover, .cl-row.on { background: #13281b; }
.cl-av { width: calc(38 * var(--u)); height: calc(38 * var(--u)); flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ptt-card); border: 1px solid var(--ptt-border); color: var(--ptt-blue); }
.cl-av svg { width: 50%; height: 50%; }
.cl-av.g .chdot { width: 36%; height: 36%; }
.cl-tx { flex: 1; min-width: 0; }
.cl-tx b { display: block; font: 700 calc(15 * var(--u)) / 1.1 var(--ptt-sans); color: #fff; letter-spacing: .03em; }
.cl-tx span { display: block; margin-top: calc(3 * var(--u)); font: 400 calc(12 * var(--u)) / 1.3 var(--ptt-text-font); color: var(--ptt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-r { display: flex; flex-direction: column; align-items: flex-end; gap: calc(4 * var(--u)); }
.cl-r time { font-size: calc(10 * var(--u)); color: var(--ptt-muted); }
.cl-r .un { min-width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: 99px; background: var(--ptt-green); color: var(--ptt-dark); font: 600 calc(10.5 * var(--u)) / calc(20 * var(--u)) var(--ptt-text-font); text-align: center; padding: 0 calc(5 * var(--u)); }
.p-login { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(12 * var(--u)); padding: 0 calc(34 * var(--u)) calc(40 * var(--u));
  background: radial-gradient(90% 50% at 50% 30%, #102117, var(--ptt-dark) 70%); }
.p-login img { width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: calc(16 * var(--u)); box-shadow: 0 0 calc(24 * var(--u)) rgba(61, 220, 132, .35); }
.p-login > b { font: 900 calc(24 * var(--u)) / 1 var(--ptt-logo); color: #fff; } .p-login > b span { color: var(--ptt-green); }
.p-login > small { margin-bottom: calc(14 * var(--u)); font-size: calc(10 * var(--u)); letter-spacing: .2em; text-transform: uppercase; color: var(--ptt-text); }
.p-login label { width: 100%; font-size: calc(10 * var(--u)); letter-spacing: .16em; text-transform: uppercase; color: var(--ptt-soft); }
.p-login label span { display: block; margin-top: calc(6 * var(--u)); height: calc(40 * var(--u)); line-height: calc(40 * var(--u)); padding: 0 calc(12 * var(--u)); border: 1px solid var(--ptt-border); border-radius: calc(4 * var(--u)); background: #0d100d; color: var(--ptt-text); letter-spacing: .06em; text-transform: none; font-size: calc(13 * var(--u)); }
.p-signin, .p-qr { width: 100%; height: calc(44 * var(--u)); border-radius: calc(4 * var(--u)); font: 700 calc(14 * var(--u)) / 1 var(--ptt-logo); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); }
.p-signin { margin-top: calc(8 * var(--u)); border: 0; background: var(--ptt-green); color: var(--ptt-dark); }
.p-qr { border: 1px solid #1f603b; background: transparent; color: var(--ptt-green); font-family: var(--ptt-mono); font-weight: 400; font-size: calc(12 * var(--u)); letter-spacing: .14em; }
.p-qr svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.p-chd .p-ic { width: calc(26 * var(--u)); height: calc(26 * var(--u)); display: flex; align-items: center; justify-content: center; }
.p-chd .p-ic svg, .p-hd .p-ic svg { width: 100%; height: 100%; }
.p-hd .p-ic { display: flex; }

.c-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid #2a5585; border-radius: 3px; background: transparent; color: var(--ptt-blue); font: 400 10px/1 var(--ptt-mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.c-btn svg { width: 13px; height: 13px; }
.c-btn:hover { background: rgba(74, 158, 255, .1); }
.c-btn.g { border-color: transparent; background: var(--ptt-green); color: var(--ptt-dark); font-family: var(--ptt-logo); font-weight: 700; letter-spacing: .08em; }
.c-btn.red { border-color: #852827; color: var(--ptt-red); }
.c-btn.wide { width: 100%; justify-content: center; height: 38px; font-size: 13px; }
.c-ic { margin-left: auto; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; padding: 0; }
.c-ic:hover { background: rgba(255, 255, 255, .06); }
.c-subr svg { margin: 0; }
.c-subr .c-ic svg { width: 15px; height: 15px; }
.c-subr.st-online .c-ic { color: var(--ptt-green); } .c-subr.st-reachable .c-ic { color: var(--ptt-blue); } .c-subr.st-offline .c-ic { color: var(--ptt-muted); }
.c-mh .cg { cursor: pointer; background: transparent; font-family: var(--ptt-mono); }
.c-mh .cg:hover { background: rgba(74, 158, 255, .1); }
.c-top .msgs { cursor: pointer; }
.c-who small { cursor: pointer; }
.c-chan:hover:not(.on) { background: #101a13; }
.c-sen:hover:not(.alarm) { background: #101a13; }
.c-sen.open { background: #0f1912; }
.c-det { margin-top: 8px; padding-left: 14px; display: grid; gap: 6px; }
.c-det svg { width: 100%; height: 38px; display: block; }
.c-det .lim { stroke: #2b3a2b; stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.c-det .ln { stroke: var(--ptt-green); stroke-width: 1.6; fill: none; vector-effect: non-scaling-stroke; }
.c-sen.alarm .c-det .ln { stroke: var(--ptt-red); }
.c-det .row { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--ptt-muted); }
.c-det .row b { color: var(--ptt-white); font-weight: 400; text-align: right; } .c-det .row b.on { color: var(--ptt-green); }
.c-det .c-btn { justify-self: start; height: 24px; font-size: 9.5px; }
.c-callbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: #10241a; border-bottom: 1px solid #1f603b; color: var(--ptt-green); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.c-callbar svg { width: 15px; height: 15px; } .c-callbar b { color: #fff; font-weight: 400; letter-spacing: .14em; } .c-callbar span { color: var(--ptt-soft); }
.c-callbar .c-btn { margin-left: auto; height: 24px; }
.cui.v-messages { grid-template-columns: 168px 280px minmax(0, 1fr); }
.cui.v-map, .cui.v-log, .cui.v-settings { grid-template-columns: 168px minmax(0, 1fr); }
.c-chats { border-right: 1px solid var(--ptt-border); --u: 1px; }
.c-chats .cl-row { padding: 11px 12px; gap: 10px; }
.c-chats .cl-av { width: 32px; height: 32px; } .c-chats .cl-tx b { font-size: 13px; } .c-chats .cl-tx span { font-size: 11px; }
.c-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; --u: 1px; }
.c-thread .c-mh .sub { margin-left: 8px; color: var(--ptt-muted); font-size: 11px; letter-spacing: .08em; }
.c-thread .c-mh > svg { width: 18px; height: 18px; color: var(--ptt-blue); }
.c-msgs { padding: 14px 18px; }
.c-msgs .msg { max-width: 62%; font-size: 13px; }
.c-thread .p-comp { padding: 10px 14px; }
.c-thread .p-in { height: 38px; font-size: 14px; }
.c-mapwrap { position: relative; min-height: 0; overflow: hidden; }
.c-mapwrap .c-map { position: absolute; inset: 0; }
.c-map .mk { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; transition: left 1s linear, top 1s linear; }
.c-map .mk i { width: 18px; height: 24px; border-radius: 3px; background: #0a0c0a; border: 2px solid var(--ptt-green); box-shadow: 0 0 10px rgba(61, 220, 132, .7); display: flex; align-items: center; justify-content: center; color: var(--ptt-green); font: 700 10px/1 var(--ptt-mono); font-style: normal; }
.c-map .mk span { padding: 2px 6px; border-radius: 3px; background: rgba(10, 12, 10, .86); color: var(--ptt-green); font: 400 10.5px/1.3 var(--ptt-mono); letter-spacing: .1em; white-space: nowrap; }
.c-map .mk span small { color: var(--ptt-soft); }
.c-map .mk.sl i { border-color: var(--ptt-blue); color: var(--ptt-blue); box-shadow: 0 0 8px rgba(74, 158, 255, .6); } .c-map .mk.sl span { color: var(--ptt-blue); }
.c-map .mk.sel i { transform: scale(1.18); }
.c-map .pin { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; background: #0a0c0a; border: 1px solid #2b3a2b; color: var(--ptt-green); font: 400 10.5px/1 var(--ptt-mono); letter-spacing: .08em; white-space: nowrap; }
.c-map .pin svg { width: 13px; height: 13px; }
.c-map .pin.al { border-color: var(--ptt-red); color: #ffd0d0; background: #3a1414; animation: alarmflash 1s ease-in-out infinite; }
.c-pop { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 6px; background: rgba(10, 12, 10, .95); border: 1px solid var(--ptt-border); font-size: 11px; color: var(--ptt-soft); }
.c-pop b { color: var(--ptt-green); font-weight: 400; letter-spacing: .14em; }
.c-mapn { position: absolute; right: 16px; top: 12px; color: var(--ptt-green); font-size: 11px; letter-spacing: .1em; background: rgba(10, 12, 10, .8); padding: 3px 8px; border-radius: 3px; }
.c-panel { position: relative; min-height: 0; overflow: auto; padding: 18px 20px; scrollbar-width: thin; }
.c-log { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.c-log th { text-align: left; color: var(--ptt-muted); font-weight: 400; letter-spacing: .2em; text-transform: uppercase; font-size: 10px; padding: 6px 10px; border-bottom: 1px solid var(--ptt-border); }
.c-log td { padding: 7px 10px; border-bottom: 1px solid var(--ptt-line); color: var(--ptt-text); }
.c-log td:first-child { color: var(--ptt-muted); width: 90px; }
.c-log .gr { color: var(--ptt-green); } .c-log .bl { color: var(--ptt-blue); } .c-log .al { color: var(--ptt-amber); } .c-log .rd { color: var(--ptt-red); }
.c-ghead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.c-ghead b { font: 700 17px/1 var(--ptt-logo); color: #fff; letter-spacing: .04em; }
.c-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.c-gcard { padding: 14px; border-radius: 6px; border: 1px solid var(--ptt-border); background: var(--ptt-card); }
.c-gcard .t { display: flex; align-items: center; gap: 9px; } .c-gcard .t .chdot { width: 10px; height: 10px; }
.c-gcard b { font: 700 14px/1 var(--ptt-sans); color: #fff; letter-spacing: .04em; }
.c-gcard small { display: block; margin: 8px 0 12px 19px; color: var(--ptt-text); font-size: 10.5px; }
.c-gcard .row { display: flex; gap: 12px; padding-top: 10px; border-top: 1px solid var(--ptt-line); font-size: 10.5px; color: var(--ptt-blue); }
.c-gcard .row span { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; } .c-gcard .row svg { width: 12px; height: 12px; }
.c-gcard .row span:nth-child(2) { color: var(--ptt-green); } .c-gcard .row span:nth-child(3) { color: var(--ptt-muted); }
.c-toast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 9px 14px; border-radius: 5px; background: #13281b; border: 1px solid #1f603b; color: var(--ptt-green); font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.cui.login { display: flex; align-items: center; justify-content: center; background: radial-gradient(60% 60% at 50% 40%, #0f1d14, var(--ptt-dark) 70%); }
.c-loginwrap { width: 340px; }
.c-login { position: relative; display: grid; gap: 12px; padding: 26px 24px; border: 1px solid var(--ptt-border); background: rgba(17, 20, 17, .9); }
.c-login .br { position: absolute; width: 14px; height: 14px; border-color: var(--ptt-green); border-style: solid; border-width: 0; }
.c-login .tl { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; } .c-login .tr { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }
.c-login .bl { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; } .c-login .br2 { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.c-login .lg { text-align: center; font: 900 22px/1 var(--ptt-logo); color: #fff; } .c-login .lg span { color: var(--ptt-green); }
.c-login > small { text-align: center; color: var(--ptt-soft); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.c-login label { font-size: 9.5px; letter-spacing: .18em; color: var(--ptt-soft); text-transform: uppercase; }
.c-login label span { display: block; margin-top: 5px; height: 34px; line-height: 34px; padding: 0 10px; border: 1px solid var(--ptt-border); border-radius: 3px; background: #0d100d; color: var(--ptt-text); text-transform: none; letter-spacing: .04em; font-size: 12px; }
@container (max-width: 860px) { .cui.v-messages { grid-template-columns: 52px 220px minmax(0, 1fr); } .cui.v-map, .cui.v-log, .cui.v-settings { grid-template-columns: 52px minmax(0, 1fr); } }
@container (max-width: 640px) { .cui.v-messages, .cui.v-map, .cui.v-log, .cui.v-settings { grid-template-columns: minmax(0, 1fr); height: 520px; } .cui.v-messages .c-chats { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .wave i, .ring::after, .typing i, .p-rec .rd, .ov.alert .big, .ov.sos, .c-banner, .c-sen.alarm, .hint, .p-push, .msg { animation: none !important; }
}

/* ---- плавные смены состояний (экраны обновляются точечно, поэтому переходы срабатывают) */
.p-sub, .c-subr, .r-sub, .c-chan, .cl-row, .r-gi, .c-sen, .pbtn, .p-chat, .c-nav a, .mk { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease; }
.p-push { transition: opacity .25s ease, transform .25s ease; }
.vm .bars i { transition: background-color .15s linear; }
@media (prefers-reduced-motion: reduce) {
  .rv, .pv, .cui [data-k], .p-view, .c-view, .p-view img, .c-view img { animation: none !important; }
  .ring, .ring .ri { transition: none !important; }
}
.c-mh .cg.on { background: rgba(74, 158, 255, .16); color: #fff; }
.c-callbar.grp { background: #0f1d2e; border-bottom-color: #2a5585; color: var(--ptt-blue); }
.c-callbar.grp svg { animation: bellpulse 1.6s ease-in-out infinite; }
@keyframes bellpulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .c-callbar.grp svg { animation: none; } }

/* расшифровка голосового (переписка в первом экране страниц отраслей) */
.msg.voice .tr { margin-top: calc(6 * var(--u)); font-size: calc(12 * var(--u)); line-height: 1.35; color: #aab4c3; letter-spacing: 0; }
.msg.voice.out .tr { color: #cfe0f7; }

/* всплывающее сообщение на экране рации (первый экран страниц отраслей) */
.rui .r-note { position: absolute; z-index: 25; left: calc(8 * var(--u)); right: calc(8 * var(--u)); bottom: calc(8 * var(--u)); padding: calc(9 * var(--u)) calc(10 * var(--u));
  border-radius: calc(6 * var(--u)); background: rgba(14, 19, 28, .97); border: 1px solid var(--ptt-border); box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(0, 0, 0, .6);
  animation: rnote .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rnote { from { opacity: 0; transform: translateY(calc(14 * var(--u))); } }
.rui .r-note .nh { display: flex; align-items: center; gap: calc(6 * var(--u)); color: var(--ptt-blue); font: 400 calc(10 * var(--u)) / 1 var(--ptt-mono); letter-spacing: .12em; text-transform: uppercase; }
.rui .r-note .nh svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.rui .r-note .nh b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: #fff; }
.rui .r-note .nh span { color: var(--ptt-soft); }
.rui .r-note p { margin: calc(6 * var(--u)) 0 0; color: #e6ebf2; font-size: calc(13 * var(--u)); line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rui .r-note img { display: block; width: 100%; height: calc(86 * var(--u)); object-fit: cover; margin-top: calc(7 * var(--u)); border-radius: calc(4 * var(--u)); }
.rui .r-note.photo p { -webkit-line-clamp: 2; font-size: calc(12 * var(--u)); }
.rui .r-note.alert { border-color: rgba(255, 92, 92, .6); background: rgba(40, 12, 14, .97); }
.rui .r-note.alert .nh { color: #ff7b7b; }

/* demo.privox.tech — стили страниц. Стиль privox.tech (тёмный #030712, сетка, cyan #06b6d4 → blue #3b82f6, Inter и
   JetBrains Mono), раскладка — как у carenear.eu (крупное видео на первом экране, карточки, вопросы).
   Четыре языка: en, de, ru, zh (китайский — системными шрифтами PingFang / YaHei / Noto, без загрузки файлов).
   Шрифты подключаются из fonts.css (build.py вклеивает его в начало). Тексты — один размерный ряд:
   H1, H2 секции, H3 пункта, основной текст, приглушённый текст; моноширинный — только для служебных подписей. */
:root {
  --bg: #030712; --bg2: #020208; --panel: #070b14; --surface: rgba(255, 255, 255, .03); --surface2: rgba(255, 255, 255, .055);
  --line: rgba(148, 163, 184, .13); --line2: rgba(148, 163, 184, .22); --line-c: rgba(6, 182, 212, .2);
  --text: #f1f5f9; --text2: #cbd5e1; --muted: #94a3b8; --dim: #64748b;
  --cyan: #06b6d4; --cyan2: #22d3ee; --blue: #3b82f6; --glow: #0ea5e9; --green: #3ddc84; --amber: #fbbf24; --red: #fb7185;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC";
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, var(--cjk), sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, Menlo, var(--cjk), monospace;
  --maxw: 1280px; --gut: 24px; --r: 16px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--cyan2); }
h1, h2, h3, h4 { margin: 0; color: #fff; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--cyan); color: #001018; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.ic { width: 1em; height: 1em; flex: none; }
:lang(de) h1, :lang(de) h2, :lang(de) h3 { -webkit-hyphens: auto; hyphens: auto; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0 !important; line-height: 1.3; }
:lang(zh) body { line-height: 1.75; }

/* фон: сетка и свечения, как на privox.tech */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(6, 182, 212, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 182, 212, .05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 85%); mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 85%); }
.bg i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.bg i:nth-child(1) { width: 640px; height: 640px; left: -180px; top: -160px; background: rgba(6, 182, 212, .22); }
.bg i:nth-child(2) { width: 720px; height: 720px; right: -260px; top: 120px; background: rgba(59, 130, 246, .18); }
.bg i:nth-child(3) { width: 520px; height: 520px; left: 30%; top: 70vh; background: rgba(61, 220, 132, .07); }

/* ---------------------------------------------------------------- шапка */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(3, 7, 18, .84); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(6, 182, 212, .1); box-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.nav-in { max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 var(--gut); }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 16px rgba(16, 163, 111, .5); }
.brand b { font-weight: 800; font-size: 19px; letter-spacing: .15em; }
.brand b span { color: var(--green); margin-left: .35em; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; background: rgba(255, 255, 255, .04); }
.nav-links .lang-m { display: none; }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; }
.lang a { padding: 6px 9px; font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.lang a:hover { color: #fff; }
.lang a[aria-current] { color: #fff; background: rgba(6, 182, 212, .14); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 12px; border: 0; font: 600 15.5px/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-p { color: #fff; background: linear-gradient(90deg, var(--cyan), var(--blue)); box-shadow: 0 0 34px rgba(6, 182, 212, .32), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-p:hover { transform: translateY(-1px); box-shadow: 0 0 44px rgba(6, 182, 212, .5), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-g { color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); }
.btn-g:hover { border-color: rgba(6, 182, 212, .5); background: rgba(6, 182, 212, .07); }
.btn-s { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---------------------------------------------------------------- первый экран: заголовок во всю ширину, под ним текст и ролик */
.hero { position: relative; padding: clamp(36px, 5vh, 72px) var(--gut) clamp(48px, 7vh, 96px); }
.hero-in { max-width: var(--maxw); margin: 0 auto; }
.hero h1 { max-width: 1160px; margin: 0 0 clamp(28px, 3vw, 44px); font-size: clamp(34px, 3.9vw, 58px); line-height: 1.07; letter-spacing: -.026em; font-weight: 800; }
.hero h1 .l { display: block; }
.hero h1 .acc { background: linear-gradient(90deg, #22d3ee, #3b82f6 75%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-row { display: grid; grid-template-columns: minmax(0, .66fr) minmax(0, 1.34fr); gap: clamp(28px, 3.6vw, 56px); align-items: start; }
.hero .sub { color: var(--text2); font-size: clamp(16.5px, 1.2vw, 18.5px); line-height: 1.62; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.vid { position: relative; }
.vid::before { content: ""; position: absolute; inset: 8% 6%; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgba(6, 182, 212, .45), rgba(59, 130, 246, .15) 60%, transparent); filter: blur(40px); }
.vid-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #04070d; border: 1px solid rgba(6, 182, 212, .25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 50px 120px -40px rgba(0, 0, 0, .95); }
.vid-frame video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #04070d; }
.vid-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; }
.vid-ph b { font-size: 20px; }

/* ---------------------------------------------------------------- секции */
.sec { position: relative; padding: clamp(64px, 9vw, 112px) var(--gut); }
.sec.alt { background: linear-gradient(180deg, rgba(255, 255, 255, .012), rgba(255, 255, 255, .025) 50%, rgba(255, 255, 255, .012)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-in { max-width: var(--maxw); margin: 0 auto; }
.sec-in.wide { max-width: 1440px; }
.head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.head h2, .h2 { font-size: clamp(30px, 3.3vw, 48px); line-height: 1.08; letter-spacing: -.022em; font-weight: 750; }
.head p { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.2vw, 18.5px); }
.head.c { margin-left: auto; margin-right: auto; text-align: center; }
h3.sub-h { font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -.012em; font-weight: 700; margin: 0 0 20px; }
.page-h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.06; letter-spacing: -.025em; font-weight: 800; }

/* карточки отраслей: крупная иконка и название, без пустоты */
.ind-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ind-card { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025); color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.ind-card:hover { border-color: rgba(6, 182, 212, .55); background: rgba(6, 182, 212, .06); }
.ind-ic { width: 52px; height: 52px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(6, 182, 212, .1); color: var(--cyan2); transition: background .2s; }
.ind-ic svg { width: 26px; height: 26px; }
.ind-card:hover .ind-ic { background: rgba(6, 182, 212, .18); }
.ind-card h3 { flex: 1; min-width: 0; font-size: 18px; line-height: 1.3; font-weight: 650; }
.ind-card .go { width: 18px; height: 18px; flex: none; color: var(--dim); transition: transform .2s, color .2s; }
.ind-card:hover .go { color: var(--cyan2); transform: translateX(3px); }
.ind-grid.sm .ind-card { min-height: 76px; padding: 14px 16px; gap: 14px; }
.ind-grid.sm .ind-ic { width: 44px; height: 44px; border-radius: 12px; }
.ind-grid.sm .ind-ic svg { width: 22px; height: 22px; }
.ind-grid.sm .ind-card h3 { font-size: 16px; }

/* ---------------------------------------------------------------- живое демо */
.live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 22px; align-items: start; }
.stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 48px); padding: 36px 22px 36px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(60% 55% at 50% 45%, rgba(6, 182, 212, .12), transparent 72%), rgba(255, 255, 255, .018); overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(6, 182, 212, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 182, 212, .045) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.dev { position: relative; display: flex; flex-direction: column; align-items: center; }
.dev .t320 { width: calc(min(380px, 31vw) * var(--ws, 1)); }
.models { position: absolute; z-index: 2; top: 18px; left: 0; right: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.models button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(3, 7, 18, .6); color: var(--muted); font: 500 12.5px/1 var(--mono); letter-spacing: .03em; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s; }
.models button:hover { border-color: rgba(6, 182, 212, .42); color: #fff; }
.models button[aria-pressed="true"] { border-color: rgba(6, 182, 212, .65); background: rgba(6, 182, 212, .15); color: #fff; }
.dev-r { justify-content: center; }
.mbox { display: flex; flex-direction: column; align-items: center; animation: devin .35s ease-out; }
.mbox[hidden] { display: none; }
@keyframes devin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rwrap { position: relative; }
.dev .dev-phone { --pw: min(300px, 25vw); }
.ptt-tip { position: absolute; z-index: 3; left: -4px; top: 42%; transform: translate(-100%, -50%); display: flex; align-items: center; gap: 8px; color: #ffb36b; font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.ptt-tip::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, rgba(255, 179, 107, .2), #ffb36b); }
.dev-switch { display: none; }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.tries { display: grid; gap: 6px; }
.try { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); text-align: left; cursor: pointer;
  transition: border-color .2s, background .2s; touch-action: none; user-select: none; -webkit-user-select: none; }
.try:hover { border-color: rgba(6, 182, 212, .42); background: rgba(6, 182, 212, .06); }
.try:active { background: rgba(6, 182, 212, .12); }
.try .ti { width: 32px; height: 32px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(61, 220, 132, .1); color: var(--green); }
.try .ti svg { width: 17px; height: 17px; }
.try.b .ti { background: rgba(74, 158, 255, .1); color: #4a9eff; }
.try.a .ti { background: rgba(251, 191, 36, .1); color: var(--amber); }
.try.r .ti { background: rgba(255, 68, 68, .1); color: #ff6b6b; }
.try b { font-size: 14.5px; font-weight: 600; color: #fff; }
/* лента: журнал сервера и субтитры эфира (кто говорит и что) */
.log { list-style: none; margin: 0; padding: 4px 12px; height: clamp(260px, 44vh, 430px); overflow-y: auto; border-radius: 14px; border: 1px solid var(--line); background: #04070b;
  font: 400 11.5px/1.45 var(--mono); color: #93a69a; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .25) transparent; overscroll-behavior: contain; }
.log li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(148, 163, 184, .07); animation: logIn .3s ease-out; }
.log li:last-child { border-bottom: 0; }
.log time { color: #46594d; padding-top: 1px; }
.log .gr span { color: #6ee7a8; } .log .bl span { color: #93c5fd; } .log .al span { color: var(--amber); } .log .rd span { color: #fb7185; } .log .tip span { color: #a5f3fc; }
.log li.say span { font: 400 13.5px/1.45 var(--sans); color: #e2ebf3; }
.log li.say b { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font: 600 10.5px/1.3 var(--mono); letter-spacing: .1em; color: #93c5fd; }
.log li.say b i { font-style: normal; font-weight: 500; color: var(--dim); }
.log li.say.me b { color: var(--green); }
.log li.say.vm b { color: #c4b5fd; }
.log li.say.now b::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse 1s ease-in-out infinite; }
@keyframes logIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .35; } }
.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.opts label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.opts input { width: 16px; height: 16px; accent-color: var(--cyan); }
.opts .reset { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 12.5px; }
.opts .reset svg { width: 15px; height: 15px; }
.console-wrap { margin-top: 22px; }

/* ---------------------------------------------------------------- четыре способа связи */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin: 0; padding: 0; list-style: none; }
.ways .wi { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background: rgba(6, 182, 212, .1); color: var(--cyan2); }
.ways .wi svg { width: 24px; height: 24px; }
.ways h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.ways p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ---------------------------------------------------------------- датчики: что подключаем и как тревога становится действием */
.sen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 clamp(48px, 6vw, 72px); padding: 0; list-style: none; }
.sen-grid li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.sen-grid .si { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(61, 220, 132, .09); color: var(--green); }
.sen-grid .si svg { width: 22px; height: 22px; }
.sen-grid b { color: #fff; font-size: 17px; font-weight: 650; line-height: 1.3; }
.sen-grid span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.recipes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.recipes li { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: var(--r); border: 1px solid var(--line-c); background: linear-gradient(180deg, rgba(6, 182, 212, .07), rgba(6, 182, 212, .015)); }
.recipes .ri { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(251, 191, 36, .12); color: var(--amber); }
.recipes .ri svg { width: 20px; height: 20px; }
.recipes b { color: #fff; font-size: 17px; line-height: 1.35; font-weight: 650; }
.recipes .to { display: flex; gap: 8px; color: #93c5fd; font-size: 14.5px; line-height: 1.45; }
.recipes .to svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.recipes p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.sen-org { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.sen-org p { max-width: 44em; color: var(--text2); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: .04em; }

/* ---------------------------------------------------------------- сравнение */
.cmp-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.cmp { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp thead th { background: #060a13; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.3; vertical-align: bottom; }
.cmp thead th small { display: block; margin-top: 4px; color: var(--dim); font: 400 11.5px/1.35 var(--mono); letter-spacing: .02em; }
.cmp th[scope=row] { text-align: left; color: var(--text2); font-weight: 500; width: 34%; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp .us { background: rgba(6, 182, 212, .07); }
.cmp thead .us { color: var(--cyan2); background: rgba(6, 182, 212, .13); }
.mk-y, .mk-p, .mk-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.mk-y { background: rgba(61, 220, 132, .15); color: #3ddc84; } .mk-p { background: rgba(251, 191, 36, .13); color: var(--amber); } .mk-n { background: rgba(148, 163, 184, .08); color: #475569; }
.mk-y svg, .mk-p svg, .mk-n svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- начать с одного объекта: панель с шагами и действием */
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(28px, 4vw, 56px);
  border-radius: 28px; border: 1px solid var(--line-c); background: radial-gradient(80% 120% at 0% 0%, rgba(6, 182, 212, .14), transparent 60%), radial-gradient(70% 100% at 100% 100%, rgba(59, 130, 246, .1), transparent 60%), rgba(255, 255, 255, .02); }
.start .h2 { margin-bottom: 16px; }
.start-l > p { color: var(--text2); font-size: clamp(16px, 1.2vw, 18px); max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.cta-row .mail { color: var(--muted); font-size: 14.5px; }
.cta-row .mail a { color: var(--cyan2); font-family: var(--mono); text-decoration: none; }
.cta-row .mail a:hover { text-decoration: underline; }
.start-steps { position: relative; display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.start-steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(180deg, rgba(6, 182, 212, .6), rgba(59, 130, 246, .15)); }
.start-steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; }
.start-steps .n { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #08101c; border: 1px solid rgba(6, 182, 212, .45); color: var(--cyan2); }
.start-steps .n svg { width: 22px; height: 22px; }
.start-steps b { display: block; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.3; padding-top: 2px; }
.start-steps p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* ---------------------------------------------------------------- вопросы */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; cursor: pointer; list-style: none; color: #fff; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--cyan2); transition: transform .25s; flex: none; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------------------------------------------------------------- отраслевая страница: тот же размерный ряд, что и на главной */
.ihero { padding: clamp(40px, 6vh, 80px) var(--gut) clamp(40px, 6vh, 80px); }
.ihero-in { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ihero h1 { margin: 0 0 20px; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.07; letter-spacing: -.024em; font-weight: 800; }
.ihero .sub { color: var(--text2); font-size: clamp(16.5px, 1.25vw, 19px); line-height: 1.6; max-width: 34em; }
.iscene { position: relative; display: flex; align-items: center; justify-content: center; min-height: 480px; }
.iscene .ph { position: relative; z-index: 1; width: min(560px, 100%); aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); }
.iscene .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iscene .glow { position: absolute; inset: 10% 15%; border-radius: 50%; background: radial-gradient(closest-side, rgba(6, 182, 212, .25), rgba(59, 130, 246, .08) 60%, transparent); filter: blur(30px); }
.fcard { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(10, 14, 24, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .8); max-width: 290px; animation: floaty 6s ease-in-out infinite; }
.fcard:nth-of-type(2) { animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fcard .fi { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.fcard .fi svg { width: 17px; height: 17px; }
.fcard b { display: block; color: #fff; font-size: 14px; line-height: 1.3; } .fcard span { display: block; color: var(--text2); font-size: 13px; line-height: 1.4; margin-top: 3px; }
.fcard.al .fi { background: rgba(255, 68, 68, .14); color: #ff6b6b; } .fcard.al { border-color: rgba(255, 68, 68, .35); }
.fcard.rx .fi { background: rgba(74, 158, 255, .14); color: #4a9eff; }
.fcard.p1 { left: -2%; top: 8%; } .fcard.p2 { right: -2%; bottom: 8%; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin: 0; padding: 0; list-style: none; }
.steps.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps .n { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 50%; border: 1px solid rgba(6, 182, 212, .45); color: var(--cyan2); font: 600 14px/1 var(--mono); }
.steps h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); }
.lists .h2 { margin-bottom: 26px; font-size: clamp(28px, 2.8vw, 40px); }
.plain { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plain li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.plain h3 { font-size: 17.5px; font-weight: 650; line-height: 1.35; }
.plain p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.plain.plus li { position: relative; padding-left: 36px; }
.plain.plus li::before { content: "+"; position: absolute; left: 0; top: 18px; width: 22px; height: 22px; border-radius: 50%; background: rgba(61, 220, 132, .12); color: var(--green); font: 600 15px/22px var(--mono); text-align: center; }
.know { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.know h3 { font-size: 19px; font-weight: 700; }
.know p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.cta-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(28px, 4vw, 48px); border-radius: 26px; border: 1px solid var(--line-c);
  background: radial-gradient(80% 140% at 0% 0%, rgba(6, 182, 212, .14), transparent 60%), rgba(255, 255, 255, .02); }
.cta-panel > div { max-width: 640px; }
.cta-panel p { margin-top: 12px; color: var(--text2); font-size: 17px; }
.cta-panel .cta-row { margin-top: 0; }
.others-h { margin: clamp(56px, 7vw, 88px) 0 20px; }

/* ---------------------------------------------------------------- подвал */
.foot { padding: 44px var(--gut) 52px; border-top: 1px solid var(--line); background: rgba(2, 2, 8, .6); }
.foot-in { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 48px; color: var(--dim); font-size: 13.5px; }
.fcol h2 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.fcol h2 a { color: inherit; text-decoration: none; } .fcol h2 a:hover { color: #fff; }
.fcol h2.f2 { margin-top: 22px; }
.fcol ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.fcol ul.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 24px; }
.fcol li a { color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; } .fcol li a:hover { color: #fff; }
.fcol li small { color: var(--dim); font-size: 12.5px; }
.fcol.about a { color: var(--muted); } .fcol.about p a { text-decoration: none; } .fcol.about p a:hover { color: #fff; }
.foot-lang { margin-top: 14px; } .foot-lang a { color: var(--muted); text-decoration: none; } .foot-lang a:hover { color: #fff; }
@media (max-width: 920px) { .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fcol.about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: minmax(0, 1fr); } .fcol ul.two { grid-template-columns: minmax(0, 1fr); } }
.foot-in .brand b { font-size: 16px; }
.foot-in p { margin-top: 10px; max-width: 32em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-start; margin-top: 12px; }
.foot-links a { color: var(--muted); text-decoration: none; } .foot-links a:hover { color: #fff; }

/* ---------------------------------------------------------------- форма «Заказать показ» */
html.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(2, 4, 10, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: mfade .2s ease-out; }
.modal-box { position: relative; width: min(660px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; padding: clamp(24px, 3.5vw, 36px); border-radius: 24px;
  border: 1px solid var(--line2); background: #070b14; box-shadow: 0 50px 120px -30px #000; animation: min .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes mfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes min { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-x:hover { color: #fff; border-color: rgba(6, 182, 212, .5); }
.modal-x svg { width: 18px; height: 18px; }
.df h2, .df-done h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.015em; font-weight: 750; padding-right: 40px; }
.df > p, .df-done > p { margin-top: 8px; color: var(--muted); }
.df-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; margin-top: 24px; }
.df label { display: flex; flex-direction: column; gap: 6px; color: var(--text2); font-size: 13.5px; font-weight: 500; }
.df label .lt { display: flex; align-items: baseline; gap: 8px; }
.df label small { color: var(--dim); font-weight: 400; font-size: 12px; }
[tabindex="-1"]:focus { outline: none; }
.df .wide { grid-column: 1 / -1; }
.df input, .df select, .df textarea { width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: #fff;
  font: 400 15px/1.3 var(--sans); transition: border-color .15s, background .15s; }
.df select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.df select option { background: #0b1220; color: #fff; }
.df textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.df input:focus, .df select:focus, .df textarea:focus { outline: none; border-color: rgba(6, 182, 212, .7); background: rgba(6, 182, 212, .05); }
.df .bad { border-color: rgba(251, 113, 133, .8); }
.df .em { min-height: 1em; color: var(--red); font-size: 12px; font-weight: 400; }
.df-note { margin: 18px 0 20px; color: var(--dim); font-size: 13px; }
.df-done .mail-box { margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); color: var(--cyan2); font: 500 15px/1.3 var(--mono); }
.df-done .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------------------------------------------------------------- отдельная страница демо (стенд) */
.demo-page .sec { padding-top: 34px; }
.demo-page .live { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.kiosk .nav, .kiosk .foot, .kiosk .demo-head { display: none; }

/* ---------------------------------------------------------------- адаптивность */
@media (max-width: 1180px) {
  .ind-grid, .sen-grid, .recipes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways, .steps.s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .side > .tries { grid-row: span 2; }
  .log { height: 300px; }
}
@media (max-width: 1040px) {
  .nav-links a { padding: 8px 9px; font-size: 13.5px; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; padding: 10px 14px 16px; background: rgba(3, 7, 18, .97); border-bottom: 1px solid var(--line); }
  .nav-links.open .lang-m { display: flex; gap: 6px; padding: 10px 6px 0; }
  .nav-links.open .lang-m a { flex: 1; text-align: center; border: 1px solid var(--line2); border-radius: 9px; padding: 9px 0; font: 500 13px/1 var(--mono); }
  .menu-btn { display: inline-flex; }
  .nav-r .btn { display: none; }
  .nav-r .lang { display: none; }
  .hero-row, .ihero-in, .lists, .start, .know { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .iscene { min-height: 360px; }
  .sen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  .ind-grid { gap: 8px; }
  .ind-card { min-height: 0; padding: 12px; gap: 12px; } .ind-card h3 { font-size: 15px; } .ind-card .go { display: none; }
  .ind-ic { width: 42px; height: 42px; border-radius: 11px; } .ind-ic svg { width: 21px; height: 21px; }
  .ways, .steps.s4, .recipes { grid-template-columns: minmax(0, 1fr); }
  .sen-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .sen-grid li { padding: 14px; } .sen-grid b { font-size: 15.5px; } .sen-grid span { font-size: 13.5px; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .side > .tries { grid-row: auto; }
  .stage { padding: 18px 12px 16px; flex-direction: column; align-items: center; gap: 14px; }
  .dev-switch { display: flex; gap: 6px; padding: 4px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); position: relative; z-index: 2; }
  .dev-switch button { padding: 8px 18px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
  [data-show="radio"] .dev-switch [data-do="tour-radio"], [data-show="phone"] .dev-switch [data-do="tour-phone"] { background: rgba(6, 182, 212, .16); color: #fff; }
  [data-show="phone"] .dev-r, [data-show="radio"] .dev-p { display: none; }
  .dev-r, .dev-p { animation: devin .3s ease-out; }
  .dev .t320 { width: calc(min(360px, 86vw) * var(--ws, 1)); }
  .models { position: static; padding: 0; gap: 5px; }
  [data-show="phone"] .models { display: none; }
  .models button { padding: 7px 11px; font-size: 11.5px; }
  .dev-r { min-height: 0; }
  .dev .dev-phone { --pw: min(300px, 84vw); }
  .ptt-tip { display: none; }
  .fcard { max-width: 220px; }
  .fcard.p1 { left: 0; top: 2%; } .fcard.p2 { right: 0; bottom: 2%; }
  .brand b { font-size: 17px; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .df-grid { grid-template-columns: minmax(0, 1fr); }
  .modal { padding: 10px; align-items: flex-end; }
  .modal-box { border-radius: 20px; }
  .start-steps::before { left: 21px; }
  .start-steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .start-steps .n { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(27px, 7.6vw, 31px); }
  .ind-grid { grid-template-columns: minmax(0, 1fr); }
  .ind-card h3, .sen-grid b { -webkit-hyphens: manual; hyphens: manual; }
  .ind-card .go { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fcard, .log li, .mbox, .dev-r, .dev-p, .modal-bg, .modal-box, .log li.say.now b::before { animation: none !important; }
  .ind-card, .btn { transition: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) { .iscene { min-height: 0; } }

/* партнёрские страницы */
.ihero-in.one { grid-template-columns: minmax(0, 900px); }
.phero { padding-bottom: clamp(24px, 4vh, 48px); }
.phero .hero-cta { flex-wrap: wrap; }
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pcard { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg2, rgba(255, 255, 255, .02)); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.pcard:hover { border-color: var(--line-c, rgba(6, 182, 212, .4)); transform: translateY(-2px); }
.pcard > span:nth-child(2) { flex: 1; min-width: 0; }
.pcard b { display: block; font-size: 22px; line-height: 1.25; font-weight: 700; }
.pcard small { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.pcard .go { width: 20px; height: 20px; flex: none; color: var(--dim); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.brand-card { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: var(--r); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.brand-card:hover { border-color: var(--line-c, rgba(6, 182, 212, .4)); transform: translateY(-2px); }
.brand-card .bc-img { width: 56px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center; }
.brand-card .bc-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.brand-card .bc-t { flex: 1; min-width: 0; }
.brand-card b { display: block; font-size: 19px; font-weight: 700; }
.brand-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.brand-card .go { width: 18px; height: 18px; flex: none; color: var(--dim); }
@media (max-width: 760px) { .pcards { grid-template-columns: minmax(0, 1fr); } .pcard { padding: 20px; gap: 14px; } .pcard b { font-size: 19px; } }

/* карточки с мини-кадром интерфейса (вариант 2) */
.vcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.vcard { border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: rgba(148, 163, 184, .035); transition: border-color .25s, transform .25s; }
.vcard:hover { border-color: rgba(6, 182, 212, .45); transform: translateY(-3px); }
.vcard .tx { padding: 22px 22px 26px; }
.vcard h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.vcard p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.vis { position: relative; height: 176px; overflow: hidden; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px;
  font-family: var(--mono); color: #cbd5e1; font-size: 11px; letter-spacing: .06em;
  background: radial-gradient(260px 160px at 50% 115%, rgba(6, 182, 212, .2), transparent 70%), linear-gradient(180deg, #0b1220, #070b14); }
.vis::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px); background-size: 22px 22px; }
.vis > * { position: relative; z-index: 1; }
.vis svg { width: 15px; height: 15px; flex: none; }
.vis b { font-weight: 600; } .vis small { color: #64748b; font-size: 10px; letter-spacing: .08em; }
.vis small.ok { color: #3ddc84; } .vis small.wk { color: #f5b544; }
.vis .d { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #3ddc84; display: inline-block; }
.vis .d.r { background: #ff5c5c; } .vis .d.a { background: #f5b544; } .vis .d.b { background: #4a9eff; }
.vz-row, .vz-chip { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.vz-row b, .vz-chip b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-row.live { border-color: rgba(61, 220, 132, .5); background: rgba(61, 220, 132, .08); }
.vz-air { font-style: normal; font-size: 9.5px; color: #3ddc84; border: 1px solid rgba(61, 220, 132, .5); padding: 2px 6px; border-radius: 4px; animation: vz-blink 1.6s ease-in-out infinite; }
@keyframes vz-blink { 50% { opacity: .45; } }
.vz-chip svg { color: #3ddc84; } .vz-chip span { color: #3ddc84; white-space: nowrap; }
.vz-chip.al { border-color: rgba(255, 92, 92, .55); background: rgba(255, 92, 92, .1); } .vz-chip.al svg, .vz-chip.al span { color: #ff7b7b; }
.vz-win { border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: #0d1424; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.vz-wb { display: flex; align-items: center; gap: 4px; margin: 0 -8px; padding: 7px 9px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.vz-wb i { width: 6px; height: 6px; border-radius: 50%; background: #334155; } .vz-wb span { margin-left: 8px; color: #64748b; font-size: 9.5px; }
.vz-win .vz-row { padding: 6px 8px; font-size: 10px; }
/* эфир */
.vz-ptt { align-items: center; gap: 10px; }
.vz-bar { align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.vz-bar b { flex: 1; }
.vz-ring { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ff6b6b; border: 2px solid #ff5c5c; background: rgba(255, 92, 92, .12);
  box-shadow: 0 0 0 7px rgba(255, 92, 92, .08); animation: vz-pulse 1.8s ease-out infinite; }
.vz-ring svg { width: 22px; height: 22px; } .vz-ring.sm { width: 40px; height: 40px; color: #3ddc84; border-color: #3ddc84; background: rgba(61, 220, 132, .1); box-shadow: 0 0 0 6px rgba(61, 220, 132, .1); animation: none; }
.vz-ring.sm svg { width: 17px; height: 17px; }
@keyframes vz-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 92, 92, .35); } 100% { box-shadow: 0 0 0 14px rgba(255, 92, 92, 0); } }
.vz-wave { display: flex; align-items: center; gap: 3px; height: 18px; }
.vz-wave i { width: 3px; height: var(--h); border-radius: 2px; background: #ff7b7b; animation: vz-wv 1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
@keyframes vz-wv { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.vz-cap { color: #ff7b7b; font-size: 10px; letter-spacing: .14em; }
/* вызов группы */
.vz-alert { display: flex; align-items: center; gap: 9px; color: #4a9eff; } .vz-alert svg { width: 18px; height: 18px; animation: vz-blink 1.4s ease-in-out infinite; }
.vz-alert b { color: #fff; letter-spacing: .14em; } .vz-group .vz-row { padding: 7px 10px; }
/* устройства */
.vz-dev { flex-direction: row; align-items: center; justify-content: center; gap: 14px; }
.vz-dev .vz-win { width: 62%; }
.vz-ph { width: 62px; height: 116px; flex: none; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .18); background: #0d1424; display: flex; align-items: center; justify-content: center; }
.vz-radios { flex-direction: row; align-items: flex-end; justify-content: center; gap: 0; padding: 16px 10px 0; }
.vz-radios img { height: 150px; width: auto; margin: 0 -8px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); }
.vz-radios img:nth-child(2) { height: 168px; z-index: 2; }
/* фото, звонок, QR, SOS, чат */
.vz-photo { align-items: flex-end; }
.vz-msg { width: 78%; padding: 7px; border-radius: 12px 12px 4px 12px; background: rgba(23, 56, 112, .92); border: 1px solid rgba(96, 165, 250, .32); }
.vz-msg img { display: block; width: 100%; height: 86px; object-fit: cover; border-radius: 8px; }
.vz-msg p { margin: 6px 2px 2px; font-family: var(--sans, system-ui); font-size: 12px; letter-spacing: 0; color: #e8edf5; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vz-msg small { display: block; margin: 0 2px; text-align: right; color: rgba(191, 219, 254, .7); }
.vz-call { align-items: center; gap: 6px; }
.vz-av { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(74, 158, 255, .14); color: #4a9eff; border: 1px solid rgba(74, 158, 255, .4); }
.vz-av svg { width: 22px; height: 22px; } .vz-call b { color: #fff; letter-spacing: .14em; margin-top: 4px; } .vz-call small { color: #3ddc84; }
.vz-end { width: 34px; height: 34px; margin-top: 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e5484d; color: #fff; }
.vz-qr { flex-direction: row; align-items: center; justify-content: center; gap: 16px; }
.vz-code { width: 92px; height: 92px; border-radius: 12px; background: #fff; color: #0b1220; display: flex; align-items: center; justify-content: center; } .vz-code svg { width: 66px; height: 66px; }
.vz-qr > div:last-child { display: flex; flex-direction: column; gap: 6px; } .vz-qr b { color: #fff; letter-spacing: .1em; }
.vz-sos { align-items: center; gap: 6px; background: radial-gradient(240px 150px at 50% 50%, rgba(229, 72, 77, .32), transparent 70%), linear-gradient(180deg, #160a0e, #0a070b); }
.vz-sosb { display: flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 12px; background: #e5484d; color: #fff; animation: vz-blink 1.2s ease-in-out infinite; }
.vz-sosb svg { width: 22px; height: 22px; } .vz-sosb b { font-size: 18px; letter-spacing: .2em; } .vz-sos small { color: #fca5a5; }
.vz-chat { gap: 8px; }
.vz-b { max-width: 84%; padding: 8px 10px; border-radius: 12px; font-family: var(--sans, system-ui); letter-spacing: 0; font-size: 12px; line-height: 1.35; color: #e8edf5; }
.vz-b.in { align-self: flex-start; background: rgba(13, 18, 30, .95); border: 1px solid rgba(255, 255, 255, .1); border-bottom-left-radius: 4px; }
.vz-b.in small { display: block; margin-bottom: 3px; color: #4a9eff; font-family: var(--mono); letter-spacing: .1em; }
.vz-b.out { align-self: flex-end; background: rgba(23, 56, 112, .92); border: 1px solid rgba(96, 165, 250, .32); border-bottom-right-radius: 4px; }
.vz-voice { display: flex; align-items: center; gap: 8px; width: 62%; } .vz-voice span { flex: 1; display: flex; align-items: center; gap: 2px; height: 18px; }
.vz-voice span i { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .55); } .vz-voice small { font-family: var(--mono); color: rgba(191, 219, 254, .8); }
/* карта, расписание, покупатели, правило */
.vz-map { padding: 0; background: #e9e7e2; }
.vz-map::after { display: none; }
.vz-map .road { position: absolute; background: #fff; } .vz-map .road.h { left: 0; right: 0; top: 48%; height: 9px; } .vz-map .road.v { top: 0; bottom: 0; left: 40%; width: 9px; }
.vz-map .park { position: absolute; right: 8%; top: 8%; width: 30%; height: 30%; border-radius: 6px; background: #d4e3cf; }
.vz-pin { position: absolute; display: flex; align-items: center; gap: 5px; transform: translate(-6px, -6px); padding: 3px 7px 3px 3px; border-radius: 999px; background: rgba(11, 18, 32, .9); color: #fff; font-size: 9.5px; }
.vz-pin i { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .3); }
.vz-time { display: flex; align-items: center; gap: 10px; padding: 0 4px; } .vz-time .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.vz-time .bar i { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.vz-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 22px 26px; }
.vz-tile { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(6, 182, 212, .08); border: 1px solid rgba(6, 182, 212, .25); color: var(--cyan2); }
.vz-tile svg { width: 22px; height: 22px; }
.vz-rule { flex-direction: column; align-items: stretch; gap: 4px; }
.vz-rule .ar { align-self: center; transform: rotate(90deg); color: #64748b; width: 13px; height: 13px; }
.vz-rule .vz-chip { padding: 6px 10px; }
/* шаги: крупные цифры и полоса прогресса */
.vsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.vsteps .seg { display: block; height: 4px; border-radius: 2px; margin-bottom: 22px; background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.vsteps li:nth-child(2) .seg { opacity: .75; } .vsteps li:nth-child(3) .seg { opacity: .5; } .vsteps li:nth-child(4) .seg { opacity: .3; }
.vsteps .num { display: block; margin-bottom: 12px; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; background: linear-gradient(135deg, #e0f2fe, #06b6d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vsteps h3 { font-size: 19px; line-height: 1.3; font-weight: 700; } .vsteps p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 1100px) { .vcards, .vsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vcards, .vsteps { grid-template-columns: minmax(0, 1fr); } .vis { height: 164px; } }
@media (prefers-reduced-motion: reduce) { .vz-air, .vz-ring, .vz-wave i, .vz-alert svg, .vz-sosb { animation: none; } }

/* первый экран отрасли: рация PRIVOX с перепиской смены (облачка передачи и приёма по бокам) */
.iradio { position: relative; z-index: 1; display: flex; justify-content: flex-end; width: 100%; max-width: 620px; padding: 10px 24px 10px 0; pointer-events: none; }
.iradio .t320 { width: calc(min(340px, 62vw) * var(--ws, 1)); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); }
.rsay { position: absolute; z-index: 3; max-width: 230px; padding: 11px 14px 12px; border-radius: 16px; background: rgba(13, 18, 30, .94); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.rsay.on { opacity: 1; transform: none; }
.rsay b { display: block; margin-bottom: 4px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rsay p { margin: 0; color: #e8edf5; font-size: 14px; line-height: 1.42; }
.rsay.tx { left: 0; top: 44%; border-color: rgba(255, 150, 60, .5); border-bottom-right-radius: 5px; } .rsay.tx b { color: #ffb36b; }
.rsay.rx { left: 0; top: 14%; border-color: rgba(61, 220, 132, .45); border-bottom-right-radius: 5px; } .rsay.rx b { color: #3ddc84; }
@media (max-width: 1040px) { .iradio { justify-content: center; padding-right: 0; } .rsay.tx, .rsay.rx { left: 2%; } }
@media (max-width: 760px) {
  .iradio .t320 { width: min(260px, 66vw); }
  .rsay { max-width: 80%; } .rsay.tx { left: 0; top: auto; bottom: 16%; } .rsay.rx { left: auto; right: 0; top: 4%; }
}
@media (prefers-reduced-motion: reduce) { .rsay { transition: none; } }

/* страница «Рация + PRIVOX или телефон + мессенджер» */
.cmp-more { margin-top: 26px; } .cmp-more .btn svg:last-child { margin-left: 2px; }
.vs-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: end; min-height: 0; }
.vs-col { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vs-lbl { font: 600 11.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.vs-lbl.us { color: var(--cyan2); }
.vs-phone { --pw: min(230px, 38vw); }
.vs-lock { position: absolute; inset: 0; padding: 16% 6% 6%; display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(120% 70% at 50% 0%, #2b3a55, #121826 60%, #0b0f18); color: #fff; font-family: var(--sans, system-ui); }
.vs-time { font-size: calc(var(--pw) * .22); font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.vs-date { margin-top: 4px; font-size: calc(var(--pw) * .055); color: rgba(255, 255, 255, .75); }
.vs-ns { width: 100%; margin-top: 10%; display: flex; flex-direction: column; gap: calc(var(--pw) * .028); }
.vs-n { display: flex; gap: 8px; align-items: flex-start; padding: calc(var(--pw) * .035); border-radius: calc(var(--pw) * .06); background: rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; animation: vs-note 14s ease-in-out infinite; animation-delay: calc(var(--i) * 1.3s); }
.vs-n .ap { width: calc(var(--pw) * .085); height: calc(var(--pw) * .085); flex: none; border-radius: 25%; background: #3b82f6; }
.vs-n .ap.a1 { background: #22c55e; } .vs-n .ap.a2 { background: #f59e0b; } .vs-n .ap.a3 { background: #a855f7; }
.vs-n div { min-width: 0; flex: 1; }
.vs-n b { display: flex; justify-content: space-between; font-size: calc(var(--pw) * .048); font-weight: 600; }
.vs-n b small { font-weight: 400; color: rgba(255, 255, 255, .6); font-size: calc(var(--pw) * .042); }
.vs-n p { margin: 1px 0 0; font-size: calc(var(--pw) * .046); line-height: 1.3; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes vs-note { 0% { opacity: 0; transform: translateY(-8px); } 5%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }
.iradio.solo { justify-content: center; padding: 0; max-width: none; }
.iradio.solo .t320 { width: min(240px, 38vw); }
.iradio.solo .rsay { max-width: 210px; }
.iradio.solo .rsay.rx { left: auto; right: -6%; top: 2%; } .iradio.solo .rsay.tx { left: -34%; top: auto; bottom: 30%; }
.vs-table { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.vs-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.vs-row:first-child { border-top: 0; }
.vs-row > div { padding: 18px 22px; }
.vs-c { font-weight: 700; font-size: 16.5px; line-height: 1.35; color: #fff; }
.vs-p, .vs-r { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.vs-p { color: var(--muted); } .vs-r { color: var(--text2); background: rgba(6, 182, 212, .055); }
.vs-p svg, .vs-r svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.vs-p svg { color: #f87171; } .vs-p.ok svg { color: #3ddc84; } .vs-r svg { color: #3ddc84; }
.vs-head > div { padding-top: 16px; padding-bottom: 16px; font: 600 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; align-items: center; }
.vs-head .vs-p svg { color: var(--dim); } .vs-head .vs-r { color: var(--cyan2); } .vs-head .vs-r svg { color: var(--cyan2); }
.vs-habit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.vs-habit p { margin-top: 16px; color: var(--text2); font-size: 17px; line-height: 1.6; }
.vs-habit ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.vs-habit li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; } .vs-habit li svg { width: 18px; height: 18px; color: #3ddc84; flex: none; margin-top: 3px; }
.vs-habit-v { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vs-habit-v .vis { border: 1px solid var(--line); border-radius: 18px; }
@media (max-width: 920px) { .vs-habit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vs-row .vs-c { grid-column: 1 / -1; padding-bottom: 4px; }
  .vs-head .vs-c { display: none; }
  .vs-row > div { padding: 12px 14px; } .vs-p, .vs-r { font-size: 14px; gap: 8px; }
  .vs-phone { --pw: min(170px, 42vw); } .iradio.solo .t320 { width: min(170px, 42vw); }
  .iradio.solo .rsay { display: none; }
}
@media (max-width: 560px) { .vs-habit-v { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .vs-n { animation: none; opacity: 1; } }

.vs-p.mid svg { color: #f5b544; }
/* 3) кнопки первого экрана: крупнее и контрастнее заголовка и ролика */
.hero .hero-cta, .ihero .hero-cta { gap: 14px; margin-top: 32px; }
.hero .hero-cta .btn, .ihero .hero-cta .btn { height: 58px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.hero .hero-cta .btn svg, .ihero .hero-cta .btn svg { width: 20px; height: 20px; }
.hero .hero-cta .btn-p, .ihero .hero-cta .btn-p { color: #04121c; background: #fff; box-shadow: 0 10px 40px -8px rgba(255, 255, 255, .35), 0 0 0 1px rgba(255, 255, 255, .6); }
.hero .hero-cta .btn-p svg, .ihero .hero-cta .btn-p svg { color: #0891b2; }
.hero .hero-cta .btn-p:hover, .ihero .hero-cta .btn-p:hover { background: #e6fbff; box-shadow: 0 12px 46px -8px rgba(103, 232, 249, .55), 0 0 0 1px #fff; }
.hero .hero-cta .btn-g, .ihero .hero-cta .btn-g { color: #fff; border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); }
.hero .hero-cta .btn-g:hover, .ihero .hero-cta .btn-g:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
@media (max-width: 480px) { .hero .hero-cta .btn, .ihero .hero-cta .btn { width: 100%; height: 54px; } }

/* форма: ловушка для ботов и два исхода отправки */
.df .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.df-done[data-state="ok"] .st-fail, .df-done[data-state="fail"] .st-ok { display: none; }
.df-ic { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center; margin-bottom: 16px; }
.df-ic svg { width: 24px; height: 24px; }
.df-ic.ok { background: rgba(61, 220, 132, .12); color: #3ddc84; } .df-ic.fail { background: rgba(245, 181, 68, .12); color: #f5b544; }
.df-done .row { flex-wrap: wrap; }
.df [type="submit"][disabled] { opacity: .7; cursor: progress; }

/* тень под корпусом рации — CSS, а не остаток студийной тени в картинке (tools/prepare_radio.py, trim_shadow) */
.t320-img { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)) drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }

.stage:has(.models) { padding-top: 72px; }
