:root {
  --bg: #0b0d10; --bg-2: #0e1115; --panel: #11151a; --panel-2: #161b21;
  --line: #1d2128; --line-2: #2b313a;
  --text: #e8eaed; --muted: #a7aeb8; --dim: #8b929b;
  --accent: #c6f24e; --accent-hi: #dcff7a; --on-accent: #0b0d10;
  --ok: #7ee2a8; --err: #ff7b72;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Onest, "Segoe UI", system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11,13,16,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; min-height: 64px; }
.logo { color: var(--text); font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.logo:hover { color: var(--text); }
.logo i { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; color: var(--on-accent); font: 700 13px/1 var(--mono); font-style: normal; }
.top nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; flex: 1; }
.top nav a { color: var(--muted); }
.top nav a:hover, .top nav a.on { color: var(--text); }
.top .tg { font: 13px var(--mono); color: var(--muted); }
@media (max-width: 760px) { .top nav { display: none; } .top .wrap { justify-content: space-between; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 16px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { color: var(--text); border-color: var(--dim); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--on-accent); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* общие секции */
section.s { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font: 13px var(--mono); color: var(--accent); margin-bottom: 14px; }
h2.t { font-size: 34px; letter-spacing: -.5px; margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0 0 32px; }
.crumbs { padding: 26px 0 0; font: 13px var(--mono); color: var(--dim); }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--text); }

/* главная */
.hero { padding: 84px 0 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; align-items: center; }
.hero h1 { font-size: 54px; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 540px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.term { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; font: 13px/2 var(--mono); }
.term .dots { display: flex; gap: 6px; margin-bottom: 12px; }
.term .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term .d { color: var(--dim); }
.term .ok { color: var(--accent); }
.term .cur { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.cat { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); color: var(--text); transition: background .15s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--panel); color: var(--text); }
.code { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font: 14px var(--mono); color: var(--accent); }
.row .nm { flex: 999 1 300px; min-width: 0; }
.row .nm b { display: block; font-size: 18px; font-weight: 600; }
.row .nm span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.row .tag { font: 13px var(--mono); color: var(--dim); }
.row .pr { font-weight: 600; min-width: 130px; text-align: right; }
.row .ar { color: var(--accent); transition: transform .15s; }
.row:hover .ar { transform: translateX(4px); }
@media (max-width: 640px) { .row .pr { text-align: left; min-width: 0; } .row .tag { display: none; } }

.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.three .n { font: 13px var(--mono); color: var(--accent); margin-bottom: 10px; }
.three h3 { font-size: 20px; margin-bottom: 8px; }
.three p { margin: 0; color: var(--muted); }

/* страница продукта */
.prod { padding: 28px 0 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.prod .main { flex: 999 1 560px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font: 12px var(--mono); }
.chips span { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; color: var(--muted); }
.prod h1 { font-size: 50px; letter-spacing: -1.5px; margin-bottom: 16px; }
.prod .lead { font-size: 19px; margin-bottom: 28px; }
.shot { border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; cursor: zoom-in; }
.shot img { width: 100%; }
.shot-cap { margin: 10px 0 0; color: var(--dim); font-size: 14px; min-height: 22px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.thumbs button:hover { opacity: 1; }
.thumbs button.on { opacity: 1; border-color: var(--accent); }

.buy { flex: 1 1 320px; position: sticky; top: 88px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; }
.buy .k { font: 12px var(--mono); color: var(--dim); margin-bottom: 6px; }
.buy .amount { font-size: 40px; font-weight: 700; letter-spacing: -1px; margin-bottom: 18px; line-height: 1.1; }
.buy .amount.ask { font-size: 26px; }
.buy ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.buy li::before { content: "✓  "; color: var(--accent); }
.buy .note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .buy { position: static; } }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feat { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--bg); transition: border-color .15s; }
.feat:hover { border-color: var(--line-2); }
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

.cols { display: flex; flex-wrap: wrap; gap: 40px; }
.cols > div { flex: 1 1 340px; min-width: 0; }
.cols h2 { font-size: 26px; margin-bottom: 16px; }
.list { list-style: none; padding: 0; margin: 0; font: 14px/1.9 var(--mono); color: var(--muted); }
.list li::before { content: "› "; color: var(--accent); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--dim); font-family: var(--mono); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

.flow { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 26px; font: 14px/2.1 var(--mono); }
.flow .d { color: var(--dim); }
.flow .ok { color: var(--accent); }

/* мигратор */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.box h3 { font-size: 18px; color: var(--muted); font-weight: 500; }
.box .big { font-size: 52px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; margin: 6px 0 14px; }
.box.manual .big { color: var(--err); }
.box.auto .big { color: var(--accent); }
.box ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.box .sum { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.box .sum b { font-size: 20px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--bg); }
.step .n { font: 13px var(--mono); color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
code { font-family: var(--mono); font-size: 13px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 13px var(--mono); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }
.two ul { padding-left: 20px; color: var(--muted); line-height: 1.9; }
.two .pic { max-width: 420px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px 22px 22px; display: flex; flex-direction: column; }
.plan .name { font: 13px var(--mono); color: var(--dim); margin-bottom: 8px; }
.plan .amount { font-size: 32px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.plan .per { font-size: 14px; color: var(--muted); margin: 6px 0; }
.plan .save { align-self: flex-start; font: 12px var(--mono); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 14px; }
.plan .save.none { visibility: hidden; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.plan li::before { content: "✓  "; color: var(--accent); }
.plan li.no { opacity: .55; }
.plan li.no::before { content: "×  "; color: var(--dim); }
.plan .btn { margin-top: auto; }
.plan.hot { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(198,242,78,.35), 0 18px 40px -18px rgba(198,242,78,.35); }
.plan.hot .tag { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--on-accent); font: 700 11px var(--mono); padding: 4px 10px; border-radius: 6px; letter-spacing: .04em; }
.pnote { margin: 22px 0 0; color: var(--muted); font-size: 15px; }

/* подвал */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer a { color: var(--muted); }
footer .fine { font-size: 12px; max-width: 640px; margin-top: 6px; line-height: 1.55; }
footer .links { display: flex; flex-wrap: wrap; gap: 16px; }

/* окно покупки */
.ov { position: fixed; inset: 0; background: rgba(5,7,9,.75); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 60; backdrop-filter: blur(4px); }
.ov.on { display: flex; }
.md { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: 100%; overflow: auto; }
.md h3 { margin: 0 0 4px; font-size: 20px; }
.md .sum { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.md .sum b { color: var(--text); font-size: 17px; }
.md label.f { display: block; font: 12px var(--mono); color: var(--dim); margin-bottom: 6px; }
.md input[type=text], .md input[type=email] { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: inherit; font-size: 16px; margin-bottom: 16px; }
.md input:focus { outline: none; border-color: var(--accent); }
.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.seg button { flex: 1 1 auto; padding: 9px 14px; background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; border-right: 1px solid var(--line-2); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.md .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 16px; line-height: 1.45; }
.md .chk input { margin-top: 3px; accent-color: var(--accent); }
.md .err { color: var(--err); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.md .err.hint { color: var(--muted); }
.md .alt { font-size: 13px; color: var(--dim); margin-top: 14px; text-align: center; }
.md .close { float: right; background: none; border: 0; color: var(--dim); font-size: 24px; cursor: pointer; line-height: 1; margin: -6px -6px 0 0; }
.md .close:hover { color: var(--text); }

#lb { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; cursor: zoom-out; }
#lb.open { display: flex; }
#lb img { max-width: 100%; max-height: 100%; border-radius: 10px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .term .cur { animation: none; } }

@media (max-width: 760px) {
  section.s { padding: 52px 0; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 38px; }
  .prod h1 { font-size: 36px; }
  h2.t { font-size: 28px; }
  .wrap { padding: 0 16px; }
}
