/* Тёмная пульт-сцена: чёрный холст, светлая карточка как единственная яркая фигура,
   фиолетовый — свечение вокруг продукта, оранжевый и зелёный — только сигналы. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/geist-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/geist-latin-ext-400-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: "Geist"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/geist-latin-400-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: "Geist"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/geist-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/geist-latin-ext-500-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: "Geist"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/geist-latin-500-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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/geist-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/geist-mono-latin-ext-400-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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/geist-mono-latin-400-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; }

:root {
  color-scheme: dark;

  /* поверхности */
  --canvas: #08090b;
  --ink: #0d0e12;
  --panel: #111218;
  --steel: #16171f;
  --edge: #1f1e2a;
  --edge-2: #2d2b36;

  /* текст */
  --text: #eeeeee;
  --text-2: #b2b8cd;
  --text-3: #8f94a6;
  --bone: #eeeeee;
  --chalk: #fafafa;
  --on-bone: #101010;
  --on-bone-2: #4d4947;

  /* сигналы */
  --violet: #7064f2;
  --orange: #ee6018;
  --green: #a0ca92;

  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-btn: 6px;
  --r-card: 12px;
  --r-panel: 20px;
  --wrap: 1200px;
  --gutter: 24px;
  --section: 120px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: rgba(112, 100, 242, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; line-height: 1.2; letter-spacing: -0.02em; text-transform: uppercase; }
.dim { color: var(--text-3); }
.link { color: var(--text); border-bottom: 1px solid var(--edge-2); transition: border-color .15s var(--ease); }
.link:hover { border-color: var(--text); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--chalk); color: var(--on-bone); padding: 8px 12px; border-radius: var(--r-btn); }
.skip:focus { left: 8px; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 14px; height: 14px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px;
  border-radius: var(--r-btn); border: 1px solid transparent;
  font: 500 14px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn--sm { height: 36px; padding: 0 14px; }
.btn--light { background: rgba(255, 255, 255, 0.92); color: var(--panel); border-color: rgba(255, 255, 255, 0.92); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--edge-2); }
.btn--ghost:hover { border-color: var(--text-3); }
.btn--dark { background: var(--on-bone); color: var(--bone); border-color: var(--on-bone); }
.btn--dark:hover { background: #24211f; border-color: #24211f; }

/* ---------- навигация ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(8, 9, 11, 0.88); border-bottom: 1px solid var(--edge); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 22px; height: 22px; color: var(--violet); }
.logo-word { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .15s var(--ease); }
.nav-links a:hover { color: var(--text); }

/* ---------- первый экран ---------- */
.hero { position: relative; padding-top: 96px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 9999px;
  background: var(--ink); border: 1px solid var(--edge);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.pill:hover { border-color: var(--edge-2); color: var(--text); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; box-shadow: 0 0 0 3px rgba(238, 96, 24, 0.16); animation: pulse 2.4s var(--ease) infinite; }
.pulse--static { animation: none; box-shadow: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(238, 96, 24, 0.16); } 50% { box-shadow: 0 0 0 5px rgba(238, 96, 24, 0.04); } }

.display {
  margin-top: 32px; max-width: 980px;
  font-size: clamp(42px, 7.2vw, 76px); font-weight: 400; line-height: 1.0; letter-spacing: -0.045em;
  text-wrap: balance;
}
.display .dim { color: var(--text-3); }
.lead { margin-top: 24px; max-width: 620px; font-size: 19px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero-note { margin-top: 24px; color: var(--text-3); }

/* ---------- сцена с продуктом ---------- */
.stage { position: relative; margin-top: 80px; }
.stage-glow {
  position: absolute; left: 50%; top: -300px; width: 110%; height: 760px; transform: translateX(-50%);
  background:
    radial-gradient(ellipse 38% 42% at 50% 52%, rgba(112, 100, 242, 0.30), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 56%, rgba(192, 132, 252, 0.08), transparent 72%);
  pointer-events: none;
}
.frame {
  position: relative;
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  border: 1px solid var(--edge); border-bottom: 0;
  background: linear-gradient(180deg, #0f1016 0%, #0b0c10 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 -1px 0 0 rgba(145, 130, 248, 0.35) inset;
  overflow: hidden;
  animation: frame-in .7s var(--ease) both .1s;
}
.frame::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(145, 130, 248, 0.9), rgba(192, 132, 252, 0.9), transparent);
}
@keyframes frame-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.frame-bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--edge); }
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--edge-2); }
.frame-title { color: var(--text-3); }
.frame-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.frame-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 380px; }

