:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #111110;
  --panel-2: #181816;
  --text: #f3eddf;
  --muted: #aaa69d;
  --line: #2e2e29;
  --glow: #2a2418;
  --radius: 16px;
  --wrap: 1080px;
}
@font-face { font-family: "Blink Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/BlinkSans-400.ttf") format("truetype"); }
@font-face { font-family: "Blink Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/BlinkSans-600.ttf") format("truetype"); }
@font-face { font-family: "Blink Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/BlinkSans-700.ttf") format("truetype"); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Blink Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--text); color: #000; padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.6; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.bar nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0; }
.bar nav a:hover { color: var(--text); }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 6.4vw, 66px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.hero { position: relative; overflow: hidden; background: radial-gradient(900px 480px at 50% -10%, var(--glow), transparent 70%); padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; margin: 22px 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 10px; font-weight: 600; font-size: 17px; text-decoration: none; border: 1px solid var(--text); background: var(--text); color: #000; }
.btn:hover { color: #000; opacity: 0.9; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { color: var(--text); border-color: var(--muted); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.badge { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }

.phones { position: relative; display: flex; justify-content: center; gap: 18px; min-height: 520px; }
.phone { width: min(44%, 232px); border: 1px solid #3a3a34; border-radius: 30px; padding: 7px; background: #0b0b0a; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.phone img { border-radius: 24px; width: 100%; }
.phone.up { transform: translateY(-26px); }
.phone.down { transform: translateY(26px); }

section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); margin-top: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px; border-top: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-weight: 700; font-size: 14px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }
.step p { color: var(--muted); margin: 8px 0 0; }

.notice { background: linear-gradient(180deg, var(--panel), #0b0b0a); border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 5vw, 52px); display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.notice p { color: var(--muted); }
.notice ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.notice li { margin-bottom: 8px; }

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 46em; }

.doc { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-size: 23px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: #d8d2c4; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.summary h2 { margin: 0 0 10px; font-size: 18px; }
.summary ul { margin: 0; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 26px; margin: 28px 0 8px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.toc a:hover { color: var(--text); }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #d8d2c4; }
th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: #050505; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 10px; }
.foot-grid nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-grid nav a:hover { color: var(--text); }
.copy { margin-top: 36px; }

@media (max-width: 900px) {
  .hero-grid, .notice, .foot-grid { grid-template-columns: 1fr; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .phones { min-height: 0; margin-top: 12px; }
  .phone.up, .phone.down { transform: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding-top: 44px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .bar { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; flex-direction: column; gap: 4px; }
  .bar nav { justify-content: flex-start; gap: 18px; }
  .bar nav a.opt { display: none; }
  .bar { flex-direction: row; align-items: center; }
  .phone:nth-child(3) { display: none; }
  .phone { width: 46%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Forms and dynamic pages (activation, playlists, licence check) */
.form-page { padding: 56px 0 96px; }
.wrap.narrow { max-width: 560px; }
.wrap.wide { max-width: 780px; }
.page-title { font-size: clamp(32px, 5vw, 46px); margin: 6px 0 12px; }
.lead-sm { font-size: 17px; margin: 0 0 28px; max-width: 34em; }
.center { text-align: center; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-bottom: 18px; }
.panel-title { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 18px; }
.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.field-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.opt-text { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.8; }
.field { width: 100%; min-height: 52px; background: #0a0a09; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font: inherit; font-size: 16px; }
.field::placeholder { color: #77766f; }
.field:focus { outline: none; border-color: var(--text); }
.field-hint { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.fg { margin-bottom: 18px; }
.btn { cursor: pointer; font: inherit; font-weight: 600; font-size: 17px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-block { width: 100%; }
.lookup-row { display: flex; gap: 12px; align-items: flex-end; }
.lookup-row > div { flex: 1; }
.tc-row { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 18px; font-size: 15px; color: #d8d2c4; line-height: 1.5; cursor: pointer; }
.tc-row input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; flex: none; border: 1.5px solid var(--muted); border-radius: 7px; background: transparent; cursor: pointer; position: relative; margin: 0; }
.tc-row input:checked { background: var(--text); border-color: var(--text); }
.tc-row input:checked::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid #000; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.5; }
.msg.err { background: rgba(255, 110, 100, 0.1); border: 1px solid rgba(255, 110, 100, 0.35); color: #f2b0a8; }
.msg.ok { background: rgba(120, 220, 140, 0.1); border: 1px solid rgba(120, 220, 140, 0.35); color: #b6ecc2; }
.msg a { color: inherit; }
.empty { color: var(--muted); font-size: 15px; padding: 18px 0; text-align: center; }
.pl-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pl-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pl-name { font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.pl-url, .pl-epg { font-size: 13px; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.pl-epg { margin-top: 3px; }
.btn-danger, .btn-star { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn-danger:hover { border-color: #f2b0a8; color: #f2b0a8; }
.btn-star:hover { border-color: var(--text); }
.btn-star.is-default { background: var(--text); color: #000; border-color: var(--text); }
.default-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--text); color: #000; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.result-row { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.result-row:last-child { border-bottom: 0; }
.result-label { width: 90px; flex: none; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.result-value { word-break: break-all; }
.result-value.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 620px) {
  .lookup-row { flex-direction: column; align-items: stretch; }
  .panel { padding: 22px; }
}
