/* noirpanther.kuvshinov.in — стиль темы Vibranium (токены из приложения: noirpanther/src/theme/themes.ts) */
@import url('fonts.css');
:root {
  --bg: #0B0A10; --surface: #15131D; --surface-hover: #1E1B29; --overlay: #232030;
  --text: #EFEDF5; --muted: #9A95AC; --subtle: #C4C0D0; --on-accent: #F4F0FF;
  --accent: #8B5CF6; --accent-hover: #A78BFA; --accent-soft: rgba(139,92,246,.16);
  --edge: #2A2735; --edge-subtle: #211E2B; --success: #34B27B; --danger: #E5484D;
  --radius: 16px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-hover); text-decoration: none; } a:hover { color: #C4B5FD; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; position: relative; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.kicker { color: var(--accent-hover); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.lead { color: var(--subtle); font-size: clamp(16px, 1.5vw, 19px); max-width: 720px; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }

/* шапка */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11,10,16,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--edge-subtle); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav-links a { color: var(--subtle); } .nav-links a:hover { color: var(--text); }
.lang { border: 1px solid var(--edge); color: var(--subtle); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; letter-spacing: .1em; }
.lang:hover { border-color: var(--accent); color: var(--text); }

/* hero */
.hero { padding: 92px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px; pointer-events: none;
  background: radial-gradient(closest-side at 50% 40%, rgba(139,92,246,.28), rgba(139,92,246,0) 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 20px 60px rgba(139,92,246,.35), 0 0 0 1px var(--edge); margin-bottom: 26px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, #C4B5FD, #8B5CF6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: all .2s ease; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--on-accent); } .btn-primary:hover { background: var(--accent-hover); color: #14101f; }
.btn-ghost { border-color: var(--edge); color: var(--text); background: rgba(255,255,255,.02); } .btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--edge); background: var(--surface); color: var(--text); }
.store small { color: var(--muted); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.store b { font-size: 15.5px; line-height: 1.25; }
.store.soon { opacity: .85; cursor: default; }
.platforms { margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.hero-art { position: relative; justify-self: center; }
.hero-art img { width: min(420px, 80vw); filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }

/* карточки */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; }
.card { background: var(--surface); border: 1px solid var(--edge-subtle); border-radius: var(--radius); padding: 26px 24px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--edge); transform: translateY(-2px); }
.card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-hover); display: grid; place-items: center; font-size: 20px; margin-bottom: 16px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* две колонки: текст + картинка */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split.rev { grid-template-columns: 1.1fr 1fr; }
.split ul { padding: 0; margin: 22px 0 0; list-style: none; }
.split li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--subtle); }
.split li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--edge); background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.browser .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--overlay); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3648; display: block; }
.browser .bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.alt { background: linear-gradient(180deg, rgba(21,19,29,.0), rgba(21,19,29,.65) 18%, rgba(21,19,29,.65) 82%, rgba(21,19,29,0)); }

/* скриншоты приложения (появляются, когда положены файлы в shots/) */
.shots { display: flex; justify-content: safe center; gap: 22px; overflow-x: auto; padding: 8px 4px 18px; margin-top: 40px; scroll-snap-type: x mandatory; }
.shots img { height: 560px; width: auto; border-radius: 28px; border: 1px solid var(--edge); scroll-snap-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.5); }

/* демо */
.demo-box { margin-top: 34px; display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,.7fr) minmax(0,.7fr); gap: 14px; }
.kv { background: var(--surface); border: 1px solid var(--edge-subtle); border-radius: 14px; padding: 18px 20px; }
.kv small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.kv code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--edge-subtle); border-radius: 14px; padding: 0 22px; margin-top: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; } summary::after { content: "+"; color: var(--accent-hover); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; } details p { margin: 0 0 20px; color: var(--subtle); }

/* форма */
.form { display: grid; gap: 12px; max-width: 640px; margin: 34px auto 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form textarea { width: 100%; background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; color: var(--text); font: inherit; padding: 13px 16px; outline: none; transition: border-color .2s ease; }
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { min-height: 150px; resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
#form-status { min-height: 22px; font-size: 14px; color: var(--muted); text-align: center; } #form-status.ok { color: var(--success); } #form-status.err { color: var(--danger); }

/* подвал */
footer { border-top: 1px solid var(--edge-subtle); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; } footer a { color: var(--subtle); }
.fine { width: 100%; font-size: 12.5px; color: #6f6a82; margin-top: 6px; }

/* юридические страницы */
.legal { padding: 64px 0 90px; } .legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 8px; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.legal h2 { font-size: 21px; margin: 38px 0 12px; } .legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--subtle); } .legal ul { padding-left: 22px; } .legal li { margin: 7px 0; }
.legal .box { background: var(--surface); border: 1px solid var(--edge); border-left: 3px solid var(--accent); border-radius: 12px; padding: 18px 22px; margin: 22px 0; }
.legal .box p { margin: 0; color: var(--text); }
.legal .caps { font-size: 14px; letter-spacing: .01em; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
@media (max-width: 920px) { .hero .wrap, .split, .split.rev { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art img { width: min(300px, 70vw); } .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .demo-box { grid-template-columns: 1fr; } .split.rev .browser { order: 2; } }
@media (max-width: 620px) { section { padding: 60px 0; } .grid { grid-template-columns: 1fr; } .nav-links a:not(.lang) { display: none; } .form .row { grid-template-columns: 1fr; } .shots img { height: 440px; } .hero { padding-top: 56px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card:hover { transform: none; } }

/* GitHub: иконка в кнопках и карточки репозиториев вместо «голых» ссылок */
.btn svg { width: 18px; height: 18px; flex: none; }
.repos { display: grid; gap: 12px; margin-top: 26px; }
.repo { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--edge-subtle); color: var(--text); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.repo:hover { border-color: var(--accent); background: var(--surface-hover); transform: translateY(-1px); color: var(--text); }
.repo-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hover); }
.repo-ico svg { width: 24px; height: 24px; }
.repo-body { display: flex; flex-direction: column; min-width: 0; }
.repo-body small { color: var(--muted); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.repo-body b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.repo-body b i { font-style: normal; color: var(--muted); margin: 0 1px; }
.repo-body em { font-style: normal; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.repo-tag { margin-left: auto; flex: none; font-size: 11.5px; letter-spacing: .08em; color: var(--accent-hover); border: 1px solid var(--edge); border-radius: 999px; padding: 3px 10px; }
.repo::after { content: "↗"; color: var(--muted); font-size: 16px; margin-left: 4px; transition: color .2s ease, transform .2s ease; }
.repo:hover::after { color: var(--accent-hover); transform: translate(2px,-2px); }

/* имя docker-образа в списке про сервер */
li code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow-wrap: anywhere; }

/* скриншоты: переключатель платформ (только CSS, без JS) */
.shots-switch > input { position: absolute; opacity: 0; pointer-events: none; }
.shots-switch .tabs { display: inline-flex; gap: 4px; margin-top: 34px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--edge-subtle); }
.shots-switch .tabs label { padding: 9px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.shots-switch .tabs label:hover { color: var(--text); }
.shots-switch .shots-b, #shots-android:checked ~ .shots-a { display: none; }
#shots-android:checked ~ .shots-b { display: flex; }
#shots-ios:checked ~ .tabs label[for="shots-ios"],
#shots-android:checked ~ .tabs label[for="shots-android"] { background: var(--accent); color: #fff; }
.shots-switch > input:focus-visible ~ .tabs label[for="shots-ios"],
.shots-switch > input:focus-visible ~ .tabs label[for="shots-android"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.shots-switch .shots { margin-top: 22px; }