.chat { padding: 20px; border-right: 1px solid var(--edge); display: flex; flex-direction: column; gap: 14px; text-align: left; }
.chat-head { color: var(--text-3); padding-bottom: 6px; }
.msg { background: var(--steel); border: 1px solid var(--edge); border-radius: 12px 12px 12px 4px; padding: 14px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.msg b { color: var(--text); font-weight: 500; }
.msg-btns { display: grid; gap: 6px; margin-top: 12px; }
.msg-btns--row { grid-template-columns: 1fr 1fr; }
.msg-btn { display: block; text-align: center; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--edge-2); font-size: 13px; color: var(--text); background: rgba(255, 255, 255, 0.02); }
.msg-btn.is-active { border-color: var(--violet); background: rgba(112, 100, 242, 0.12); }
.msg-code { display: block; margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: var(--ink); border: 1px solid var(--edge); font: 12px/1.3 var(--mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.board { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--edge); }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-right: 1px solid var(--edge); min-width: 0; }
.tile:last-child { border-right: 0; }
.label { font-family: var(--mono); font-size: 12px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; color: #b8b3b0; }
.label--dim { color: var(--text-3); }
.label--green { color: var(--green); }
.tile-value { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(20px, 2.1vw, 30px); line-height: 1; letter-spacing: -0.035em; white-space: nowrap; }
.tile-value small { font-size: 0.55em; color: var(--text-3); letter-spacing: -0.01em; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--green { background: var(--green); box-shadow: 0 0 0 3px rgba(160, 202, 146, 0.16); }

.board-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); flex: 1; }
.panel { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel + .panel { border-left: 1px solid var(--edge); }
.panel-head { display: flex; justify-content: space-between; gap: 12px; }
.devices li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--edge); font-size: 14px; color: var(--text-2); }
.devices li:last-child { border-bottom: 0; }
.devices li.is-free span:first-child { color: var(--text-3); }
.devices .mono { font-size: 11px; white-space: nowrap; }
.spark { width: 100%; height: 100%; min-height: 110px; flex: 1; }
.spark-line { fill: none; stroke: var(--green); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark-area { fill: rgba(160, 202, 146, 0.08); }
.spark-dot { fill: var(--orange); }

/* ---------- полоса платформ ---------- */
.strip { border-top: 1px solid var(--edge); padding: 72px 0; }
.strip-caption { text-align: center; color: var(--text-3); }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 56px; margin-top: 32px; }
.platforms li { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: var(--text-3); }

/* ---------- секции ---------- */
.section { padding: var(--section) 0 0; }
.section-head { max-width: 640px; }
.section-head--center { margin: 0 auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; color: var(--text-3); }
.h2 { margin-top: 20px; font-size: clamp(32px, 4.4vw, 44px); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.sub { margin-top: 16px; font-size: 17px; color: var(--text-2); text-wrap: pretty; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.feature { border: 1px solid var(--edge); border-radius: var(--r-card); padding: 24px; transition: border-color .15s var(--ease); }
.feature:hover { border-color: var(--edge-2); }
.feature-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); }
.feature h3 { margin-top: 40px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.feature p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text-3); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--edge); counter-reset: none; }
.step { position: relative; padding: 32px 32px 0 0; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--text-3); }
.step:first-child::before { background: var(--violet); border-color: var(--violet); }
.step-n { color: var(--text-3); }
.step h3 { margin-top: 16px; font-size: 22px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.2; }
.step p { margin-top: 10px; font-size: 15px; color: var(--text-3); }

