/* leadgrind. — дизайн-система в стиле Apple */

/* ---------- Helvetica (self-hosted) ---------- */
@font-face {
  font-family: "Helvetica";
  src: url("/static/fonts/helvetica-light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica";
  src: url("/static/fonts/helvetica-lightoblique.woff2") format("woff2");
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Helvetica";
  src: url("/static/fonts/helvetica-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica";
  src: url("/static/fonts/helvetica-oblique.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Helvetica";
  src: url("/static/fonts/helvetica-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica";
  src: url("/static/fonts/helvetica-boldoblique.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --card: #ffffff;
  --accent: #E8734A;
  --accent-soft: #FBE6DA;
  --accent-2: #2E6B8A;
  --accent-2-soft: #E4EEF2;
  --text: #1c1c1e;
  --text-2: #8e8e93;
  --field: #f2f2f7;
  --border: #e5e5ea;
  --danger: #ff3b30;
  --success: #34c759;
  --r-card: 16px;
  --r-field: 12px;
  --r-btn: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.04);
  --font: Helvetica, Arial, sans-serif;

  /* Производные цвета. Всё, что раньше было захардкожено по месту, —
     здесь, иначе в тёмной теме вылезают светлые заплатки. */
  --danger-soft: #fff0ef;
  --danger-line: #ffd4d0;
  --success-soft: #e4f8ec;
  --success-strong: #1a9e4b;
  --scroll-thumb: #c7c7cc;
  --track-off: #d1d1d6;
  --plan-free-bg: #ececee;
  --header-bg: rgba(242,242,247,.82);
  --overlay: rgba(0,0,0,.3);
  --shadow-modal: 0 20px 60px rgba(0,0,0,.25);
  --shadow-lift: 0 16px 36px rgba(0,0,0,.16);
  --mac-bar: #ffffff;
  --mac-bar-line: #e0e0e5;
  /* Попапы: свой фон, а не --text. Иначе в тёмной теме подложка становится
     почти белой, а текст на ней остаётся белым — не прочитать. */
  --toast-bg: #1c1c1e;
  --toast-fg: #ffffff;
  --toast-border: transparent;
  --tag-blue-bg: #e5f0ff;    --tag-blue-fg: #0a6cff;
  --tag-green-bg: #e4f8ec;   --tag-green-fg: #1a9e4b;
  --tag-purple-bg: #f0e9ff;  --tag-purple-fg: #7c4dff;
  --tag-orange-bg: #fff0e2;  --tag-orange-fg: #e8830c;
  --tag-pink-bg: #ffe9f2;    --tag-pink-fg: #e5387c;
}

/* ---------- Тёмная тема ----------
   Палитра iOS: чистый чёрный фон, приподнятые карточки. Акцентный синий
   осветлён — исходный #2E6B8A на тёмном фоне нечитаем. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #1c1c1e;
  --accent: #F0855F;
  --accent-soft: rgba(240,133,95,.20);
  --accent-2: #6FB3D9;
  --accent-2-soft: rgba(111,179,217,.18);
  --text: #f2f2f7;
  --text-2: #98989f;
  --field: #2c2c2e;
  --border: #38383a;
  --danger: #ff453a;
  --success: #30d158;
  --shadow-card: 0 1px 3px rgba(0,0,0,.5), 0 10px 30px rgba(0,0,0,.35);

  --danger-soft: rgba(255,69,58,.16);
  --danger-line: rgba(255,69,58,.4);
  --success-soft: rgba(48,209,88,.16);
  --success-strong: #30d158;
  --scroll-thumb: #48484a;
  --track-off: #48484a;
  --plan-free-bg: #2c2c2e;
  --header-bg: rgba(0,0,0,.72);
  --overlay: rgba(0,0,0,.6);
  --shadow-modal: 0 20px 60px rgba(0,0,0,.7);
  --shadow-lift: 0 16px 36px rgba(0,0,0,.5);
  --mac-bar: #2c2c2e;
  --mac-bar-line: #38383a;
  --toast-bg: #2c2c2e;
  --toast-fg: #f2f2f7;
  --toast-border: #48484a;
  --tag-blue-bg: rgba(10,132,255,.18);   --tag-blue-fg: #6cb0ff;
  --tag-green-bg: rgba(48,209,88,.18);   --tag-green-fg: #4fd97a;
  --tag-purple-bg: rgba(124,77,255,.20); --tag-purple-fg: #b39aff;
  --tag-orange-bg: rgba(232,131,12,.20); --tag-orange-fg: #ffab52;
  --tag-pink-bg: rgba(229,56,124,.20);   --tag-pink-fg: #ff7bad;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }

/* ---------- Логотип ---------- */
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 14px; overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-mark.has-img { background: transparent; }
.logo-mark.lg { width: 60px; height: 60px; }
.logo-mark.sm { width: 34px; height: 34px; border-radius: 10px; }
.brand-name { font-family: Helvetica, Arial, sans-serif; font-weight: 700; color: var(--text); letter-spacing: -0.1em; }
.brand-name .kern-ri { margin-right: 0.03em; }

/* ---------- Экран авторизации ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { font-size: 30px; font-weight: 700; margin: 16px 0 4px; }
.auth-head p { color: var(--text-2); margin: 0; font-size: 14px; }
.auth-card {
  background: var(--card); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 28px; width: 100%; max-width: 360px;
}

/* ---------- Футер (публичные страницы) ---------- */
.site-footer {
  max-width: 720px; margin: 0 auto; padding: 24px 24px 40px; text-align: center;
  font-size: 12px; color: var(--text-2);
}
.site-footer-legal { margin: 0 0 10px; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.site-footer-links a { color: var(--text-2); text-decoration: underline; }
.site-footer-links a.site-footer-highlight { color: var(--accent-2); font-weight: 600; }

/* ---------- Тост "лимит тарифа" ---------- */
.plan-toast:empty { display: none; }
.plan-toast {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 998;
  max-width: 480px; margin: 0 auto; background: var(--toast-bg); color: var(--toast-fg);
  border: 1px solid var(--toast-border);
  border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; font-size: 13px;
}
.plan-toast p { margin: 0; flex: 1; }
.plan-toast-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.plan-toast .icon-btn { color: var(--toast-fg); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999;
  max-width: 640px; margin: 0 auto; background: var(--card); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 18px 20px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 12px 20px; font-size: 13px; color: var(--text-2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; }
.cookie-banner a { color: var(--accent-2); }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Чекбоксы согласия (регистрация) ---------- */
.consent-check { margin-bottom: 12px; }
.consent-check label {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px;
  color: var(--text-2); cursor: pointer; line-height: 1.4;
}
.consent-check input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 15px; height: 15px; accent-color: var(--accent-2); }
.consent-check label span { flex: 1; }
.consent-check a { color: var(--accent-2); text-decoration: underline; }

/* ---------- Юридические страницы (оферта/политика/согласие) ---------- */
.legal-wrap { min-height: 100vh; padding: 40px 24px 80px; }
.legal-header {
  max-width: 720px; margin: 0 auto 24px; display: flex; align-items: center; gap: 12px;
}
.legal-header .brand-name { font-size: 20px; }
.legal-card {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 40px; max-width: 720px; margin: 0 auto;
}
.legal-card h1 { font-size: 24px; margin: 0 0 6px; }
.legal-card .legal-date { color: var(--text-2); font-size: 13px; margin: 0 0 28px; }
.legal-card h2 { font-size: 17px; margin: 32px 0 10px; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card h3 { font-size: 15px; margin: 20px 0 6px; }
.legal-card p { margin: 0 0 12px; }
.legal-card ul { margin: 0 0 12px; padding-left: 22px; }
.legal-card li { margin-bottom: 6px; }
.legal-card table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 14px; }
.legal-card th, .legal-card td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.legal-card strong { font-weight: 600; }

/* ---------- Поля и кнопки ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; border: none; background: var(--field);
  border-radius: var(--r-field); padding: 13px 15px; font-size: 15px;
  font-family: var(--font); color: var(--text); outline: 2px solid transparent;
  transition: outline-color .15s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline-color: var(--accent-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: var(--font); font-weight: 600;
  font-size: 15px; border-radius: var(--r-btn); padding: 13px 18px;
  transition: filter .15s, background .15s;
}
.btn-primary { background: var(--accent); color: #fff; width: 100%; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--field); color: var(--text); }
.btn-sm { padding: 9px 14px; font-size: 14px; }

.auth-alt { text-align: center; margin-top: 18px; color: var(--text-2); font-size: 14px; }
.auth-alt a { font-weight: 600; }

.form-error {
  background: var(--danger-soft); color: var(--danger); border-radius: var(--r-field);
  padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px;
}

/* ---------- Валидация формы (без нативных пузырей браузера) ---------- */
.field-hint { display: none; margin: 6px 0 0; font-size: 12.5px; color: var(--danger); }
.field.is-invalid input { outline-color: var(--danger); background: var(--danger-soft); }
.field.is-invalid .field-hint { display: block; }
.consent-check.is-invalid label { color: var(--danger); }
.consent-check.is-invalid input[type="checkbox"] { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 3px; }
.btn.is-disabled { background: var(--border); color: var(--text-2); cursor: not-allowed; }
.btn.is-disabled:hover { filter: none; }

/* ---------- Тост (общий для всех страниц) ---------- */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 420px; margin: 0 auto; background: var(--toast-bg); color: var(--toast-fg);
  border: 1px solid var(--toast-border);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 14px 18px; font-size: 13.5px; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Каркас приложения (сайдбар) ---------- */
.app { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 230px; background: var(--card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px; flex-shrink: 0;
  height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 22px; font-weight: 700; font-size: 30px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 10px; color: var(--text); font-weight: 500;
}
.nav a:hover { background: var(--field); }
.nav a.active { background: var(--accent-2-soft); color: var(--accent-2); font-weight: 600; }
.nav a svg { width: 19px; height: 19px; }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.sidebar-foot a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 10px; color: var(--text-2); font-weight: 500;
}
.sidebar-foot a:hover { background: var(--field); }
.sidebar-foot a svg { width: 19px; height: 19px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-y: auto; }
body.modal-open, body.modal-open .main { overflow: hidden; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--border); background: var(--card);
}
.topbar h2 { margin: 0; font-size: 20px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-2); padding: 6px; border-radius: 8px; }
.icon-btn:hover { background: var(--field); }

.row-menu { position: relative; display: inline-flex; }
.row-menu-btn { padding: 3px; }
.row-menu-list {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-card); min-width: 180px; z-index: 20; overflow: hidden;
}
.row-menu-list.open { display: block; }
.row-menu-list button {
  display: block; width: 100%; text-align: left; padding: 9px 14px; border: none;
  background: none; cursor: pointer; font-family: var(--font); font-size: 13.5px; color: var(--text);
}
.row-menu-list button:hover { background: var(--field); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.content { padding: 24px 28px; flex: 1; }

/* ---------- Панель инструментов вакансий ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.search {
  flex: 1; position: relative;
}
.search input {
  width: 100%; border: none; background: var(--card); border-radius: 999px;
  padding: 12px 16px 12px 42px; font-size: 15px; font-family: var(--font);
  box-shadow: var(--shadow-card); outline: 2px solid transparent;
}
.search input:focus { outline-color: var(--accent-2); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-2); width: 18px; height: 18px; }

/* Счётчик активных фильтров — кружком, как уведомление */
.filter-btn { position: relative; }
.filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
}

/* ---------- Таблица вакансий ---------- */
.table-card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.vac { width: 100%; min-width: 900px; border-collapse: collapse; }
table.vac th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-2); padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
table.vac td { padding: 8px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.vac tr:last-child td { border-bottom: none; }
table.vac tr.done td { opacity: .5; }
.recruiter { display: flex; align-items: center; gap: 11px; font-weight: 500; }
.recruiter .ava {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.muted { color: var(--text-2); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--field); color: var(--text-2); }
.tag.blue { background: var(--tag-blue-bg); color: var(--tag-blue-fg); }
.tag.green { background: var(--tag-green-bg); color: var(--tag-green-fg); }
.tag.purple { background: var(--tag-purple-bg); color: var(--tag-purple-fg); }
.tag.orange { background: var(--tag-orange-bg); color: var(--tag-orange-fg); }
.tag.pink { background: var(--tag-pink-bg); color: var(--tag-pink-fg); }

.check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: none; color: transparent;
}
.check.on { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.datecell span { display: block; }
.datecell .time { color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.contact { font-weight: 500; }

.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.foot-left { display: flex; align-items: center; gap: 18px; }
.size-form { display: flex; align-items: center; gap: 8px; }
.size-form select {
  border: 1px solid var(--border); background: var(--card); border-radius: 8px;
  padding: 5px 8px; font-family: var(--font); font-size: 13px; color: var(--text); cursor: pointer;
}
.pager { display: flex; gap: 6px; align-items: center; }
.pager a, .pager span {
  min-width: 32px; height: 32px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--text-2); font-weight: 600;
}
.pager .cur { background: var(--accent-2); color: #fff; }

/* ---------- Каналы ---------- */
.panel { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px; margin-bottom: 16px; max-width: 960px; }
.panel h3 { margin: 0 0 14px; font-size: 16px; }
.add-row { display: flex; gap: 12px; }
.add-row input { flex: 1; border: none; background: var(--field); border-radius: var(--r-field); padding: 13px 15px; font-size: 15px; font-family: var(--font); }
.add-row .btn { width: auto; flex-shrink: 0; }
.chan { display: flex; align-items: center; gap: 12px; padding: 12px 16px !important; }
.chan .ico { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.chan .meta { flex: 1; min-width: 0; }
.chan .meta b { font-size: 14px; }
.chan .meta .sub { color: var(--text-2); font-size: 12.5px; }
/* Служебные подписи («Пауза», «Нет доступа») не должны рваться на две строки */
.badge { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--field); color: var(--text-2); margin-left: 8px; white-space: nowrap; display: inline-block; }

/* Массовые действия над каналами — всегда в строку, подсказка уходит под них */
.bulk-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bulk-row form { display: flex; }
.bulk-row .btn { width: auto; }
.bulk-row-hint { font-size: 12px; }
.badge-error { background: var(--danger-soft); color: var(--danger); }
.chan-error { background: var(--danger-soft); border: 1px solid var(--danger-line); }

/* ---------- Админка ---------- */
.admin-nav { display: flex; gap: 8px; margin-bottom: 20px; background: var(--card); padding: 6px; border-radius: 12px; box-shadow: var(--shadow-card); width: fit-content; }
.admin-nav .btn-ghost { background: none; border-radius: 8px; font-weight: 600; color: var(--text-2); }
.admin-nav .btn-ghost:hover { background: var(--field); color: var(--text); }
.admin-nav .btn-ghost.active { background: var(--accent-2-soft); color: var(--accent-2); }

.admin-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.admin-card {
  width: 240px; padding: 22px; border-radius: var(--r-card); background: var(--card);
  box-shadow: var(--shadow-card); text-decoration: none; color: inherit; display: block;
  transition: transform .15s, box-shadow .15s;
}
.admin-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.06); }
.admin-card .ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-2-soft); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.admin-card .ico svg { width: 22px; height: 22px; }
.admin-card h3 { margin: 0 0 6px; font-size: 16px; }
.admin-card p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }

.admin-facet-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.admin-facet-row:last-of-type { border-bottom: none; }
.admin-facet-row .edit-form { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.admin-facet-row input[type=text] {
  border: none; background: var(--field); border-radius: 8px; padding: 8px 12px;
  font-size: 13.5px; font-family: var(--font); color: var(--text); outline: 2px solid transparent;
}
.admin-facet-row input[type=text]:focus { outline-color: var(--accent-2); }
.admin-facet-row input[name=name] { max-width: 170px; flex-shrink: 0; }
.badge-btn {
  border: none; cursor: pointer; font-family: var(--font); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success-strong); transition: filter .15s;
}
.badge-btn:hover { filter: brightness(0.95); }
.badge-btn.off { background: var(--field); color: var(--text-2); }
.admin-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 640px; background: var(--field); padding: 16px; border-radius: 12px; }

.table-card .admin-table { width: 100%; border-collapse: collapse; }
.table-card .admin-table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-2); padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.table-card .admin-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13.5px; }
.table-card .admin-table tr:last-child td { border-bottom: none; }
.table-card .admin-table tr:hover td { background: var(--field); }
.admin-table form { display: inline-flex; margin: 2px 4px 2px 0; }
.admin-table select {
  border: 1px solid var(--border); background: var(--card); border-radius: 8px;
  padding: 6px 10px; font-family: var(--font); font-size: 12.5px; color: var(--text); cursor: pointer;
}
.role-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-2-soft); color: var(--accent-2); }
.role-pill.user { background: var(--field); color: var(--text-2); }
.admin-nav { display: flex; gap: 10px; margin-bottom: 16px; }

