:root {
  --bg: #f3f5f7;
  --bg-muted: #e8ecf0;
  --surface: #ffffff;
  --surface-2: #f7faf9;
  --ink: #0f172a;
  --text: #0f172a;
  --muted: #5c6570;
  --line: #d7dde3;
  --accent: #1aa896;
  --accent-2: #12b89f;
  --accent-hover: #0f8f7e;
  --accent-soft: #e6f7f4;
  --navy: #0c1518;
  --navy-2: #122024;
  --gold: #e8a317;
  --danger: #dc4c64;
  --danger-soft: #fff2f4;
  --warn: #d97706;
  --warn-soft: #fff4dc;
  --ok: #19a974;
  --ok-soft: #effbf6;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
  --radius: 14px;
  --header-h: 68px;
  --sidebar-width: 264px;
  --font: "Manrope", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

h1, h2, .page-hero h1, .land-hero h1, .page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.wrap-flash {
  margin-bottom: 16px;
}

/* ——— Public header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-row {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.logo-text {
  font-size: 15px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
}

.top-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 20px 0 18px;
  border-bottom: 2px solid transparent;
}

.top-nav a.is-active,
.top-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-text {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.nav-text:hover,
.nav-text.is-active {
  color: var(--ink);
  text-decoration: none;
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

.site-main {
  padding: 32px 0 72px;
  min-height: calc(100vh - 280px);
}

.site-main.is-bleed {
  padding: 0;
  min-height: 0;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 56px 0 36px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  color: #cbd5e1;
  margin: 0 0 8px;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .logo {
  color: #fff;
}

.footer-lead,
.site-footer .muted {
  color: #94a3b8;
  margin: 12px 0 0;
}

.muted {
  color: var(--muted);
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 650;
}

.alert-success,
.alert-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.alert-error,
.alert-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.alert-warning,
.alert-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.btn,
button.btn,
input[type="submit"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  border-radius: 7px;
  padding: 5px 10px;
  min-height: 30px;
  text-decoration: none;
  width: auto;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0d9a88);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--bg-muted);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 8px;
}

.stack > .btn,
.stack > .toolbar {
  justify-self: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.span-2,
.field-full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  color: #334155;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]),
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  width: 100%;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  accent-color: var(--accent);
  flex: 0 0 auto;
  align-self: center;
}

label.checkbox-field,
.form-grid label.checkbox-field,
label:has(> input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.phone-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
}

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 12px 14px;
  overflow: auto;
}

.panel:has(> .panel__header) {
  padding: 0;
}

.panel + .panel {
  margin-top: 10px;
}

.panel h1,
.panel h2,
.card h2 {
  margin: 0 0 8px;
}

.table-scroll {
  overflow: auto;
}

table.data,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data th,
table.data td,
.data-table th,
.data-table td {
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  background: var(--bg-muted);
  color: var(--muted);
}

.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge-bad {
  background: var(--danger-soft);
  color: var(--danger);
}

.hero h1 {
  font-size: 40px;
  line-height: 1.12;
  margin: 8px 0 12px;
  letter-spacing: -0.04em;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 8px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.land-hero .btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.price-card .btn {
  margin-top: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  display: block;
}

a.stat-card:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.stat-card b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
  margin-top: 2px;
}

.stat-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.settings-tabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.settings-tabs button.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.ticket-thread {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.ticket-msg {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--bg-muted);
}

.ticket-msg.is-staff {
  background: var(--accent-soft);
}

.empty {
  padding: 20px;
  color: var(--muted);
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.page-head h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

/* ——— Landing ——— */
.land-hero {
  padding: 64px 0 48px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border-bottom: 1px solid var(--line);
}

.land-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 14ch;
}

.land-hero .lead {
  color: var(--muted);
  font-size: 18px;
}

.land-hero .eyebrow {
  color: var(--accent);
  font-weight: 800;
}

.land-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-board {
  background: var(--navy);
  color: #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-board__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #1e293b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-board__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.hero-board__row b {
  color: #fff;
}

.hero-board__row em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #93c5fd;
}

.hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-list li {
  position: relative;
  padding-left: 22px;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.land-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.land-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.land-strip article {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.land-strip article:last-child {
  border-right: 0;
}

.land-strip i {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.land-strip b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.land-strip span {
  color: var(--muted);
  font-size: 13px;
}

.land-section {
  padding: 72px 0;
}

.land-section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 40px);
}

.land-section--muted {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.info-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step-grid li {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
}

.step-grid span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 800;
  margin-bottom: 12px;
}

.step-grid h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.callout-box {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #10233d;
  color: #e2e8f0;
}

.callout-box h3 {
  margin: 0 0 6px;
  color: #fff;
}

.callout-box p {
  margin: 0;
  color: #cbd5e1;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.price-card.is-featured {
  background: #fff;
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(26, 168, 150, 0.16);
}

.price-card.is-featured .muted {
  color: var(--muted);
}

.price-card h3 {
  margin: 0;
  font-size: 16px;
}

.price-sum {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price-card ul {
  margin: 4px 0 8px;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
}

.price-card.is-featured ul {
  color: var(--muted);
}

.price-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: #1a1303;
  padding: 3px 8px;
  border-radius: 999px;
}

.land-faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 750;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.land-cta {
  padding: 0 0 72px;
}

.land-cta__box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
}

.land-cta h2 {
  margin: 0 0 6px;
  letter-spacing: -0.04em;
  color: #fff;
}

.land-cta p {
  margin: 0;
  color: #94a3b8;
}

.land-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.land-contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.contact-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--line);
}

.contact-card dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-card dd {
  margin: 4px 0 14px;
  font-weight: 750;
}

/* ——— Auth pages (login / register, как MES) ——— */
body.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(145deg, #0b1c22 0%, #12343a 46%, #eef3f6 46.1%, #f5f7f9 100%);
}

body.auth-page .auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
}

.auth-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 42px clamp(28px, 5vw, 80px);
  color: #f8f8f9;
  background:
    linear-gradient(145deg, rgba(11, 28, 34, 0.98), rgba(18, 52, 58, 0.92)),
    #0f2428;
  flex-direction: column;
  justify-content: space-between;
}

.auth-visual .brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.auth-visual .brand:hover {
  text-decoration: none;
}

.auth-visual__content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.auth-visual__content h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: #fff;
}

.auth-visual__content p {
  margin: 0;
  max-width: 480px;
  color: #9da4ad;
  font-size: 16px;
  line-height: 1.7;
}

.auth-visual .eyebrow {
  color: var(--accent);
}

.auth-visual__foot {
  position: relative;
  z-index: 1;
}

.auth-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aab0b7;
  font-size: 13px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24c48e;
  box-shadow: 0 0 0 4px rgba(36, 196, 142, 0.12);
}

.auth-form-wrap {
  display: flex;
  padding: 40px 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.auth-page .auth-card {
  width: min(100%, 430px);
  max-width: none;
  margin: 0;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  display: block;
  box-shadow: var(--shadow-lg);
}

body.auth-page .auth-card--register {
  width: min(100%, 520px);
}

body.auth-page .auth-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

body.auth-page .auth-card .btn-primary {
  width: 100%;
}

.auth-switch {
  margin-top: 16px;
}

.auth-footer {
  margin-top: 24px;
  color: #9a9da2;
  font-size: 12px;
}

.footer-grid--auth {
  grid-template-columns: 1.4fr 1fr;
}

/* ——— App dashboards ——— */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.dash-grid > *,
.stats-grid > * {
  min-width: 0;
}

.hint-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hint-list li {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hint-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kpi-note {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ——— Install wizard (keep) ——— */
.auth-body {
  min-height: 100vh;
  background: #f1f5f9;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-aside {
  background: #134e4a;
  color: #ecfdf5;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-aside h1 {
  font-size: 36px;
  margin: 24px 0 12px;
}

.auth-card {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.install-shell {
  grid-template-columns: 0.9fr 1.1fr;
}

.auth-aside .brand {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.install-rail {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.install-rail li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  opacity: 0.55;
}

.install-rail li.is-active,
.install-rail li.is-done {
  opacity: 1;
}

.install-rail li > span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 253, 245, 0.35);
  font-size: 13px;
  font-weight: 700;
}

.install-rail li.is-active > span,
.install-rail li.is-done > span {
  background: #ecfdf5;
  color: #134e4a;
  border-color: #ecfdf5;
}

.install-rail b {
  display: block;
  font-size: 14px;
}

.install-rail small {
  color: #99f6e4;
}

.install-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.install-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.install-dots span.is-active,
.install-dots span.is-done {
  background: var(--accent);
}

.install-steps-viewport {
  position: relative;
  overflow: hidden;
}

.install-panel[hidden] {
  display: none !important;
}

.install-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.install-step-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.install-panel.is-entering {
  animation: billingInstallIn 0.36s ease forwards;
}

.install-panel.is-leaving {
  animation: billingInstallOut 0.22s ease forwards;
}

@keyframes billingInstallIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes billingInstallOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(-14px); }
}

.install-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.install-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.install-password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.install-db-test {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.install-db-status {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-muted);
  font-size: 13px;
  font-weight: 600;
}

.install-db-status.is-ok {
  border-color: #a7f3d0;
  color: var(--ok);
  background: var(--ok-soft);
}

.install-db-status.is-bad {
  border-color: #fecaca;
  color: var(--danger);
  background: var(--danger-soft);
}

.install-progress-bar {
  height: 8px;
  margin: 12px 0 20px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--bg-muted);
}

