/* ============================================================
   Portal Visuals — industrial / block terminal
   Плоские поверхности, жёсткие рамки, фирменный фиолетовый,
   моноширинные метки, блочные тени. Без градиентов и стекла.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #09090e;
  --bg-2: #0e0e14;
  --panel: #111118;
  --panel-2: #16161f;

  --line: #26262f;
  --line-strong: #3a3a48;

  --text: #e9e9f2;
  --dim: #a5a5b8;
  --mute: #70708a;

  --accent: #7c5cff;
  --accent-2: #a78bfa;
  --accent-deep: #5335e0;
  --accent-soft: rgba(124, 92, 255, 0.1);

  --cyan: #79d4c0;
  --ok: #8ee08f;
  --warn: #f2c14e;
  --danger: #ff7b63;

  --r: 2px;
  --r-sm: 2px;
  --r-xs: 2px;

  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
  --glow: none;

  --font: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, "Consolas", monospace;

  --header-h: 62px;
  --maxw: 1180px;
}

/* ---------- reset ---------- */
*,
*::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-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0;
}

::selection { background: var(--accent); color: #ffffff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--mute); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 92px 0; position: relative; }
.section--tight { padding: 56px 0; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}

.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 78%);
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 78%);
}

/* ---------- typography ---------- */
.h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-transform: uppercase;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 750;
  text-transform: uppercase;
  text-wrap: balance;
}

.h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { color: var(--dim); font-size: clamp(1rem, 1.5vw, 1.12rem); }
.muted { color: var(--mute); }
.small { font-size: 0.84rem; }
.mono { font-family: var(--mono); }

.grad-text {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background: none;
}

.section-head { max-width: 720px; }
.section-head .badge { margin-bottom: 4px; }
.section-head .h2 { margin: 16px 0 14px; }
.section-head p { color: var(--dim); max-width: 62ch; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.badge--accent {
  border-color: rgba(124, 92, 255, 0.45);
  background: var(--accent-soft);
  color: var(--accent);
}

.badge__dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--panel-2);
  border-color: var(--text);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: none !important;
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}

.btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.6);
}

.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { background: var(--panel); border-color: var(--line-strong); }

.btn--sm { height: 32px; padding: 0 12px; font-size: 0.64rem; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 0.82rem; }
.btn--xl { height: 56px; padding: 0 30px; font-size: 0.84rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn.is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.header.is-stuck { border-bottom-color: var(--line-strong); }

.header__in {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo img { width: 28px; height: 28px; }
.logo span { display: inline-flex; gap: 5px; }
.logo em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }

.nav a {
  padding: 7px 10px;
  border-bottom: 2px solid transparent;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.header__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
}
.burger svg { width: 18px; height: 18px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 89;
  padding: 10px 18px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}
.mobile-nav.is-open { display: block; }

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .btn { width: 100%; margin-top: 14px; border-bottom: 0; color: #ffffff; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 0; position: relative; }
.hero__badge { margin-bottom: 26px; }
.hero .h1 { max-width: 980px; }

.hero__sub {
  max-width: 560px;
  margin: 26px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--dim);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 26px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 14px; height: 14px; opacity: 0.7; color: var(--accent); }

/* ---------- hero mock ---------- */
.stage {
  position: relative;
  margin-top: 54px;
  padding: 0 12px;
}

.stage__glow { display: none; }

.mock {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.mock__dots { display: flex; gap: 5px; }
.mock__dots i { width: 8px; height: 8px; border: 1px solid var(--line-strong); background: transparent; }
.mock__dots i:first-child { background: var(--accent); border-color: var(--accent); }

.mock__tabs { display: flex; align-items: center; gap: 4px; }

.mock__tab {
  padding: 4px 9px;
  border: 1px solid transparent;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.mock__tab.is-active {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

.mock__sep { width: 1px; height: 16px; background: var(--line); }
.mock__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.mock__avatar {
  width: 22px;
  height: 22px;
  background: var(--accent);
  position: relative;
}
.mock__avatar::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--bg);
}

.mock__body { display: grid; grid-template-columns: 1fr 252px; }

.mock__main { padding: 16px; }

.mock__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.module {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.module span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module.is-on {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.32);
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}
.module .toggle { margin-left: auto; flex: none; }

.toggle {
  width: 30px;
  height: 16px;
  border-radius: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  position: relative;
  flex: none;
  transition: background 0.15s, border-color 0.15s;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: var(--mute);
  transition: transform 0.15s, background 0.15s;
}
.toggle.is-on { background: var(--accent); border-color: var(--accent); }
.toggle.is-on::after { transform: translateX(14px); background: #ffffff; }

.mock__side {
  padding: 16px;
  border-left: 1px solid var(--line);
  background: var(--bg-2);
}

.mock__side-title {
  margin-bottom: 8px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
}
.chip-row b { margin-left: auto; color: var(--accent); font-weight: 600; }
.chip-row .dot { width: 6px; height: 6px; flex: none; background: var(--ok); }

.hud-float {
  position: absolute;
  z-index: 2;
  width: 200px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

.hud-float__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hud-float__head svg { width: 13px; height: 13px; color: var(--accent); }

.hud-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.66rem;
}
.hud-row b { margin-left: auto; color: var(--accent); font-weight: 600; }
.hud-row .bar { width: 40px; height: 4px; background: var(--line); overflow: hidden; }
.hud-row .bar i { display: block; height: 100%; background: var(--accent); }

.hud-float--left { left: max(8px, calc(50% - 790px)); top: 96px; }
.hud-float--right { right: max(8px, calc(50% - 790px)); top: 210px; }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 12px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: card; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 24px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.15s, background 0.15s;
}

.grid--3 > .card::before {
  counter-increment: card;
  content: "0" counter(card);
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.card:hover { border-color: var(--line-strong); background: var(--panel-2); }

.card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--accent);
}
.card__icon svg { width: 19px; height: 19px; }

.card h3 { margin-bottom: 8px; padding-right: 26px; }
.card p { color: var(--dim); font-size: 0.9rem; }
.card--wide { grid-column: span 2; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  overflow: hidden;
}

.stat {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  background: transparent;
}
.stat:last-child { border-right: 0; }

.stat__v {
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat__l {
  margin-top: 6px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
}

.plan--featured {
  border-color: var(--accent);
  background: var(--panel-2);
  box-shadow: 4px 4px 0 rgba(124, 92, 255, 0.16);
}

.plan__tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.plan__name {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.plan__price b {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan__price span { color: var(--dim); font-family: var(--mono); font-size: 0.9rem; }
.plan__note { margin-bottom: 20px; color: var(--mute); font-size: 0.78rem; }

.plan ul { display: grid; gap: 10px; margin: 0 0 24px; }
.plan li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--dim);
  font-size: 0.88rem;
}
.plan li svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--accent); }
.plan > .btn { margin-top: auto; }

