/* The node-4 Desk site (index.html): dark, neon blue, glass cards. The remote access page
   (connect.html) and the downloads keep style.css. */
:root {
  --bg: #070b16; --text: #e6edf7; --muted: #9fb0cc; --faint: #5b6b86;
  --accent: #3b82f6; --accent2: #06b6d4; --accent-text: #fff;
  --glass: rgba(255, 255, 255, .04); --line: rgba(255, 255, 255, .09);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; } /* шапка не сдвигается на страницах без прокрутки */
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(1000px 650px at 78% -5%, rgba(37, 99, 235, .32), transparent 60%),
    radial-gradient(800px 560px at 5% 30%, rgba(6, 182, 212, .12), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.site { max-width: 1280px; margin: 0 auto; padding: 0 40px; overflow-x: clip; }
h1, h2, h3, p { overflow-wrap: break-word; }

/* nav */
.nav { display: flex; align-items: center; gap: 36px; padding: 24px 0; line-height: 1.5; }
.nav nav { display: flex; gap: 28px; flex: 1 0 auto; font-size: 15px; color: #8ea0bd; }
.nav nav a, .nav .btn { white-space: nowrap; }
.nav .btn { flex: none; }
.nav nav a:hover { color: var(--text); }
.nav-logo { display: inline-flex; color: var(--text); }
.site-logo { height: 34px; width: auto; }

/* buttons */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 26px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 28px rgba(59, 130, 246, .45);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 38px rgba(59, 130, 246, .6); }
.btn small { font-weight: 400; font-size: 12px; opacity: .85; margin-top: 3px; }
.btn.small { padding: 10px 18px; font-size: 14px; }
.btn.ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }

/* hero */
.hero { display: flex; gap: 56px; align-items: center; padding: 48px 0 90px; }
.hero-text { flex: 1.05; min-width: 0; }
.tag {
  display: inline-block; padding: 6px 14px; margin-bottom: 20px; border-radius: 999px; font-size: 13px;
  color: #93c5fd; background: rgba(59, 130, 246, .15); border: 1px solid rgba(59, 130, 246, .35);
}
h1 {
  margin: 0 0 20px; font-size: clamp(36px, 5vw, 58px); line-height: 1.07; letter-spacing: -1.5px;
  background: linear-gradient(90deg, #fff, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0 0 28px; font-size: 19px; color: var(--muted); max-width: 600px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.connect {
  display: flex; align-items: center; gap: 12px; max-width: 560px;
  padding: 10px 10px 10px 20px; border-radius: 14px; font-size: 14px; color: #8ea0bd;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .1);
}
.connect input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 10px; font-family: inherit; font-size: 18px; letter-spacing: 2px;
  color: var(--text); background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1); outline: none;
}
.connect input:focus { border-color: var(--accent); }
.connect .btn { padding: 12px 20px; }

