/* Kenoma Engine — сайт движка (стиль «игровой HUD»: тёмный фон, циан, рамки-уголки, без скруглений). */
:root {
  --bg: #07090C; --bg2: #0A0E12; --panel: #0B1015; --cyan: #3DF2FF; --cyan2: #9AF8FF; --amber: #FFC94D; --red: #FF6B6B;
  --tx: #E6F7FF; --tx2: #B9D3DD; --tx3: #8FB3C2; --tx4: #5F7C88; --ln: #1C2A33; --ln2: #22323D;
  --mono: 'JetBrains Mono', ui-monospace, monospace; --sans: 'Exo 2', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); }
body { font-family: var(--sans); font-size: 17px; line-height: 1.55; min-height: 100vh; overflow-x: hidden; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan2); }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: -2px; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hud {
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left/18px 2px no-repeat, linear-gradient(var(--cyan), var(--cyan)) top left/2px 18px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top right/18px 2px no-repeat, linear-gradient(var(--cyan), var(--cyan)) top right/2px 18px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom left/18px 2px no-repeat, linear-gradient(var(--cyan), var(--cyan)) bottom left/2px 18px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right/18px 2px no-repeat, linear-gradient(var(--cyan), var(--cyan)) bottom right/2px 18px no-repeat,
    var(--panel);
}
.hud.amber {
  background:
    linear-gradient(var(--amber), var(--amber)) top left/18px 2px no-repeat, linear-gradient(var(--amber), var(--amber)) top left/2px 18px no-repeat,
    linear-gradient(var(--amber), var(--amber)) bottom right/18px 2px no-repeat, linear-gradient(var(--amber), var(--amber)) bottom right/2px 18px no-repeat,
    #13110A;
}
.scan { background-image: repeating-linear-gradient(0deg, rgba(61, 242, 255, .035) 0 1px, transparent 1px 4px); }
@keyframes blink { 50% { opacity: .2; } }
.blink { animation: blink 1.2s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

.tag { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; }
.h1 { margin: 22px 0 0; font-weight: 900; font-style: italic; font-size: clamp(52px, 8vw, 112px); line-height: .9; text-transform: uppercase; letter-spacing: -.01em; }
.h2 { margin: 16px 0 0; font-weight: 900; font-style: italic; font-size: clamp(34px, 5vw, 64px); line-height: .95; text-transform: uppercase; }
.h3 { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(30px, 4vw, 52px); line-height: .95; text-transform: uppercase; }
.lead { margin: 26px 0 0; font-weight: 300; font-size: 20px; color: var(--tx2); max-width: 560px; }
.muted { color: var(--tx3); }
.dim { color: var(--tx4); }

/* Кнопки: срезанные углы, без скруглений */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 0; cursor: pointer;
  background: var(--cyan); color: var(--bg); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.btn:hover { background: var(--cyan2); color: var(--bg); }
.btn.big { min-height: 62px; padding: 0 34px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--cyan); border: 1px solid var(--cyan); clip-path: none; font-weight: 500; }
.btn.ghost:hover { background: rgba(61, 242, 255, .08); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid var(--red); clip-path: none; font-weight: 500; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 13px; font-family: var(--mono); font-weight: 500; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--cyan); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.link.red { color: var(--red); }

/* Поля */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .lbl { font-family: var(--mono); font-size: 11px; color: var(--tx3); letter-spacing: .08em; text-transform: uppercase; }
.in { height: 52px; border: 1px solid var(--ln2); background: var(--bg); color: var(--tx); padding: 0 14px; width: 100%; }
textarea.in { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
select.in { padding: 0 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--tx2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan); }
.err { font-family: var(--mono); font-size: 13px; color: var(--red); min-height: 1em; }
.ok { font-family: var(--mono); font-size: 13px; color: var(--cyan); }