/* iOS-тумблер */
.switch { position: relative; width: 46px; height: 28px; flex-shrink: 0; cursor: pointer; }
.switch input { display: none; }
.switch .track { position: absolute; inset: 0; background: var(--track-off); border-radius: 999px; transition: background .2s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .track { background: var(--success); }
.switch input:checked + .track + .knob { transform: translateX(18px); }
.trash { background: none; border: none; cursor: pointer; color: var(--danger); padding: 6px; }

.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.settings-row + .settings-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Карточки тарифов (соотношение высота:ширина 3:2) ---------- */
.plan-cards { display: flex; gap: 18px; flex-wrap: wrap; }
.plan-card {
  position: relative; width: 220px; border-radius: 20px;
  padding: 22px; display: flex; flex-direction: column;
  font-family: var(--font);
}
.plan-badge {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.25); color: #fff;
  backdrop-filter: blur(4px);
}
.plan-name { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.plan-price { font-size: 14px; font-weight: 600; opacity: .8; margin-bottom: 18px; }

/* ВРЕМЕННО: цены замылены, пока тарифы не утверждены.
   Чтобы вернуть — удалить это правило, шаблоны трогать не нужно.
   Учтите: сама цифра остаётся в HTML и видна через «исходный код страницы». */
.price-hidden {
  filter: blur(6px);
  user-select: none; -webkit-user-select: none;
  cursor: default;
}
.plan-features { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.plan-features li { padding-left: 18px; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.plan-cta { margin-top: 14px; width: 100%; }
.plan-expiry { margin-top: 14px; font-size: 12.5px; opacity: .75; }
.plan-card.popular { border: 2px solid var(--accent); }
.plan-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(232,115,74,.4);
}

/* Free — нейтральный серый, без акцентного контура (не должен спорить с Pro) */
.plan-free {
  background: var(--plan-free-bg); border: 1px solid var(--border); color: var(--text);
}
.plan-free .plan-price, .plan-free .plan-badge { color: var(--text); }
.plan-free .plan-badge { background: var(--accent-soft); color: var(--accent); }

/* Pro — переливающийся "нефтяной" градиент, премиум */
.plan-pro {
  color: #fff;
  background: linear-gradient(125deg,
    #05101f 0%, #0d1f38 16%, #142c42 30%, #1c3a44 42%,
    #24463f 52%, #362f4a 64%, #241c38 78%, #0a1626 90%, #05101f 100%);
  background-size: 320% 320%;
  animation: plan-pro-shift 16s ease infinite;
  box-shadow: 0 12px 32px rgba(10,20,40,.4);
}
.plan-pro::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.25), transparent 40%);
}
@keyframes plan-pro-shift {
  0% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}