/* the downloads panel (download.js) */
.download-panel {
  max-width: 560px; margin: -6px 0 22px; padding: 16px 18px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line); font-size: 14px;
}
.dl-detected { margin: 0 0 10px; }
.dl-status { margin: 0 0 8px; color: var(--muted); }
.dl-status.error { color: #fca5a5; }
.dl-actions { display: flex; flex-direction: column; gap: 8px; }
.dl-link { color: #93c5fd; word-break: break-word; }
.dl-link.primary { display: block; text-align: center; font-weight: 700; padding: 11px 16px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.dl-note { margin: 4px 0 0; color: var(--muted); }
.dl-note a, .dl-all a { color: #93c5fd; }
.dl-all { margin-top: 10px; }
.dl-all ul { margin: 8px 0 0; padding-left: 18px; }
.dl-mac { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.dl-mac p { margin: 0 0 8px; color: var(--muted); }
.dl-mac .dl-mac-title { color: var(--text); font-weight: 600; }
.dl-mac-cmd { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 0 0 10px; }
.dl-mac-cmd code { align-self: stretch; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .35); font-size: 13px; word-break: break-all; user-select: all; }
.dl-mac-cmd button { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer; }

/* hero picture */
.hero-art { flex: 1; position: relative; height: 420px; min-width: 0; }
.device {
  position: absolute; right: 0; top: 0; width: min(560px, 100%); height: 350px; overflow: hidden; border-radius: 14px;
  background: #0d1426; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 80px rgba(59, 130, 246, .35);
}
.bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 12px; color: #8ea0bd; background: #111a30; }
.bar i { width: 11px; height: 11px; border-radius: 50%; background: #26324d; display: block; }
.bar span { margin-left: 12px; }
.screen { display: flex; gap: 16px; padding: 22px; height: 316px; }
.doc { flex: 1; border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #121b33; }
.doc b { display: block; height: 9px; width: 90%; border-radius: 5px; background: #2a3858; }
.doc b.s { width: 55%; }
.vid { flex: 1; border-radius: 8px; background: linear-gradient(135deg, #f59e0b, #ef4444, #8b5cf6); background-size: 200% 200%; animation: vid 6s ease-in-out infinite alternate; }
@keyframes vid { to { background-position: 100% 100%; } }
.agent {
  position: absolute; left: 0; bottom: 0; width: 250px; padding: 18px; border-radius: 16px; font-size: 13px;
  background: rgba(17, 26, 48, .88); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
}
.agent-logo { color: var(--text); margin-bottom: 10px; }
.agent-logo .site-logo { height: 22px; }
.agent .cap { font-size: 11px; color: var(--faint); letter-spacing: 1px; }
.agent .id { font-size: 26px; font-weight: 700; letter-spacing: 1px; margin: 4px 0 8px; }
.agent .ok { color: #22c55e; font-size: 12px; }

/* sections */
section { padding: 64px 0; }
h2 { margin: 0 0 28px; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.8px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 24px; border-radius: 18px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .08); transition: border-color .15s, transform .15s; }
.card:hover { border-color: rgba(59, 130, 246, .5); transform: translateY(-2px); }
/* Рабочие панели удалённого доступа не подпрыгивают. */
.cx-main .card:hover { transform: none; }
.card h3 { margin: 14px 0 8px; font-size: 18px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #93c5fd; background: rgba(59, 130, 246, .15); }

.server { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.server h2 { margin-bottom: 16px; }
.checks { list-style: none; margin: 0; padding: 24px 28px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.checks li { position: relative; padding: 10px 0 10px 30px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent2); font-weight: 700; }

.steps .row, .platforms .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps span { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.steps h3 { margin: 14px 0 6px; }
.steps p { margin: 0; color: #8ea0bd; }
.platforms .row { grid-template-columns: repeat(5, 1fr); }
.platforms a { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; font-weight: 700; font-size: 19px; background: var(--glass); border: 1px solid var(--line); }
.platforms a:hover { border-color: rgba(59, 130, 246, .5); }
.platforms small { font-weight: 400; font-size: 13px; color: #8ea0bd; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.foot .site-logo { height: 26px; }

.app-version {
  position: fixed; right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 20; user-select: none;
  padding: 3px 6px; border-radius: 5px; background: rgba(2, 6, 23, .62); color: rgba(255, 255, 255, .82);
  font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; pointer-events: none;
}
.app-version.clickable { pointer-events: auto; cursor: pointer; }

/* narrower screens */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .platforms .row { grid-template-columns: repeat(3, 1fr); }
  .hero { flex-direction: column; align-items: stretch; }
  .hero-art { height: 400px; }
  .server { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site { padding: 0 16px; }
  .nav { gap: 14px; flex-wrap: wrap; }
  .nav nav { order: 3; flex-basis: 100%; min-width: 0; gap: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav .btn.small { margin-left: auto; }
  .cta .btn { flex: 1 1 auto; }
  .hero { padding: 24px 0 48px; gap: 32px; }
  .hero-art { display: none; }
  .grid, .steps .row { grid-template-columns: 1fr; }
  .platforms .row { grid-template-columns: repeat(2, 1fr); }
  .connect { flex-wrap: wrap; padding: 12px; }
  .connect label { flex-basis: 100%; }
  section { padding: 44px 0; }
}

/* header: the account link */
.nav-account { transition: transform .15s, border-color .15s; color: var(--text); font-size: 15px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.nav-account:hover { border-color: rgba(59, 130, 246, .6); transform: translateY(-1px); }
h1.plain { background: none; color: var(--text); -webkit-background-clip: border-box; background-clip: border-box; font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.5px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.status { min-height: 1.4em; color: var(--muted); font-size: 14px; }
.status.error { color: #fca5a5; }
.btn.wide { width: 100%; }
.btn.off { opacity: .45; }
button.link { background: none; border: 0; color: #93c5fd; cursor: pointer; font: inherit; font-size: 13px; padding: 4px 6px; }
button.link.danger { color: #fca5a5; }
input[type=email], input[type=password], .auth input, .add-row input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); outline: none;
}
input:focus { border-color: var(--accent); }

/* login.html */
.auth { display: flex; gap: 64px; align-items: flex-start; padding: 30px 0 70px; }
.auth-card { width: 440px; max-width: 100%; padding: 32px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.auth-card label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.auth-card .btn.wide { margin-top: 18px; }
.auth-card .small { color: var(--faint); margin-top: 16px; }
.tabs { display: flex; gap: 6px; margin: 20px 0 6px; background: rgba(0, 0, 0, .3); padding: 4px; border-radius: 10px; }
.tabs button { flex: 1; padding: 8px; border-radius: 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.tabs button.on { background: #1e293b; color: #fff; }
.auth-side { flex: 1; padding-top: 18px; }
.auth-side h2 { margin-bottom: 16px; }
.checks.plain { background: none; border: 0; padding: 0; margin: 0 0 22px; }
.note { padding: 14px 18px; border-radius: 12px; background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .35); color: #bfdbfe; font-size: 14px; }

/* account.html */
.acct { padding: 20px 0 60px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.acct-head h1 { word-break: break-all; }
.acct-actions { display: flex; gap: 10px; }
.panel { padding: 24px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 18px; }
.panel h2 { font-size: 22px; margin: 0 0 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; }
.chips button { padding: 5px 12px; border-radius: 999px; border: 0; background: #1e293b; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.chips button.on { background: #1d4ed8; color: #fff; }
.add-row { display: flex; gap: 10px; margin: 6px 0 10px; }
.pw-form { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; max-width: 420px; }
.pw-form input { font-size: 15px; padding: 10px 12px; }
.pw-form .btn { align-self: flex-start; }
.pw-form .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.admin-badge { margin-left: 10px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: #fde68a; background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .45); }
.add-row input { font-size: 15px; padding: 10px 12px; }
.add-row input:first-child { max-width: 200px; }
.book { display: flex; flex-direction: column; gap: 8px; }
.b-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(17, 26, 46, .8); border: 1px solid #1e293b; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #475569; }
.dot.online { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.dot.busy { background: #f59e0b; }
.dot.unknown, .dot.hidden { background: #334155; }
.b-name { flex: 1; min-width: 0; }
.b-name b { margin-right: 6px; }
.b-name small { display: block; color: var(--muted); font-size: 12.5px; }
.os { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: #1e293b; color: var(--muted); white-space: nowrap; }
.b-st { width: 170px; text-align: right; font-size: 13px; color: var(--muted); }
.b-st.online { color: #4ade80; }
.b-st.busy { color: #fbbf24; }
.b-act { display: flex; align-items: center; gap: 4px; }

/* pricing.html */
.pricing { padding: 20px 0 60px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0 18px; }
.plan { display: flex; flex-direction: column; padding: 22px; border-radius: 18px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .1); }
.plan.hot { border-color: var(--accent); box-shadow: 0 0 40px rgba(59, 130, 246, .3); background: rgba(59, 130, 246, .08); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 26px; font-weight: 700; margin: 10px 0 2px; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan .who { color: var(--muted); font-size: 13px; min-height: 38px; margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; flex: 1; }
.plan li { padding: 5px 0 5px 22px; position: relative; font-size: 14px; color: #c4d0e4; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent2); }
.plan li.no { color: var(--faint); }
.plan li.no::before { content: "—"; color: var(--faint); }
.plan li.soon::after { content: "скоро"; margin-left: 6px; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(251, 191, 36, .15); color: #fbbf24; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #2563eb; color: #fff; vertical-align: middle; margin-left: 6px; }

@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .auth { flex-direction: column; gap: 30px; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .auth-card { padding: 22px; }
  .add-row { flex-wrap: wrap; }
  .add-row input:first-child { max-width: none; }
  .b-row { flex-wrap: wrap; }
  .b-st { width: auto; text-align: left; }
  .b-act { width: 100%; justify-content: flex-end; }
  .nav-account { order: 2; margin-left: auto; }
}

/* header: the account chip and its menu (account.js) */
.nav-account.chip { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; max-width: 320px; background: rgba(255, 255, 255, .04); cursor: pointer; }
.nav-account .av { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.nav-account .em { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav-account .pl { flex: none; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #334155; color: #cbd5e1; }
.nav-account .pl.pro { background: #2563eb; color: #fff; }
.nav-account .pl.team { background: #0891b2; color: #fff; }
.nav-account .pl.ending { background: #f59e0b; color: #1c1917; }
.nav-account .caret { flex: none; font-size: 11px; color: var(--muted); }
.nav-menu { position: absolute; z-index: 50; width: 270px; padding: 8px; border-radius: 14px; background: #0f172a; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); font-size: 15px; color: var(--text, #e6edf7); }
.nav-menu .nm-head { padding: 8px 10px 10px; }
.nav-menu .nm-head b { display: block; word-break: break-all; }
.nav-menu .nm-head small { display: block; color: #9fb0cc; font-size: 12.5px; margin-top: 2px; }
.nav-menu a, .nav-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nav-menu a:hover, .nav-menu button:hover { background: rgba(255, 255, 255, .07); }
.nav-menu hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 6px 0; }
.nav-menu .nm-out { color: #fca5a5; }
@media (max-width: 640px) { .nav-account .em, .nav-account .pl { display: none; } .nav-account.chip { padding: 4px; } }

/* footer: the company, node-4 («Четыре узла») */
.n4 { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.n4-logo { width: 26px; height: 26px; margin-left: 2px; }
.n4 .wm b { color: var(--text); font-weight: 700; }

/* Текущая страница в шапке. */
.nav nav a[aria-current="page"] { color: var(--text); }

/* «Загрузки» (downloads.html) */
.dl-page { padding: 18px 0 40px; }
.dl-page .lead a { color: #93c5fd; }
.dl-rec { display: flex; align-items: center; gap: 24px; margin: 0 0 28px; padding: 24px 28px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(6, 182, 212, .10)); border: 1px solid rgba(59, 130, 246, .45); }
.dl-os { flex: none; width: 60px; height: 60px; border-radius: 16px; background: rgba(59, 130, 246, .2); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.dl-t { flex: 1; min-width: 0; }
.dl-t small { display: block; color: #93c5fd; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.dl-t b { display: block; font-size: 22px; margin: 2px 0; }
.dl-t span { color: var(--muted); font-size: 14px; }
.dl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.dl-tabs button { font: inherit; font-size: 14px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: none; color: #8ea0bd; cursor: pointer; }
.dl-tabs button:hover { color: var(--text); }
.dl-tabs button.on { background: rgba(59, 130, 246, .15); border-color: rgba(59, 130, 246, .6); color: var(--text); }
.dl-page #dl-page-status { margin: 0 0 18px; }
.dl-page #dl-page-status.error { color: #fca5a5; }
.dl-grp { margin: 0 0 28px; }
.dl-grp h2 { font-size: 22px; margin: 0 0 12px; letter-spacing: -.3px; }
.dl-rows { border-radius: 18px; border: 1px solid rgba(255, 255, 255, .08); background: var(--glass); overflow: hidden; }
.dl-row { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-top: 1px solid rgba(255, 255, 255, .06); }
.dl-row:first-child { border-top: 0; }
.dl-row.mine { background: rgba(59, 130, 246, .08); }
.dl-n { flex: 1; min-width: 0; }
.dl-n b { display: block; font-size: 16px; }
.dl-n span { display: block; color: var(--muted); font-size: 14px; }
.dl-tag { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #2563eb; color: #fff; margin-left: 8px; vertical-align: 2px; }
.dl-meta { color: #8ea0bd; font-size: 13px; white-space: nowrap; }
.dl-none { color: #64748b; font-size: 14px; white-space: nowrap; }
.dl-page .dl-mac { margin-top: 12px; padding: 18px 22px; border-radius: 16px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.dl-page .dl-mac p { margin: 0 0 10px; color: var(--muted); }
.dl-page .dl-mac p:last-child { margin: 0; }
.dl-page .dl-mac .dl-mac-title { color: var(--text); font-weight: 600; font-size: 16px; }
.dl-page .dl-mac-cmd { display: flex; flex-direction: row; gap: 12px; align-items: center; margin: 0 0 12px; }
.dl-page .dl-mac-cmd code { flex: 1; align-self: auto; padding: 12px 16px; border-radius: 12px; background: #050912; border: 1px solid var(--line); font: 13.5px/1.5 ui-monospace, Menlo, Consolas, monospace; color: #cbd5e1; word-break: break-all; user-select: all; }
.dl-page .dl-mac-cmd button { font: inherit; font-size: 13px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer; white-space: nowrap; }

/* «Что нового» (changes.html) */
.ch-page { padding: 18px 0 40px; }
.ch { display: grid; grid-template-columns: 180px 1fr; gap: 36px; }
.ch-toc { position: sticky; top: 20px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; max-height: calc(100vh - 40px); overflow-y: auto; }
.ch-toc small { color: #64748b; padding: 0 12px 6px; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.ch-toc a { padding: 6px 12px; border-radius: 10px; color: #8ea0bd; }
.ch-toc a:hover { color: var(--text); }
.ch-toc a.on { background: rgba(59, 130, 246, .15); color: var(--text); }
.ch-list { position: relative; padding-left: 30px; }
.ch-list::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 0; width: 2px; background: linear-gradient(#3b82f6, rgba(59, 130, 246, .05)); }
.ch-list section { position: relative; margin: 0 0 16px; padding: 20px 26px; border-radius: 18px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .08); scroll-margin-top: 20px; }
.ch-list section::before { content: ""; position: absolute; left: -30px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid #3b82f6; }
.ch-list section:first-child { border-color: rgba(59, 130, 246, .55); background: rgba(59, 130, 246, .08); }
.ch-list section:first-child::before { background: #3b82f6; box-shadow: 0 0 16px #3b82f6; }
.ch-list section:target { border-color: #60a5fa; box-shadow: 0 0 0 2px rgba(96, 165, 250, .5); }
.ch-list h2 { margin: 0; font-size: 21px; display: flex; align-items: center; gap: 10px; }
.ch-list .when { color: #8ea0bd; font-size: 13px; margin: 4px 0 10px; }
.ch-list ul { margin: 0; padding-left: 20px; color: #cbd5e1; font-size: 15px; }
.ch-list li { margin: 5px 0; }
.ch-list a { color: #93c5fd; }
.ch-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #2563eb; color: #fff; }

@media (max-width: 760px) {
  .dl-rec { flex-wrap: wrap; padding: 20px; }
  .dl-rec .btn { width: 100%; }
  .dl-row { flex-wrap: wrap; padding: 14px 16px; gap: 10px; }
  .dl-n { flex-basis: 100%; }
  .dl-page .dl-mac-cmd { flex-direction: column; align-items: stretch; }
  .ch { grid-template-columns: 1fr; }
  .ch-toc { display: none; }
  .ch-list { padding-left: 22px; }
  .ch-list section::before { left: -22px; }
  .ch-list::before { left: 4px; }
  .ch-list section { padding: 16px 18px; }
}

/* Dialogs and forms of the account (connect.html «Мои компьютеры», account.html) */
.m-dlg-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(2, 6, 23, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.m-dlg { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 18px; background: #0f1626; border: 1px solid #334155; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); color: var(--text); }
.m-dlg h3 { margin: 0 0 14px; font-size: 19px; }
.m-dlg h3 small { color: #64748b; font-weight: 400; font-size: 14px; margin-left: 6px; }
.m-dlg label { display: block; font-size: 13px; color: #9fb0cc; margin: 12px 0 0; }
.m-in { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: #050912; border: 1px solid #26324a; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.m-in:focus { border-color: var(--accent); }
textarea.m-in { resize: vertical; line-height: 1.45; }
.m-lock { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(59, 130, 246, .5); background: rgba(59, 130, 246, .06); font-size: 14px; }
.m-lock a { color: #93c5fd; }
.m-err { color: #fca5a5; font-size: 13px; margin: 8px 0 0; min-height: 1em; }
.m-btns { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.m-btns .sp { flex: 1; }
.m-danger { background: none; border: 0; color: #f87171; font: inherit; font-size: 14px; cursor: pointer; padding: 0; width: auto; }
.m-grow { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.m-grow .m-in { margin: 0; }
.m-grow input[type=color] { flex: none; width: 36px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid #26324a; background: #050912; cursor: pointer; }
.m-x { flex: none; width: 34px; height: 36px; border-radius: 8px; border: 1px solid #26324a; background: none; color: #9fb0cc; cursor: pointer; padding: 0; }
.m-x:hover { color: #f87171; }
/* Модуль быстрой помощи (account.html) */
.qs-form { margin-top: 14px; }
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.qs-grid label, .qs-grid .qs-l { display: block; font-size: 13px; color: #9fb0cc; margin: 10px 0 0; }
.qs-grid .full { grid-column: 1 / -1; }
.qs-logo { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 10px; border: 1px dashed #334155; border-radius: 12px; font-size: 13px; color: #cbd5e1; }
.qs-logo-img { flex: none; width: 52px; height: 52px; border-radius: 12px; background: #1e293b center / contain no-repeat; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: #fff; }
.qs-colors { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qs-colors button { width: 30px; height: 30px; border-radius: 8px; border: 0; cursor: pointer; padding: 0; }
.qs-colors button.on { outline: 2px solid #fff; outline-offset: 2px; }
.qs-colors input[type=color] { width: 36px; height: 32px; padding: 2px; border-radius: 8px; border: 1px solid #26324a; background: #050912; cursor: pointer; }
.qs-slug { display: flex; align-items: center; gap: 0; margin-top: 6px; }
.qs-slug span { padding: 10px 0 10px 12px; border-radius: 10px 0 0 10px; background: #050912; border: 1px solid #26324a; border-right: 0; color: #64748b; font-size: 14px; white-space: nowrap; }
.qs-slug .m-in { margin: 0; border-radius: 0 10px 10px 0; padding-left: 2px; }
.link { background: none; border: 0; padding: 0; color: #93c5fd; font: inherit; cursor: pointer; text-decoration: underline; }
#qs-ready { margin-top: 18px; padding-top: 16px; border-top: 1px solid #1e293b; }
#qs-ready h3 { margin: 0 0 10px; font-size: 16px; }
.qs-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #050912; border: 1px solid #26324a; }
.qs-link code { flex: 1; min-width: 0; font: 14px ui-monospace, Menlo, Consolas, monospace; color: #cbd5e1; overflow-wrap: anywhere; }
.qs-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; }
.qs-steps li { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #cbd5e1; }
.qs-steps b { display: block; color: #93c5fd; font-size: 12.5px; margin-bottom: 4px; }
@media (max-width: 760px) { .qs-grid, .qs-steps { grid-template-columns: 1fr; } .qs-link { flex-wrap: wrap; } }

/* Chat by ID from the site (connect.html) */
.m-ic.new { color: #fff; background: #2563eb; border-color: #2563eb; }
.mc-log { height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: #050912; border: 1px solid #1e293b; }
.mc-msg { max-width: 85%; align-self: flex-start; padding: 8px 11px; border-radius: 12px 12px 12px 4px; background: #1e293b; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mc-msg.mine { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: #2563eb; color: #fff; }
.mc-msg small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; text-align: right; }
.mc-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.mc-form .m-in { margin: 0; resize: none; }

/* Оплата «Про» (pay.html), тариф в кабинете, оферта */
.pay-page, .doc-page { padding: 18px 0 40px; }
.pay-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.pay-periods { display: flex; gap: 12px; margin-bottom: 16px; }
.pay-periods button { flex: 1; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; cursor: pointer; }
.pay-periods button.on { border-color: #3b82f6; background: rgba(59, 130, 246, .1); }
.pay-periods b { display: block; font-size: 22px; margin: 2px 0; }
.pay-periods small { color: #8ea0bd; font-size: 13px; }
.pay-periods .save { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #16a34a; color: #fff; margin-left: 6px; }
.pay-page .fl { display: block; font-size: 13px; color: #9fb0cc; margin: 14px 0 6px; }
.pay-who { display: grid; gap: 8px; }
.pay-who label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.pay-who label.on { border-color: #3b82f6; background: rgba(59, 130, 246, .08); }
.pay-who input { margin-top: 4px; accent-color: #3b82f6; }
.pay-who b { display: block; font-size: 15px; } .pay-who small { color: #8ea0bd; font-size: 13px; }
.pay-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; color: #cbd5e1; }
.pay-check input { margin-top: 3px; accent-color: #3b82f6; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.pay-row > * { min-width: 0; }
.pay-hint { margin: 0 0 12px; font-size: 13px; color: #8ea0bd; }
.pay-hint.ok { color: #4ade80; } .pay-hint.warn { color: #fbbf24; }
.pay-bank { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 14px; }
.pay-bank summary { cursor: pointer; padding: 10px 0 0; font-size: 14px; color: #cbd5e1; }
.pay-bank summary small { color: #8ea0bd; }
.pay-done .btn { margin-top: 12px; align-self: flex-start; }
@media (max-width: 560px) { .pay-row { grid-template-columns: 1fr; } .pay-hint { margin-top: -6px; } }
.pay-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
.pay-sum b { font-size: 24px; }
.pay-side h3 { margin: 0 0 12px; }
.pay-page .muted a, .doc-page a { color: #93c5fd; }
.pay-done { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); margin-bottom: 20px; font-size: 16px; }
.pay-done.ok { border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .08); }
.pay-done span { color: var(--muted); font-size: 14px; } .pay-done a { color: #93c5fd; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.kv span:first-child { color: var(--muted); }
.pl-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #334155; color: #cbd5e1; }
.pl-badge.pro { background: #2563eb; color: #fff; } .pl-badge.team { background: #0891b2; color: #fff; }
.bill-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bill-table th, .bill-table td { padding: 9px 8px; border-top: 1px solid #1e293b; text-align: left; }
.bill-table th { color: #64748b; font-weight: 500; font-size: 12.5px; border-top: 0; }
.bill-table .ok { color: #4ade80; }
#bill-history h3 { margin: 18px 0 8px; font-size: 16px; }
.doc-page { max-width: 820px; }
.doc-page h2 { font-size: 20px; margin: 26px 0 8px; }
.doc-page p, .doc-page li { color: #cbd5e1; line-height: 1.6; }
.foot .legal { flex-basis: 100%; font-size: 13px; color: var(--faint); }
.foot .legal a { color: var(--muted); }
.foot { flex-wrap: wrap; }
@media (max-width: 760px) { .pay-grid { grid-template-columns: 1fr; } }

/* «Возможности»: кубик раскрывается во фрейм-презентацию (features.js). */
.strengths .card[data-f], .about-tiles .card[data-f] { cursor: pointer; }
.card .more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: #60a5fa; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.card[data-f]:hover .more, .card[data-f]:focus-visible .more { opacity: 1; transform: none; }
.card[data-f]:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
@media (hover: none) { .card .more { opacity: 1; transform: none; } }
body.fx-lock { overflow: hidden; }
.fx { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(2, 4, 10, .78); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); opacity: 0; transition: opacity .2s; }
.fx.on { opacity: 1; }
.fx-box { --a: #3b82f6; --a2: #1d4ed8; --ag: rgba(59, 130, 246, .35); position: relative; width: min(1180px, 100%); max-height: calc(100vh - 56px); display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  background: radial-gradient(900px 520px at 0% 0%, color-mix(in srgb, var(--a) 22%, transparent), transparent 60%), radial-gradient(800px 600px at 45% 120%, rgba(59, 130, 246, .26), transparent 60%), linear-gradient(180deg, #0c1326, #070b17);
  border: 1px solid rgba(255, 255, 255, .10); box-shadow: 0 40px 120px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); transform: translateY(14px) scale(.985); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.fx.on .fx-box { transform: none; }
.fx-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(600px 400px at 28% 45%, #000, transparent 75%); mask-image: radial-gradient(600px 400px at 28% 45%, #000, transparent 75%); }
.fx-top { position: relative; display: flex; align-items: center; gap: 12px; padding: 20px 26px 0; }
.fx-kick { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: color-mix(in srgb, var(--a) 55%, #fff); }
.fx-kick i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--a), var(--a2)); box-shadow: 0 6px 18px var(--ag); }
.fx-cnt { margin-left: auto; font-size: 13px; font-weight: 600; color: #7d8bab; font-variant-numeric: tabular-nums; }
.fx-cnt b { color: #e6edf7; }
.fx-x { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #cbd5e1; font: inherit; font-size: 16px; cursor: pointer; }
.fx-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fx-main { position: relative; display: grid; grid-template-columns: 1.12fr 1fr; gap: 10px; min-height: 0; flex: 1; overflow: auto; }
.fx-main.go { animation: fx-in .32s cubic-bezier(.2, .8, .2, 1); }
.fx-main.back { animation: fx-back .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes fx-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes fx-back { from { opacity: 0; transform: translateX(-28px); } }
.fx-stage { position: relative; min-height: 470px; overflow: hidden; }
.fx-art { position: absolute; left: 50%; top: 50%; width: 600px; height: 480px; margin: -240px 0 0 -300px; perspective: 1400px; transform: scale(var(--k, 1)); color: #0f172a; font-size: 13px; line-height: 1.4; }
.fx-art * { box-sizing: border-box; }
.fx-copy { position: relative; padding: 26px 44px 26px 18px; display: flex; flex-direction: column; }
.fx-copy h3 { margin: 6px 0 14px; font-size: 44px; line-height: 1.05; letter-spacing: -.02em; font-weight: 800; background: linear-gradient(180deg, #fff, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-lead { margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: #c3cfe2; }
.fx-pts { display: grid; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.fx-pts li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.fx-pts i { font-style: normal; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: color-mix(in srgb, var(--a) 50%, #fff); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.fx-pts b { display: block; color: #f1f5f9; font-size: 15px; }
.fx-pts span { color: #9fb0cc; font-size: 14px; }
.fx-stats { display: flex; margin: 0 0 24px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; overflow: hidden; }
.fx-stats div { flex: 1; padding: 12px 14px; background: rgba(255, 255, 255, .03); min-width: 0; }
.fx-stats div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.fx-stats b { display: block; font-size: 21px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-stats span { font-size: 12.5px; color: #8ea0bd; }
.fx-act { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.fx-act a { padding: 13px 20px; border-radius: 13px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.fx-act .p { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 10px 26px rgba(37, 99, 235, .45); }
.fx-act .p:hover { filter: brightness(1.1); }
.fx-act .s { border: 1px solid rgba(255, 255, 255, .16); color: #e6edf7; }
.fx-act .s:hover { background: rgba(255, 255, 255, .06); }
.fx-act .pro { margin-left: auto; font-size: 12.5px; font-weight: 700; color: #facc15; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(250, 204, 21, .4); background: rgba(250, 204, 21, .08); white-space: nowrap; }
.fx-strip { position: relative; display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(2, 6, 16, .55); }
.fx-prog { position: absolute; left: 0; top: -1px; height: 2px; background: linear-gradient(90deg, #3b82f6, var(--a)); transition: width .3s; }
.fx-nb { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .14); background: none; color: #e6edf7; font: inherit; font-size: 18px; cursor: pointer; }
.fx-nb:hover { background: rgba(255, 255, 255, .08); }
.fx-th { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.fx-th::-webkit-scrollbar { display: none; }
.fx-th button { flex: none; display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 10px; font: inherit; font-size: 12.5px; color: #7d8bab; border: 1px solid transparent; background: none; white-space: nowrap; cursor: pointer; }
.fx-th button:hover { color: #cbd5e1; }
.fx-th button.on { color: #fff; background: color-mix(in srgb, var(--a) 16%, transparent); border-color: color-mix(in srgb, var(--a) 50%, transparent); }
.fx-th button:first-child { margin-left: 20px; }
.fx-th button:last-child { margin-right: 20px; }
@media (max-width: 860px) {
  .fx { padding: 0; align-items: stretch; }
  .fx-box { border-radius: 0; max-height: none; height: 100%; width: 100%; }
  .fx-top { padding: 14px 16px 0; }
  .fx-main { grid-template-columns: 1fr; display: block; }
  .fx-stage { min-height: 0; height: 300px; }
  .fx-copy { padding: 6px 20px 20px; }
  .fx-copy h3 { font-size: 32px; }
  .fx-lead { font-size: 15.5px; }
  .fx-stats b { font-size: 18px; }
  .fx-act { flex-wrap: wrap; }
  .fx-act a { flex: 1; text-align: center; }
  .fx-act .pro { order: -1; margin: 0 0 4px; }
  .fx-strip { padding: 10px 12px; background: #070b17; }
  .fx-th button { font-size: 12px; padding: 7px 9px; }
}

/* Иллюстрации фреймов: окна, плашки, свечение (координаты — в поле 600×480). */
.fa-glow { position: absolute; width: 420px; height: 420px; left: 90px; top: 30px; border-radius: 50%; background: radial-gradient(circle, var(--ag), transparent 65%); filter: blur(10px); }
.fa-win { position: absolute; border-radius: 16px; overflow: hidden; background: #fff; color: #0f172a; box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .35); }
.fa-dark { position: absolute; border-radius: 16px; overflow: hidden; background: #0f172a; color: #cbd5e1; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.fa-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(127, 127, 127, .18); font-size: 12px; font-weight: 600; }
.fa-bar i { width: 9px; height: 9px; border-radius: 50%; background: #475569; flex: none; }
.fa-bar span { margin-left: 6px; opacity: .75; }
.fa-hd { display: flex; gap: 12px; align-items: center; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, var(--a), var(--a2)); }
.fa-lg { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--a2); font-weight: 800; font-size: 20px; display: grid; place-items: center; flex: none; }
.fa-hd small { display: block; opacity: .85; font-size: 12.5px; }
.fa-bd { padding: 14px 18px; }
.fa-cap { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: #64748b; }
.fa-id { font-size: 30px; font-weight: 800; letter-spacing: .03em; margin: 2px 0 8px; }
.fa-ok { color: #16a34a; font-size: 13px; }
.fa-btn { display: inline-block; border-radius: 10px; padding: 8px 14px; font-weight: 700; color: #fff; background: var(--a2); }
.fa-pill { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(15, 23, 42, .9); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); color: #e2e8f0; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.fa-pill > i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--a2); color: #fff; font-size: 13px; }
.fa-pill em { font-style: normal; color: color-mix(in srgb, var(--a) 45%, #fff); }
.fa-toast { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(6, 78, 59, .9); border: 1px solid rgba(52, 211, 153, .35); color: #d1fae5; font-size: 13px; font-weight: 600; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); white-space: nowrap; }
.fa-toast b, .fa-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); flex: none; }
.fa-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; }
.fa-row + .fa-row { margin-top: 4px; }
.fa-row small { margin-left: auto; font-size: 11.5px; opacity: .7; }
.fa-fld { height: 30px; border-radius: 8px; background: #1e293b; margin: 4px 0 10px; display: flex; align-items: center; padding: 0 10px; color: #cbd5e1; font-size: 12.5px; }
.fa-tilt-l { transform: rotateY(14deg) rotateX(6deg); }
.fa-tilt-r { transform: rotateY(-9deg) rotateX(4deg); }

/* Saved permanent password of a computer (this browser only). */
.id-lock { display: inline-flex; vertical-align: -1px; margin-left: 6px; color: #94a3b8; }
.pw-dlg { width: min(420px, calc(100vw - 32px)); padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line);
  background: #0f172a; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.pw-dlg::backdrop { background: rgba(2, 6, 23, .6); }
.pw-dlg h3 { margin: 0 0 8px; font-size: 18px; }
.pw-dlg h3 small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.pw-dlg p.muted { font-size: 13px; margin: 0 0 12px; }
.pw-dlg input { margin-bottom: 10px; font-size: 15px; padding: 10px 12px; }
.pd-btns { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pd-btns .sp { flex: 1; }
.pd-btns .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* licenses.html */
.licenses .lic-list li { margin: 2px 0; }
.licenses details.lic { border-top: 1px solid rgba(148,163,184,.15); padding: 6px 0; }
.licenses details.lic summary { cursor: pointer; color: #cbd5e1; line-height: 1.5; }
.licenses details.lic pre { white-space: pre-wrap; font-size: 12px; color: #94a3b8; background: rgba(15,23,42,.6); padding: 12px; border-radius: 8px; overflow-x: auto; }

/* «Сообщения» in the account page (chat.js) */
.chat-panel h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.chat-panel .pl-badge { font-size: 12px; }
.cp-tools { display: flex; gap: 8px; }
.cp { display: grid; grid-template-columns: 280px 1fr; height: 480px; margin-top: 14px; border-radius: 14px; border: 1px solid #1e293b; overflow: hidden; background: #050912; }
.cp-list { display: flex; flex-direction: column; border-right: 1px solid #1e293b; min-height: 0; }
.cp-search { margin: 10px; width: auto; }
.cp-items { flex: 1; overflow-y: auto; min-height: 0; }
.cp-empty { padding: 0 14px; }
.cp-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-bottom: 1px solid rgba(30, 41, 59, .6); }
.cp-item:hover { background: rgba(59, 130, 246, .07); }
.cp-item.on { background: rgba(59, 130, 246, .16); }
.cp-t { flex: 1; min-width: 0; }
.cp-t b, .cp-t small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-t b { font-weight: 600; font-size: 14.5px; }
.cp-t small { color: var(--muted); font-size: 12.5px; }
.cp-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.cp-r small { color: var(--faint); font-size: 11.5px; }
.cp-r em { font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px; text-align: center; color: #fff; background: var(--accent); }
.cp-conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cp-none { margin: auto; text-align: center; padding: 20px; line-height: 1.6; }
.cp-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #1e293b; }
.cp-head .btn.off { opacity: .5; }
.cp-sm { display: none; }
.cp-back { display: none; border: 0; background: none; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cp-log { flex: 1; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.cp-log .mc-msg small { display: block; margin-top: 3px; font-size: 11px; opacity: .75; text-align: right; }
.ck { font-style: normal; margin-left: 2px; }
.ck.read { color: #a5f3fc; font-weight: 700; }
.cp-tpl { display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: thin; }
.cp-tpl button { flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid #1e293b; background: #0b1220; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.cp-tpl button:hover { color: var(--text); border-color: var(--accent); }
.cp-form { display: flex; gap: 8px; align-items: flex-end; padding: 8px 14px 12px; }
.cp-form textarea { flex: 1; resize: none; height: 40px; box-sizing: border-box; line-height: 20px; padding: 9px 12px; border-radius: 11px; border: 1px solid #1e293b; background: #0b1220; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.cp-form textarea:focus { border-color: var(--accent); }
.cp-send { flex: none; width: 42px; height: 40px; border: 0; border-radius: 11px; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2563eb, #0891b2); }
.cp-send:hover { filter: brightness(1.12); }
.cp-err { margin: 0 14px 8px; }
.cp-err:empty { display: none; }
.cp-bc .bc-list { max-height: 220px; overflow-y: auto; margin: 10px 0; padding: 6px; border: 1px solid #1e293b; border-radius: 10px; }
.cp-bc .bc-list label { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 14px; cursor: pointer; }
.cp-bc .bc-list small { color: var(--muted); }
.cp-bc textarea { width: 100%; resize: vertical; }
.nav-account.has-new::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; margin-left: 4px; flex: none; }
@media (max-width: 720px) {
  .cp { grid-template-columns: 1fr; height: 70vh; }
  .cp-list { border-right: 0; }
  .chat-panel:not(.show-list) .cp-list { display: none; }
  .chat-panel.show-list .cp-conv { display: none; }
  .cp-back { display: block; }
  .cp-lg { display: none; }
  .cp-sm { display: inline; }
}

/* chat.html: the messenger takes the page */
.chat-page .cp { height: calc(100vh - 290px); min-height: 420px; }
.m-danger-btn { background: #dc2626 !important; color: #fff !important; }

/* admin.html */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.adm-stat { padding: 16px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.adm-stat b { font-size: 26px; } .adm-stat span { font-size: 13px; color: var(--muted); }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adm-tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.adm-tabs button.on { background: rgba(59, 130, 246, .18); border-color: #3b82f6; }
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.adm-bar .m-in { margin: 0; max-width: 320px; }
.adm-scroll { overflow-x: auto; }
.adm-table td { vertical-align: top; }
.adm-table .mono { font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.adm-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-sel { width: auto; display: inline-block; margin: 0; padding: 6px 8px; font-size: 13px; }

/* «Что нового» on the main page: the last three releases */
.news { padding: 30px 0 60px; }
.news h2 { margin: 0 0 22px; }
.news-list { display: grid; gap: 14px; }
.news-item { padding: 20px 24px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.news-item:first-child { border-color: rgba(59, 130, 246, .45); }
.news-item h3 { margin: 0; font-size: 19px; }
.news-item h3 a:hover { color: #93c5fd; }
.news-item .when { margin: 2px 0 10px; color: var(--muted); font-size: 13px; }
.news-item ul { margin: 0; padding-left: 20px; color: #cbd5e1; font-size: 15px; }
.news-item li { margin: 5px 0; }
.news .muted { color: var(--muted); }

/* «О нас» and «Контакты» */
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #22d3ee; }
.about .lead, .contacts .lead { max-width: 720px; margin-top: 14px; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 26px 0 8px; }
.about-grid .card h3 { color: var(--text); }
.about-grid .card p { color: var(--muted); }
a.card.contact { color: inherit; text-decoration: none; display: block; }
.doc-page a.card.contact p { color: #93c5fd; font-size: 16px; }
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }
.about-mark { width: 84px; height: 84px; display: block; margin: 8px 0 18px; filter: drop-shadow(0 0 24px rgba(34, 211, 238, .35)); }
.about-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .about-grid.three { grid-template-columns: 1fr; } }
/* «Обратная связь» */
.fb { display: grid; gap: 14px; max-width: 760px; padding: 24px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.fb label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.fb input:not([type=checkbox]), .fb textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); outline: none; resize: vertical;
}
.fb input:focus, .fb textarea:focus { border-color: var(--accent); }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fb-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb-captcha { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.fb-pic { width: 200px; height: 64px; border-radius: 10px; overflow: hidden; background: #0f172a; color: var(--muted); font-size: 13px; display: grid; place-items: center; }
.fb-pic svg { display: block; }
.fb-captcha label { flex: 1; min-width: 140px; }
.fb-consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-size: 13.5px !important; line-height: 1.5; }
.fb-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.fb-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fb-msg { font-size: 14px; color: #fca5a5; }
.fb-msg.ok { color: #86efac; }
@media (max-width: 640px) { .fb-row { grid-template-columns: 1fr; } .fb { padding: 18px; } }
.about-tiles { margin: 28px 0 8px; }
.doc-page.about { max-width: none; }
.doc-page.about > p, .doc-page.about > ul, .doc-page.about > h2 { max-width: 820px; }
.fb-topic { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.fb-topic legend { padding: 0; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.fb-topic label { display: inline-flex; align-items: center; gap: 0; cursor: pointer; }
.fb-topic input { position: absolute; opacity: 0; pointer-events: none; }
.fb-topic span { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: #cbd5e1; font-size: 14px; }
.fb-topic input:checked + span { background: rgba(59, 130, 246, .2); border-color: rgba(59, 130, 246, .6); color: #fff; }
.fb-topic input:focus-visible + span { outline: 2px solid #3b82f6; outline-offset: 2px; }

/* The header did not fit between a phone and a wide screen (landscape phones, tablets): the
   links move to a scrolling row of their own; the account circle never shrinks away. */
.nav-account.chip { min-width: 40px; }
@media (max-width: 1360px) and (min-width: 641px) {
  .nav { flex-wrap: wrap; gap: 12px 20px; }
  .nav nav { order: 3; flex: 1 1 100%; min-width: 0; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav-account { margin-left: auto; }
}
/* One-row header: the circle and the plan; the e-mail is in the account menu. */
@media (min-width: 1361px) { .nav-account .em { display: none; } }
/* The topic switch's radios are hidden: not stretched like the text fields (stretched,
   they pushed the page sideways on phones). */
.fb .fb-topic input { width: auto; padding: 0; }
.fb-row > * { min-width: 0; }
/* 0.3.5 messenger actions: quick replies and file sending live under the three-dot button. */
.cp-more-wrap { position: relative; flex: none; }
.cp-more { width: 42px; height: 40px; border: 1px solid #1e293b; border-radius: 11px; background: #0b1220; color: var(--text); font: 700 22px/1 system-ui; cursor: pointer; }
.cp-more:hover { border-color: var(--accent); }
.cp-more-menu { position: absolute; left: 0; bottom: 46px; z-index: 20; width: min(360px, calc(100vw - 36px)); padding: 7px; border-radius: 12px; background: #0b1220; border: 1px solid #26344d; box-shadow: 0 16px 50px rgba(0,0,0,.45); }
.cp-more-menu button { width: 100%; border: 0; background: transparent; color: var(--text); text-align: left; padding: 9px 10px; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; white-space: normal; }
.cp-more-menu button:hover { background: rgba(59,130,246,.16); }
.cp-menu-title { padding: 8px 10px 4px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-top: 1px solid #1e293b; margin-top: 4px; }
.mc-file { display: flex; align-items: center; gap: 9px; min-width: 180px; color: inherit; text-decoration: none; }
.mc-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-file span { margin-left: auto; font-size: 11px; opacity: .72; white-space: nowrap; }