/* Шапка */
.top { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; padding-top: 24px; padding-bottom: 24px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; }
.logo { font-family: var(--sans); font-weight: 900; font-size: 22px; letter-spacing: .12em; color: var(--tx); }
.logo:hover { color: var(--tx); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 30px; flex: 1 1 auto; }
.nav a { color: var(--tx3); }
.nav a:hover { color: var(--tx); }
.bar { border-bottom: 1px solid var(--ln); }
.bar .top { padding-top: 18px; padding-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 14px; flex: 1 1 auto; color: var(--tx4); }
.crumbs a { color: var(--tx3); }
.me { position: relative; }
.me > button { background: none; border: 1px solid var(--ln2); padding: 9px 14px; cursor: pointer; color: var(--tx2); font-family: var(--mono); font-size: 13px; }
.me > button b { color: var(--cyan); font-weight: 500; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--panel); border: 1px solid var(--ln2); display: none; z-index: 20; }
.menu.open { display: block; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 12px 16px; background: none; border: 0; border-bottom: 1px solid var(--ln);
  color: var(--tx2); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.menu a:hover, .menu button:hover { background: rgba(61, 242, 255, .06); color: var(--tx); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; background: var(--amber); color: var(--bg); font-size: 11px; text-align: center; margin-left: 6px; }

/* Первый экран */
.hero { position: relative; min-height: 820px; overflow: hidden; border-bottom: 1px solid var(--ln); }
.hero > img { position: absolute; right: 0; top: 0; width: 64%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.72); }
.hero .fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(7, 9, 12, .5) 52%, rgba(7, 9, 12, 0) 78%); }
.hero .scan { position: absolute; inset: 0; }
.hero .body { position: relative; padding-top: 110px; padding-bottom: 150px; }
.hero .body > div { max-width: 660px; }
.target { position: absolute; left: 68%; top: 41%; width: 170px; height: 150px; }
.target .hud { position: absolute; inset: 0; background-color: transparent; }
.target .t1 { position: absolute; left: 0; top: -28px; font-family: var(--mono); font-size: 12px; color: var(--cyan); white-space: nowrap; }
.target .t2 { position: absolute; left: 186px; top: 60px; font-family: var(--mono); font-size: 12px; color: var(--tx3); white-space: nowrap; border-left: 1px solid var(--cyan); padding-left: 10px; }
.stats { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--ln); background: rgba(7, 9, 12, .7); }
.stats .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px 48px; font-family: var(--mono); font-size: 12px; color: var(--tx3); }
.stats b { color: var(--tx); font-weight: 500; }
.row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

section.s { padding-top: 110px; padding-bottom: 70px; }
.alt { border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); background: var(--bg2); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 22px; margin-top: 54px; }
.mod { padding: 30px; display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.mod .k { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--tx3); }
.mod .k span:last-child { color: var(--cyan); }
.mod h3 { margin: 14px 0 0; font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.mod p { margin: 0; color: var(--tx2); font-weight: 300; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.chat { padding: 28px; font-family: var(--mono); font-size: 14px; line-height: 1.8; }
.chat .h { display: flex; justify-content: space-between; color: var(--tx3); font-size: 12px; border-bottom: 1px solid var(--ln); padding-bottom: 12px; gap: 10px; }
.cmd { margin-top: 26px; font-family: var(--mono); font-size: 13px; color: var(--tx3); border-left: 2px solid var(--cyan); padding: 6px 0 6px 14px; overflow-wrap: anywhere; }
.steps { display: flex; gap: 6px; margin-top: 22px; }
.steps div { flex: 1; height: 10px; background: var(--ln); }
.steps div.on { background: var(--cyan); }
.stagegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; margin-top: 22px; }
.stagegrid b { display: block; font-weight: 800; text-transform: uppercase; }
.stagegrid span { color: var(--tx3); font-size: 15px; font-weight: 300; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--tx3); }
.chips span { border: 1px solid var(--ln); padding: 6px 10px; }
.plan { padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.plan .lvl { font-family: var(--mono); font-size: 12px; color: var(--tx3); display: flex; justify-content: space-between; gap: 8px; }
.plan .price { font-weight: 800; font-size: 48px; line-height: 1; }
.plan ul { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 13px; line-height: 2; color: var(--tx2); text-transform: uppercase; }
.plan ul li::before { content: '+ '; }
.plan .btn { margin-top: auto; width: 100%; clip-path: none; }
.plan.hot { background: var(--cyan); color: var(--bg); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
.plan.hot .lvl, .plan.hot ul { color: var(--bg); }
.plan.hot .btn { background: var(--bg); color: var(--cyan); }
.foot { border-top: 1px solid var(--ln); }
.foot .wrap { padding-top: 44px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; font-family: var(--mono); font-size: 13px; }
.foot a { color: var(--tx3); }

/* Вход */
.auth { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.auth > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) brightness(.35); }
.auth .scan { position: absolute; inset: 0; }
.auth .center { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 16px 80px; }
.authbox { width: 100%; max-width: 480px; padding: 38px 36px; }
.tabs2 { display: flex; border-bottom: 1px solid var(--ln2); margin: 22px 0 26px; }
.tabs2 button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 0; cursor: pointer; color: var(--tx3);
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.tabs2 button[aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form .btn { width: 100%; clip-path: none; margin-top: 6px; }

/* Кабинет */
.page { padding-top: 40px; padding-bottom: 80px; }
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--ln); margin-top: 30px; }
.counters > div { padding: 22px 24px; border-right: 1px solid var(--ln); }
.counters > div:last-child { border-right: 0; }
.counters .n { font-weight: 900; font-style: italic; font-size: 42px; line-height: 1; margin-top: 8px; }
.counters .n small { font-size: 18px; color: var(--tx3); font-style: normal; font-weight: 500; }
.invite { margin-top: 26px; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.invite .t { flex: 1 1 300px; }
.invite .t b { color: var(--amber); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 22px; margin-top: 30px; }
.card { padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; color: var(--tx); border: 1px solid var(--ln); background: var(--panel); position: relative; }
a.card:hover { color: var(--tx); border-color: var(--cyan); }
.card .k { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--tx3); }
.card h3 { margin: 10px 0 0; font-weight: 900; font-style: italic; font-size: 32px; line-height: .95; text-transform: uppercase; overflow-wrap: anywhere; }
.card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 12px; color: var(--tx3); }
.card.new { align-items: flex-start; justify-content: center; border: 1px dashed var(--ln2); background: transparent; cursor: pointer; text-align: left; }
.card.new:hover { border-color: var(--cyan); }
.empty { padding: 50px 30px; text-align: center; color: var(--tx3); border: 1px dashed var(--ln2); }

