/* NeuroSwitcher — русский сайт (neuroswitcherapp.ru).
   Палитра выведена из иконки: фиолетовая «A» и оранжевые стрелки. */

:root {
  --paper: #fbf9f6;
  --card: #ffffff;
  --ink: #1b1530;
  --ink-2: #3b3452;
  --muted: #6b6480;
  --line: #e9e4ef;
  --violet: #6a3fd8;
  --violet-deep: #4b25b0;
  --violet-soft: #f0eaff;
  --orange: #f26a2e;
  --orange-soft: #fff1e8;
  --night: #15102a;
  --night-2: #211a3d;
  --night-line: rgba(255, 255, 255, 0.1);
  --ok: #1f9d6b;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(43, 22, 110, 0.35);
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h2 { text-wrap: balance; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.12em 0.5em;
  border: 1px solid #d9d2e6;
  border-bottom-width: 3px;
  border-radius: 7px;
  background: #fff;
  font: 500 0.82em/1.4 var(--mono);
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; scroll-margin-top: 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.78rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--orange); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* ── Кнопки ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 30px -10px rgba(242, 106, 46, 0.8); }
.btn-primary:hover { background: #e35a1f; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ── Шапка ─────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 249, 246, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.05rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--violet); }
.header .btn { min-height: 42px; padding: 0 20px; font-size: 0.93rem; }
@media (max-width: 940px) {
  .nav { display: none; }
  .header .btn { margin-left: auto; }
}

/* ── Баннер беты ───────────────────────────────────── */
.beta-bar {
  background: var(--night); color: #e8e3ff;
  font-size: 0.9rem; text-align: center; padding: 10px 16px;
}
.beta-bar b { color: #fff; }
.beta-bar a { color: #ffb48f; }

/* ── Первый экран ──────────────────────────────────── */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(106, 63, 216, 0.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(242, 106, 46, 0.12), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.3vw, 3.5rem); font-weight: 700; text-wrap: balance; }
.hero h1 .typo { color: var(--violet); white-space: nowrap; }
.hero .lead { margin-top: 22px; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 0.9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.release-tag { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Демонстрация: окно мессенджера, где раскладка исправляется сама. */
.demo {
  position: relative;
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.demo-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.demo-top i { width: 11px; height: 11px; border-radius: 50%; background: #e7e2ee; }
.demo-top span { margin-left: 10px; font-size: 0.85rem; color: var(--muted); }
.demo-body { padding: 22px 22px 18px; display: grid; gap: 12px; min-height: 280px; align-content: end; }
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 1rem; line-height: 1.45; }
.bubble.in { background: #f3f0f8; border-bottom-left-radius: 5px; }
.bubble.out { justify-self: end; background: var(--violet); color: #fff; border-bottom-right-radius: 5px; }
.demo-input {
  display: flex; align-items: center; gap: 12px;
  margin: 0 18px 18px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper);
  font: 500 1.05rem/1.4 var(--body); min-height: 56px;
}
.demo-text { flex: 1; min-width: 0; word-break: break-word; }
.demo-text .fixed { background: linear-gradient(transparent 62%, rgba(242, 106, 46, 0.3) 0); transition: background 0.6s; }
.demo-text .wrong { color: var(--ink-2); }
.caret { display: inline-block; width: 2px; height: 1.2em; margin-left: 1px; vertical-align: -0.2em; background: var(--violet); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-badge {
  position: absolute; right: 18px; top: 58px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--night); color: #fff; font: 600 0.8rem/1 var(--mono);
  opacity: 0; transform: translateY(-6px); transition: opacity 0.25s, transform 0.25s;
}
.demo-badge.show { opacity: 1; transform: none; }
.demo-badge b { color: #ffb48f; font-weight: 600; }
.demo-tabs { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #f3f0f8; }
.demo-tabs button {
  border: 0; background: none; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  font: 600 0.8rem/1 var(--body); color: var(--muted);
}
.demo-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(27, 21, 48, 0.12); }
.demo-input { position: relative; }
@media (max-width: 480px) { .demo-top span { display: none; } }
/* Панель подсказок — как в программе: тёмный список у курсора. */
.suggest {
  position: absolute; left: 12px; bottom: calc(100% + 8px); z-index: 2;
  min-width: 230px; padding: 6px;
  border-radius: 12px; background: #2a2440; color: #fff;
  box-shadow: 0 18px 40px -12px rgba(21, 16, 42, 0.6);
  font: 500 0.95rem/1.3 var(--body);
  animation: pop 0.16s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
.suggest ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.suggest li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; transition: background 0.12s; }
.suggest li::before { content: attr(data-n); width: 1.1em; color: #8f86ad; font: 500 0.78rem/1 var(--mono); }
.suggest li b { font-weight: 600; color: #ffb48f; }
.suggest li.on { background: #4a4166; }
.suggest-foot { display: flex; gap: 12px; padding: 8px 10px 4px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #a39bc0; font-size: 0.74rem; white-space: nowrap; }
.suggest-foot span { display: inline-flex; align-items: center; gap: 3px; transition: color 0.12s; }
.suggest-foot kbd { min-width: 1.5em; padding: 0 0.3em; border-color: #5a5078; background: #3a3354; color: #fff; font-size: 0.72rem; }
.suggest-foot span.press { color: #fff; }
.suggest-foot span.press kbd { background: var(--orange); border-color: var(--orange); }
.demo-keys { display: flex; gap: 6px; justify-content: center; padding: 0 18px 20px; color: var(--muted); font-size: 0.82rem; align-items: center; flex-wrap: wrap; }

/* ── Полоса фактов ─────────────────────────────────── */
.facts { border-block: 1px solid var(--line); background: var(--card); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 22px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact strong { font: 600 1.25rem/1.2 var(--display); letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 820px) {
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ── Возможности (бенто) ───────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; grid-column: span 2;
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.tile.wide { grid-column: span 3; }
.tile.hero-tile { grid-column: span 4; background: var(--violet); color: #fff; border-color: transparent; }
.tile.hero-tile p { color: rgba(255, 255, 255, 0.82); }
.tile p { color: var(--muted); font-size: 0.98rem; }
.tile .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.92rem; color: var(--violet); }
.tile.hero-tile .more { color: #ffd0b8; }
.tile-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.tile-icon svg { width: 24px; height: 24px; }
.tile.hero-tile .tile-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tag {
  position: absolute; top: 24px; right: 24px;
  padding: 5px 10px; border-radius: 999px;
  font: 600 0.72rem/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase;
}
.tag.free { background: #e4f6ee; color: #11734d; }
.tag.pro { background: var(--orange-soft); color: #c24812; }
.hero-tile .tag.free { background: rgba(255, 255, 255, 0.18); color: #fff; }
.tile-demo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; font: 500 0.95rem/1.4 var(--mono); }
.tile-demo s { opacity: 0.6; }
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide, .tile.hero-tile { grid-column: span 1; }
  .tile.hero-tile { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile.hero-tile { grid-column: span 1; }
}

/* ── С Punto Switcher ──────────────────────────────── */
.switch-from { background: var(--orange-soft); }
.switch-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: var(--card); border-radius: var(--radius); border: 1px solid #f6d9c8; overflow: hidden; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 22px; border-top: 1px solid #f8e6da; }
.checklist li:first-child { border-top: 0; }
.checklist li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.checklist li.new::before { background-color: var(--violet); }
.checklist b { display: block; font-weight: 600; }
.checklist span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .switch-grid { grid-template-columns: 1fr; } }

/* ── Как это работает ──────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 600 1rem/1 var(--display);
}
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ── Тёмная полоса: приватность ────────────────────── */
.dark { background: var(--night); color: #f1eefb; }
.dark .lead { color: #b9b1d4; }
.dark .eyebrow { color: #c4b2ff; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.net-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; }
.net-list li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--night-line); align-items: baseline; }
.net-list li:first-child { border-top: 0; }
.net-list b { font-weight: 600; }
.net-list small { display: block; color: #a39bc0; font-size: 0.88rem; margin-top: 2px; }
.net-list em { font: 500 0.78rem/1 var(--mono); font-style: normal; color: #ffb48f; white-space: nowrap; }
.net-list li.never { background: rgba(106, 63, 216, 0.22); }
.net-list li.never em { color: #8ff0c4; }
.privacy-points { display: grid; gap: 22px; margin-top: 32px; }
.privacy-points div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.privacy-points svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--night-2); color: #c4b2ff; }
.privacy-points p { color: #b9b1d4; font-size: 0.97rem; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ── Цены ──────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 32px 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.plan.featured { background: var(--ink); color: #fff; border-color: transparent; box-shadow: var(--shadow); position: relative; }
.plan.featured::before {
  content: "Рекомендуем"; position: absolute; top: -13px; left: 28px;
  padding: 6px 12px; border-radius: 999px; background: var(--orange); color: #fff;
  font: 600 0.74rem/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase;
}
.plan-name { font: 600 1.1rem/1 var(--display); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price strong { font: 700 2.6rem/1 var(--display); letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: 0.95rem; }
.plan.featured .price span, .plan.featured .plan-note { color: #b9b1d4; }
.plan-note { color: var(--muted); font-size: 0.95rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.97rem; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a3fd8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan.featured li::before { background-color: rgba(255, 255, 255, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb48f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.plan .btn { margin-top: auto; width: 100%; }
.packs { display: grid; gap: 8px; }
.pack { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); font-size: 0.95rem; }
.pack b { font-family: var(--display); font-weight: 600; white-space: nowrap; }
.pack span { color: var(--muted); text-align: right; }
.buy-form { display: grid; gap: 10px; margin-top: auto; }
.buy-form input:not([type=radio]) {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #fff;
  font: 400 1rem/1 var(--body);
}
.buy-form input:not([type=radio])::placeholder { color: #a39bc0; }
.buy-status { min-height: 1.2em; font-size: 0.88rem; color: #ffb48f; }
.pack { cursor: pointer; align-items: center; }
.buy-form .pack { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; }
.buy-form .pack input { grid-row: span 2; accent-color: var(--violet); width: 18px; height: 18px; margin: 0; }
.buy-form .pack span { text-align: left; font-size: 0.85rem; line-height: 1.35; }
.pack:has(input:checked) { border-color: var(--violet); background: var(--violet-soft); }
.pack.is-off { opacity: 0.45; cursor: not-allowed; }
.buy-form.light input:not([type=radio]) { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.buy-form.light input::placeholder { color: var(--muted); }
.buy-status[data-kind="ok"] { color: var(--ok); }
.buy-form.light .buy-status { color: var(--violet-deep); }
.buy-form.light .buy-status[data-kind="error"], .buy-status[data-kind="error"] { color: #d6331f; }
.plan.featured .buy-status[data-kind="error"] { color: #ffb48f; }
.pay-note { margin-top: 22px; color: var(--muted); font-size: 0.9rem; text-align: center; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ── Горячие клавиши ───────────────────────────────── */
.keys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.key-row { display: grid; gap: 8px; padding: 22px; background: var(--card); align-content: start; }
.key-row div { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.key-row p { color: var(--muted); font-size: 0.93rem; }
.key-row b { font-weight: 600; }
@media (max-width: 860px) { .keys-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .keys-grid { grid-template-columns: 1fr; } }

/* ── FAQ ───────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 20px 22px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--body); color: var(--violet); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 22px 20px; color: var(--muted); display: grid; gap: 10px; }
details a { color: var(--violet); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ── Отзыв ─────────────────────────────────────────── */
.feedback-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--violet-soft); }
.feedback-form { display: grid; gap: 12px; }
.stars { display: flex; gap: 6px; }
.stars button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: #cbbdf2; }
.stars button svg { width: 100%; height: 100%; }
.stars button.on { color: var(--orange); }
.feedback-form input, .feedback-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #ddd2f7; background: #fff;
  font: 400 1rem/1.5 var(--body); color: var(--ink);
}
.feedback-form textarea { min-height: 120px; resize: vertical; }
.feedback-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.3em; font-size: 0.92rem; color: var(--violet-deep); }
@media (max-width: 860px) { .feedback-card { grid-template-columns: 1fr; } .feedback-form .row { grid-template-columns: 1fr; } }

/* ── Призыв в конце ────────────────────────────────── */
.final { text-align: center; }
.final-card {
  position: relative; overflow: hidden;
  padding: clamp(44px, 7vw, 88px) 24px; border-radius: 32px;
  background: var(--night); color: #fff;
}
.final-card::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(106, 63, 216, 0.55), transparent 75%);
}
.final-card > * { position: relative; }
.final-card img { width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 22px; }
.final-card h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.final-card p { margin: 18px auto 32px; color: #b9b1d4; max-width: 52ch; }

/* ── Подвал ────────────────────────────────────────── */
.footer { padding: 56px 0 40px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { margin: 0 0 12px; font: 600 0.82rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--violet); }
.footer .brand { color: var(--ink); margin-bottom: 14px; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ════════ Внутренние страницы ════════ */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.page-hero::before {
  content: ""; position: absolute; right: -180px; top: -260px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(106, 63, 216, 0.14), transparent 70%); pointer-events: none;
}
.page-hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero .wrap > *, .hero .wrap > * { min-width: 0; }
.page-hero.solo .wrap { grid-template-columns: 1fr; max-width: 860px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; text-wrap: balance; margin-top: 16px; }
.page-hero .lead { margin-top: 20px; }
.crumbs { display: flex; width: fit-content; gap: 8px; color: var(--muted); font-size: 0.9rem; text-decoration: none; margin-bottom: 18px; }
.crumbs:hover { color: var(--violet); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-2); }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: 1fr; } }

.mock { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.mock-body { padding: 22px; display: grid; gap: 12px; }
.mock-line { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 0.98rem; }
.mock-line.accent { background: var(--violet-soft); border-color: #ddd2f7; }
.mock-line.dark { background: var(--night); color: #f1eefb; border-color: transparent; }
.mock-line small { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 4px; }
.mock-line.dark small { color: #a39bc0; }
.mock-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.rec { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; color: #d6331f; }
.rec::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: blink 1.4s steps(1) infinite; }
.meter { display: grid; gap: 6px; }
.meter div { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--orange)); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.card p, .card li { color: var(--muted); font-size: 0.97rem; }
.card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.card.accent { background: var(--violet); color: #fff; border-color: transparent; }
.card.accent p { color: rgba(255, 255, 255, 0.84); }
.card.accent .tile-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
a.card { text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
a.card .more { margin-top: 4px; font-weight: 600; font-size: 0.92rem; color: var(--violet); }
.numbered { counter-reset: n; }
.numbered .card::before { counter-increment: n; content: counter(n); width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 0.95rem/1 var(--display); }
@media (max-width: 980px) { .cards, .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }

.band { background: var(--card); border-block: 1px solid var(--line); }
.band-orange { background: var(--orange-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.note { padding: 18px 22px; border-radius: 14px; background: var(--violet-soft); color: var(--ink-2); font-size: 0.97rem; }
.note.warm { background: var(--orange-soft); }
.note + .note, .cards + .note, .table-wrap + .note { margin-top: 16px; }
.dark .note { background: var(--night-2); color: #d8d1f0; }
.dark .card { background: var(--night-2); border-color: var(--night-line); }
.dark .card p, .dark .card li { color: #b9b1d4; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.96rem; }
.table th, .table td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--paper); font-weight: 600; border-top: 0; }
.table td { color: var(--ink-2); }
.table td:first-child { font-weight: 600; color: var(--ink); }

/* Онлайн-инструменты (конвертер, транслит) */
.tool { padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; }
.tool-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-mode { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; cursor: pointer; font: 600 0.85rem/1 var(--mono); color: var(--ink-2); }
.cv-mode.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tool-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-panes label { display: grid; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.tool textarea { width: 100%; min-height: 170px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font: 400 1.05rem/1.5 var(--body); color: var(--ink); resize: vertical; }
.tool textarea[readonly] { background: var(--violet-soft); border-color: #ddd2f7; }
.tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }
.tool-row .detect { color: var(--violet-deep); font-size: 0.9rem; min-height: 1.2em; }
.tool .btn { min-height: 44px; padding: 0 20px; font-size: 0.93rem; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.cv-chip { border: 1px dashed #cfc3ee; background: none; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 500 0.88rem/1 var(--mono); color: var(--violet-deep); }
.cv-chip:hover { background: var(--violet-soft); }
@media (max-width: 720px) { .tool-panes { grid-template-columns: 1fr; } }
.cheat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cheat div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.cheat b { font: 600 1.3rem/1 var(--display); }
.cheat span { font: 500 0.95rem/1 var(--mono); color: var(--muted); }
@media (max-width: 720px) { .cheat { grid-template-columns: repeat(2, 1fr); } }

/* Код и команды (страница про раскладки) */
pre { margin: 12px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--night); color: #ece8fa; font: 500 0.84rem/1.6 var(--mono); overflow-x: auto; white-space: pre; }
code { font-family: var(--mono); font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--violet-soft); }
pre code { padding: 0; background: none; font-size: inherit; }
.steps-list { display: grid; gap: 12px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps-list > li { position: relative; padding: 20px 22px 20px 64px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.steps-list > li::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--violet); color: #fff; font: 600 0.9rem/1 var(--display); }
.steps-list b { display: block; margin-bottom: 4px; }
.steps-list p { color: var(--muted); }

/* Документы */
.doc { max-width: 820px; padding-bottom: clamp(56px, 8vw, 100px); }
.doc h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; margin-top: 4px; }
.doc .doc-meta { color: var(--muted); margin-top: 14px; font-size: 0.95rem; }
.doc h2 { font-size: 1.25rem; margin: 44px 0 14px; scroll-margin-top: 90px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 1.3em; display: grid; gap: 8px; margin: 12px 0 0; }
.doc a { color: var(--violet); }
.doc .toc { margin-top: 28px; padding: 20px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.doc .toc ol { margin: 8px 0 0; columns: 2; display: block; }
.doc .toc li { margin-bottom: 6px; }
.doc .toc a { text-decoration: none; }
.doc .draft { margin-top: 24px; padding: 14px 18px; border-radius: 12px; background: var(--orange-soft); color: #9a3a10; font-size: 0.92rem; }
.doc .reqs { margin-top: 12px; padding: 18px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 4px; }
@media (max-width: 620px) { .doc .toc ol { columns: 1; } }

/* Знаки платёжных систем */
.paylogos { display: inline-flex; gap: 6px; align-items: center; }
.paylogos svg { width: 56px; height: 21px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.legal { align-items: center; }
