@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root {
    --bg: #090a0e; --surface: #12141b; --surface2: #191c25; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
    --text: #f4f5f7; --muted: #99a0ae; --accent: #ff6a13; --accent2: #ff9b3d; --twitch: #9146ff; --green: #2df05a; --red: #ef4444;
    --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(900px 420px at 15% -8%, rgba(255,106,19,.16), transparent 70%), radial-gradient(700px 380px at 92% 0%, rgba(145,70,255,.10), transparent 70%); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

/* верхняя панель */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(9,10,14,.78); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; letter-spacing: -.3px; }
.logo i { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #ff3d00); display: grid; place-items: center; font-style: normal; font-size: 15px; box-shadow: 0 4px 14px rgba(255,106,19,.45); }
.nav { display: flex; gap: 4px; margin-left: 8px; overflow-x: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: .15s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a.on { color: var(--text); background: rgba(255,106,19,.14); box-shadow: inset 0 0 0 1px rgba(255,106,19,.35); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.who b { color: var(--text); }
.who a { color: var(--accent); }

/* кнопки и формы */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface2); color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; transition: .15s; }
.btn:hover { border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff4d00); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(255,106,19,.35); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.twitch { background: var(--twitch); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(145,70,255,.35); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.danger { color: #ff8b8b; }
.input, select.input { width: 100%; padding: 13px 15px; font: inherit; font-size: 15px; color: var(--text); background: #0d0f14; border: 1px solid var(--line2); border-radius: 12px; outline: none; transition: .15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,19,.18); }
textarea.input { resize: vertical; min-height: 84px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
label.lbl { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 13px; }
.msg { font-size: 14px; min-height: 20px; }
.msg.err { color: #ff8b8b; } .msg.ok { color: var(--green); }

/* карточки */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2, .card h3 { font-weight: 800; letter-spacing: -.2px; }
a.card { display: block; transition: .18s; }
a.card:hover { border-color: rgba(255,106,19,.5); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .who { display: none; } }
.icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(255,106,19,.14); margin-bottom: 14px; }
.icon.tw { background: rgba(145,70,255,.16); } .icon.gr { background: rgba(45,240,90,.12); } .icon.bl { background: rgba(60,140,255,.14); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; background: rgba(255,106,19,.15); color: var(--accent2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: .15s; }
.chip:hover { color: var(--text); }
.chip.on { color: var(--accent2); border-color: var(--accent); background: rgba(255,106,19,.12); }

/* заголовки страниц */
.page { padding: 34px 0 70px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -1.2px; line-height: 1.08; }
.h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.6px; }
.lead { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 640px; }
.title { font-size: 30px; font-weight: 900; letter-spacing: -.6px; }
.sub { color: var(--muted); margin-top: 6px; max-width: 680px; }
.section { padding: 54px 0; }

/* переключатели и ползунки */
.field { margin-bottom: 18px; }
.field > .top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field > .top output { color: var(--accent2); font-weight: 800; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: #2b2f3a; position: relative; cursor: pointer; transition: .15s; flex-shrink: 0; }
.switch input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked { background: var(--accent); } .switch input:checked::after { left: 21px; }
.colorrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; font-weight: 600; }
.colorrow input[type=color] { width: 44px; height: 30px; border: 1px solid var(--line2); border-radius: 8px; background: none; padding: 0; cursor: pointer; margin-left: auto; }
.colorrow.off { opacity: .45; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.copybox { display: flex; gap: 8px; }
.copybox .input { font: 13px ui-monospace, Consolas, monospace; }
.frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #000 center/cover; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps > div { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps > div::before { content: counter(s); flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: rgba(255,106,19,.16); color: var(--accent2); }
.steps b { display: block; }
details.faq { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: var(--surface); }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { color: var(--muted); margin-top: 10px; font-size: 15px; }
footer.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13px; }
