/* JXNify — один файл стилей на весь сайт. Без сборщика и фреймворков. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #0a0d14;
  --bg-2: #10141e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e6e9ef;
  --muted: #8f97a8;
  --accent: #2b8de6;
  --accent-2: #36b2e9;
  --grad: linear-gradient(90deg, #156fe2, #36b2e9);
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

/* Страница Rack — фирменная гамма приложения: графит, бумага, оранжевый. */
body.rack {
  --bg: #0a0a0a;
  --bg-2: #141412;
  --line: #2b2b28;
  --text: #f2efe8;
  --muted: #8c897f;
  --accent: #ff5a1f;
  --accent-2: #ff7a45;
  --grad: linear-gradient(90deg, #ff5a1f, #ff8a50);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.lang { position: relative; font-size: 14px; }
.lang summary {
  list-style: none; cursor: pointer; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { color: var(--text); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px;
  list-style: none; min-width: 170px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.lang li a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--text); }
.lang li a:hover, .lang li a[aria-current="true"] { background: rgba(255, 255, 255, 0.06); }

/* ---------- common blocks ---------- */
section { padding: 72px 0; }
.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 800; }
h2 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 750; margin-bottom: 28px; }
h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 0; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px; text-decoration: none; font-weight: 650;
  border: 1px solid var(--line); color: var(--text); background: transparent;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
body.rack .btn.primary { color: #1a0800; }
.btn.primary:hover { filter: brightness(1.08); }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 20px; height: 20px; flex: none; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- home ---------- */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 820px; }
.hero .lead { margin-top: 22px; }

.product {
  display: grid; gap: 22px; align-items: center; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  transition: border-color .2s;
}
.product:hover { border-color: #ff5a1f; }
.product img.icon { width: 76px; height: 76px; border-radius: 18px; }
.product h3 { font-size: 24px; margin: 0; }
.product .tag { font-family: var(--mono); font-size: 13px; color: #ff5a1f; margin: 2px 0 10px; }
.product p { color: var(--muted); margin: 0; }
.product .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
@media (min-width: 720px) { .product { grid-template-columns: 76px 1fr auto; padding: 28px 32px; } }
.product .go { color: var(--muted); font-size: 15px; white-space: nowrap; }

.principle .num { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 10px; }

.contact { text-align: center; }
.contact .mail { font-family: var(--mono); font-size: clamp(16px, 3.6vw, 22px); color: var(--text); word-break: break-all; }

/* ---------- rack ---------- */
body.rack .hero { padding: 80px 0 40px; }
.rack-hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .rack-hero { grid-template-columns: 1.1fr 0.9fr; } }
.rack-hero .appicon { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 22px; }
.rack-hero h1 { text-transform: uppercase; letter-spacing: -0.01em; font-weight: 850; }
.trial { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 16px; }
.phone {
  justify-self: center; width: min(320px, 78vw);
  border: 1px solid var(--line); border-radius: 28px; padding: 8px; background: #050505;
  box-shadow: 0 40px 80px -30px rgba(255, 90, 31, 0.25);
}
.phone img { border-radius: 21px; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 66vw); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px;
  margin: 0 -20px; scrollbar-width: thin;
}
/* На десктопе карусель обрезала пятый кадр — все в один ряд без прокрутки */
@media (min-width: 960px) {
  .shots { grid-auto-columns: minmax(0, 1fr); overflow-x: visible; margin: 0; padding: 4px 0 18px; }
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border: 1px solid var(--line); border-radius: 18px; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.45; }

/* ---------- просмотр скриншота во весь экран (zoom.js) ---------- */
a[data-zoom] { display: block; cursor: zoom-in; border-radius: 18px; }
.phone a[data-zoom] { border-radius: 21px; }
a[data-zoom] img { transition: transform .2s ease; }
@media (hover: hover) { a[data-zoom]:hover img { transform: translateY(-3px); } }
html.lb-lock { overflow: hidden; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 6, 6, .97); color: var(--text);
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 12px 16px; }
.lightbox img { max-height: calc(100dvh - 120px); max-width: min(100%, 540px); width: auto; height: auto;
  border: 1px solid var(--line); border-radius: 22px; cursor: default; }
.lightbox figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); text-align: center; max-width: 46ch; }
.lightbox .lb-count { font-family: var(--mono); color: var(--accent); margin-right: 10px; }
.lb-btn {
  position: absolute; z-index: 1; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(20, 20, 18, .85); color: var(--text);
  font: 28px/1 var(--sans); cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: max(16px, calc(50% - 360px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(16px, calc(50% - 360px)); top: 50%; transform: translateY(-50%); }
/* На телефоне листают свайпом — стрелки поверх картинки только мешают */
@media (max-width: 640px) { .lb-prev, .lb-next { display: none; } .lightbox figure { padding-top: 76px; } .lightbox img { max-height: calc(100dvh - 150px); } }

.feature h3::before { content: "▪ "; color: var(--accent); }

.agentless {
  border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--bg-2);
  padding: 26px 28px; border-radius: var(--radius);
}
.agentless h2 { margin-bottom: 12px; font-size: clamp(22px, 3.4vw, 28px); }
.agentless p { color: var(--muted); margin: 0; }
.agentless code { font-family: var(--mono); color: var(--text); }

.plan { display: flex; flex-direction: column; }
.plan .name { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--muted); }
.plan .price { font-size: 40px; font-weight: 800; margin: 6px 0 2px; color: var(--text); }
.plan .period { font-size: 14px; color: var(--muted); min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan li::before { content: "✓  "; color: var(--accent); font-weight: 700; }
.plan.pro { border-color: var(--accent); }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 620; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--mono);
  font-size: 22px; color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- legal / support ---------- */
.doc { padding: 64px 0 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.doc .date { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; }
.doc p, .doc li { color: #c9ccd3; }
body.rack .doc p, body.rack .doc li { color: #d6d2c9; }
.doc .tr-note { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc a { color: var(--accent); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 46px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot .copy { margin-right: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 520px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
