/* Moonshift — общий стиль всех страниц: строгий тёмный, глубокий зелёный, лайм только на главном.
   Лендинг дополняет его файлом landing.css, конструктор и админка — app.css.
   Шрифты лежат на нашем сервере (без Google Fonts). */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-text-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-text-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: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-text-rub.woff2) format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geologica-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geologica-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: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geologica-rub.woff2) format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400.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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-rub-400.woff2) format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-cyrillic-500.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-rub-500.woff2) format("woff2"); unicode-range: U+20BD; }

/* Цвета, шрифты, скругления — только здесь */
:root {
  --bg: #0a0c0b;
  --bg-alt: #0d100e;
  --surface: #101412;
  --surface-2: #141a17;
  --field: #0d1110;
  --text: #eef0ec;
  --soft: #a9b1aa;
  --muted: #8f9790;
  --faint: #7a827b;
  --line: #242a26;
  --line-2: #1a1f1c;
  --line-strong: #3a433d;
  --rule: rgba(255, 255, 255, .12);
  --lime: #c5ff3d;
  --lime-hover: #d4ff6b;
  --green: #0f2a1f;
  --green-2: #17402f;
  --green-3: #0b2018;
  --green-text: #dcebe1;
  --green-muted: #8db09b;
  --brand: var(--lime);
  --brand-hover: var(--lime-hover);
  --brand-2: var(--green-2);
  --brand-soft: rgba(197, 255, 61, .1);
  --brand-ink: var(--lime);
  --on-brand: #0a0c0b;
  --grad: var(--lime);
  --cta-bg: var(--green);
  --cta-text: var(--text);
  --cta-muted: var(--green-muted);
  --header-bg: rgba(10, 12, 11, .94);
  --msg-bot: #18201c;
  --code-bg: #141a17;
  --toggle-off: #333c36;
  --dark: #1c2621;
  --focus: rgba(197, 255, 61, .5);
  --ok: #7ee08a;
  --warn: #f2c14e;
  --bad: #ff7b6e;
  --ok-soft: #12261a; --ok-ink: #a6f0b5;
  --warn-soft: #2a2210; --warn-ink: #f7d27a; --warn-line: #5c4a1c;
  --bad-soft: #2a1513; --bad-ink: #ffb4aa; --bad-line: #6b2c26;
  --pill-bg: #1c221f;
  --p-orange: #2c1f10; --p-orange-ink: #ffc58a;
  --p-blue: #10222c; --p-blue-ink: #8fd3f7;
  --p-green: #12261a; --p-green-ink: #a6f0b5;
  --p-violet: #211a2c; --p-violet-ink: #cdb8ff;
  --p-red: #2a1513; --p-red-ink: #ffb4aa;
  --radius: 4px;
  --radius-btn: 2px;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, .9);
  --shadow-brand: none;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Geologica", "Golos Text", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --head-weight: 500;
  --head-spacing: -.045em;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lime); }
img, svg { max-width: 100%; }
::selection { background: var(--lime); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-family: var(--font-head); font-weight: var(--head-weight); }
h1 { font-size: clamp(36px, 6vw, 72px); letter-spacing: var(--head-spacing); line-height: 1.05; }
h2 { font-size: clamp(28px, 4.2vw, 48px); letter-spacing: -.04em; line-height: 1.06; }
h3 { font-size: 21px; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1312px, 100% - 64px); margin: 0 auto; }
@media (max-width: 760px) { .container { width: calc(100% - 32px); } }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.center { text-align: center; }
.grad { color: var(--lime); }
.lbl { font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.note { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--faint); }

/* шапка */
.header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--rule); }
.header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: var(--text); min-width: 0; text-decoration: none; }
.logo .site-name, .logo > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { flex: none; width: 10px; height: 10px; background: var(--lime); }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary { color: var(--on-brand); }
.nav a.btn-ghost { color: var(--text); }
@media (max-width: 820px) { .nav .hide-m { display: none; } }