/* ---------- тарифы ---------- */
.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 56px; align-items: stretch; }
.tariff { display: flex; flex-direction: column; border: 1px solid var(--edge); border-radius: var(--r-card); padding: 24px; background: var(--ink); }
.tariff-head { display: flex; justify-content: space-between; align-items: center; height: 26px; }
.tariff-head .label { color: var(--text-3); }
.tariff-title { margin-top: 24px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.price { margin-top: 12px; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.price-note { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.tariff-list { margin: 28px 0 32px; display: grid; gap: 12px; font-size: 14px; color: var(--text-2); }
.tariff-list li { display: flex; gap: 10px; align-items: baseline; }
.tariff-list li::before { content: ""; width: 10px; height: 1px; background: var(--text-3); flex: none; transform: translateY(-4px); }
.tariff .btn { margin-top: auto; width: 100%; }
.badge { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: -0.02em; padding: 5px 8px; border-radius: 9999px; border: 1px solid currentColor; }

.tariff--featured {
  background: var(--bone); color: var(--on-bone); border-color: var(--bone);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tariff--featured .tariff-head .label, .tariff--featured .price-note { color: var(--on-bone-2); }
.tariff--featured .tariff-list { color: #2c2a28; }
.tariff--featured .tariff-list li::before { background: var(--on-bone-2); }
.tariff--featured .badge { color: var(--orange); }

.pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 9999px; border: 1px solid var(--edge); background: var(--ink); font-size: 13px; color: var(--text-2); }
.trial-note { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-3); }

/* ---------- вопросы ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.faq { border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 17px; letter-spacing: -0.015em; transition: color .15s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 16px; color: var(--text-3); transition: transform .15s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 40px 24px 0; font-size: 15px; color: var(--text-3); }

/* ---------- финальный призыв ---------- */
.section--cta { padding-bottom: var(--section); }
.cta-card {
  position: relative; max-width: 560px; margin: 0 auto; padding: 40px;
  border-radius: var(--r-card); background: var(--bone); color: var(--on-bone);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.eyebrow--dark { color: var(--on-bone); }
.cta-title { margin-top: 20px; font-size: clamp(28px, 4vw, 36px); font-weight: 400; line-height: 1.1; letter-spacing: -0.035em; }
.cta-text { margin-top: 12px; font-size: 16px; color: var(--on-bone-2); }
.cta-card .btn { margin-top: 32px; }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--edge); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin-top: 16px; font-size: 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-h { color: var(--text); margin-bottom: 6px; }
.footer-grid a:not(.logo) { font-size: 14px; color: var(--text-3); transition: color .15s var(--ease); overflow-wrap: anywhere; }
.footer-grid a:not(.logo):hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--edge); color: var(--text-3); }

/* ---------- кнопка поддержки ---------- */
.launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 52px; height: 52px; border-radius: 9999px;
  display: grid; place-items: center;
  background: var(--violet); color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  transition: background-color .15s var(--ease);
}
.launcher:hover { background: #7f74f5; }
.launcher svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- простые страницы (оферта, оплата) ---------- */
.page { padding: 80px 0 120px; }
.doc { max-width: 760px; }
.doc h1 { margin-top: 20px; font-size: clamp(32px, 5vw, 44px); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; }
.doc .doc-meta { margin-top: 16px; color: var(--text-3); }
.doc h2 { margin-top: 48px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.doc p, .doc li { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.doc ul, .doc ol { padding-left: 20px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc strong { color: var(--text); font-weight: 500; }
.doc .table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--edge); border-radius: var(--r-card); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--edge); white-space: nowrap; }
.doc th { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--text-3); }
.doc tr:last-child td { border-bottom: 0; }

