:root {
    color-scheme: light;
    --bg: #f6f5ff;
    --card: #ffffff;
    --line: #e7e4f7;
    --line-strong: #d9d4f2;
    --ink: #1b1838;
    --muted: #6a6788;
    --accent: #6f4cff;
    --accent-2: #9b5cff;
    --accent-3: #2fb5ff;
    --soft: #f7f6ff;
    --ok: #12a37a;
    --bad: #d6405a;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font: 16px/1.55 "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}
body::before, body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
body::before {
    width: 620px; height: 620px; top: -220px; right: -160px;
    background: radial-gradient(circle, rgba(155, 92, 255, .32), rgba(111, 76, 255, 0) 70%);
}
body::after {
    width: 640px; height: 640px; bottom: -260px; left: -200px;
    background: radial-gradient(circle, rgba(47, 181, 255, .28), rgba(47, 181, 255, 0) 70%);
}
.glow-pink {
    position: fixed; z-index: -1; pointer-events: none;
    width: 420px; height: 420px; top: 38%; left: 8%;
    border-radius: 50%; filter: blur(80px);
    background: radial-gradient(circle, rgba(255, 128, 196, .18), rgba(255, 128, 196, 0) 70%);
}

a { color: var(--accent); }

header, footer { width: min(980px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header { height: 76px; }
footer { padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-3)); box-shadow: 0 8px 20px rgba(111, 76, 255, .28); }
.lang-btn { appearance: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 650; color: var(--ink); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; box-shadow: 0 2px 8px rgba(40, 30, 110, .06); transition: border-color .15s; }
.lang-btn:hover { border-color: var(--line-strong); }

main { flex: 1; display: grid; place-items: center; padding: 24px 16px 40px; }

.card {
    position: relative;
    width: min(460px, 100%);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 38px 32px 32px;
    box-shadow: 0 30px 70px rgba(76, 60, 180, .12), 0 2px 6px rgba(20, 16, 60, .04);
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}
.card.wide { width: min(760px, 100%); }

.badge-icon {
    width: 56px; height: 56px; border-radius: 18px;
    display: grid; place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 14px 30px rgba(111, 76, 255, .3);
    margin-bottom: 18px;
}
.badge-icon svg { width: 28px; height: 28px; }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.035em; margin: 10px 0 10px; color: var(--ink); }
h2 { font-size: 19px; margin: 24px 0 6px; letter-spacing: -.02em; }
p { margin: 0 0 18px; color: var(--muted); }
ul, ol { margin: 0 0 14px; padding-left: 22px; color: var(--muted); }
li { margin: 5px 0; }
b.ink, li b, p b { color: var(--ink); }
.hidden { display: none !important; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: #f1effc; border: 1px solid var(--line); margin-bottom: 20px; }
.tab { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 650; font-size: 15px; color: var(--muted); background: transparent; border-radius: 999px; padding: 10px 12px; transition: background .15s, color .15s, box-shadow .15s; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px rgba(111, 76, 255, .28); }

.block { display: grid; gap: 12px; }
.label { font-size: 14px; font-weight: 600; color: var(--ink); }
.input { width: 100%; font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.input:focus { background: #fff; border-color: rgba(111, 76, 255, .55); box-shadow: 0 0 0 4px rgba(111, 76, 255, .12); }
.input::placeholder { color: #a9a6c4; }

.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 650; border-radius: 999px; padding: 14px 22px; color: #fff; text-align: center; text-decoration: none; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 26px rgba(111, 76, 255, .3); transition: transform .15s, box-shadow .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(111, 76, 255, .36); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.ghost { background: #fff; border: 1px solid var(--line-strong); box-shadow: none; color: var(--ink); }
.btn.ghost:hover { border-color: rgba(111, 76, 255, .45); color: var(--accent); box-shadow: none; }

.hint { font-size: 14px; color: var(--muted); }
.legal { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.alert { margin: 0 0 18px; padding: 13px 16px; border-radius: 14px; font-weight: 550; font-size: 15px; background: #fff1f4; border: 1px solid #ffd3dc; color: #b8324b; }

.status { margin-top: 16px; padding: 13px 16px; border-radius: 14px; font-weight: 550; font-size: 15px; }
.status.ok { background: #e9faf3; border: 1px solid #bdeedb; color: #0d7d5d; }
.status.bad { background: #fff1f4; border: 1px solid #ffd3dc; color: #b8324b; }
.status.info { background: #eef8ff; border: 1px solid #cdeaff; color: #1d6390; }
.status-line { margin-top: 14px; font-size: 15px; font-weight: 550; color: var(--muted); }
.status-line:empty { display: none; }

.code { display: flex; justify-content: center; margin: 22px 0; font: 700 34px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .14em; padding: 20px 12px; border-radius: 18px; color: #4b2fd6; background: linear-gradient(135deg, #f3efff, #ecf7ff); border: 1.5px dashed rgba(111, 76, 255, .38); }
.device { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); margin: 0 0 18px; }
.device-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: #fff; border: 1px solid var(--line); }
.device-ico svg { width: 22px; height: 22px; }
.device b { display: block; }
.device span { color: var(--muted); font-size: 14px; }
.actions { display: grid; gap: 10px; margin-top: 8px; }
.who { font-size: 15px; color: var(--ink); margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.who.center { text-align: center; margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 6px 0 20px; }
.section-link { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.section-link:hover { border-color: rgba(111, 76, 255, .4); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(76, 60, 180, .12); }
.section-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.section-ico svg { width: 22px; height: 22px; }
.ico-photo { background: linear-gradient(135deg, #ff7aa8, #ff9a62); }
.ico-video { background: linear-gradient(135deg, #6f4cff, #9b5cff); }
.ico-music { background: linear-gradient(135deg, #2fb5ff, #3fd6c6); }
.ico-agents { background: linear-gradient(135deg, #19b67f, #7ad64a); }
.ico-products { background: linear-gradient(135deg, #ffb340, #ff7a45); }
.section-link b { display: block; font-size: 16px; }
.section-link span.desc { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.toc a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s; }
.toc a:hover { border-color: rgba(111, 76, 255, .45); color: var(--accent); }
.help-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.help-section h2 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.num { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-3)); }
.note { padding: 12px 15px; border-radius: 14px; background: #eef8ff; border: 1px solid #cdeaff; color: #1d5a82; font-size: 15px; margin: 0 0 14px; }
.note.warn { background: #fff7e8; border-color: #ffe0a8; color: #84560a; }
.faq dt { color: var(--ink); font-weight: 650; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.contacts a { display: block; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.contacts a:hover { border-color: rgba(111, 76, 255, .45); }
.contacts a span { display: block; color: var(--muted); font-size: 14px; }

.spinner { width: 36px; height: 36px; margin: 14px auto; border-radius: 50%; border: 3px solid #ece9fb; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
    .card { padding: 32px 20px 24px; border-radius: 24px; }
    h1 { font-size: 25px; }
    .code { font-size: 26px; }
}

.install-steps { margin: 18px 0 20px; padding-left: 22px; }
.install-steps li { margin: 6px 0; }
.install-steps li span { color: var(--muted); }
.cmd { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 16px; background: #15122e; color: #f1efff; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 600 15px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.cmd code::before { content: "$ "; color: #8f7bff; }
.cmd .btn { padding: 10px 18px; font-size: 14px; flex-shrink: 0; }
.alt-download { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.alt-download a.dl-link { font-weight: 650; text-decoration: none; }
.alt-download p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.alt-download code { font: 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; color: var(--ink); }
.platform-meta { margin-top: 16px; color: var(--muted); font-size: 13px; }