/* кнопки: прямые углы, лайм — только у главной */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 20px; border-radius: var(--radius-btn); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.25; cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-decoration: none !important; white-space: nowrap; color: var(--text); background: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); color: var(--on-brand); }
.btn-primary:hover { background: var(--lime-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: var(--text); }
.btn-danger { background: transparent; color: var(--bad-ink); border-color: var(--bad-line); }
.btn-danger:hover { border-color: var(--bad); }
.btn-sm { padding: 8px 12px; font-size: 14px; font-weight: 500; gap: 8px; }
.btn-lg { padding: 20px 22px; font-size: 17px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn[disabled]:active { transform: none; }
/* стрелка → нарисована, а не символом: в шрифтах её нет */
.arr { flex: none; display: inline-block; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h12.5M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h12.5M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.arr.down { transform: rotate(90deg); }

/* сетки и блоки */
section { padding: 80px 0; }
.section-head { max-width: 760px; margin: 0 0 44px; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid > * { min-width: 0; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { display: none; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* макет телефона и чат (конструктор, примеры) */
.phone { background: var(--field); border: 1px solid var(--line-strong); border-radius: 6px; padding: 14px; max-width: 400px; margin: 0 auto; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 2px; background: var(--green-2); display: grid; place-items: center; color: var(--green-text); font-family: var(--font-head); font-weight: 600; flex: none; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 2px; min-height: 300px; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 6px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: var(--msg-bot); color: var(--text); border-bottom-left-radius: 1px; align-self: flex-start; }
.msg.user { background: var(--lime); color: var(--on-brand); border-bottom-right-radius: 1px; align-self: flex-end; }
.msg.system { align-self: center; background: var(--warn-soft); color: var(--warn-ink); font-size: 13px; border: 1px solid var(--warn-line); max-width: 100%; }
.kb { display: grid; gap: 6px; align-self: stretch; }
.kb-row { display: flex; gap: 6px; }
.kb button { flex: 1; padding: 9px 10px; border-radius: 2px; border: 1px solid var(--line-strong); background: transparent; color: var(--lime); font: inherit; font-size: 14px; cursor: pointer; }
.kb button:hover { border-color: var(--lime); }

/* тарифы (конструктор) */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.popular { background: var(--green); border-color: var(--green-2); color: var(--green-text); }
.price-card .tag { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
.price { font-family: var(--font-head); font-size: 40px; font-weight: 500; letter-spacing: -.05em; margin: 8px 0 2px; }
.price small { font-family: var(--font); font-size: 15px; letter-spacing: 0; color: var(--muted); }
.features { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.features li { padding: 7px 0 7px 26px; position: relative; }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); }
.features.no li::before { content: "—"; color: var(--muted); }
.oneoff { margin-top: 20px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* формы */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 500; font-size: 14px; color: var(--soft); display: block; margin-bottom: 8px; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], input[type=email], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-btn); border: 1px solid var(--line-strong); background: var(--field); font: inherit; font-size: 16px; color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5l4-4' fill='none' stroke='%238f9790' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; }
select option, select optgroup { background: var(--surface); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--lime); }
textarea { resize: vertical; min-height: 104px; }
input[type=checkbox], input[type=radio] { accent-color: var(--lime); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.45; color: var(--soft); }
.check input { margin-top: 2px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 2px; font-size: 15px; border-left: 2px solid currentColor; }
.alert.ok { background: var(--ok-soft); color: var(--ok-ink); }
.alert.err { background: var(--bad-soft); color: var(--bad-ink); }
.alert.info { background: var(--brand-soft); color: var(--text); border-left-color: var(--lime); }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* вопросы-ответы (общий вид, лендинг уточняет) */
details.faq { border-top: 1px solid var(--rule); padding: 22px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--rule); }
details.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font-family: var(--font-head); font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; margin-top: 6px; background:
  linear-gradient(var(--text), var(--text)) center / 16px 2px no-repeat, linear-gradient(var(--text), var(--text)) center / 2px 16px no-repeat; }
details.faq[open] summary::after { background: linear-gradient(var(--lime), var(--lime)) center / 16px 2px no-repeat; }
details.faq p { margin: 14px 0 0; color: var(--soft); font-size: 17px; line-height: 1.6; max-width: 780px; }

/* подвал */
.footer { border-top: 1px solid var(--rule); padding: 36px 0 44px; color: var(--muted); font-size: 14.5px; }
.footer .container { display: flex; gap: 20px 32px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.footer a { color: var(--soft); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 12px 28px; flex-wrap: wrap; }

/* зелёный блок-призыв */
.cta-band { background: var(--cta-bg); color: var(--green-text); padding: 48px; }
.cta-band h2 { color: var(--text); }
.cta-band p { color: var(--green-text); }
.cta-band .btn.btn-ghost { border-color: rgba(220, 235, 225, .45); color: var(--text); }
.cta-band .btn.btn-ghost:hover { border-color: var(--text); }

/* таблицы и вкладки (админка, конструктор) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: none; border: none; padding: 12px 14px; font: inherit; font-weight: 500; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-color: var(--lime); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 2px; font-size: 12px; font-weight: 600; background: var(--pill-bg); color: var(--soft); white-space: nowrap; }
.pill.new { background: var(--p-orange); color: var(--p-orange-ink); }
.pill.work { background: var(--p-blue); color: var(--p-blue-ink); }
.pill.paid, .pill.on { background: var(--p-green); color: var(--p-green-ink); }
.pill.done { background: var(--p-violet); color: var(--p-violet-ink); }
.pill.cancel, .pill.off { background: var(--p-red); color: var(--p-red-ink); }
/* цифры — без карточек, линейкой сверху */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; } }
.stat { border-top: 1px solid var(--line-strong); padding: 14px 0 0; color: var(--muted); font-size: 14px; }
.stat b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 34px; letter-spacing: -.05em; line-height: 1.05; color: var(--text); margin-bottom: 4px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* конструктор */
.builder { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; padding: 32px 0 80px; }
@media (max-width: 1000px) { .builder { grid-template-columns: 1fr; } .sticky { position: static; } }
.builder > * { min-width: 0; }
.sticky { position: sticky; top: 88px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel h3 { display: flex; align-items: center; gap: 10px; }
.item-row { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface-2); }
.item-head { display: grid; grid-template-columns: 1fr 160px auto; gap: 8px; }
@media (max-width: 620px) { .item-head { grid-template-columns: 1fr; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 13px; border-radius: 2px; border: 1px solid var(--line-strong); background: transparent; color: var(--soft); cursor: pointer; font: inherit; font-size: 14px; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active { border-color: var(--lime); color: var(--lime); background: var(--brand-soft); }
.chat-box { height: 460px; overflow-y: auto; }
.chat-input { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.chat-input input { flex: 1; }
.code { font-family: var(--mono); background: var(--code-bg); border: 1px solid var(--line); padding: 1px 6px; border-radius: 2px; font-size: 13.5px; user-select: all; }
.steps-mini { counter-reset: s; list-style: none; padding: 0; margin: 0 0 14px; }
.steps-mini li { counter-increment: s; padding: 5px 0 5px 34px; position: relative; font-size: 15px; }
.steps-mini li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 7px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; opacity: .85; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--lime); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }

/* документы: оферта, политика, согласие, 404 */
.legal { max-width: 820px; padding: 56px 0 96px; }
.legal h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: .4em; }
.legal h2 { font-size: 26px; letter-spacing: -.03em; margin-top: 1.8em; }
.legal h3 { font-size: 19px; margin-top: 1.3em; }
.legal p, .legal li { color: var(--soft); overflow-wrap: break-word; }
.legal b, .legal strong { color: var(--text); font-weight: 600; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--muted); }
.legal a { color: var(--text); }
.legal .toc { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0; margin: 24px 0; }
.legal .toc ol { margin: 8px 0 0; }
.legal .box { background: var(--green); color: var(--green-text); padding: 6px 24px 16px; margin: 20px 0; }
.legal .box p, .legal .box li { color: var(--green-text); }
.legal .box a { color: var(--text); }
.legal .muted, .legal .small { color: var(--muted); }
.page-404 { padding: 88px 0 120px; }
.page-404 .lbl { display: block; margin-bottom: 20px; }
.page-404 p { font-size: 18px; max-width: 600px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.page-404 .big { display: block; font-family: var(--font-head); font-weight: 500; font-size: clamp(96px, 18vw, 200px); line-height: .9; letter-spacing: -.06em; color: var(--lime); margin-bottom: 24px; }

/* ---------- меню и нижняя полоса кнопок на телефоне ---------- */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 2px; border: 1px solid var(--rule); background: transparent; cursor: pointer; padding: 0; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--text); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.m-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); padding: 4px 16px 20px; display: grid; max-height: calc(100vh - 68px); overflow-y: auto; }
.m-menu[hidden] { display: none; }
.m-menu a:not(.btn) { color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: 22px; letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.m-menu a:not(.btn):hover { color: var(--lime); }
.m-menu .btn { margin-top: 18px; justify-content: space-between; padding: 18px; }
.m-cta { display: none; }
@media (max-width: 820px) { .menu-btn { display: inline-flex; } }
@media (max-width: 760px) {
  .m-cta { display: flex; gap: 8px; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .25s ease; }
  .m-cta.show { transform: none; }
  .m-cta .btn { padding: 14px 16px; white-space: nowrap; }
  .m-cta .btn-primary { flex: 1; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
