/* HighSkill — гайды. Сгенерировано scripts/seo/build.mjs, править там. */
:root {
  --bg: #0b0d10;
  --surface: #14171c;
  --surface-2: #1a1e24;
  --border: rgba(255, 255, 255, .07);
  --border-2: rgba(255, 255, 255, .12);
  --text: #f2f4f7;
  --muted: #98a0ac;
  --faint: #808894;
  --red: #e6392e;
  --red-2: #ff5347;
  --gold: #eeb03e;
  --info: #59b0ff;
  --radius: 8px;
  --font-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0 }

a { color: var(--info); text-underline-offset: 2px; text-decoration-thickness: 1px }
a:hover { color: #8cc8ff }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 3px }

/* ── шапка и подвал ─────────────────────────────────────────── */
.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 16, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-in {
  max-width: 1080px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 900; font-size: 16px;
  letter-spacing: -.02em; color: var(--text); text-decoration: none;
}
.brand img { display: block; border-radius: 5px }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.site-nav > a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 7px 11px; border-radius: 6px;
}
.site-nav > a:hover { color: var(--text); background: var(--surface-2) }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 11px 22px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  white-space: nowrap; border: 0;
}
.btn:hover { background: var(--red-2); color: #fff }
.btn-sm { font-size: 13.5px; padding: 8px 16px }

.site-foot { border-top: 1px solid var(--border); margin-top: 72px; padding: 8px 0 44px }
.site-foot .site-in { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 26px }
.site-foot p { margin: 0; color: var(--faint); font-size: 14px; max-width: 60ch }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap }
.site-foot nav a { color: var(--muted); font-size: 14px; text-decoration: none }
.site-foot nav a:hover { color: var(--text); text-decoration: underline }

/* ── каркас статьи ──────────────────────────────────────────── */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px }
article { display: flow-root }

.crumbs {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--faint);
  padding: 26px 0 22px;
}
.crumbs a { color: var(--faint); text-decoration: none }
.crumbs a:hover { color: var(--text) }
.crumbs span[aria-hidden] { opacity: .5 }

h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 5.4vw, 42px); line-height: 1.12; letter-spacing: -.03em;
  margin: 0 0 18px; text-wrap: balance;
}
h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(21px, 3.4vw, 27px); line-height: 1.22; letter-spacing: -.02em;
  margin: 52px 0 16px; text-wrap: balance; scroll-margin-top: 78px;
}
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 32px 0 10px }
p { margin: 0 0 18px }
.lede { font-size: 19.5px; line-height: 1.6; color: #d6dbe3; margin-bottom: 14px }
.stamp {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px;
  font-family: var(--font-mono); font-size: 12px; color: var(--faint);
  margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--border);
}

ul, ol { margin: 0 0 18px; padding-left: 24px; display: flex; flex-direction: column; gap: 9px }
li::marker { color: var(--red-2) }
ol li::marker { color: var(--faint); font-family: var(--font-mono); font-size: .88em }
strong { font-weight: 700; color: #fff }
code {
  font-family: var(--font-mono); font-size: .86em;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: .1em .4em; border-radius: 4px; color: var(--gold);
}

/* ── содержание ─────────────────────────────────────────────── */
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 0 0 34px;
}
.toc-t {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 10px;
}
.toc ol { margin: 0; gap: 6px }
.toc a { color: var(--muted); text-decoration: none; font-size: 15px }
.toc a:hover { color: var(--text); text-decoration: underline }

/* ── врезка ─────────────────────────────────────────────────── */
.note {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 0 0 22px;
}
.note p { margin: 0; font-size: 16px; color: #dfe4ea }

/* ── таблицы ────────────────────────────────────────────────── */
.tbl {
  overflow-x: auto; margin: 0 0 24px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 480px }
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--border); vertical-align: top }
th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
  background: var(--surface-2); white-space: nowrap;
}
.muted { color: var(--muted); font-size: 13px }
.data-note { margin-top: -12px; color: var(--muted); font-size: 13px }
tbody tr:last-child td { border-bottom: 0 }

/* ── калькулятор MMR ───────────────────────────────────────── */
.rank-tool {
  margin: 18px 0 30px; padding: 20px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface);
}
.rank-tool label { display: block; margin-bottom: 9px; font-weight: 700 }
.rank-tool-row { display: flex; gap: 10px }
.rank-tool input {
  min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--text); font: inherit;
}
.rank-tool button {
  padding: 12px 16px; border: 0; border-radius: 8px; background: var(--red);
  color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.rank-tool button:hover { filter: brightness(1.08) }
.rank-result { display: block; margin-top: 14px; color: var(--muted); line-height: 1.55 }
@media (max-width: 560px) { .rank-tool-row { flex-direction: column } }

/* ── призыв ─────────────────────────────────────────────────── */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(150deg, rgba(230, 57, 46, .14), rgba(230, 57, 46, .03));
  border: 1px solid rgba(230, 57, 46, .3); border-radius: var(--radius);
  padding: 20px 24px; margin: 32px 0;
}
.cta-txt { flex: 1 1 260px }
.cta-t { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 5px; letter-spacing: -.01em }
.cta-s { margin: 0; font-size: 15px; color: var(--muted) }

/* ── вопросы ────────────────────────────────────────────────── */
.faq {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin: 0 0 10px;
}
.faq > summary {
  cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq > summary::-webkit-details-marker { display: none }
.faq > summary::after { content: '+'; color: var(--red-2); font-size: 20px; line-height: 1; flex: none }
.faq[open] > summary::after { content: '−' }
.faq[open] > summary { border-bottom: 1px solid var(--border) }
.faq > p { margin: 0; padding: 14px 18px; color: #dfe4ea; font-size: 16px }

/* ── источники ─────────────────────────────────────────────── */
.sources {
  margin: 46px 0 8px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.sources h2 { margin: 0 0 14px; font-size: 20px }
.sources ul { margin-bottom: 12px }
.sources p { margin: 0; color: var(--faint); font-family: var(--font-mono); font-size: 12px }

.not-found { padding-top: 12vh }
.eyebrow {
  color: var(--red-2); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .15em; text-transform: uppercase;
}

/* ── читать дальше ──────────────────────────────────────────── */
.related { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--border) }
.related h2 { margin-top: 0 }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px }
.rel {
  display: flex; flex-direction: column; gap: 7px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
}
.rel:hover { border-color: var(--border-2); background: var(--surface-2) }
.rel-t { font-weight: 700; font-size: 16px; color: var(--text); line-height: 1.35; letter-spacing: -.01em }
.rel-d { font-size: 14px; color: var(--muted); line-height: 1.5 }

@media (max-width: 560px) {
  body { font-size: 16.5px }
  .site-nav > a { padding: 6px 8px; font-size: 14px }
  .wrap { padding: 0 18px }
  .cta { padding: 18px }
}
