/* AnyDesk по-русски — тема «Схема подключения»: два экрана и линия связи, переключатель систем, памятка о мошенниках.
   Цвета намеренно не фирменные (R-019): глубокий индиго + бирюза. */
@import url("/site-assets/fonts.css");
:root {
  --bg: #F3F5FA; --surface: #FFFFFF; --surface-2: #F7F8FC; --surface-dark: #101532;
  --border: #DFE3EF; --border-strong: #C7CEE2;
  --text: #121731; --text-2: #343B5C; --muted: #646B89;
  --accent: #14B8A6; --accent-hover: #0FA394; --accent-soft: #DDF7F3; --accent-ink: #04201C;
  --link: #3D4FE0; --ok: #138A5B; --ok-soft: #DCF5EA; --warn: #A3460B; --warn-soft: #FFEBDD;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(18,23,49,.05), 0 12px 30px -20px rgba(18,23,49,.35);
  --font-sans: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
a { color: var(--link); }
h1, h2, h3, .dl-brand { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.dl-fan-bar { background: #0B0F26; border-bottom: 0; color: #A3AACB; }
.dl-fan-bar a { color: #A3AACB; }
.dl-fan-inner::before { border-color: #2B3360; color: #A3AACB; }
.dl-header { background: #101532; border-bottom: 1px solid #222A57; color: #fff; }
.dl-brand { color: #fff; }
.dl-brand-mark { background: linear-gradient(135deg, #14B8A6, #3D4FE0); border-radius: 10px; }
.dl-brand-mark svg { color: #fff; }
.dl-brand-ver { background: rgba(255,255,255,.1); color: #C9CFEA; }
.dl-nav a { color: #C9CFEA; font-weight: 600; }
.dl-nav a:hover, .dl-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.dl-nav-cta { border-radius: 10px; font-weight: 800; color: var(--accent-ink); }
.dl-burger { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.dl-mobile-nav { background: #101532; border-color: #222A57; }
.dl-mobile-nav a { color: #fff; background: rgba(255,255,255,.08); }
.dl-btn { font-weight: 800; color: var(--accent-ink); }
.dl-btn:hover { color: var(--accent-ink); }
.dl-prose th { background: #EEF1FA; }
.dl-prose code { font-family: var(--font-mono); font-size: .84em; background: #101532; color: #7FF0E1; border-radius: 5px; padding: 1px 6px; }
.dl-side-links a:hover { background: var(--accent-soft); color: var(--text); }
.dl-footer { background: #0B0F26; border-top: 0; color: #9097B8; }
.dl-footer a { color: #fff; }
.p3-tail { margin-top: 44px; }
.p3-h2 { font-size: 1.5rem; margin: 6px 0 14px; }

/* Главная */
.rd-stage { color: #fff; background: radial-gradient(800px 400px at 85% 20%, rgba(20,184,166,.28), transparent 65%), radial-gradient(700px 400px at 10% 110%, rgba(61,79,224,.4), transparent 60%), #101532; padding: 40px 0 48px; overflow-x: clip; }
.rd-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.rd-head h1 { font-size: clamp(2rem, 2.4vw + 1rem, 3.3rem); line-height: 1.05; text-wrap: balance; }
.rd-lead { font-size: 1.1rem; color: #C9CFEA; margin: 14px 0 22px; max-width: 58ch; }
.rd-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); max-width: 100%; }
.rd-tabs button { appearance: none; border: 0; cursor: pointer; padding: 10px 16px; border-radius: 10px; font: 700 .94rem var(--font-sans); color: #C9CFEA; background: transparent; white-space: nowrap; }
.rd-tabs button:hover { color: #fff; }
.rd-tabs button.on { background: #fff; color: #121731; }
.rd-card { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: #fff; color: var(--text); border-radius: 18px; padding: 18px 18px 18px 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.rd-card-t h2 { font-size: 1.2rem; line-height: 1.25; }
.rd-card-t p { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.rd-card-t .rd-note { color: var(--text-2); }
.rd-card-a { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; white-space: nowrap; text-decoration: none; }
.rd-btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.rd-vt { text-align: center; font-size: .78rem; font-weight: 700; color: var(--ok); }
.rd-vt[hidden], .rd-how[hidden] { display: none; }
.rd-how { text-align: center; font-size: .86rem; font-weight: 700; text-decoration: none; }
.rd-scheme { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); align-items: center; gap: 0; min-width: 0; }
.rd-dev { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rd-dlbl { font: 700 .74rem/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: #8F97C2; }
.rd-scr { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; background: linear-gradient(160deg, #1B2250, #141A3D); border: 2px solid #2C356D; box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); padding: 14px; display: flex; flex-direction: column; justify-content: center; }
.rd-local[data-rd-dev="phone"] .rd-scr { aspect-ratio: 9 / 14; max-width: 150px; margin: 0 auto; border-radius: 22px; }
.rd-local[data-rd-dev="mac"] .rd-scr { border-radius: 14px 14px 4px 4px; border-bottom-width: 10px; }
.rd-addr { font-size: .78rem; color: #A3AACB; }
.rd-addr b { display: block; font: 700 1.05rem/1.2 var(--font-mono); color: #7FF0E1; margin-top: 4px; letter-spacing: .02em; overflow-wrap: anywhere; }
.rd-win { position: absolute; top: 10px; right: 12px; display: flex; gap: 5px; }
.rd-win i { width: 7px; height: 7px; border-radius: 50%; background: #3A4580; }
.rd-link { position: relative; height: 4px; margin: 0 6px; background: repeating-linear-gradient(90deg, #14B8A6 0 10px, transparent 10px 18px); background-size: 36px 4px; animation: rdFlow 1.2s linear infinite; }
.rd-link span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 66px; text-align: center; font-size: .66rem; color: #8F97C2; line-height: 1.2; }
.rd-link i { position: absolute; top: -9px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #14B8A6; box-shadow: 0 0 0 6px rgba(20,184,166,.25); }
.rd-link i::after { content: ""; position: absolute; left: 7px; top: 5px; width: 8px; height: 6px; border: 2px solid #04201C; border-bottom: 0; border-radius: 5px 5px 0 0; }
@keyframes rdFlow { to { background-position: 36px 0; } }
@media (prefers-reduced-motion: reduce) { .rd-link { animation: none; } }
.rd-req { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: #A3AACB; }
.rd-req b { font-size: 1rem; color: #fff; }
.rd-req em { font-style: normal; text-align: center; font-weight: 800; font-size: .82rem; padding: 7px; border-radius: 8px; background: #14B8A6; color: #04201C; }
.rd-req em.no { background: transparent; border: 1px solid #3A4580; color: #A3AACB; }

.rd-after { padding-top: 44px; }
.rd-h2 { font-size: clamp(1.45rem, 1.4vw + 1rem, 2.1rem); }
.rd-sgrid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; counter-reset: s; }
.rd-sgrid li { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.rd-sgrid b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #101532; color: #7FF0E1; font: 700 1.1rem/1 var(--font-mono); }
.rd-sgrid h3 { font-size: 1.1rem; margin: 12px 0 6px; }
.rd-sgrid p { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.rd-warn { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 30px; padding: 20px 22px; border-radius: 16px; background: var(--warn-soft); border: 1px solid #F6C9A6; }
.rd-warn-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #E2631B; color: #fff; font: 800 1.6rem/1 var(--font-sans); }
.rd-warn h2 { font-size: 1.2rem; color: #6E2E06; }
.rd-warn p { color: #5A3B26; margin-top: 4px; line-height: 1.55; }
.rd-warn a { display: inline-block; margin-top: 8px; font-weight: 700; color: #A3460B; }
.rd-cmp { margin-top: 40px; }
.rd-cmp .dl-table-wrap { margin-top: 16px; }
.rd-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; min-width: 560px; }
.rd-table th, .rd-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .94rem; vertical-align: top; }
.rd-table th { background: #101532; color: #fff; font-weight: 700; }
.rd-table td:first-child { font-weight: 700; color: var(--text); }
@media (max-width: 1000px) { .rd-in { grid-template-columns: 1fr; } .rd-scheme { max-width: 560px; } }
@media (max-width: 680px) {
  .dl-header-inner { gap: 8px; }
  .dl-brand { min-width: 0; flex: 1 1 auto; overflow: hidden; font-size: 1rem; }
  .dl-brand > span:not(.dl-brand-mark) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dl-nav-cta { padding: 0 12px; }
  .rd-stage { padding: 26px 0 32px; }
  .rd-lead { font-size: 1rem; }
  .rd-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .rd-tabs button { padding: 10px 8px; font-size: .88rem; }
  .rd-card { grid-template-columns: 1fr; padding: 16px; }
  .rd-btn { width: 100%; }
  .rd-scheme { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); }
  .rd-link span { display: none; }
  .rd-scr { padding: 10px; }
  .rd-addr b { font-size: .82rem; }
  .rd-req { font-size: .7rem; } .rd-req b { font-size: .86rem; } .rd-req em { padding: 5px; font-size: .72rem; }
  .rd-sgrid { grid-template-columns: 1fr; }
  .rd-warn { grid-template-columns: 1fr; }
}