.plan-pro .plan-cta { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }

/* ---------- Лендинг (публичная главная) ---------- */
.lp { font-family: Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); }

.lp-header {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; background: var(--header-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.lp-header-brand { display: flex; align-items: center; gap: 10px; }
.lp-header-brand .brand-name { font-size: 18px; }
.lp-header-nav { display: flex; gap: 28px; }
.lp-header-nav a { color: var(--text); font-size: 14px; font-weight: 600; }
.lp-header-nav a:hover { color: var(--accent-2); }
.lp-header-cta { display: flex; align-items: center; gap: 10px; }
.lp-header-cta .btn { width: auto; }

.lp-scroll { height: 100vh; overflow-y: auto; scroll-behavior: smooth; }
.lp-screen {
  min-height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 24px 60px; position: relative;
}
.lp-screen-end { min-height: auto; padding-bottom: 0; }
#pricing.lp-screen { justify-content: flex-start; padding-top: 64px; }

.lp-hero { overflow: hidden; }
.lp-hero-glow {
  position: absolute; top: 50%; left: 50%; pointer-events: none;
  width: min(1400px, 145vw); aspect-ratio: 1 / 1; transform: translate(-50%, -50%);
  background: url("/static/img/hero-glow.webp") center / contain no-repeat;
}
.lp-hero-content { position: relative; text-align: center; max-width: 900px; }
.lp-wordmark { display: block; font-size: clamp(72px, 13vw, 240px); line-height: 1; margin-bottom: 20px; }
.lp-h1 { font-weight: 700; font-size: clamp(32px, 3.2vw, 58px); margin: 0; letter-spacing: -0.05em; }
.lp-sub { font-weight: 400; font-size: clamp(22px, 2.3vw, 42px); color: var(--text); margin: 0 0 40px; letter-spacing: -0.05em; }
.lp-cta {
  /* У Helvetica заявленный подъём (1.2em) заметно больше реальной высоты букв,
     из-за чего текст в высокой кнопке визуально проваливается вниз. Поднимаем
     его на эту величину: верхний паддинг меньше, нижний больше — высота та же. */
  --optical-nudge: 0.23em;
  display: inline-flex; align-items: center; justify-content: center;
  background: #F75C25; color: #fff; font-weight: 300; font-size: clamp(20px, 2.3vw, 38px);
  padding: calc(20px - var(--optical-nudge)) 48px calc(20px + var(--optical-nudge));
  border-radius: 20px; box-shadow: 0 10px 30px rgba(247,92,37,.35);
  transition: filter .15s, transform .15s; letter-spacing: -0.05em;
}
.lp-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

.lp-block { max-width: 900px; width: 100%; }
.lp-block-wide { max-width: 1100px; }
.lp-h2 { font-weight: 700; font-size: clamp(28px, 2.6vw, 46px); margin: 0 0 26px; text-align: center; letter-spacing: -0.05em; }
.lp-body { font-size: clamp(18px, 2vw, 34px); line-height: 1.5; margin: 0; letter-spacing: -0.05em; }
.lp-body .lp-bold, .lp-steps .lp-bold, .lp-body-sm .lp-bold { font-weight: 700; font-style: normal; }
.lp-body .lp-emph, .lp-steps .lp-emph, .lp-body-sm .lp-emph { font-weight: 700; font-style: italic; }
.lp-body .lp-regular, .lp-steps .lp-regular, .lp-body-sm .lp-regular { font-weight: 400; font-style: normal; }
.lp-body-sm { font-size: clamp(15px, 1.35vw, 22px); line-height: 1.55; margin: 0; letter-spacing: -0.05em; }
.lp-pricing-intro { margin-bottom: 18px; }
.lp-light { font-weight: 300; color: var(--text-2); margin-top: 18px !important; }

.lp-steps { list-style: decimal; padding-left: 26px; margin: 0 0 28px; display: flex; flex-direction: column; gap: 18px; font-size: clamp(18px, 2vw, 34px); line-height: 1.5; letter-spacing: -0.05em; }
.lp-caption { text-align: center; font-weight: 300; font-size: clamp(20px, 1.6vw, 28px); line-height: 1.35; margin: 0 0 32px; letter-spacing: -0.05em; }
.lp-caption .lp-accent { color: var(--accent); font-weight: 300; }
.lp-caption .lp-dark { color: var(--text); font-weight: 300; }

.lp-mockup {
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); margin-top: 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.lp-mockup img { display: block; width: 100%; height: auto; }

.lp-reveal { opacity: 0; transform: translateY(48px); transition: opacity .7s ease, transform .7s ease; }
.lp-reveal.is-visible { opacity: 1; transform: translateY(0); }

.lp-plan-cards { justify-content: center; margin-top: 28px; }
.lp-plan-cards .plan-card { width: 280px; padding: 30px; letter-spacing: -0.03em; }
.lp-plan-cards .plan-name { font-size: 23px; }
.lp-plan-cards .plan-price { font-size: 16px; margin-bottom: 22px; }
.lp-plan-cards .plan-features { font-size: 15.5px; gap: 13px; }
.lp-plan-cards .plan-cta { padding: 13px 14px; font-size: 15px; }
.lp-plan-cards .plan-cta.plan-cta-dark { background: var(--accent-2); color: #fff; }
.lp-plan-cards .plan-cta.plan-cta-light { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }

/* ---------- Коллаж "как это работает" ---------- */
.how-stage { position: relative; width: 100%; margin-top: 8px; min-height: 420px; }
.how-img { position: absolute; width: 34%; display: block; }
.how-img.mac-window { background: var(--mac-bar); box-shadow: var(--shadow-lift); }
.how-img:not(.mac-window) { border-radius: 14px; box-shadow: var(--shadow-lift); overflow: hidden; }
.how-img img { display: block; width: 100%; height: auto; }
.mac-window { border-radius: 10px; overflow: hidden; }
.mac-window-bar { height: 24px; background: var(--mac-bar); display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--mac-bar-line); }
.mac-window-bar span { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mac-window-bar span:nth-child(1) { background: #ff5f57; }
.mac-window-bar span:nth-child(2) { background: #febc2e; }
.mac-window-bar span:nth-child(3) { background: #28c840; }
.how-img-channels { left: 0; top: 0; width: 36%; transform: rotate(-4deg); z-index: 2; }
.how-img-filters { left: 27%; top: 32%; width: 27%; transform: rotate(4deg); z-index: 3; }
.how-img-feed { left: 46%; top: 4%; width: 54%; transform: rotate(-1.5deg); z-index: 1; }

@media (max-width: 900px) {
  .how-stage { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .how-img { position: static; width: 100%; max-width: 380px; transform: none !important; }
}

@media (max-width: 720px) {
  .lp-header-nav { display: none; }
}

/* ---------- Модалка фильтров ---------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: var(--bg); border-radius: 18px; width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; padding: 22px; box-shadow: var(--shadow-modal); scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--bg); }
/* тонкий округлый скролл без стрелок, фон как у модалки */
.modal::-webkit-scrollbar, .content::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-track { background: var(--bg); border-radius: 999px; }
.content::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb, .content::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; border: 2px solid var(--bg); }
.modal::-webkit-scrollbar-button, .content::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal .hint { color: var(--text-2); font-size: 13.5px; margin: 0 0 18px; }
.facet-group { background: var(--card); border-radius: var(--r-card); padding: 13px 14px; margin-bottom: 10px; }
.facet-group .cap { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.date-inputs { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.date-inputs input[type=date] { border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 8px 10px; font-family: var(--font); font-size: 14px; color: var(--text); }
.chan-select { width: 100%; border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 10px 12px; font-family: var(--font); font-size: 14px; color: var(--text); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: none; cursor: pointer; font-family: var(--font); font-weight: 600;
  font-size: 14px; padding: 9px 16px; border-radius: 999px;
  background: var(--field); color: var(--text); display: inline-flex; align-items: center; gap: 6px;
}
.chip.include { background: var(--accent); color: #fff; }
.chip.exclude { background: var(--danger); color: #fff; }
.chip .mark:not(:empty) { font-size: 13px; line-height: 1; }
.chip .mark:empty { display: none; }
.modal-actions { display: flex; gap: 12px; margin-top: 8px; }
.modal-actions .btn-primary { flex: 1; width: auto; }

/* ---------- Модалка полного текста сообщения (шире фильтров) ---------- */
.modal-msg {
  position: relative; background: var(--bg); border-radius: 18px;
  width: 100%; max-width: 760px; max-height: 88vh;
  box-shadow: var(--shadow-modal); display: flex; flex-direction: column;
}
.modal-msg-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.12); border-radius: 50%;
}
.modal-msg-body { overflow-y: auto; padding: 28px; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--bg); }
.modal-msg-body h2 { margin: 0 0 16px; padding-right: 40px; font-size: 19px; }
.modal-msg-body p { margin: 0; white-space: pre-wrap; line-height: 1.65; color: var(--text); }
.modal-msg-body::-webkit-scrollbar { width: 8px; }
.modal-msg-body::-webkit-scrollbar-track { background: var(--bg); border-radius: 999px; }
.modal-msg-body::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; border: 2px solid var(--bg); }
.modal-msg-body::-webkit-scrollbar-button { display: none; height: 0; width: 0; }

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   Брейкпоинт 768px. Сайдбар уезжает в нижний таб-бар,
   таблица вакансий разбирается в карточки (важно: разметка <tr>
   остаётся прежней — на неё завязаны hx-target у HTMX).
   ============================================================ */

/* Нижний таб-бар и мобильный «Выйти» — на десктопе скрыты */
.tabbar { display: none; }
.topbar-mobile-only { display: none; }

@media (max-width: 768px) {
  /* iOS зумит страницу при фокусе на поле меньше 16px */
  .field input, .field textarea, .search input, .add-row input,
  .chan-select, .admin-facet-row input[type=text], .date-inputs input[type=date] {
    font-size: 16px;
  }

  /* ---------- Каркас ---------- */
  .app { display: block; height: auto; overflow: visible; }
  .sidebar { display: none; }
  .main {
    height: auto; min-height: 100dvh; overflow: visible;
    /* таб-бар ~65px — берём с запасом, иначе последняя карточка липнет к нему */
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .topbar { padding: 14px 16px; position: sticky; top: 0; z-index: 30; }
  .topbar h2 { font-size: 18px; }
  .content { padding: 16px; }
  body.modal-open, body.modal-open .main { overflow: visible; }

  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--card); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; color: var(--text-2); font-size: 10.5px; font-weight: 600;
    text-align: center; border-radius: 10px;
  }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--accent-2); }
  .topbar-mobile-only { display: inline-flex; }

  /* ---------- Вакансии: таблица становится карточками ---------- */
  /* Поиск ужимается, фильтры — иконкой справа со счётчиком-кружком,
     иначе вдвоём они съедали два полноширинных ряда. */
  .toolbar { flex-wrap: nowrap; gap: 10px; }
  .search { flex: 1 1 auto; min-width: 0; }
  .search input { padding: 11px 14px 11px 40px; }
  .toolbar .filter-btn {
    flex: 0 0 auto; width: 46px; height: 46px; padding: 0;
    border-radius: 50%; box-shadow: var(--shadow-card); background: var(--card);
  }
  .filter-btn-label { display: none; }
  .filter-btn .filter-count {
    position: absolute; top: -3px; right: -3px;
    min-width: 18px; height: 18px; font-size: 10.5px;
    border: 2px solid var(--bg);
  }

  /* Массовые действия: кнопки делят строку пополам, подсказка — под ними */
  .bulk-row form { flex: 1; }
  .bulk-row .btn { width: 100%; }
  .bulk-row-hint { flex: 1 1 100%; }

  .table-card { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
  .table-scroll { overflow-x: visible; }
  table.vac, table.vac tbody { display: block; min-width: 0; width: 100%; }
  table.vac thead { display: none; }
  table.vac tbody { display: flex; flex-direction: column; gap: 10px; }

  table.vac tr {
    display: grid; grid-template-columns: 1fr auto auto auto;
    gap: 8px 10px; align-items: center;
    background: var(--card); border-radius: var(--r-card);
    box-shadow: var(--shadow-card); padding: 14px 16px;
  }
  table.vac td { display: block; padding: 0; border: none !important; }
  table.vac tr:last-child td { border: none; }

  table.vac td:nth-child(1) { grid-column: 1; grid-row: 1; min-width: 0; }
  table.vac td:nth-child(6) { grid-column: 2; grid-row: 1; }
  table.vac td:nth-child(8) { grid-column: 3; grid-row: 1; }
  table.vac td:nth-child(9) { grid-column: 4; grid-row: 1; }
  table.vac td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-weight: 600; font-size: 15px; }
  table.vac td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; }
  table.vac td:nth-child(3) { grid-column: 1 / 3; grid-row: 4; font-size: 13px; }
  table.vac td:nth-child(4) { grid-column: 3 / -1; grid-row: 4; text-align: right; }
  table.vac td:nth-child(7) { grid-column: 1 / -1; grid-row: 5; }

  /* внутри карточки дата и контакт становятся компактной строкой */
  table.vac .datecell span { display: inline; font-size: 13px; color: var(--text-2); }
  table.vac .datecell .time { margin: 0 0 0 6px; }
  table.vac .recruiter { font-size: 14px; }
  table.vac .recruiter .ava { width: 30px; height: 30px; }
  table.vac td:nth-child(7) .contact {
    display: inline-flex; align-items: center; padding: 8px 14px;
    background: var(--accent-2-soft); color: var(--accent-2);
    border-radius: 999px; font-size: 13.5px; font-weight: 600;
  }
  table.vac td:nth-child(7) .muted { font-size: 13px; }
  .tags { gap: 5px; }
  .tag { font-size: 11.5px; padding: 3px 9px; }

  .table-foot { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 4px 4px; }
  .foot-left { justify-content: space-between; }
  .pager { justify-content: center; flex-wrap: wrap; }

  /* ---------- Каналы ---------- */
  .panel { padding: 16px; }
  .add-row { flex-direction: column; }
  .add-row .btn { width: 100%; }

  /* ---------- Модалки — шторкой снизу ---------- */
  .overlay { padding: 0; align-items: flex-end; }
  .modal, .modal-msg {
    max-width: none; width: 100%; max-height: 92dvh;
    border-radius: 18px 18px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
  .modal-msg-body { padding: 24px 20px; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
  .chips { gap: 8px; }
  /* у date-инпутов своя минимальная ширина — без min-width:0 второй вылезал за блок */
  .date-inputs input[type=date] { flex: 1; min-width: 0; }

  /* ---------- Авторизация ---------- */
  .auth-wrap { padding: 24px 16px 40px; min-height: auto; }
  .auth-card { max-width: none; padding: 22px 18px; }
  .auth-head h1 { font-size: 26px; }

  /* ---------- Тарифы ---------- */
  .plan-cards { gap: 14px; }
  .plan-card { width: 100%; }

  /* ---------- Юридические страницы ---------- */
  .legal-wrap { padding: 24px 14px 60px; }
  .legal-card { padding: 22px 18px; }
  .legal-card table { font-size: 13px; }
  .legal-card th, .legal-card td { padding: 6px 7px; }

  /* ---------- Админка ---------- */
  .admin-cards { flex-direction: column; }
  .admin-card { width: 100%; }
  .admin-features-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-nav { overflow-x: auto; }

  /* Плавающие плашки не должны налезать на таб-бар */
  .cookie-banner, .plan-toast, .toast {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ============================================================
   ЛЕНДИНГ НА МОБИЛЬНОМ
   ============================================================ */
@media (max-width: 768px) {
  /* 100vh в мобильном Safari прыгает вместе с адресной строкой */
  .lp-scroll { height: 100dvh; }
  .lp-screen {
    min-height: auto; padding: 88px 20px 56px;
    justify-content: flex-start;
  }
  .lp-hero { min-height: 100dvh; justify-content: center; padding-top: 64px; }
  #pricing.lp-screen { padding-top: 88px; }
  .lp-header { padding: 0 16px; }
  .lp-cta { padding: calc(16px - var(--optical-nudge)) 32px calc(16px + var(--optical-nudge)); }
  .lp-steps { padding-left: 20px; gap: 14px; }
  .lp-plan-cards .plan-card { width: 100%; max-width: 340px; }
  .how-stage { margin-top: 0; }
}

/* Мобильное меню лендинга: гамбургер вместо спрятанной навигации.
   Раньше на телефоне до «Тарифов» и «Контактов» было просто не добраться. */
.lp-burger { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 6px; }
.lp-nav-login { display: none; }
@media (max-width: 720px) {
  .lp-burger { display: inline-flex; }
  .lp-nav-login { display: block; }
  .lp-header-cta .btn-ghost { display: none; }
  .lp-header-nav {
    display: flex; position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--card);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-card);
    padding: 8px 16px 16px; transform: translateY(-8px);
    opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .lp-header-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .lp-header-nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .lp-header-nav a:last-child { border-bottom: none; }
}