/* Проект */
.banner { position: relative; border-bottom: 1px solid var(--ln); overflow: hidden; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.35); }
.banner .scan { position: absolute; inset: 0; }
.banner .wrap { position: relative; padding-top: 50px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.banner .t { flex: 1 1 520px; min-width: 0; }
.banner h1 { margin: 12px 0 0; font-weight: 900; font-style: italic; font-size: clamp(44px, 7vw, 76px); line-height: .9; text-transform: uppercase; overflow-wrap: anywhere; }
.tabs { border-bottom: 1px solid var(--ln); }
.tabs .wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 18px 18px 16px; cursor: pointer; color: var(--tx3);
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tabs button[aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.cols { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.cols > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cols > .side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; border: 1px solid var(--ln); background: var(--panel); }
.line .who { flex: 1 1 220px; min-width: 0; }
.line .who b { display: block; font-weight: 800; font-size: 18px; }
.line .who span { font-family: var(--mono); font-size: 12px; color: var(--tx3); overflow-wrap: anywhere; }
.dot { width: 10px; height: 10px; background: var(--ln2); flex: none; }
.dot.on { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.pill { font-family: var(--mono); font-size: 12px; border: 1px solid var(--ln2); padding: 6px 10px; color: var(--tx2); text-transform: uppercase; }
.box { padding: 24px; }
.box .tag { font-size: 12px; }
.copyrow { display: flex; border: 1px solid var(--ln2); margin-top: 12px; }
.copyrow input { flex: 1; min-width: 0; height: 50px; border: 0; background: var(--bg); color: var(--tx); padding: 0 12px; font-family: var(--mono); font-size: 13px; }
.copyrow button { border: 0; background: var(--cyan); color: var(--bg); font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 0 16px; cursor: pointer; }
.build { border: 1px solid var(--ln); background: var(--panel); padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.build .n { font-family: var(--mono); font-size: 15px; min-width: 60px; }
.build .w { flex: 1 1 240px; min-width: 0; }
.build .w b { display: block; font-weight: 800; text-transform: uppercase; }
.build .w span { font-family: var(--mono); font-size: 12px; color: var(--tx3); }
.build .p { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; }
.prog { height: 6px; background: var(--ln); }
.prog div { height: 100%; background: var(--cyan); }
.st-done { color: var(--cyan); } .st-failed { color: var(--red); } .st-running { color: var(--amber); } .st-queued, .st-canceled { color: var(--tx3); }
pre.log { margin: 14px 0 0; max-height: 420px; overflow: auto; padding: 16px; background: var(--bg); border: 1px solid var(--ln); font-family: var(--mono); font-size: 12px; color: var(--tx2); white-space: pre-wrap; }
.plats { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.plats label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ln2); padding: 10px 14px; cursor: pointer; font-family: var(--mono); font-size: 13px; }
.plats input { accent-color: var(--cyan); }
.events { font-family: var(--mono); font-size: 13px; }
.events div { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid var(--ln); }
.events time { color: var(--tx4); min-width: 150px; }
.events span.by { color: var(--cyan); min-width: 110px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; padding: 14px 22px; background: var(--panel); border: 1px solid var(--cyan);
  font-family: var(--mono); font-size: 13px; max-width: calc(100% - 32px); }
.toast.bad { border-color: var(--red); color: var(--red); }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(3, 5, 7, .82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal .hud { width: 100%; max-width: 520px; padding: 32px; max-height: calc(100vh - 32px); overflow: auto; }
.doc { max-width: 860px; }
.doc h2 { font-weight: 800; text-transform: uppercase; font-size: 24px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--tx2); font-weight: 300; }
.doc code { font-family: var(--mono); font-size: 14px; color: var(--cyan); }

@media (max-width: 900px) {
  .hero > img { width: 100%; opacity: .45; }
  .target { display: none; }
  .hero .body { padding-top: 40px; padding-bottom: 170px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  body { font-size: 16px; }
  .authbox { padding: 30px 22px; }
  .counters > div { border-right: 0; border-bottom: 1px solid var(--ln); }
  .stats .wrap { gap: 8px 22px; }
  .mod, .plan, .chat, .card { padding: 22px; }
}
