/* Runix — сайт проекта. Цвета — как у логотипа: синий шар и жёлтая орбита. */
:root {
  --bg: #0b1020; --bg2: #121a33; --card: #162043; --line: #26345f;
  --text: #e8ecf8; --muted: #9aa6c8; --blue: #3b6cff; --blue2: #2b5ce6;
  --yellow: #f5c518; --green: #3ccf7a; --radius: 14px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f8ff; --bg2: #eaf0ff; --card: #ffffff; --line: #d6def5; --text: #141a2e; --muted: #56607d; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* язык: показываем только выбранный */
html[data-lang="ru"] [lang="en"], html[data-lang="en"] [lang="ru"] { display: none !important; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* шапка */
header {
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 18px; margin-left: auto; }
nav a { color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; color: var(--muted); padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer;
}
.lang button.on { background: var(--blue); color: #fff; }
@media (max-width: 760px) { nav { display: none; } .lang { margin-left: auto; } }

/* первый экран */
.hero { padding: 72px 0 48px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 35%, transparent), transparent);
}
.hero .logo { width: 120px; height: 120px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.1; margin: 18px 0 12px; letter-spacing: -.02em; }
.hero h1 span.y { color: var(--yellow); }
.hero p.sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; border: 1px solid var(--line); color: var(--text); background: var(--card);
}
.btn:hover { text-decoration: none; border-color: var(--blue); }
.btn.main { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.main:hover { background: var(--blue2); }
.ver { margin-top: 14px; color: var(--muted); font-size: 14px; }

.hero-shot {
  margin: 44px auto 0; max-width: 960px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 40px 0 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat b { display: block; font-size: 28px; color: var(--yellow); }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

section { padding: 64px 0 8px; }
section h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; letter-spacing: -.01em; }
section .lead { color: var(--muted); margin: 0 0 28px; max-width: 720px; }

/* возможности */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card .ic { font-size: 26px; }
.card h3 { margin: 8px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* снимки экрана */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }

/* скачать */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .dl { grid-template-columns: 1fr; } }
.dl .card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dl .size { color: var(--muted); font-size: 14px; font-weight: 400; }
.dl .card .btn { margin-top: 14px; }
.sum { margin-top: 10px; font: 12px var(--mono); color: var(--muted); word-break: break-all; }

/* инструкции */
ol.steps { padding-left: 22px; margin: 0; }
ol.steps li { margin: 6px 0; }
code, pre { font-family: var(--mono); font-size: 14px; }
code { background: var(--bg2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
pre { background: var(--bg2); border: 1px solid var(--line); padding: 14px; border-radius: 10px; overflow-x: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* вопросы */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

/* что нового */
.news li { margin: 4px 0; }
.tag { display: inline-block; background: var(--green); color: #052; border-radius: 999px; padding: 0 10px; font-size: 13px; font-weight: 700; margin-right: 6px; }

footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* просмотр картинки целиком */
.zoom {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 16px; cursor: zoom-out;
}
.zoom.on { display: flex; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; }
