/* Awesome PVE — общий стиль */
:root {
  --bg: #0b0f17;
  --bg2: #0f1522;
  --panel: #131b2b;
  --panel2: #18223a;
  --line: #24304a;
  --text: #dbe3f0;
  --muted: #8a97ad;
  --accent: #ff7a1a;
  --accent2: #ffa24d;
  --cyan: #38bdf8;
  --green: #34d399;
  --red: #f87171;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --mono: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 122, 26, .12), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(56, 189, 248, .08), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #fff; }
img, svg, canvas { display: block; }
code, pre, kbd { font-family: var(--mono); }
:not(pre) > code {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: .88em;
  color: #ffd2ad;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; }
.brand:hover { color: #fff; }
.brand .logo { width: 34px; height: 34px; }
.brand small { font-weight: 500; color: var(--muted); font-size: .72rem; display: block; line-height: 1; margin-top: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: .93rem;
  font-weight: 500;
  transition: .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: #fff; background: rgba(255, 122, 26, .14); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.online-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px;
  white-space: nowrap;
}
.online-pill b { color: #fff; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.burger { display: none; background: none; border: 1px solid var(--line); color: #fff; border-radius: 9px; width: 40px; height: 40px; cursor: pointer; font-size: 1.2rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: .2s;
  font-family: inherit; color: #fff; background: var(--panel2);
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff5a1f); box-shadow: 0 10px 30px -10px rgba(255, 122, 26, .7); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(255, 122, 26, .9); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 9px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--accent2); background: rgba(255, 122, 26, .1);
  border: 1px solid rgba(255, 122, 26, .3); padding: 5px 12px; border-radius: 99px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 18px 0; color: #fff; letter-spacing: -1px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), #ffc38a 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0; flex-wrap: wrap; }
.scene-box { position: relative; height: 480px; }
.scene-box canvas { width: 100%; height: 100%; }
.scene-badge {
  position: absolute; background: rgba(19, 27, 43, .85); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; font-size: .8rem; backdrop-filter: blur(6px);
  box-shadow: var(--shadow); pointer-events: none;
}
.scene-badge b { display: block; color: #fff; font-size: 1rem; font-variant-numeric: tabular-nums; }
.scene-badge.b1 { top: 30px; left: 0; }
.scene-badge.b2 { bottom: 40px; right: 10px; }

.install {
  display: flex; align-items: center; gap: 12px; background: #070a10; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font-family: var(--mono); font-size: .85rem; max-width: 600px;
}
.install .prompt { color: var(--accent); }
.install code { flex: 1; color: #cfe3ff; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.copy-btn {
  background: var(--panel2); border: 1px solid var(--line); color: var(--muted); border-radius: 8px;
  padding: 5px 10px; font-size: .75rem; cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.copy-btn:hover { color: #fff; border-color: var(--accent); }

/* ---------- sections ---------- */
section.block { padding: 60px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; letter-spacing: -.5px; }
.sec-head p { color: var(--muted); max-width: 640px; }
.page-head { padding: 54px 0 20px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; letter-spacing: -.8px; }
.page-head p { color: var(--muted); max-width: 720px; margin-top: 8px; font-size: 1.05rem; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-card .v { font-size: 1.8rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.stat-card .l { color: var(--muted); font-size: .85rem; }
.stat-card .d { font-size: .78rem; margin-top: 4px; }
.up { color: var(--green); }
.down { color: var(--red); }

.grid { display: grid; gap: 18px; }
.grid > *, .hero-grid > *, .calc > *, .docs > *, .auth > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.card:hover { border-color: rgba(255, 122, 26, .45); }
.card h3 { color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .92rem; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(255, 122, 26, .12); color: var(--accent2); font-size: 1.3rem; border: 1px solid rgba(255, 122, 26, .25);
}
.icon.c { background: rgba(56, 189, 248, .1); color: var(--cyan); border-color: rgba(56, 189, 248, .25); }
.icon.g { background: rgba(52, 211, 153, .1); color: var(--green); border-color: rgba(52, 211, 153, .25); }

/* ---------- catalog ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.search {
  flex: 1; min-width: 240px; background: var(--panel); border: 1px solid var(--line); color: #fff;
  border-radius: 11px; padding: 12px 16px; font-size: .95rem; font-family: inherit; outline: none;
}
.search:focus { border-color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 7px 13px;
  border-radius: 99px; font-size: .84rem; cursor: pointer; font-family: inherit; transition: .2s;
}
.chip:hover { color: #fff; }
.chip.on { background: rgba(255, 122, 26, .15); border-color: var(--accent); color: #fff; }
select.sel {
  background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 11px;
  padding: 11px 14px; font-family: inherit; font-size: .9rem;
}
.repo-card { cursor: pointer; display: flex; flex-direction: column; }
.repo-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.repo-card h3 { font-family: var(--mono); font-size: 1rem; }
.badge {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 6px; background: rgba(56, 189, 248, .12); color: var(--cyan); white-space: nowrap;
}
.badge.o { background: rgba(255, 122, 26, .13); color: var(--accent2); }
.badge.g { background: rgba(52, 211, 153, .12); color: var(--green); }
.repo-card p { margin: 8px 0 14px; flex: 1; }
.meta { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.empty { text-align: center; color: var(--muted); padding: 50px 0; display: none; }

/* ---------- code ---------- */
pre {
  background: #070a10; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  overflow-x: auto; font-size: .84rem; color: #cfe3ff; line-height: 1.55; position: relative; margin: 14px 0;
}
pre .c { color: #637191; }
pre .k { color: var(--accent2); }
pre .s { color: #a5e3a1; }
pre .copy-btn { position: absolute; top: 10px; right: 10px; }

/* ---------- guides ---------- */
.docs { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.toc { position: sticky; top: 90px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; color: var(--text); font-size: .9rem; padding: 6px 10px; border-radius: 8px; }
.toc a:hover, .toc a.active { background: rgba(255, 122, 26, .12); color: #fff; }
article.guide { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 22px; scroll-margin-top: 90px; }
article.guide h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
article.guide h3 { color: #fff; font-size: 1.08rem; margin: 22px 0 6px; }
article.guide p, article.guide li { color: #b8c3d6; font-size: .96rem; }
article.guide ul, article.guide ol { padding-left: 22px; margin: 8px 0; }
.g-meta { color: var(--muted); font-size: .82rem; margin-bottom: 16px; display: flex; gap: 14px; flex-wrap: wrap; }
.note { border-left: 3px solid var(--accent); background: rgba(255, 122, 26, .07); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 14px 0; font-size: .92rem; color: #e8d7c8; }
.note.i { border-color: var(--cyan); background: rgba(56, 189, 248, .07); color: #cde7f5; }

/* ---------- pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.hot { border-color: var(--accent); box-shadow: 0 30px 60px -30px rgba(255, 122, 26, .5); }
.price-card .ribbon { position: absolute; top: -12px; right: 18px; background: var(--accent); color: #111; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; }
.price { font-size: 2.2rem; font-weight: 800; color: #fff; margin: 10px 0 2px; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.feat { list-style: none; margin: 18px 0 22px; flex: 1; }
.feat li { padding: 6px 0 6px 26px; position: relative; color: #b8c3d6; font-size: .92rem; border-bottom: 1px dashed rgba(255, 255, 255, .05); }
.feat li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.range-row { margin-bottom: 20px; }
.range-row label { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 8px; }
.range-row label b { color: #fff; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.total { font-size: 2.6rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.calc-lines { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.calc-lines div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.calc-lines b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 500; }

details.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; color: #fff; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--muted); margin-top: 10px; font-size: .93rem; }

/* ---------- stats ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.chart-card h3 { color: #fff; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chart-card h3 small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.chart { width: 100%; height: 240px; margin-top: 12px; }
.bars .row { display: grid; grid-template-columns: 120px 1fr 60px; gap: 10px; align-items: center; font-size: .86rem; padding: 6px 0; }
.bars .bar { height: 8px; background: rgba(255, 255, 255, .05); border-radius: 99px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width .8s; }
.bars .row:nth-child(even) .bar i { background: linear-gradient(90deg, #0ea5e9, var(--cyan)); }
.bars .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.feed { list-style: none; max-height: 330px; overflow: hidden; }
.feed li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; animation: slidein .5s ease; }
.feed li time { color: var(--muted); font-family: var(--mono); font-size: .78rem; flex-shrink: 0; padding-top: 1px; }
.feed li span { color: #b8c3d6; }
.feed li b { color: #fff; font-weight: 600; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- login ---------- */
.auth { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(600px 400px at 30% 30%, rgba(255, 122, 26, .12), transparent 70%); }
.auth-side canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-side .cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 80px 40px 40px; background: linear-gradient(transparent, rgba(11, 15, 23, .92) 55%); }
.auth-side .cap h2 { color: #fff; font-size: 1.8rem; line-height: 1.2; }
.auth-side .cap p { color: var(--muted); margin-top: 8px; }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.form-box { width: 100%; max-width: 400px; }
.form-box h1 { color: #fff; font-size: 1.8rem; }
.form-box .sub { color: var(--muted); margin: 4px 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: #fff;
  border-radius: 11px; padding: 12px 14px; font-size: .95rem; font-family: inherit; outline: none; transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, .15); }
.field input.err { border-color: var(--red); }
.field .hint { font-size: .78rem; color: var(--red); margin-top: 5px; min-height: 1em; }
.row-between { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; margin-bottom: 20px; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent); }
.alert { padding: 11px 14px; border-radius: 10px; font-size: .88rem; margin-bottom: 16px; display: none; }
.alert.show { display: block; animation: slidein .3s; }
.alert.e { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; }
.alert.ok { background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); color: #bbf7d0; }
.sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 22px 0; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.w100 { width: 100%; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; display: none; }
.loading .spin { display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(3, 6, 12, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8);
  transform: translateY(16px) scale(.98); transition: transform .25s;
  position: relative;
}
.modal.open .modal-box { transform: none; }
.modal-box.wide { max-width: 760px; }
.modal-box h2 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; padding-right: 30px; }
.modal-box .sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px;
  background: var(--panel2); border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 1.1rem;
}
.modal-close:hover { color: #fff; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: .9rem; margin: 14px 0; }
.kv dt { color: var(--muted); }
.kv dd { color: #fff; }

.toast-zone { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  color: #fff; padding: 12px 16px; border-radius: 10px; font-size: .9rem; box-shadow: var(--shadow);
  animation: slidein .3s; max-width: 340px;
}

.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 90; max-width: 420px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow);
  font-size: .86rem; color: var(--muted); display: none;
}
.cookie.show { display: block; animation: slidein .4s; }
.cookie b { color: #fff; }
.cookie .modal-actions { justify-content: flex-start; margin-top: 12px; }

/* ---------- footer ---------- */
footer.site-footer { border-top: 1px solid var(--line); padding: 46px 0 30px; margin-top: 60px; background: rgba(0, 0, 0, .2); }
.f-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
.f-grid h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.f-grid a { display: block; color: var(--muted); font-size: .88rem; padding: 3px 0; }
.f-grid a:hover { color: #fff; }
.f-grid p { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.f-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.status-ok { color: var(--green); }

.cta {
  background: linear-gradient(120deg, rgba(255, 122, 26, .16), rgba(56, 189, 248, .08));
  border: 1px solid rgba(255, 122, 26, .3); border-radius: 20px; padding: 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: 1.6rem; }
.cta p { color: var(--muted); }

.changelog li { list-style: none; display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.changelog time { color: var(--muted); font-family: var(--mono); font-size: .8rem; padding-top: 2px; }
.changelog b { color: #fff; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 100px 20px; }
.nf h1 { font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: transparent; background: linear-gradient(90deg, var(--accent), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.nf p { color: var(--muted); margin: 14px 0 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .online-pill { display: none; }
}
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px; margin: 0;
  }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .hero-grid, .calc, .docs, .auth { grid-template-columns: 1fr; }
  .scene-box { height: 340px; }
  .toc { position: static; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .auth-side { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .nav-right .btn-ghost { display: none; }
  .bars .row { grid-template-columns: 90px 1fr 50px; }
  article.guide { padding: 20px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .cta { padding: 24px; }
  .cookie { right: 16px; left: 16px; bottom: 16px; }
  .hero { padding-top: 40px; }
  .scene-badge.b1 { top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