/* ---------- faq ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 8px; }

.faq details {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.15s, background 0.15s;
}
.faq details[open] { border-color: var(--line-strong); background: var(--panel-2); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.18s;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq__body {
  padding: 0 18px 18px;
  color: var(--dim);
  font-size: 0.9rem;
}
.faq__body ul { display: grid; gap: 8px; margin-top: 10px; }
.faq__body li { position: relative; padding-left: 16px; }
.faq__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

/* ---------- cta panel ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 58px 24px;
  text-align: center;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.cta-panel .badge { margin-bottom: 18px; }
.cta-panel .h2 { margin-bottom: 14px; }
.cta-panel .lead { max-width: 520px; margin: 0 auto 28px; }
.cta-panel .hero__cta { justify-content: center; margin-top: 0; }

/* ---------- download page ---------- */
.dl {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.dl-card {
  padding: 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
}
.dl-card--accent {
  border-color: var(--line-strong);
  background: var(--panel-2);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.dl-os {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dl-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}
.dl-meta > div { padding: 12px 14px; background: var(--bg-2); }
.dl-meta dt {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dl-meta dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.req-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.req-table th, .req-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.req-table th {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.req-table tr:last-child td { border-bottom: 0; }
.req-table td:first-child { color: var(--dim); white-space: nowrap; }
.req-table td:last-child { color: var(--text); }

/* ---------- auth ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 56px 24px 72px;
}

.auth {
  width: 100%;
  max-width: 430px;
  padding: 28px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

.auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}

.auth__tab {
  height: 38px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s, color 0.15s;
}
.auth__tab:hover { color: var(--text); }
.auth__tab.is-active { background: var(--accent); color: #ffffff; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.86rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.field input::placeholder { color: var(--mute); }
.field__hint { color: var(--mute); font-size: 0.74rem; }
.field__err { display: none; color: var(--danger); font-size: 0.76rem; }
.field.has-err input { border-color: var(--danger); }
.field.has-err .field__err { display: block; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  color: var(--dim);
  font-size: 0.8rem;
}
.check input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.auth__foot { margin-top: 18px; text-align: center; color: var(--mute); font-size: 0.82rem; }
.auth__foot a { color: var(--accent); }

.auth__status {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  background: var(--bg-2);
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.5;
}
.auth__status.is-ok { border-left-color: var(--ok); color: #b8f0b9; }
.auth__status.is-err { border-left-color: var(--danger); color: #ffb9ad; }
.auth__status[hidden] { display: none; }

.auth__card {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}
.auth__row:last-child { border-bottom: 0; }
.auth__row span { color: var(--mute); font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.auth__row b { color: var(--text); font-weight: 600; text-align: right; word-break: break-word; }

.notice {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(242, 193, 78, 0.3);
  border-left-width: 3px;
  border-left-color: var(--warn);
  background: rgba(242, 193, 78, 0.05);
  color: #e6d3a4;
  font-size: 0.8rem;
  line-height: 1.5;
}
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--warn); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }

.docs__nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.docs__nav a {
  padding: 8px 12px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.docs__nav a:hover { color: var(--accent); border-left-color: var(--accent); }

.docs__body { max-width: 760px; }
.docs__body h2 {
  margin: 46px 0 14px;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  scroll-margin-top: 96px;
}
.docs__body h2:first-child { margin-top: 0; }
.docs__body h3 { margin: 26px 0 8px; font-size: 1.02rem; }
.docs__body p, .docs__body li { color: var(--dim); font-size: 0.92rem; }
.docs__body p { margin: 0 0 12px; }
.docs__body ul { display: grid; gap: 8px; margin: 0 0 14px; }
.docs__body li { position: relative; padding-left: 18px; }
.docs__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}
.docs__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.docs__body strong { color: var(--text); font-weight: 600; }

/* ---------- footer ---------- */
.footer {
  margin-top: 40px;
  padding: 52px 0 26px;
  border-top: 1px solid var(--line-strong);
  background: var(--bg-2);
}

.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer__brand .logo { margin-bottom: 10px; }
.footer__brand p { max-width: 270px; color: var(--mute); font-size: 0.86rem; }

.footer__col h4 {
  margin-bottom: 12px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.footer__col a { display: block; padding: 5px 0; color: var(--dim); font-size: 0.86rem; }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}
.footer__bottom .spacer { margin-left: auto; }
.footer__legal { display: grid; gap: 3px; }

.socials { display: flex; gap: 6px; }
.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.socials a:hover { color: #ffffff; border-color: var(--accent); background: var(--accent); }
.socials svg { width: 15px; height: 15px; }

/* ---------- cookie ---------- */
.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: none;
  align-items: center;
  gap: 18px;
  max-width: 740px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  color: var(--dim);
  font-size: 0.82rem;
}
.cookie.is-open { display: flex; }
.cookie p { margin: 0; }
.cookie a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 8px; margin-left: auto; flex: none; }
.cookie .btn { height: 36px; padding: 0 14px; font-size: 0.66rem; }

/* ---------- toast / modal ---------- */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 40px));
}

