/* Консоль владельца заведения SaaS-платформы ZalPOS — те же компоненты
   (карточки/кнопки/поля), что и в веб-версии гостя (public/app/app.css), но
   своя, премиальная палитра платформы (см. :root ниже), без нижнего
   таббара и гостевых экранов: здесь только вход, создание заведения и
   личный кабинет. */
:root {
  /* Премиальная гамма самой платформы — тёмно-синяя, в одном семействе с
     публичным лендингом (см. .landing ниже), чтобы личный кабинет ощущался
     продолжением того же продукта, а не отдельным устаревшим экраном.
     Поверхности чуть светлее, чем на лендинге: здесь персонал реально
     работает весь день с плотными формами и списками карточек, а не
     разглядывает один экран пару минут. */
  --bg: #070B14;
  --surface: #101827;
  --surface-2: #17223A;
  --border: #26324A;
  --text: #F3F6FC;
  --muted: #8DA0C7;
  --primary: #2F6FED;
  --primary-2: #59A6FF;
  --danger: #FF5C6C;
  --warning: #E7B24E;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 32px 16px 40px; }
@media (min-width: 860px) {
  .wrap { max-width: 640px; }
  .feature-grid, .quick-actions { grid-template-columns: repeat(3, 1fr); }
  .palette-grid { grid-template-columns: repeat(4, 1fr); }
}
.brand {
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; font-size: 13px; margin-bottom: 4px;
}
h1 { font-size: 22px; font-weight: 700; margin: 4px 0 8px; }
h2 { font-size: 15px; font-weight: 600; margin: 22px 0 10px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
code {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; font-size: 0.92em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 12px 28px -18px rgba(0,0,0,.6);
}
.card.danger {
  border-color: var(--danger);
  background: rgba(229, 72, 77, .12);
}

button, .btn {
  font: inherit;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(47, 111, 237, .5);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
button:not(:disabled):hover, .btn:not(:disabled):hover { filter: brightness(1.1); }
button:disabled { opacity: .5; cursor: default; }
.btn-link {
  background: none; border: none; color: var(--primary);
  width: auto; padding: 4px 0; font-weight: 600;
}
.btn-link:hover { filter: brightness(1.25); }

input, select, textarea {
  font: inherit;
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 10px;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
}
label.field { display: block; margin-bottom: 12px; }
label.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

a { color: var(--primary); }
a:hover { filter: brightness(1.2); }

.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.row > button, .row > .btn { width: auto; flex: 0 0 auto; }
.row > input, .row > select { margin-bottom: 0; }
/* Класс использовался в разметке (console.js) без единого правила здесь —
   длинные email/названия в узком .grow-контейнере не обрезались "...", а
   переносились по словам/буквам вразнобой (на узком телефоне выглядело как
   наехавший друг на друга текст). */
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.spinner {
  width: 26px; height: 26px; margin: 60px auto;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: 24px;
  max-width: 480px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; z-index: 20;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px); transition: .22s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

.palette-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.palette-swatch {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-weight: 400;
}
.palette-swatch.selected { border-color: var(--primary); }
.palette-swatch-colors {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
}
.palette-swatch-colors span { flex: 1; }
.palette-swatch-name { font-size: 12.5px; font-weight: 600; color: var(--text); }

/* Навигация личного кабинета владельца — на телефоне гамбургер живёт в
   ЗАФИКСИРОВАННОЙ верхней панели (.dash-topbar), а не в потоке контента
   вкладки: раньше кнопка ☰ была обычным блочным элементом внутри
   dash-body и на телефоне уезжала туда, где HTML-строка с ней оказывалась
   после конкатенации (в конец, под всеми плитками «Быстрого доступа») —
   теперь она всегда на своём месте независимо от длины контента вкладки.
   На широком экране .dash-topbar скрыт, а drawer превращается в
   постоянную боковую панель — один и тот же HTML, разное поведение через
   media query ниже. */
.dash-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.dash-topbar-title { min-width: 0; flex: 1; }
.dash-topbar-tenant {
  font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-topbar-tab { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrap.has-tabbar { padding-top: 78px; }

.hamburger-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  width: 42px; height: 42px; padding: 0; border-radius: 12px; font-size: 19px;
  flex: none;
}
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 25;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 260px; max-width: 82vw;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 20px 14px; z-index: 30; overflow-y: auto;
  transform: translateX(-100%); transition: transform .22s ease;
  box-shadow: 20px 0 50px rgba(0,0,0,.35);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-brand { color: var(--primary); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-size: 13px; margin-bottom: 4px; padding: 0 8px; }
.nav-drawer-tenant {
  color: var(--muted); font-size: 12.5px; margin: 0 0 16px; padding: 0 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-drawer .field { padding: 0 8px; margin-bottom: 16px; }
.nav-item {
  display: flex; align-items: center; justify-content: flex-start; gap: 11px; width: 100%;
  background: none; border: none; color: var(--muted); text-align: left;
  font: inherit; font-size: 14px; font-weight: 600; padding: 9px 10px;
  border-radius: 10px; cursor: pointer; position: relative;
  /* justify-content не наследуется сам по себе, но у <button> браузер по
     умолчанию центрирует содержимое (внутренний UA-стиль, не связанный с
     этим autoprefix-правилом) — без явного flex-start короткие подписи
     держали иконку у центра плашки, а длинные ("Сотрудники платформы") —
     сильно левее: иконки в столбик не совпадали (баг-отчёт "в разнобой"). */
}
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item.active { color: var(--text); background: var(--surface-2); }
.nav-item .nav-icon {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  /* --icon-bg приходит инлайном на каждом значке (см. navIconHtml в
     console.js) — свой цвет у каждого пункта меню; .active ниже всё равно
     перекрывает его синим, т.к. у него выше specificity, а не потому что
     позже в файле. */
  background: var(--icon-bg, var(--surface-2));
  display: flex; align-items: center; justify-content: center;
}
.nav-item.active .nav-icon { background: var(--primary); }
.nav-item .nav-dot { position: absolute; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.nav-divider { height: 1px; background: var(--border); margin: 10px 4px; }

@media (min-width: 860px) {
  .dash-topbar, .nav-backdrop { display: none; }
  .nav-drawer { transform: none; box-shadow: none; }
  .wrap.has-tabbar { max-width: none; margin: 0; padding: 32px 44px 40px 300px; }
  .wrap.has-tabbar > *:not(.nav-drawer):not(.nav-backdrop) { max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* Панель платформы (screenSuperAdmin) переиспользует тот же .has-tabbar
   drawer/топ-бар, что и личный кабинет владельца, но контент там гораздо
   плотнее (списки заведений, аналитика, журнал) — id вместо класса, чтобы
   переопределить 760px из правила выше без лишних !important. На
   мобильном (где то правило вообще не действует) 1040px ничего не ломает —
   это лишь верхняя граница, реальная ширина всё равно ограничена экраном. */
#admin-root { max-width: 1040px; }

/* Вкладки панели платформы — переключение чистым CSS (показать/скрыть),
   без пересоздания DOM: все watchXxx()-подписки (аналитика, заведения,
   сборки и т.д.) остаются живыми и работающими вне зависимости от того,
   какая вкладка сейчас видна, лишние сеть-запросы на переключение вкладки
   не нужны. */
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

.dash-greeting { font-size: 19px; font-weight: 700; margin-bottom: 14px; }

/* Полоса прогресса загрузки логотипа (см. uploadBytesResumable в console.js) —
   на медленной мобильной сети файл в несколько МБ грузится не мгновенно,
   и без видимого процента непонятно, работает это или зависло. */
.upload-progress {
  height: 6px; border-radius: 999px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.upload-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transition: width .2s ease;
}

/* "Живые" цифры на "Обзоре" (открытые столы, сотрудники на смене, выручка
   и чеки за сегодня) — 2 колонки на телефоне, все 4 в ряд начиная с
   планшета, той же плотности, что и plans/quick-actions рядом. */
.live-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .live-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.live-stat { text-align: center; padding: 16px 8px; margin-bottom: 0; }
.live-stat-value { font-size: 21px; font-weight: 800; }
.live-stat-label { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.quick-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.quick-actions .btn { flex-direction: row; justify-content: flex-start; padding: 14px; }
/* Иконка вынесена в отдельный span (а не просто "эмодзи + пробел + текст"
   одной строкой) — иначе на некоторых экранах эмодзи-глиф и подпись кнопки
   визуально слипаются в одно пятно без ритма между ними. */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; flex: none;
}

/* Плитки статистики в панели платформы — 2 колонки на телефоне, до 6 в ряд
   на широком экране вместо вечных 2 колонок с кучей пустого места сбоку. */
.admin-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .admin-stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .admin-stat-grid { grid-template-columns: repeat(6, 1fr); } }

/* Лендинг: сетка карточек возможностей вместо плоского списка строк —
   ощущается как продукт, а не как техническая справка. */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.feature-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex: none;
}
.feature-title { font-weight: 700; font-size: 13.5px; }
.feature-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.plan-badge {
  display: inline-block; background: var(--primary); color: var(--text);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
}

.hero-badge {
  display: inline-block; color: var(--primary); border: 1px solid var(--primary);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* Лендинг: «Как это работает» — нумерованные шаги */
.step-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--text);
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none;
}

/* Лендинг: «Почему не тетрадь и Excel» — было/стало в две колонки на
   широком экране, одной колонкой на телефоне (тексты длиннее, чем в
   feature-grid, в две колонки на узком экране не помещаются красиво). */
.compare-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.compare-card.bad { border-color: var(--danger); }
.compare-card.good { border-color: var(--primary); }
@media (min-width: 640px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}

/* Лендинг: липкая кнопка снизу — включается через JS (см. console.js),
   как только форма email вверху уходит за пределы экрана. */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 480px; margin: 0 auto;
  z-index: 15; opacity: 0; transform: translateY(14px); pointer-events: none; transition: .25s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
}
.sticky-cta.show { opacity: 1; transform: none; pointer-events: auto; }

/* Калькулятор окупаемости на лендинге */
.calc-result { font-size: 28px; font-weight: 800; color: var(--primary); margin: 8px 0 2px; }

/* FAQ — простой аккордеон, без библиотек */
.faq-item { border-bottom: 1px solid var(--border); padding: 13px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; font-size: 14px; gap: 10px;
}
.faq-toggle { font-size: 20px; color: var(--muted); transition: transform .15s ease; flex: none; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.55; display: none; }
.faq-item.open .faq-answer { display: block; }

/* Чек-лист онбординга на "Обзоре" */
.checklist-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.checklist-item:last-child { border-bottom: none; }
.checklist-check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
  flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; color: transparent;
}
.checklist-item.done .checklist-check { background: var(--primary); border-color: var(--primary); color: var(--text); }
.checklist-label { flex: 1; font-size: 13.5px; }
.checklist-item.done .checklist-label { color: var(--muted); text-decoration: line-through; }

/* ================== ПУБЛИЧНЫЙ ЛЕНДИНГ — премиальная тёмно-синяя схема ==================
   Личный кабинет (класс .wrap.has-tabbar и все экраны выше) намеренно
   остаётся на бордово-чёрной гамме из :root — это рабочий инструмент
   персонала действующей кальянной, её не трогаем. У лендинга — своя
   аудитория (человек, который ещё не клиент и решает, платить ли за
   подписку) и своя задача (выглядеть как отдельный премиальный
   маркетинговый сайт, по образцу корпоративных сайтов POS-систем вроде
   r_keeper — а не как экран внутри личного кабинета).
   Хитрость в том, что почти весь остальной CSS в этом файле (.card,
   .btn-primary, инпуты, .hero-badge, .step-num, .plan-badge, .faq-*,
   .compare-card и т.д. — включая даже инлайн style="...var(--border)..."
   прямо в HTML из console.js) уже написан через переменные --bg/--surface/
   --primary/... . CSS-переменные наследуются по DOM, поэтому достаточно
   ПЕРЕОПРЕДЕЛИТЬ те же самые имена на классе .landing (он вешается на
   #screen в screenLanding(), см. console.js) — и ВСЁ перечисленное само
   перекрасится в новую гамму, без переписывания каждого места по
   отдельности и без риска что-то пропустить. */
.landing {
  --bg: #02060E;
  --surface: #0B1220;
  --surface-2: #101B30;
  --border: #1E2C48;
  --text: #F3F6FF;
  --muted: #8DA0C7;
  --primary: #0356C5;
  --danger: #FF5C6C;
  --warning: #E7B24E;
}
.wrap.landing { max-width: none; margin: 0; padding: 0; background: var(--bg); }
.landing .btn-primary {
  background: linear-gradient(135deg, #0356C5 0%, #3D8CFF 100%);
  box-shadow: 0 10px 26px rgba(3, 86, 197, .38);
}

/* ---- Секции на всю ширину, контент — по центру в разумной ширине ---- */
.landing-section { padding: 48px 20px; position: relative; }
.landing-section-alt { background: var(--surface); }
.landing-inner { max-width: 1180px; margin: 0 auto; }
@media (min-width: 860px) {
  .landing-section { padding: 88px 48px; }
}

/* ---- Верхняя навигация (её в личном кабинете нет вообще — там drawer) ---- */
.landing-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(2, 6, 14, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.landing-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 10px; }
.landing-logo { font-weight: 800; font-size: 15px; color: var(--text); white-space: nowrap; flex: none; }
.landing-nav-links { display: none; gap: 28px; }
.landing-nav-links button {
  background: none; border: none; color: var(--muted); font: inherit; font-weight: 600;
  font-size: 14px; cursor: pointer; padding: 0; width: auto;
}
.landing-nav-links button:hover { color: var(--text); }
.landing-nav-actions { display: flex; align-items: center; gap: 14px; flex: none; }
/* На узком экране "Войти" убираем — это дублирует ссылку внизу страницы
   ("Уже есть аккаунт? Войти по паролю"), а тут иначе не хватает места и
   кнопка "Попробовать бесплатно" обрезается по правому краю экрана. */
.landing-nav-login { display: none; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.landing-nav-actions .btn { width: auto; padding: 10px 14px; font-size: 13px; white-space: nowrap; }
/* На самых узких телефонах (iPhone SE 1-го поколения, 320px) логотип и
   полная надпись "Попробовать бесплатно" вместе шире экрана — оставляем
   короткое "Попробовать". */
.landing-nav-cta-short { display: none; }
@media (max-width: 359px) {
  .landing-nav-cta-full { display: none; }
  .landing-nav-cta-short { display: inline; }
}
@media (min-width: 480px) {
  .landing-nav-actions .btn { padding: 10px 18px; font-size: 13.5px; }
}
@media (min-width: 640px) {
  .landing-nav-login { display: inline; }
}
@media (min-width: 860px) {
  .landing-nav-inner { padding: 14px 20px; gap: 16px; }
  .landing-logo { font-size: 16px; }
  .landing-nav-links { display: flex; }
}

/* ---- Герой ---- */
.landing-hero-section { padding-top: 56px; overflow: hidden; }
.landing-hero-glow {
  position: absolute; inset: -10% -10% auto -10%; height: 560px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(3, 86, 197, .35), rgba(3, 86, 197, 0) 70%);
  pointer-events: none; z-index: 0;
}
.landing-hero-grid { position: relative; z-index: 1; }
.landing h1 { font-size: 28px; line-height: 1.16; letter-spacing: -.01em; margin: 10px 0 14px; }
.landing-hero-lede { font-size: 15.5px; line-height: 1.6; max-width: 640px; }
.landing-hero-card { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.landing-pill {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; color: var(--muted);
}
@media (min-width: 960px) {
  .landing-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
  .landing h1 { font-size: 44px; }
  .landing-hero-lede { font-size: 17px; }
}

.landing-h2 { font-size: 21px; font-weight: 800; margin: 0 0 20px; letter-spacing: -.01em; }
.landing-h2-sub { color: var(--muted); font-size: 14px; margin: -12px 0 20px; max-width: 600px; }
@media (min-width: 860px) {
  .landing-h2 { font-size: 28px; }
}

/* Тарифы: переключатель "Одно заведение"/"Сеть заведений" — не показываем
   вовсе, если тарифов сети ни одного нет (см. screenLanding в console.js),
   так что оформление рассчитано ровно на два пункта. */
.landing-pricing-toggle {
  display: flex; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; gap: 4px; max-width: 460px; margin-bottom: 24px;
}
.landing-pricing-toggle-btn {
  flex: 1; border: none; background: none; color: var(--muted);
  font: inherit; font-weight: 600; font-size: 13.5px; padding: 10px 14px;
  border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: color .15s ease, background-color .15s ease;
}
.landing-pricing-toggle-btn:hover { color: var(--text); }
.landing-pricing-toggle-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 111, 237, .6);
}
@media (min-width: 860px) {
  .landing-pricing-toggle-btn { font-size: 14.5px; padding: 11px 20px; }
}

/* Фичи/шаги — на широком экране просторнее, чем дефолтные 3 колонки
   (.feature-grid используется и в других местах консоли — переопределяем
   плотность только внутри .landing, не трогая базовое правило). */
@media (min-width: 860px) {
  .landing .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.landing .feature-card { transition: transform .18s ease, border-color .18s ease; }
.landing .feature-card:hover { transform: translateY(-3px); border-color: var(--primary); }

@media (min-width: 860px) {
  .landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
  .landing-steps .step-item { flex-direction: column; border-bottom: none; border-right: 1px solid var(--border); padding: 4px 24px; }
  .landing-steps .step-item:last-child { border-right: none; }
}

/* ---- Тарифы: карточки в ряд на широком экране вместо списка строк ---- */
.landing-plans-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch; }
.landing-plans-grid .card { display: flex; flex-direction: column; height: 100%; }
.landing-plans-grid .card .btn { margin-top: auto; }
@media (min-width: 700px) {
  .landing-plans-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

/* ---- Финальный CTA-баннер — заметная цветная полоса на всю ширину ---- */
.landing-cta-band { background: linear-gradient(120deg, #021C4D 0%, #0356C5 55%, #3D8CFF 100%); }
.landing-cta-inner { text-align: center; }
.landing-cta-inner h3 { font-size: 23px; margin: 0 0 8px; color: #fff; }
.landing-cta-inner p { color: rgba(255,255,255,.82); margin-bottom: 18px; }
.landing-cta-inner .btn {
  /* width:auto само по себе не сжимает кнопку по содержимому — .btn
     блочный display:flex, а не инлайновый, поэтому width:auto у него
     всё равно растягивается на всю ширину контейнера (тот же класс
     ошибки, что и с text-align:center на блочном потомке); нужен именно
     inline-flex, чтобы text-align:center у .landing-cta-inner вообще
     на что-то подействовал. */
  display: inline-flex; width: auto; padding: 15px 32px;
  background: #fff; color: #052B6B; box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
@media (min-width: 860px) {
  .landing-cta-inner h3 { font-size: 30px; }
}

.landing-footer { padding-top: 36px; padding-bottom: 60px; }

/* ---- Панель платформы → «Безопасность» ---- */
.sec-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.sec-tab {
  display: inline-flex; width: auto; padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.sec-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sec-pane { display: none; }
.sec-pane.active { display: block; }
.sec-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-warn { border-color: rgba(231, 178, 78, .55); background: rgba(231, 178, 78, .08); }
.sec-bad { border-color: rgba(255, 92, 108, .55); background: rgba(255, 92, 108, .07); }
.sec-inline-link { display: inline-flex; width: auto; padding: 0 0 0 6px; font-size: inherit; vertical-align: baseline; }
