:root {
  --ground: #F6F5F1;
  --card: #FFFFFF;
  --ink: #16181D;
  --ink-2: #3A3E46;
  --muted: #5A5F69;
  --line: #D9D6CE;
  --line-soft: #ECEAE4;
  --wash: #F1EFE9;
  --accent: #1F4FD1;
  --accent-wash: #DCE5FB;
  --miss: #B4400B;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
h1 { margin: 0; font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: 28px; font-weight: 600; }
p { margin: 0; }

/* шапка */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.logo { font-weight: 700; font-size: 18px; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; padding-bottom: 2px; }
.nav a.on { font-weight: 600; border-bottom: 2px solid var(--accent); }
.tools { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.tools .lang { color: var(--muted); text-decoration: none; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 6px; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid var(--ink); background: var(--card); color: var(--ink); }
.btn:hover { color: var(--accent); border-color: var(--accent); }
.btn.dark { background: var(--ink); color: #FFFFFF; }
.btn.dark:hover { background: #000000; color: #FFFFFF; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn.primary:hover { background: #1A43B3; color: #FFFFFF; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.banner { padding: 10px 24px; background: #FFF4D6; border-bottom: 1px solid #E9D59A; font-size: 14px; text-align: center; }

/* блоки */
.hero { padding: 64px 0 40px; display: flex; flex-direction: column; gap: 20px; max-width: 840px; }
.hero.small { padding: 48px 0 32px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.section { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.strip { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding: 18px 22px; margin-bottom: 40px; }
.strip .push { margin-left: auto; font-size: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .grid4, .grid3, .grid2 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 34px; }
  .nav { gap: 8px 16px; font-size: 14px; }
  .top { padding: 16px 0; }
  .lead { font-size: 18px; }
}

/* карточка пары */
.pair { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.pair-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; }
.pair-name { font-weight: 700; font-size: 20px; text-decoration: none; }
.big { font-family: var(--mono); font-size: 23px; font-weight: 600; }
.kv { display: flex; justify-content: space-between; font-size: 14px; }
.kv b { font-family: var(--mono); }
.kv.sep { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.locked { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 8px; background: var(--wash); }
.locked .big { color: #8C8F96; }
.free-tag { font-size: 13px; color: var(--accent); font-weight: 500; }

/* шкала диапазона */
.scale { position: relative; height: 26px; }
.scale .axis { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--line); }
.scale .band { position: absolute; left: 25%; width: 50%; top: 5px; height: 16px; background: var(--accent-wash); border: 1px solid var(--accent); border-radius: 3px; }
.scale .now { position: absolute; left: 50%; top: 1px; width: 2px; height: 24px; background: var(--ink); }
.scale .dot { position: absolute; top: 6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card); }
.dot.in, .legend .in { background: var(--accent); }
.dot.out, .legend .out { background: var(--miss); }
.hit { color: var(--accent); font-weight: 600; }
.miss { color: var(--miss); font-weight: 600; }

/* таблицы */
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 500; padding: 12px 16px; white-space: nowrap; }
td { padding: 11px 16px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 14px; white-space: nowrap; }
td.sans { font-family: var(--sans); font-weight: 600; }
td.scale-cell { min-width: 200px; width: 30%; }
tr.divider td { font-family: var(--sans); white-space: normal; font-size: 14px; color: var(--ink-2); background: var(--wash); padding: 12px 16px; }
tr.bt td { color: var(--ink-2); }
tr.bt .scale .band { background: transparent; border-style: dashed; }
.tag { font-family: var(--sans); font-size: 12px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--ink-2); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.legend i.band { width: 28px; border-radius: 2px; background: var(--accent-wash); border: 1px solid var(--accent); }

/* вкладки и пилюли */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.pills a.on { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.stat { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.stat .v { font-family: var(--mono); font-size: 30px; font-weight: 600; }
.stat .l { font-size: 14px; color: var(--muted); }
.stat .n { font-size: 13px; color: var(--muted); }

.step { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-top: 3px solid var(--ink); background: var(--card); }
.step .t { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.step .h { font-weight: 600; font-size: 18px; }
.step .d { font-size: 15px; color: var(--ink-2); }

.dark-band { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding: 26px; border-radius: 10px; background: var(--ink); color: #FFFFFF; }
.dark-band .d { color: #C9CBD1; font-size: 15px; }
.dark-band .btn { border-color: #FFFFFF; }

.formula { padding: 22px; font-family: var(--mono); font-size: 18px; line-height: 1.8; }
.cols { display: flex; flex-wrap: wrap; gap: 48px; }
.cols > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.cols > .side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.box { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
ul.clean { margin: 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }

.plan { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font-family: var(--mono); font-size: 34px; font-weight: 600; }
.plan .btn { align-self: flex-start; margin-top: auto; }
details { padding: 18px 0; border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-size: 18px; font-weight: 600; cursor: pointer; }
details p { margin-top: 10px; color: var(--ink-2); }

.hash { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.ok { color: var(--accent); font-weight: 600; }
form.inline { display: inline; }
label { font-size: 14px; color: var(--muted); }
input[type=number], input[type=text] { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* расписание публикации */
.schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px 22px; margin-bottom: 24px; }
.sched-label { font-size: 13px; color: var(--muted); }
.sched-time { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.schedule .muted { font-size: 13px; }
@media (max-width: 680px) { .schedule { grid-template-columns: minmax(0, 1fr); } }

/* статьи */
.prose { max-width: 760px; }
.prose h1 { font-size: 40px; margin: 8px 0 24px; }
.prose h2 { font-size: 24px; margin: 32px 0 12px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; }
@media (max-width: 680px) { .prose h1 { font-size: 30px; } }
