/* RefKir brand kit v1.0 (tokens from the brand kit file refkir.css): graphite, electric blue, Inter, radius 12/20. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/inter-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/inter-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/inter-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/inter-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --rk-bg: #0B0F1A;
  --rk-surface: #111827;
  --rk-surface-2: #192338;
  --rk-input: #0F1626;
  --rk-primary: #0066FF;
  --rk-primary-hover: #0052CC;
  --rk-secondary: #3399FF;
  --rk-light: #F5F7FF;
  --rk-text: #F5F7FF;
  --rk-text-muted: #94A3B8;
  --rk-border: #26344B;
  --rk-radius: 12px;
  --rk-radius-lg: 20px;
  --rk-shadow: 0 14px 36px rgba(0, 0, 0, .22);
  --rk-gradient: linear-gradient(90deg, #0066FF, #3399FF);
  --ok: #34D399; --ok-bg: rgba(52, 211, 153, .12);
  --warn: #FBBF24; --warn-bg: rgba(251, 191, 36, .12);
  --bad: #F87171;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--rk-bg); }
body {
  margin: 0; min-height: 100vh; color: var(--rk-text);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(0, 102, 255, .28), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(51, 153, 255, .10), transparent 60%),
    var(--rk-bg);
  background-attachment: fixed;
}
a { color: var(--rk-secondary); }
a:hover { color: #66B2FF; }
::selection { background: rgba(0, 102, 255, .45); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; position: sticky; top: 0; z-index: 5;
  background: rgba(11, 15, 26, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rk-border); flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--rk-text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo:hover { color: var(--rk-text); }
.logo svg { width: 30px; height: 30px; }
#nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
#nav a, #nav button { text-decoration: none; color: var(--rk-text-muted); padding: 7px 12px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 500; background: none; border: 0; cursor: pointer; }
#nav a:hover, #nav button:hover { color: var(--rk-text); background: rgba(255, 255, 255, .05); }
#nav a.active { color: var(--rk-text); background: rgba(0, 102, 255, .16); }
#nav .who { color: var(--rk-text-muted); font-size: 13px; padding: 0 6px; }
#nav a.nav-login { color: var(--rk-text); border: 1px solid var(--rk-border); }
#nav a.nav-cta { color: #fff; background: var(--rk-primary); }
#nav a.nav-cta:hover { background: var(--rk-primary-hover); }

main { max-width: 1160px; margin: 0 auto; padding: 28px 20px 56px; }
.foot { max-width: 1160px; margin: 0 auto; padding: 20px; color: var(--rk-text-muted); font-size: 13px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--rk-border); }

/* Typography */
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin: 0 0 14px; }
h2 { font-size: 21px; letter-spacing: -.01em; font-weight: 600; margin: 28px 0 12px; }
h3 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }
.muted { color: var(--rk-text-muted); }
.grad { background: var(--rk-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Surfaces */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0)), var(--rk-surface); border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-lg); padding: 24px; margin-bottom: 16px; box-shadow: var(--rk-shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.empty { text-align: center; padding: 36px; color: var(--rk-text-muted); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding: 40px 0 32px; }
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 18px; }
.hero p { font-size: 18px; color: #CBD5E1; max-width: 600px; margin: 0 0 26px; }
.hero-visual { position: relative; min-height: 300px; }
.hero-visual::before { content: ''; position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(0, 102, 255, .55), transparent); filter: blur(30px); }
.hero-visual .card { position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); margin: 0; }
.hero-visual .card + .card { margin: -18px 0 0 22%; }
.metric { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.metric .label { display: flex; align-items: center; gap: 8px; color: var(--rk-text-muted); font-size: 14px; font-weight: 500; }
.metric .value { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.metric .up { color: var(--ok); font-size: 14px; font-weight: 600; margin-left: 8px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.bars i { width: 9px; border-radius: 3px; background: var(--rk-gradient); }
.sample { position: relative; font-size: 12px; color: var(--rk-text-muted); margin-top: 10px; text-align: right; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rk-border); border-radius: var(--rk-radius); background: rgba(17, 24, 39, .7); margin-bottom: 36px; }
.perks > div { display: flex; gap: 12px; align-items: center; padding: 18px; border-left: 1px solid var(--rk-border); font-size: 14px; color: #CBD5E1; }
.perks > div:first-child { border-left: 0; }
.perks strong { display: block; color: var(--rk-text); font-weight: 600; }
.ico { width: 24px; height: 24px; flex: none; color: var(--rk-secondary); }
.ico-box { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 102, 255, .14); border: 1px solid rgba(51, 153, 255, .25); margin-bottom: 12px; }
.feature h3 { margin-top: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--rk-radius); border: 1px solid var(--rk-primary);
  background: var(--rk-primary); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--rk-primary-hover); border-color: var(--rk-primary-hover); color: #fff; box-shadow: 0 6px 24px rgba(0, 102, 255, .3); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--rk-secondary); outline-offset: 3px; }
.btn.big { padding: 13px 22px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--rk-text); border-color: var(--rk-border); }
.btn.ghost:hover { background: var(--rk-surface-2); border-color: var(--rk-border); box-shadow: none; }
.btn.light { background: var(--rk-light); color: #0B0F1A; border-color: var(--rk-light); }
.btn.small { padding: 6px 11px; font-size: 13px; font-weight: 500; }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(248, 113, 113, .5); }
.btn.danger:hover { background: rgba(248, 113, 113, .08); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Forms */
label { display: block; font-size: 13px; color: var(--rk-text-muted); margin: 12px 0 5px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--rk-border); border-radius: var(--rk-radius); font: inherit; background: var(--rk-input); color: var(--rk-text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rk-secondary); outline-offset: 1px; }
input:disabled { opacity: .45; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--rk-primary); flex: none; margin-top: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--rk-text); font-size: 14px; }
.form { max-width: 600px; }
.form .row > * { flex: 1; }
.err { color: var(--bad); margin-top: 8px; min-height: 1em; }
.ok { color: var(--ok); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(0, 102, 255, .18); color: #7FB8FF; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: transparent; color: var(--bad); border: 1px solid rgba(248, 113, 113, .5); }
.badge.hot { background: rgba(249, 115, 22, .16); color: #FDBA74; }

/* Stats */
.stat { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.stat-label { font-size: 12px; color: var(--rk-text-muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stats > div { background: var(--rk-input); border: 1px solid var(--rk-border); border-radius: 10px; padding: 12px 14px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rk-border); vertical-align: top; }
th { color: var(--rk-text-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:hover td { background: rgba(255, 255, 255, .02); }

/* Code */
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
pre { background: #070A12; border: 1px solid var(--rk-border); border-radius: 10px; padding: 14px; overflow-x: auto; white-space: pre; margin: 8px 0; color: #C7D2FE; }
.copy { display: flex; gap: 8px; align-items: center; }
.copy code { flex: 1; min-width: 0; background: #070A12; border: 1px solid var(--rk-border); padding: 9px 12px; border-radius: 10px; overflow-x: auto; white-space: nowrap; color: #C7D2FE; }

/* Tabs, steps, plans */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rk-border); margin: 18px 0; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--rk-text-muted); border-bottom: 2px solid transparent; font-weight: 500; font-size: 14px; }
.tabs a:hover { color: var(--rk-text); }
.tabs a.active { color: var(--rk-text); border-color: var(--rk-primary); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--rk-gradient); color: #fff; display: grid; place-items: center; font-weight: 700; }
.price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan ul { padding-left: 0; list-style: none; margin: 16px 0 0; }
.plan li { padding: 5px 0 5px 26px; position: relative; color: #CBD5E1; font-size: 14px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--rk-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.tpl { cursor: pointer; border: 1px solid var(--rk-border); transition: border-color .15s; }
.tpl:hover { border-color: #334155; }
.tpl.sel { border-color: var(--rk-primary); box-shadow: 0 0 0 1px var(--rk-primary), 0 12px 40px rgba(0, 102, 255, .18); }
details > summary { cursor: pointer; }
details.card > summary { list-style: none; }
details.card > summary::before { content: '▸ '; color: var(--rk-secondary); }
details.card[open] > summary::before { content: '▾ '; }

/* Call to action band */
.cta-band { margin-top: 36px; padding: 32px; border-radius: 16px; background: linear-gradient(120deg, #0052CC, #0066FF 45%, #3399FF); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: 24px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero h1 { font-size: 38px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perks > div:nth-child(3) { border-left: 0; }
  .perks > div:nth-child(n+3) { border-top: 1px solid var(--rk-border); }
}
@media (max-width: 600px) {
  .top { padding: 12px 16px; position: static; }
  main { padding: 20px 16px 48px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .perks { grid-template-columns: 1fr; }
  .perks > div { border-left: 0; border-top: 1px solid var(--rk-border); }
  .perks > div:first-child { border-top: 0; }
  h1 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) { .btn, .tpl { transition: none; } }