.center-page { min-height: calc(100vh - 65px); display: grid; place-items: center; padding: 64px 0; position: relative; overflow: hidden; }
.center-page .stage-glow { top: 50%; height: 760px; transform: translate(-50%, -50%); }
.result-card { position: relative; max-width: 480px; margin: 0 auto; padding: 40px; border-radius: var(--r-card); background: var(--bone); color: var(--on-bone); text-align: left; }
.result-card .cta-title { margin-top: 20px; }
.result-card .cta-text + .cta-text { margin-top: 8px; }
.result-card .btn { margin-top: 32px; }

/* ---------- шапка: несколько кнопок ---------- */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions form { margin: 0; }
.btn--xs { height: 28px; padding: 0 10px; font-size: 12px; }
.btn--wide { width: 100%; }
.btn--quiet { color: var(--text-3); }
.btn--quiet:hover { color: var(--text); }
.btn--ghost-dark { background: transparent; color: var(--on-bone); border-color: rgba(16, 16, 16, 0.2); }
.btn--ghost-dark:hover { border-color: var(--on-bone); }
button.btn { cursor: pointer; }

/* ---------- уведомления ---------- */
.notice { margin: 0 0 24px; padding: 12px 16px; border-radius: var(--r-btn); border: 1px solid var(--edge); background: var(--ink); font-size: 14px; color: var(--text-2); }
.notice--ok { border-color: rgba(160, 202, 146, 0.35); color: var(--green); }
.notice--warn { border-color: rgba(238, 96, 24, 0.35); color: #f4a27a; }

/* ---------- кабинет ---------- */
.cab { padding: 48px 0 120px; }
.cab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.cab-title { margin-top: 16px; font-size: clamp(32px, 5vw, 48px); font-weight: 400; line-height: 1.05; letter-spacing: -0.035em; }
.cab-head .mono { margin-top: 12px; }
.wallet {
  min-width: 260px; padding: 20px 24px; border-radius: var(--r-card);
  background: var(--bone); color: var(--on-bone);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 16px;
}
.wallet .label { grid-column: 1 / -1; color: var(--on-bone-2); }
.wallet-amount { font-size: 36px; line-height: 1; letter-spacing: -0.04em; }

.cab-frame { border-radius: var(--r-panel); border-bottom: 1px solid var(--edge); animation: none; }
.cab-frame .tile { gap: 10px; }
.tile-sub { color: var(--text-3); font-size: 11px; }
.dot--orange { background: var(--orange); box-shadow: 0 0 0 3px rgba(238, 96, 24, 0.16); }
.dot--gray { background: var(--text-3); }
.meter { width: 100%; height: 4px; margin-top: 2px; }
.meter-track, .share-track { fill: var(--edge-2); }
.meter-fill { fill: var(--green); }
.share-fill { fill: var(--violet); }

.sub-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--edge); }
.sub-link form { margin: 0; }
.sub-input {
  flex: 1 1 280px; min-width: 0; height: 36px; padding: 0 12px;
  border-radius: var(--r-btn); border: 1px solid var(--edge); background: var(--ink);
  color: var(--text-2); font-size: 12px; text-transform: none; letter-spacing: 0;
}
.sub-input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }

.cab-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; margin-top: 16px; }
.cab-panel { border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--ink); }
.panel-note { font-size: 13px; }
.devices--cab li { align-items: center; }
.devices--cab form { margin: 0; flex: none; }
.dev { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dev-name { color: var(--text); overflow-wrap: anywhere; }
.dev .mono { font-size: 11px; text-transform: none; white-space: normal; line-height: 1.4; }

.chart { width: 100%; height: 120px; display: block; }
.bar { fill: var(--green); opacity: 0.85; }
.bar--today { fill: var(--orange); opacity: 1; }
.bar--zero { fill: var(--edge-2); }
.chart-axis { display: flex; justify-content: space-between; color: var(--text-3); margin-top: -6px; }
.chart-empty { font-size: 14px; padding: 32px 0; text-align: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--edge); }
.facts div { min-width: 0; }
.facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: -0.02em; color: var(--text-3); }
.facts dd { margin: 6px 0 0; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.top-nodes { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--edge); }
.top-nodes li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 2fr) auto; grid-template-areas: "name bar total"; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); padding: 4px 0; }
.node-name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-nodes .share { grid-area: bar; }
.node-total { grid-area: total; }
.share { width: 100%; height: 4px; }
.cc { display: inline-block; padding: 2px 5px; margin-right: 2px; border-radius: 3px; border: 1px solid var(--edge-2); font-family: var(--mono); font-size: 10px; line-height: 1.2; letter-spacing: 0; color: var(--text-2); vertical-align: 2px; }