.install-progress-bar > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s ease;
}

.install-progress-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.install-progress-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.install-progress-list li > span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.install-progress-list li.is-active {
  color: var(--text);
}

.install-progress-list li.is-active > span {
  border-color: var(--accent);
}

.install-progress-list li.is-done {
  color: var(--ok);
}

.install-progress-list li.is-done > span {
  border-color: var(--ok);
  background: var(--ok);
}

.install-done {
  text-align: center;
}

.install-success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.install-done .btn {
  margin-top: 8px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.check-list .ok {
  color: var(--ok);
}

.check-list .bad {
  color: var(--danger);
}

@media (max-width: 1100px) {
  .price-grid,
  .land-strip__grid,
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .account-name {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-tools {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
  }

  .header-tools.is-open {
    display: flex;
  }

  .top-nav,
  .header-account {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .top-nav a {
    padding: 10px 8px;
    border-bottom: 0;
  }

  .top-nav a.is-active,
  .top-nav a:hover {
    background: var(--accent-soft);
    border-radius: 8px;
  }

  .nav-cta {
    text-align: center;
  }

  .land-hero__grid,
  body.auth-page .auth-shell,
  .auth-shell,
  .auth-page,
  .home-auth,
  .footer-grid,
  .footer-grid--auth,
  .form-grid,
  .stats-grid,
  .info-grid,
  .land-faq,
  .land-contact,
  .dash-grid,
  .land-cta__box,
  .lk-hero {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  body.auth-page .auth-visual {
    display: none;
  }

  .hero-facts,
  .price-grid,
  .land-strip__grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .land-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .price-card.is-featured {
    transform: none;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }
}

.page-hero {
  margin-bottom: 28px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.crumb {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.crumb a {
  color: var(--muted);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.doc-nav {
  display: grid;
  gap: 4px;
}

.doc-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.doc-nav a.is-active,
.doc-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  text-decoration: none;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin: 28px 0 10px;
  letter-spacing: -0.03em;
}

.prose p,
.prose li {
  color: #334155;
}

.prose pre {
  background: #f8fafc;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 12px;
  overflow: auto;
  font-size: 13px;
  border: 1px solid var(--line);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: left;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.news-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.news-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.info-card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 750;
}

.lk-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
}

.lk-hero__avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.lk-hero__info h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.lk-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.lk-hero__actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.shell-cabinet .site-main,
.shell-admin .site-main {
  padding-top: 22px;
}

/* ——— Публичная страница реквизитов ——— */
body.public-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.public-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.public-page__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.public-page__nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.public-page__main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.public-page__hero {
  margin-bottom: 24px;
}

.public-page__hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 4vw, 34px);
}

.public-page__hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 720px;
}

.public-page__grid {
  display: grid;
  gap: 16px;
}

.public-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.public-card--wide {
  grid-column: 1 / -1;
}

.public-card h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.public-dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.public-dl div {
  display: grid;
  gap: 2px;
}

.public-dl dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.public-dl dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.public-steps {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  font-size: 14px;
}

.public-page__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.public-page__main--doc {
  max-width: 820px;
}

.public-doc__lead {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f4fbf9;
  border: 1px solid rgba(15, 143, 126, 0.25);
  font-size: 14px;
  line-height: 1.6;
}

.public-prose {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.public-prose h2 {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.public-prose h2:first-child {
  margin-top: 0;
}

.public-prose p {
  margin: 0 0 10px;
}

.public-prose ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.public-prose li {
  margin-bottom: 6px;
}

.public-prose a {
  color: var(--accent-dark, #0f8f7e);
}

.public-dl--inline {
  margin-top: 8px;
}

@media (min-width: 720px) {
  .public-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

