:root {
  --bg: #070a0f;
  --panel: #0e131b;
  --line: #212a36;
  --text: #eef1f4;
  --muted: #a0abb7;
  --accent: #ffc61a;
  --accent-ink: #141005;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffe07a; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.22; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(27px, 4.1vw, 46px); }
h2 { font-size: clamp(20px, 2.4vw, 27px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 500 19px var(--display); }
.logo svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a.tg { color: var(--accent); }
.nav a.lang { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 13px; color: var(--text); }
.nav a.lang:hover { border-color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 32px; padding: 44px 0 28px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 54ch; margin: 18px 0 26px; }
.hero img { width: 366px; max-width: 100%; margin-inline: auto; border: 1px solid var(--line); border-radius: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn:hover { background: #ffd65c; color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--text); }
.checked { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

.band { padding: 40px 0; border-top: 1px solid var(--line); }
.band > .wrap > h2 + p, .band > .narrow > h2 + p { color: var(--muted); margin: 10px 0 0; max-width: 70ch; }
.tbl { margin: 22px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 0 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: bottom; white-space: nowrap; }
td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.name { font-weight: 600; white-space: nowrap; }
td.big { font: 500 19px var(--display); color: var(--accent); white-space: nowrap; }
td small, .sub { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 400; }
td.name small { white-space: normal; max-width: 170px; margin-top: 3px; }
td code { font: 600 15px var(--mono); color: var(--accent); white-space: nowrap; }
td.date { white-space: nowrap; }
td.date small { white-space: normal; max-width: 120px; }
.prose .guides { padding-left: 0; }
.prose .guides li { margin-bottom: 0; }
.none { color: var(--muted); }
a.plain { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
a.plain:hover { color: var(--accent); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
.gobtn { display: inline-flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pick { display: flex; flex-direction: column; }
.pick .btns { margin-top: auto; padding-top: 14px; gap: 8px; }
.band .btns { margin-top: 12px; }
.prose .btns { margin-top: 14px; }
.disclosure { font-size: 14px; color: var(--muted); margin: 14px 0 0; max-width: 72ch; }
.calc { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 15px; }
.calc input { width: 110px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font: 600 16px var(--body); }
.why { margin: 18px 0 0; padding-left: 22px; max-width: 72ch; }
.why li { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }
.tag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); margin: 14px 0 0; max-width: 78ch; }
.more { margin: 18px 0 0; font-weight: 600; }

.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.pick { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.pick b { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.pick h3 { margin-bottom: 8px; }
.pick p { margin: 0; font-size: 15px; }

.codes { display: grid; gap: 14px; margin-top: 22px; }
.code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.code h3 { font: 600 15px var(--body); color: var(--muted); }
.code p { margin: 6px 0 0; font-size: 15px; }
.code small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.code .val { display: flex; align-items: center; gap: 8px; }
.code code { font: 600 19px var(--mono); padding: 8px 12px; border: 1px dashed #5c4a12; border-radius: 6px; color: var(--accent); user-select: all; }
.copy { min-height: 42px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 14px var(--body); cursor: pointer; }
.copy:hover { border-color: var(--accent); }

.tgband { display: grid; grid-template-columns: minmax(0, 1fr) 370px; margin-top: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tgband p { color: var(--muted); margin: 10px 0 18px; }
.tgband .text { padding: 26px; align-self: center; }
.tgband img { width: 370px; height: 276px; }

.guides { list-style: none; margin: 22px 0 0; padding: 0; }
.guides li { border-top: 1px solid var(--line); }
.guides li:last-child { border-bottom: 1px solid var(--line); }
.guides a { display: block; padding: 15px 0; text-decoration: none; color: var(--text); font-weight: 600; }
.guides a:hover { color: var(--accent); }
.guides span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }

.page { padding: 42px 0 12px; }
.page .lead { font-size: 18px; color: var(--muted); margin: 16px 0 0; max-width: 62ch; }
.pagehead { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: center; }
.pagehead img { width: 280px; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
.answer { border-left: 3px solid var(--accent); background: var(--panel); padding: 16px 18px; margin: 24px 0 0; border-radius: 0 8px 8px 0; }
.answer strong { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.answer p { margin: 0; }
.prose h2 { margin: 36px 0 12px; }
.prose ol, .prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose .tbl { margin-bottom: 1em; }

.faq { margin-top: 18px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); max-width: 72ch; }

.foot { border-top: 1px solid var(--line); margin-top: 28px; padding: 28px 0 34px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.foot p { margin: 0 0 8px; max-width: 64ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; justify-content: flex-end; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

@media (max-width: 860px) {
  .top .wrap { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0 0; }
  .nav { overflow-x: auto; gap: 18px; padding: 10px 0 12px; scrollbar-width: none; }
  .nav a { min-height: 28px; display: inline-flex; align-items: center; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 12px; }
  .hero { justify-items: start; }
  .hero img { margin: 16px 0 0; }
  .pagehead { grid-template-columns: 1fr; }
  .pagehead img { display: none; }
  .tgband { grid-template-columns: 1fr; }
  .tgband img { width: 100%; max-width: 370px; height: auto; margin-inline: auto; }
  .foot .wrap { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }

  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  td { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 4px 0; border: 0; }
  td::before { content: attr(data-label); font: 400 13px/1.6 var(--body); color: var(--muted); }
  td.name { display: block; font-size: 17px; padding-bottom: 8px; white-space: normal; }
  td.name::before { content: none; }
  .code { grid-template-columns: 1fr; }
  .code .val { flex-wrap: wrap; }
  td[data-label="Ссылка"], td[data-label="Перейти"], td[data-label="Link"], td[data-label="Go"] { display: block; padding-top: 10px; }
  td[data-label="Ссылка"]::before, td[data-label="Перейти"]::before, td[data-label="Link"]::before, td[data-label="Go"]::before { content: none; }
  td .gobtn, td .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
}