.toast {
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  border-left-color: var(--accent);
  background: var(--panel);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 0.84rem;
  animation: toast-in 0.2s ease;
}
.toast--ok { border-left-color: var(--ok); }
.toast--err { border-left-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(4, 4, 8, 0.82);
}
.modal.is-open { display: grid; }

.modal__box {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.55);
}
.modal__box h3 { margin-bottom: 8px; }
.modal__box p { margin-bottom: 10px; color: var(--dim); font-size: 0.88rem; }
.modal__box pre {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  overflow-x: auto;
}
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- reveal ---------- */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
html.js .reveal:not(.is-in) { opacity: 0; transform: translateY(12px); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1400px) {
  .hud-float { display: none; }
}

@media (max-width: 1080px) {
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .docs { grid-template-columns: 1fr; }
  .docs__nav { position: static; display: flex; flex-wrap: wrap; border-left: 0; }
  .docs__nav a { border: 1px solid var(--line); margin-left: 0; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header__right .btn--ghost { display: none; }
  .burger { display: inline-flex; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .dl { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .section { padding: 68px 0; }
  .hero { padding-top: 56px; }
}

@media (max-width: 640px) {
  .container, .header__in { padding: 0 18px; }
  .header__in { gap: 12px; }
  .header__right .btn--primary { display: none; }
  .logo { font-size: 0.8rem; }
  .h1 { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .hero__cta .btn { width: 100%; }
  .hero__meta { gap: 6px 16px; font-size: 0.62rem; }
  .mock__tabs .mock__tab:nth-child(3) { display: none; }
  .mock__right .mock__tab { display: none; }
  .mock__grid { grid-template-columns: 1fr; }
  .dl-meta { grid-template-columns: 1fr; }
  .req-table th:nth-child(2), .req-table td:nth-child(2) { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie__actions { margin-left: 0; }
  .cookie__actions .btn { flex: 1; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .auth { padding: 22px; }
  .cta-panel { padding: 42px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  html.js .reveal:not(.is-in) { opacity: 1; transform: none; }
}
