/* Console landing page (PANEL-WWW). Static, no JavaScript, no third-party requests. */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/manrope-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/manrope-latin.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: 500 700; font-display: swap;
  src: url(fonts/jetbrainsmono-cyrillic.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: 500 700; font-display: swap;
  src: url(fonts/jetbrainsmono-latin.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;
  --bg: #0c110f; --bg-alt: #0f1513; --surface: #131b17; --surface-2: #1c2622;
  --line: #1c2722; --line-2: #223029; --line-3: #2c3b34;
  --text: #e6eee9; --muted: #b9c8c0; --dim: #9aaba3;
  --accent: #6fdfae; --on-accent: #08160f; --accent-soft: #1d3a2c; --accent-text: #9ff0c9;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  font-variant-numeric: tabular-nums; }
a { color: #7fe3b8; }
a:hover { color: #b3f0d4; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
[id] { scroll-margin-top: 16px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 0 22px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 800; padding: 0 24px; }
.btn-primary:hover { color: var(--on-accent); background: #8be8bf; }
.btn-ghost { border: 1px solid var(--line-3); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: #3c6b55; }
.btn-sm { min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center;
  gap: 16px 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font: 700 13px var(--mono); }
.brand-name { font-weight: 800; font-size: 18px; }
.site-nav { display: flex; gap: 0 22px; flex-wrap: wrap; flex: 1 1 320px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 12px 0; min-height: 44px;
  display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--text); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid #2a4537; background: #12201a; color: var(--accent-text);
  font-size: 13px; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--dim); }

/* Hero demo: the mode switch is three radios, the chat shows the matching block (no JavaScript). */
.demo { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.modes { display: flex; gap: 4px; padding: 4px; margin: 0; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line-2); align-self: flex-start; flex-wrap: wrap; }
.modes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mode { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
.mode input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.mode:hover { color: var(--text); }
.mode:has(input:checked) { background: var(--accent); color: var(--on-accent); }
.mode:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.chat { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #1d2823; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #2a3a5c; color: #cfdcff; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; }
.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who b { font-weight: 700; font-size: 15px; }
.who span, .time { font-size: 12px; color: var(--dim); }
.time { margin-left: auto; }
.chat-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.msg { max-width: 82%; padding: 10px 14px; font-size: 15px; line-height: 1.5; }
.msg-in { align-self: flex-start; background: var(--surface-2); border-radius: 14px 14px 14px 4px; }
.msg-out { background: var(--accent-soft); border-radius: 14px 14px 4px 14px; }
.msg-draft { background: #12201a; border: 1px dashed #3c6b55; border-radius: 14px 14px 4px 14px; }
.out { align-self: flex-end; max-width: 86%; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.out .msg { max-width: 100%; }
.meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; color: var(--dim); }
.tag { padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tag-warn { background: #2b2410; color: #f0d58a; }
.fake-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fake-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line-3); font-size: 13px; font-weight: 600; }
.fake-btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; padding: 0 14px; }
.note { align-self: stretch; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.5; }
.note svg { flex: none; }
.note-alert { background: #1a1a10; border: 1px solid #4a4520; color: #f0e3a8; }
.note-off { margin-top: auto; padding: 12px 14px; background: #161d1a; border: 1px solid var(--line-2);
  font-size: 14px; color: var(--muted); }
.caption { font-size: 13px; color: var(--dim); }

.show-off, .show-drafts, .show-auto { display: none; }
.demo:has(input[value="off"]:checked) .show-off,
.demo:has(input[value="drafts"]:checked) .show-drafts,
.demo:has(input[value="auto"]:checked) .show-auto { display: contents; }
/* Browsers without :has() show the default «Черновики» view. */
@supports not selector(:has(*)) { .show-drafts { display: contents; } }

/* Pain strip */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.pains { padding-top: 48px; padding-bottom: 48px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.pains p { font-size: 18px; line-height: 1.5; font-weight: 600; }
.pains span { color: var(--dim); }

/* Sections */
.section { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.section-how { padding-top: 96px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.eyebrow { font: 700 13px var(--mono); color: var(--accent); letter-spacing: 0.04em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.steps li { border-top: 2px solid #2a3a33; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step-no { font: 700 28px var(--mono); color: var(--accent); }
h3 { font-size: 18px; font-weight: 700; }
.steps p, .card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; }
.card-wide { grid-column: 1 / -1; padding: clamp(22px, 4vw, 36px); flex-direction: row; flex-wrap: wrap;
  gap: 28px 48px; align-items: center; }
.card-wide-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.card-wide h3 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.card-wide-copy p { font-size: 16px; }
.price-list { flex: 1 1 400px; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-alt); }
.price-list-title { padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--dim); }
.price-row { padding: 14px 16px; border-top: 1px solid #1d2823; display: flex; flex-direction: column; gap: 6px; }
.price-row-top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.price-row-name { flex: 1 1 160px; font-size: 15px; font-weight: 600; }
.price-row-sum { font-size: 15px; font-weight: 800; }
.price-row-src { font-size: 13px; line-height: 1.5; color: var(--dim); }

/* Control */
.section-control { padding-top: 72px; padding-bottom: 72px; }
.control { background: #10201a; border: 1px solid #24443a; border-radius: 24px; padding: clamp(28px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 40px; }
.control-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.control-copy p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.checks { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.checks li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #24443a; font-size: 15px; line-height: 1.55; }
.checks li:last-child { border-bottom: 0; }
.checks svg { flex: none; margin-top: 2px; }
.checks strong { font-weight: 700; }
.checks span span { color: var(--muted); }

/* Price */
.section-price { padding-top: 40px; padding-bottom: 72px; }
.plans { display: flex; flex-wrap: wrap; gap: 16px; }
.plan { flex: 1 1 380px; min-width: 0; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.plan-main { background: var(--surface); border: 2px solid var(--accent); }
.plan-pilot { background: var(--bg-alt); border: 1px solid var(--line-2); gap: 18px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan h3 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.pill-soft { padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amount b { font-size: 52px; font-weight: 800; letter-spacing: -0.02em; }
.amount span { font-size: 16px; color: var(--dim); }
.plan-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.plan-list li { display: flex; gap: 10px; }
.plan-list .mark { color: var(--accent); font-weight: 800; flex: none; }
.plan-pilot .plan-list { color: var(--muted); }
.plan-pilot .plan-list .mark { font: 700 14px var(--mono); }
.plan-pilot > p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.plan-fine { font-size: 13px; line-height: 1.5; color: var(--dim); }
.plan-pilot .btn { margin-top: auto; border-color: #3c6b55; font-weight: 700; }

/* FAQ */
.section-faq { max-width: 860px; padding-top: 40px; padding-bottom: 96px; gap: 32px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-3);
  display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; font-weight: 700; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { padding: 0 44px 20px 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Final CTA */
.final { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 20px; }
.final h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -0.02em; max-width: 760px; }
.final p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.final .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; font-size: 13px; color: var(--dim); }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; }
.footer-brand span { font: 700 12px var(--mono); color: var(--accent); }

@media (max-width: 560px) {
  .site-nav { display: none; }
  .site-header .wrap { flex-wrap: nowrap; gap: 12px; }
  .site-header .btn { margin-left: auto; padding: 0 14px; white-space: nowrap; }
  .hero { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .section-how { padding-top: 64px; }
  .section { padding-top: 56px; }
  .plan { padding: 24px; }
  .amount b { font-size: 44px; }
  .faq p { padding-right: 0; }
}