/* необратимое действие: второе нажатие */
.btn.is-armed { border-color: var(--orange); color: var(--orange); }
.confirm-note { flex-basis: 100%; max-width: 320px; margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--text-3); text-transform: none; }

.cab-empty { padding: 40px; border: 1px dashed var(--edge-2); border-radius: var(--r-panel); }
.cab-empty p { margin-top: 10px; max-width: 520px; }
.cta-row--left { justify-content: flex-start; margin-top: 24px; }
.cta-row--left form { margin: 0; }

.cab-section { margin-top: 64px; }
.cab-section-head { margin-bottom: 20px; }
.cab-section-head p { margin-top: 8px; font-size: 15px; }
.h3 { font-size: 28px; font-weight: 400; line-height: 1.15; letter-spacing: -0.03em; }

.cab-form { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.custom-options { display: flex; flex-wrap: wrap; gap: 24px; max-width: 100%; }
.custom-field { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.custom-field input { width: 180px; max-width: 100%; min-height: 44px; }
.cab-form + .cab-section-head { margin-top: 40px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; width: 100%; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: 12px; padding: 0; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 16px; border-radius: var(--r-card); border: 1px solid var(--edge); background: var(--ink);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice:hover .choice-body { border-color: var(--edge-2); }
.choice input:checked + .choice-body { border-color: var(--violet); background: rgba(112, 100, 242, 0.1); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--violet); outline-offset: 2px; }
.choice-title { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.choice-note { font-size: 13px; color: var(--text-3); }

.amount-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.chip--btn { cursor: pointer; font: inherit; font-size: 13px; transition: border-color .15s var(--ease), color .15s var(--ease); }
.chip--btn:hover { border-color: var(--edge-2); color: var(--text); }
.amount-field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.amount-field input, .field {
  height: 44px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--edge-2);
  background: var(--ink); color: var(--text); font: 400 16px/1 var(--font);
}
.amount-field input { width: 180px; padding-right: 36px; }
.amount-field input:focus, .field:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.amount-cur { position: absolute; right: 14px; bottom: 13px; color: var(--text-3); }

.cab .table-wrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--edge); border-radius: var(--r-card); }
.cab .table-wrap + .table-wrap { margin-top: 24px; }
.cab-none { padding: 20px; border: 1px dashed var(--edge-2); border-radius: var(--r-card); font-size: 15px; }
.cab table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cab caption { text-align: left; padding: 14px 16px 0; }
.cab th, .cab td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--edge); white-space: nowrap; color: var(--text-2); }
.cab th { font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; color: var(--text-3); }
.cab tr:last-child td { border-bottom: 0; }
.amount--plus { color: var(--green); }
.amount--minus { color: var(--text); }
.state { color: var(--text-3); }
.state--ok { color: var(--text-2); }

.gift-form { display: flex; flex-wrap: wrap; gap: 8px; }
.gift-form .field { width: 260px; text-transform: uppercase; letter-spacing: 0.04em; }
.cab-sessions { margin-top: 40px; }

/* ---------- вход, оплата ---------- */
.auth-card {
  position: relative; max-width: 460px; margin: 0 auto; padding: 36px;
  border-radius: var(--r-panel); border: 1px solid var(--edge); background: var(--panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}
.auth-card .cta-title { margin-top: 18px; }
.auth-text { margin: 12px 0 24px; font-size: 15px; color: var(--text-2); }
.auth-card .notice { margin-bottom: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.auth-field .field { width: 100%; min-width: 0; }
.auth-hint { margin-top: -8px; color: var(--text-2); font-size: 12px; }
.auth-terms { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.auth-terms input { margin-top: 4px; flex-shrink: 0; }
.auth-switch { margin-top: 20px; font-size: 14px; }
.auth-status { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--text-3); text-transform: none; font-size: 12px; }
.auth-status.is-stopped .pulse { animation: none; background: var(--text-3); box-shadow: none; }
.auth-alt { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--edge); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.pay-facts { margin: 20px 0 0; display: grid; gap: 10px; }
.pay-facts div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.pay-facts dt { color: var(--on-bone-2); }
.pay-facts dd { margin: 0; text-align: right; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(2) { border-right: 0; }
  .tile:nth-child(-n+2) { border-bottom: 1px solid var(--edge); }
}
@media (max-width: 900px) {
  :root { --section: 96px; }
  .nav-links { display: none; }
  .nav-inner > .btn, .nav-actions { margin-left: auto; }
  .frame-body { grid-template-columns: 1fr; }
  .chat { border-right: 0; border-bottom: 1px solid var(--edge); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .cab-grid { grid-template-columns: 1fr; }
  .cab-head { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 80px; }
  .hero { padding-top: 64px; }
  .lead { font-size: 17px; }
  .cta-row { flex-direction: column; align-self: stretch; }
  .cta-row .btn { width: 100%; }
  .stage { margin-top: 56px; }
  .frame-title { display: none; }
  .board-row { grid-template-columns: 1fr; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--edge); }
  .tile { padding: 16px; }
  .features { grid-template-columns: 1fr; }
  .feature h3 { margin-top: 28px; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--edge); margin-left: 4px; }
  .step { padding: 0 0 36px 24px; }
  .step::before { top: 2px; left: -4px; }
  .platforms { gap: 12px 28px; }
  .platforms li { font-size: 18px; }
  .cta-card, .result-card { padding: 28px 24px; }
  .faq details p { padding-right: 0; }
  .launcher { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .cab { padding-top: 32px; }
  .cab-empty, .auth-card { padding: 28px 20px; }
  .sub-link { padding: 16px; }
  .sub-link .btn, .sub-link form { flex: 1 1 auto; }
  .sub-link form .btn { width: 100%; }
  .amount-field input, .gift-form .field { width: 100%; }
  .amount-field, .gift-form .field { flex: 1 1 100%; }
  .nav-actions { gap: 6px; }
  .top-nodes li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name total" "bar bar"; gap: 6px 12px; }

  /* история: на телефоне строки таблицы — карточки */
  .cab .tbl, .cab .tbl tbody, .cab .tbl tr, .cab .tbl td { display: block; }
  .cab .tbl thead { display: none; }
  .cab .tbl caption { display: block; padding: 14px 16px 6px; }
  .cab .tbl tr { display: grid; align-items: baseline; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--edge); }
  .cab .tbl tr:last-child { border-bottom: 0; }
  .cab .tbl td { padding: 0; border: 0; white-space: normal; min-width: 0; }
  .tbl--pays tr { grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "what what sum" "num when status" "how how how"; }
  .tbl--ops tr { grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "what sum" "when left"; }
  .tbl .c-num { grid-area: num; color: var(--text-3); }
  .tbl .c-when { grid-area: when; font-size: 13px; color: var(--text-3); }
  .tbl .c-what { grid-area: what; color: var(--text); }
  .tbl .c-sum { grid-area: sum; text-align: right; color: var(--text); }
  .tbl .c-how { grid-area: how; font-size: 13px; color: var(--text-3); }
  .tbl .c-status { grid-area: status; text-align: right; font-size: 13px; }
  .tbl .c-left { grid-area: left; text-align: right; font-size: 13px; color: var(--text-3); }
  .tbl .c-left::before { content: "остаток "; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
