/* Визуальный референс: go-up.info (Montserrat, teal / mint / золото) */
:root {
  --gu-teal: #00504d;
  --gu-teal-mid: #0a6b66;
  --gu-teal-dark: #023230;
  --gu-mint: #4dc7a0;
  --gu-cyan: #21f1e2;
  --gu-gold: #fdb32a;
  --gu-gold-soft: #ffdf9a;
  --gu-bg: #f6f4f3;
  --gu-bg-warm: #efe7e1;
  --gu-card: #ffffff;
  --gu-text: #2b241f;
  --gu-muted: #655d5d;
  --gu-border: #d2cdc9;
  --gu-danger: #c62828;
  --gu-radius: 12px;
  --gu-shadow: 0 8px 32px rgba(0, 32, 30, 0.08);
  --gu-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gu-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gu-text);
  background: var(--gu-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(33, 241, 226, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 60% at -10% 100%, rgba(253, 179, 42, 0.08), transparent 45%);
}

.gu-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gu-header {
  background: linear-gradient(135deg, var(--gu-teal-dark) 0%, var(--gu-teal) 45%, var(--gu-teal-mid) 100%);
  color: #fff;
  padding: 0 1.25rem;
  border-bottom: 3px solid var(--gu-cyan);
  box-shadow: var(--gu-shadow);
}

.gu-header__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
}

.gu-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.gu-brand__title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.gu-brand__sub {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gu-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.gu-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.gu-nav a:hover {
  background: rgba(33, 241, 226, 0.2);
  color: #fff;
}

.gu-nav span {
  opacity: 0.45;
  user-select: none;
}

.gu-nav form {
  display: inline;
  margin: 0;
}

.gu-nav form button {
  font-size: 0.78rem;
  padding: 0.32rem 0.85rem;
  box-shadow: 0 1px 8px rgba(253, 179, 42, 0.28);
}

.gu-site-block {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  background: var(--gu-card);
  border: 1px solid var(--gu-border);
  border-radius: var(--gu-radius);
  box-shadow: var(--gu-shadow);
  border-left: 4px solid var(--gu-mint);
}

.gu-site-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--gu-teal-dark);
}

.gu-main {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
}

.gu-main h1 {
  font-weight: 800;
  font-size: 1.65rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--gu-teal-dark);
}

.gu-main h2 {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--gu-teal);
}

.gu-footer {
  margin-top: auto;
  padding: 1rem 1.25rem 1.35rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gu-muted);
  border-top: 1px solid var(--gu-border);
  background: rgba(255, 255, 255, 0.65);
}

.gu-footer a {
  color: var(--gu-teal);
  font-weight: 600;
  text-decoration: none;
}

.gu-footer a:hover {
  text-decoration: underline;
}

/* Карточки и формы */
.card {
  background: var(--gu-card);
  border: 1px solid var(--gu-border);
  border-radius: var(--gu-radius);
  padding: 1.35rem 1.5rem;
  max-width: 32rem;
  box-shadow: var(--gu-shadow);
}

.card label {
  display: block;
  margin: 0.85rem 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gu-text);
}

.card input,
.card textarea,
.card select {
  width: 100%;
  max-width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--gu-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card input:focus,
.card textarea:focus,
.card select:focus {
  outline: none;
  border-color: var(--gu-mint);
  box-shadow: 0 0 0 3px rgba(33, 241, 226, 0.25);
}

button,
.card button,
input[type="submit"] {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gu-gold) 0%, #ffc139 100%);
  color: var(--gu-teal-dark);
  box-shadow: 0 2px 12px rgba(253, 179, 42, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}

button:hover,
.card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(253, 179, 42, 0.45);
}

button:active,
.card button:active {
  transform: translateY(0);
}

.btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--gu-teal-dark);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--gu-cyan);
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: rgba(33, 241, 226, 0.15);
  border-color: var(--gu-mint);
}

/* Таблицы */
table.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  background: var(--gu-card);
  border-radius: var(--gu-radius);
  overflow: hidden;
  border: 1px solid var(--gu-border);
  box-shadow: var(--gu-shadow);
}

table.tbl thead th {
  background: var(--gu-teal);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: none;
}

/* Чёрный список IP: ссылки сортировки в шапке (тёмный фон th) */
table.tbl.tbl--sortable-ip thead th a.adm-sort-link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
  transition: color 0.12s, border-color 0.12s;
}

table.tbl.tbl--sortable-ip thead th a.adm-sort-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

table.tbl.tbl--sortable-ip thead th a.adm-sort-link--active {
  color: #fff;
  font-weight: 800;
  border-bottom-color: rgba(255, 255, 255, 0.95);
}

table.tbl tbody td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--gu-border);
  vertical-align: top;
}

table.tbl tbody tr:last-child td {
  border-bottom: none;
}

table.tbl tbody tr:nth-child(even) {
  background: rgba(246, 244, 243, 0.65);
}

table.tbl tbody tr:hover td {
  background: rgba(33, 241, 226, 0.06);
}

/* Утилиты */
.err {
  color: var(--gu-danger);
  font-weight: 600;
}

.note,
.warn {
  color: var(--gu-muted);
  font-size: 0.9rem;
}

.warn {
  color: #b35900;
}

.sec {
  margin: 1.5rem 0;
}

ul.sum {
  margin: 0.5rem 0 1rem 1.2rem;
  padding: 0;
}

.nav {
  margin: 0.75rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nav a {
  font-weight: 600;
  color: var(--gu-teal);
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.nav a.btn {
  text-decoration: none;
}

pre.algo,
pre.code {
  max-height: 28rem;
  overflow: auto;
  background: var(--gu-teal-dark);
  color: #e8f5f4;
  padding: 1.1rem 1.25rem;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  border-radius: var(--gu-radius);
  border: 1px solid rgba(33, 241, 226, 0.25);
}

.flash {
  border-radius: var(--gu-radius);
  border: 1px solid var(--gu-mint);
  padding: 1rem 1.15rem;
  margin: 1rem 0;
  background: rgba(77, 199, 160, 0.12);
  color: var(--gu-teal-dark);
}

/* Главная: карточки API */
.gu-hero {
  max-width: 40rem;
}

.gu-hero p {
  margin: 0.5rem 0 1rem;
  color: var(--gu-muted);
}

.gu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.gu-panels {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  margin-top: 1.25rem;
}

.gu-panel {
  background: var(--gu-card);
  border: 1px solid var(--gu-border);
  border-radius: var(--gu-radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--gu-shadow);
  border-top: 3px solid var(--gu-cyan);
}

.gu-panel strong {
  color: var(--gu-teal);
  font-size: 0.95rem;
}

.gu-panel code {
  font-size: 0.82rem;
  background: var(--gu-bg-warm);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

@media (max-width: 520px) {
  .gu-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gu-main h1 {
    font-size: 1.35rem;
  }
}

/* ================================================================
   ЛИЧНЫЙ КАБИНЕТ (LkApp) — автономный дизайн
   ================================================================ */

/* ── Базовое тело ─────────────────────────────────────────────── */
.lk-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gu-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gu-text);
  background: #f0efed;
}

/* ── AUTH: страницы входа / регистрации ───────────────────────── */
.lk-body--auth {
  background:
    radial-gradient(ellipse 90% 70% at 10% 15%, rgba(77,199,160,.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 85%, rgba(33,241,226,.14) 0%, transparent 50%),
    radial-gradient(ellipse 120% 90% at 50% 105%, rgba(253,179,42,.08) 0%, transparent 45%)
    , #021a19;
}

.lk-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 1.25rem;
}

.lk-auth__card {
  width: 100%;
  max-width: 22rem;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 32px 80px rgba(0,10,8,.5), 0 0 0 1px rgba(255,255,255,.06) inset;
}

.lk-auth__brand {
  text-align: center;
  margin-bottom: 2rem;
}

.lk-auth__logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gu-teal-dark) 0%, var(--gu-teal-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,80,77,.4);
  color: var(--gu-cyan);
}

.lk-auth__logo svg { width: 26px; height: 26px; }

.lk-auth__title-wrap { font-size: 1.05rem; font-weight: 800; color: var(--gu-teal-dark); }

.lk-auth__sub { font-size: .72rem; font-weight: 600; color: var(--gu-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }

.lk-auth__card h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gu-teal-dark);
  margin: 0 0 1.5rem;
  letter-spacing: -.02em;
}

/* Fields */
.lk-field { margin-bottom: 1rem; }

.lk-field label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gu-text);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}

.lk-field input {
  width: 100%;
  padding: .7rem .9rem;
  font-family: var(--gu-font);
  font-size: .95rem;
  border: 1.5px solid #e2dedd;
  border-radius: 10px;
  background: #fafafa;
  color: var(--gu-text);
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
}

.lk-field input:focus {
  border-color: var(--gu-teal-mid);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(10,107,102,.12);
}

.lk-auth__actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }

.lk-btn-auth {
  width: 100%;
  padding: .78rem 1.5rem;
  font-family: var(--gu-font);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gu-teal) 0%, var(--gu-teal-mid) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,80,77,.35);
  transition: transform .12s, box-shadow .12s;
  letter-spacing: .01em;
}

.lk-btn-auth:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,80,77,.45); }
.lk-btn-auth:active { transform: translateY(0); }

.lk-auth__switch { text-align: center; font-size: .88rem; color: var(--gu-muted); }

.lk-auth__switch a {
  color: var(--gu-teal-mid);
  font-weight: 700;
  text-decoration: none;
}

.lk-auth__switch a:hover { text-decoration: underline; }

.lk-auth__footer-note {
  font-size: .73rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

.lk-auth__footer-note a { color: rgba(255,255,255,.5); text-decoration: none; }

.lk-alert {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  font-weight: 600;
}

.lk-alert--error {
  background: rgba(198,40,40,.08);
  border: 1px solid rgba(198,40,40,.22);
  color: var(--gu-danger);
}

.lk-alert--success {
  background: rgba(6,125,70,.1);
  border: 1px solid rgba(6,125,70,.25);
  color: #067d46;
}

/* ── APP LAYOUT ───────────────────────────────────────────────── */
.lk-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.lk-sidebar {
  width: 244px;
  flex-shrink: 0;
  background: #021a19;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.lk-sidebar__brand {
  padding: 1.5rem 1.35rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.lk-sidebar__brand-title {
  font-size: .98rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.lk-sidebar__brand-sub {
  font-size: .67rem;
  font-weight: 600;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .2rem;
}

.lk-sidebar__nav {
  padding: .9rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
}

.lk-sidebar__link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .62rem .8rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  transition: background .15s, color .15s;
}

.lk-sidebar__link:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.9);
}

.lk-sidebar__link--active {
  background: rgba(77,199,160,.16);
  color: #4dc7a0;
}

.lk-sidebar__link svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
.lk-sidebar__link--active svg { opacity: 1; }

.lk-sidebar__user {
  padding: .95rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.lk-sidebar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gu-teal) 0%, var(--gu-teal-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.lk-sidebar__user-info { min-width: 0; }

.lk-sidebar__email {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  word-break: break-all;
  line-height: 1.3;
}

.lk-sidebar__logout-wrap {
  padding: 0 .75rem 1.25rem;
  flex-shrink: 0;
}

.lk-sidebar__logout {
  width: 100%;
  padding: .58rem 1rem;
  font-family: var(--gu-font);
  font-size: .82rem;
  font-weight: 700;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-align: left;
  letter-spacing: .01em;
  box-shadow: none;
}

.lk-sidebar__logout:hover {
  background: rgba(198,40,40,.14);
  border-color: rgba(198,40,40,.3);
  color: #ff7070;
  transform: none;
  box-shadow: none;
}

/* Mobile top header */
.lk-mhdr {
  display: none;
  position: sticky;
  top: 0;
  z-index: 300;
  background: #021a19;
  padding: 0 1rem;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.lk-mhdr__brand { font-size: .92rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }

.lk-mhdr__burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: .45rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 8px;
  transition: background .15s;
  box-shadow: none;
}

.lk-mhdr__burger:hover { background: rgba(255,255,255,.08); transform: none; box-shadow: none; }

.lk-mhdr__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}

.lk-mhdr__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lk-mhdr__burger.is-open span:nth-child(2) { opacity: 0; }
.lk-mhdr__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Overlay */
.lk-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 150;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.lk-overlay.is-visible { display: block; }

/* Main content */
.lk-main {
  flex: 1;
  margin-left: 244px;
  min-height: 100vh;
  padding: 2.25rem 2rem 4rem;
}

.lk-main__inner {
  max-width: 880px;
  margin: 0 auto;
}

/* Page header */
.lk-page-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.lk-h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -.03em;
  margin: 0 0 .3rem;
  line-height: 1.15;
}

.lk-page-desc { font-size: .88rem; color: var(--gu-muted); margin: 0; }

/* Primary button */
.lk-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .62rem 1.25rem;
  font-family: var(--gu-font);
  font-weight: 700;
  font-size: .875rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gu-teal) 0%, var(--gu-teal-mid) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 14px rgba(0,80,77,.3);
  transition: transform .12s, box-shadow .12s;
  white-space: nowrap;
}

.lk-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(0,80,77,.4); color: #fff; }
.lk-btn-primary:active { transform: translateY(0); }
.lk-btn-primary svg { width: 16px; height: 16px; }

/* Sites grid */
.lk-sites-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }

/* Empty state */
.lk-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--gu-muted);
}

.lk-empty__icon { font-size: 2.8rem; margin-bottom: 1rem; opacity: .35; }
.lk-empty__title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: #666; }
.lk-empty__sub { font-size: .85rem; margin-bottom: 1.5rem; }

/* Site card */
.lk-site-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.055);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}

.lk-site-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.1), 0 0 0 1px rgba(0,80,77,.09);
  transform: translateY(-2px);
}

.lk-site-card__head {
  padding: 1.2rem 1.5rem 1rem;
  border-bottom: 1px solid #f0efed;
  display: flex;
  align-items: center;
  gap: .9rem;
}

.lk-site-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gu-teal-dark) 0%, var(--gu-teal-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gu-cyan);
}

.lk-site-card__icon svg { width: 20px; height: 20px; }

.lk-site-card__meta { min-width: 0; flex: 1; }

.lk-site-card__domain {
  font-size: .98rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lk-site-card__name { font-size: .78rem; color: var(--gu-muted); margin-top: .12rem; }

.lk-site-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  background: rgba(77,199,160,.12);
  color: #0a6b66;
  font-size: .7rem;
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: 999px;
  letter-spacing: .03em;
}

.lk-site-card__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gu-mint);
}

.lk-site-card__keys { padding: 1.1rem 1.5rem 1.35rem; display: flex; flex-direction: column; gap: .9rem; }

.lk-rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 42rem;
}

.lk-rules-list__item { margin: 0 0 .55rem; }

.lk-rules-list__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid #e8e5e3;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s, box-shadow .12s;
}

.lk-rules-list__link:hover {
  border-color: var(--gu-teal-mid, #3d8b84);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.lk-rules-list__icon {
  flex-shrink: 0;
  color: var(--gu-muted);
  display: flex;
}

.lk-rules-list__icon svg { width: 22px; height: 22px; }

.lk-rules-list__text { flex: 1; min-width: 0; }

.lk-rules-list__domain {
  font-size: .95rem;
  font-weight: 600;
  color: #222;
}

.lk-rules-list__meta {
  font-size: .8rem;
  color: var(--gu-muted);
  margin-top: .15rem;
}

.lk-rules-list__chev {
  flex-shrink: 0;
  color: #bbb;
  font-weight: 600;
  font-size: 1.1rem;
}

.lk-empty__icon svg {
  width: 2.2rem;
  height: 2.2rem;
  opacity: .35;
}

.lk-key__label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gu-muted);
  margin-bottom: .3rem;
}

.lk-key__row {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: #f7f6f5;
  border: 1px solid #e8e5e3;
  border-radius: 9px;
  padding: .48rem .55rem .48rem .8rem;
}

.lk-key__value {
  flex: 1;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: .8rem;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  user-select: all;
}

.lk-key__value--masked { letter-spacing: .16em; color: #aaa; font-size: .72rem; }

.lk-key__btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: .28rem;
  border-radius: 6px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  box-shadow: none;
}

.lk-key__btn:hover { background: rgba(0,0,0,.07); color: var(--gu-teal-mid); transform: none; box-shadow: none; }
.lk-key__btn:active { transform: none; }
.lk-key__btn svg { width: 15px; height: 15px; }

/* Toast */
.lk-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1a1a1a;
  color: #fff;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .22s, transform .22s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.lk-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Form card (new site etc.) */
.lk-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.055);
  padding: 2rem;
  max-width: 28rem;
}

/* Правила сайта: на всю ширину lk-main__inner (до 880px) */
.lk-form-card--wide {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.lk-form-card--rules-mb {
  margin-bottom: 1.25rem;
}

/* Строка: чекбоксы/поля слева, пояснение справа */
.lk-opt-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.25rem;
}

.lk-opt-row {
  display: grid;
  grid-template-columns: minmax(10.5rem, 13rem) minmax(0, 1fr);
  gap: 0.65rem 1.5rem;
  align-items: start;
  padding: 1.15rem 0;
  border-top: 1px solid #eceae8;
}

.lk-opt-rows > .lk-opt-row:first-child {
  border-top: none;
  padding-top: 0.35rem;
}

.lk-opt-row__ctrl {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lk-opt-row__cb-wrap input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
  accent-color: var(--gu-teal-mid);
}

.lk-opt-row__radios {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 0.1rem;
}

.lk-opt-row__radios label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gu-text);
  margin: 0;
  cursor: pointer;
}

.lk-opt-row__radios input[type='radio'] {
  width: auto;
  margin: 0;
  accent-color: var(--gu-teal-mid);
}

.lk-opt-row__number {
  width: 100%;
  max-width: 10.5rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--gu-font);
  font-size: 0.9rem;
  border: 1.5px solid #e2dedd;
  border-radius: 9px;
  background: #fafafa;
  color: var(--gu-text);
  box-sizing: border-box;
}

.lk-opt-row__number:focus {
  border-color: var(--gu-teal-mid);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 107, 102, 0.1);
}

.lk-opt-row__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.4rem;
  line-height: 1.4;
  cursor: pointer;
  display: block;
}

.lk-opt-row__desc .lk-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: none;
}

.lk-rules-form__footer {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #eceae8;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--gu-muted);
}

.lk-rules-form__footer code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.88em;
  background: #f0efed;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--gu-teal-dark);
}

.lk-rules-form__actions {
  margin-top: 1.25rem;
}

.lk-form-card .lk-field { margin-bottom: 1.15rem; }

.lk-form-card .lk-field label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gu-text);
  margin-bottom: .38rem;
}

.lk-form-card .lk-field input,
.lk-form-card .lk-field textarea {
  width: 100%;
  padding: .65rem .85rem;
  font-family: var(--gu-font);
  font-size: .93rem;
  border: 1.5px solid #e2dedd;
  border-radius: 9px;
  background: #fafafa;
  color: var(--gu-text);
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
}

.lk-form-card .lk-field input:focus,
.lk-form-card .lk-field textarea:focus {
  border-color: var(--gu-teal-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10,107,102,.1);
}

.lk-form-card .lk-field .lk-hint { font-size: .77rem; color: var(--gu-muted); margin-top: .3rem; }

.lk-back-link {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--gu-teal-mid);
  text-decoration: none;
  margin-bottom: 1.5rem;
  opacity: .75;
  transition: opacity .15s;
}

.lk-back-link:hover { opacity: 1; }
.lk-back-link svg { width: 15px; height: 15px; }

/* Docs */
.lk-docs { max-width: 700px; }

.lk-docs h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -.01em;
  margin: 2.25rem 0 .65rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e5e3;
}

.lk-docs h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.lk-docs h3 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gu-teal-mid);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 1.5rem 0 .5rem;
}

.lk-docs p, .lk-docs ol, .lk-docs ul, .lk-docs dl { font-size: .9rem; color: #444; margin: .5rem 0; line-height: 1.7; }

.lk-docs ol, .lk-docs ul { padding-left: 1.4rem; }

.lk-docs li { margin-bottom: .35rem; }

.lk-docs-dl {
  list-style: none;
  padding-left: 0;
  margin: .65rem 0 1rem;
}

.lk-docs-dl li { margin-bottom: .55rem; }

.lk-docs-dl a { font-weight: 600; color: var(--gu-teal-dark); }

.lk-docs-dl-def { margin: .65rem 0 1.1rem; }

.lk-docs-dl-def dt {
  margin-top: .75rem;
  font-weight: 700;
  font-size: .88rem;
}

.lk-docs-dl-def dt:first-child { margin-top: 0; }

.lk-docs-dl-def dd {
  margin: .28rem 0 0;
  padding: 0;
  font-size: .9rem;
  line-height: 1.65;
  color: #444;
}

.lk-docs-ol { padding-left: 1.35rem; }

.lk-docs code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: .82em;
  background: #f0efed;
  padding: .15rem .4rem;
  border-radius: 5px;
  color: var(--gu-teal-dark);
}

.lk-docs pre.code {
  max-height: 22rem;
  overflow: auto;
  background: #021a19;
  color: #c8f7f4;
  padding: 1.25rem 1.4rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: .79rem;
  line-height: 1.58;
  white-space: pre;
  border-radius: 12px;
  border: 1px solid rgba(33,241,226,.15);
  margin: .6rem 0 1rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lk-mhdr { display: flex; }

  .lk-sidebar {
    top: 0;
    transform: translateX(-100%);
  }

  .lk-sidebar.is-open { transform: translateX(0); }

  .lk-main { margin-left: 0; padding: 1.35rem 1rem 4rem; }

  .lk-h1 { font-size: 1.35rem; }

  .lk-page-hdr { flex-direction: column; align-items: flex-start; gap: .75rem; margin-bottom: 1.35rem; }

  .lk-site-card__head { flex-wrap: wrap; }

  .lk-site-card__keys { padding: .9rem 1rem 1.1rem; }
}

@media (max-width: 420px) {
  .lk-auth__card { padding: 2rem 1.25rem 1.5rem; }
  .lk-key__value { font-size: .73rem; }
  .lk-form-card { padding: 1.5rem 1.1rem; }
}

@media (max-width: 640px) {
  .lk-opt-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .lk-opt-row__ctrl {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
  }

  .lk-opt-row__radios {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
}

/* ================================================================
   ГЛАВНАЯ СТРАНИЦА (home)
   ================================================================ */

.gu-home-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gu-font);
  font-size: 15px;
  color: #fff;
  background:
    radial-gradient(ellipse 85% 65% at 8% 12%, rgba(77,199,160,.20) 0%, transparent 52%),
    radial-gradient(ellipse 65% 55% at 92% 88%, rgba(33,241,226,.12) 0%, transparent 48%),
    radial-gradient(ellipse 110% 80% at 50% 108%, rgba(253,179,42,.07) 0%, transparent 45%),
    #021a19;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.gu-home {
  width: 100%;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
}

.gu-home__brand { text-align: center; }

.gu-home__logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gu-teal) 0%, var(--gu-teal-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 12px 36px rgba(0,80,77,.55), 0 0 0 1px rgba(33,241,226,.18) inset;
  color: var(--gu-cyan);
}

.gu-home__logo svg { width: 30px; height: 30px; }

.gu-home__title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.045em;
  margin: 0 0 .65rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, rgba(33,241,226,.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gu-home__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.gu-home__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.gu-home__card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gu-home__card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  color: #fff;
}

.gu-home__card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(77,199,160,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gu-mint);
  margin-bottom: .25rem;
}

.gu-home__card-icon svg { width: 20px; height: 20px; }

.gu-home__card--admin .gu-home__card-icon { background: rgba(253,179,42,.14); color: #fdb32a; }
.gu-home__card--admin:hover { border-color: rgba(253,179,42,.28); }

.gu-home__card-title { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; }

.gu-home__card-sub { font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.45; }

.gu-home__api {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.gu-home__api-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  margin-bottom: .25rem;
}

.gu-home__api p { margin: 0; font-size: .87rem; color: rgba(255,255,255,.6); line-height: 1.6; }

.gu-home__api code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: .83em;
  background: rgba(33,241,226,.1);
  color: var(--gu-cyan);
  padding: .12rem .4rem;
  border-radius: 4px;
  letter-spacing: .01em;
}

.gu-home__footer { font-size: .73rem; color: rgba(255,255,255,.2); text-align: center; }
.gu-home__footer a { color: rgba(255,255,255,.35); text-decoration: none; }
.gu-home__footer a:hover { color: rgba(255,255,255,.6); }

.gu-home__docline { margin: 0; }
.gu-home__doclink {
  color: rgba(33, 241, 226, 0.92);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 241, 226, 0.35);
}
.gu-home__doclink:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

/* ── Публичная документация (/docs) ── */
.gu-doc-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gu-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gu-text);
  background: var(--gu-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(33, 241, 226, 0.1), transparent 50%),
    radial-gradient(ellipse 80% 60% at -10% 100%, rgba(253, 179, 42, 0.06), transparent 45%);
}

.gu-doc-shell {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.gu-doc-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--gu-border);
}

.gu-doc-back {
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gu-teal);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--gu-border);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.gu-doc-back:hover {
  border-color: var(--gu-mint);
  background: #fff;
  color: var(--gu-teal-dark);
}

.gu-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.gu-doc-nav__link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gu-teal);
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gu-doc-nav__link:hover {
  background: rgba(33, 241, 226, 0.1);
  border-color: rgba(33, 241, 226, 0.35);
}

.gu-doc-nav__link--current {
  background: rgba(0, 80, 77, 0.08);
  border-color: var(--gu-teal);
  color: var(--gu-teal-dark);
}

.gu-doc-main {
  margin-bottom: 2.5rem;
}

.gu-doc-h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gu-teal-dark);
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.gu-doc-lead {
  font-size: 0.98rem;
  color: var(--gu-muted);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.gu-doc-lead a {
  font-weight: 600;
  color: var(--gu-teal);
}

.gu-doc-lead a:hover {
  color: var(--gu-teal-mid);
}

.gu-doc-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gu-doc-toc li {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--gu-radius);
  border: 1px solid var(--gu-border);
  background: var(--gu-card);
  box-shadow: var(--gu-shadow);
}

.gu-doc-toc a {
  text-decoration: none;
  color: inherit;
}

.gu-doc-toc__title {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--gu-teal-dark);
  margin-bottom: 0.35rem;
}

.gu-doc-toc a:hover .gu-doc-toc__title {
  color: var(--gu-teal-mid);
}

.gu-doc-toc__desc {
  display: block;
  font-size: 0.88rem;
  color: var(--gu-muted);
  line-height: 1.45;
}

.gu-doc-pre {
  margin: 0;
  padding: 1.15rem 1.35rem;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--gu-card);
  border: 1px solid var(--gu-border);
  border-radius: var(--gu-radius);
  box-shadow: var(--gu-shadow);
  overflow-x: auto;
}

.gu-doc-foot {
  font-size: 0.78rem;
  color: var(--gu-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--gu-border);
}

.gu-doc-foot a {
  color: var(--gu-teal);
  font-weight: 600;
  text-decoration: none;
}

.gu-doc-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .gu-home__title { font-size: 1.9rem; }
  .gu-home__cards { grid-template-columns: 1fr; }
  .gu-home__api { padding: 1rem 1.1rem; }
}

/* ================================================================
   ADMIN MODE: золотой акцент вместо mint
   ================================================================ */

/* ── Admin main content ── */
.lk-main__inner--admin {
  max-width: 1100px;
}

.lk-main__inner--admin h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gu-teal-dark);
  letter-spacing: -.035em;
  margin: 0 0 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gu-border);
  line-height: 1.15;
}

.lk-main__inner--admin h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gu-teal);
  letter-spacing: -.02em;
  margin: 2rem 0 .75rem;
}

.lk-main__inner--admin .card {
  max-width: 38rem;
}

/* ── Утверждённые правила: иконки действий ── */
.adm-rule-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  vertical-align: middle;
}

.adm-icon-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.adm-icon-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--gu-border);
  background: #fff;
  color: var(--gu-teal-mid);
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.12s;
  box-shadow: 0 1px 2px rgba(0, 32, 30, 0.06);
}

.adm-icon-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.adm-icon-btn:hover {
  border-color: rgba(33, 241, 226, 0.55);
  background: rgba(33, 241, 226, 0.08);
  color: var(--gu-teal);
  box-shadow: 0 4px 14px rgba(0, 80, 77, 0.12);
  transform: translateY(-1px);
}

.adm-icon-btn:active {
  transform: translateY(0);
}

.adm-icon-btn--edit:hover {
  border-color: rgba(77, 199, 160, 0.5);
  background: rgba(77, 199, 160, 0.1);
  color: var(--gu-mint);
}

.adm-icon-btn--copy:hover {
  border-color: rgba(0, 80, 77, 0.35);
  background: rgba(0, 80, 77, 0.06);
}

.adm-icon-btn--toggle-on {
  color: var(--gu-mint);
  border-color: rgba(77, 199, 160, 0.45);
  background: rgba(77, 199, 160, 0.08);
}

.adm-icon-btn--toggle-on:hover {
  border-color: rgba(253, 179, 42, 0.55);
  background: rgba(253, 179, 42, 0.12);
  color: #c98500;
}

.adm-icon-btn--toggle-off {
  color: var(--gu-muted);
  background: rgba(246, 244, 243, 0.9);
}

.adm-icon-btn--toggle-off:hover {
  border-color: rgba(77, 199, 160, 0.45);
  color: var(--gu-teal);
  background: rgba(77, 199, 160, 0.1);
}

.adm-icon-btn--danger {
  color: var(--gu-danger);
  border-color: rgba(198, 40, 40, 0.25);
  background: rgba(255, 255, 255, 0.98);
}

.adm-icon-btn--danger:hover {
  border-color: rgba(198, 40, 40, 0.45);
  background: rgba(198, 40, 40, 0.08);
  color: #a31818;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.12);
}

/* Сброс глобальных «pill»-кнопок для иконок в таблице правил */
.adm-icon-form button.adm-icon-btn {
  font-family: inherit;
  font-size: 0;
  font-weight: 600;
  border-radius: 10px;
  background: #fff;
  color: var(--gu-teal-mid);
  box-shadow: 0 1px 2px rgba(0, 32, 30, 0.06);
}

.adm-icon-form button.adm-icon-btn:hover {
  box-shadow: 0 4px 14px rgba(0, 80, 77, 0.12);
}

/* ── Admin mode: gold active accent ── */
[data-adm] .lk-sidebar__link--active {
  background: rgba(253,179,42,.14);
  color: #fdb32a;
}

[data-adm] .lk-sidebar__link--active svg { opacity: 1; color: #fdb32a; }

[data-adm] .lk-sidebar__brand-sub { color: rgba(253,179,42,.45); }

/* ── Публичный лендинг (главная) ─────────────────────────────── */
.gu-lp-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gu-font);
  font-size: 16px;
  line-height: 1.55;
  color: #e8f4f2;
  background: linear-gradient(165deg, #012a28 0%, #023c38 38%, #045a52 100%);
}

.gu-lp {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gu-lp__top {
  border-bottom: 1px solid rgba(33, 241, 226, 0.15);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}

.gu-lp__top-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gu-lp__logo-mark {
  display: flex;
  color: var(--gu-cyan);
}

.gu-lp__brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  flex: 1;
}

.gu-lp__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.gu-lp__nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.gu-lp__nav a:hover {
  color: #fff;
}

.gu-lp__nav-cta {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gu-mint), #2a9d82);
  color: #021a19 !important;
  box-shadow: 0 4px 20px rgba(77, 199, 160, 0.35);
}

.gu-lp__nav-cta:hover {
  filter: brightness(1.06);
  color: #021a19 !important;
}

.gu-lp__hero {
  flex: 1;
  padding: 2.5rem 1.25rem 3rem;
}

.gu-lp__hero-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.gu-lp__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(253, 179, 42, 0.2);
  color: var(--gu-gold-soft);
  border: 1px solid rgba(253, 179, 42, 0.35);
  margin-bottom: 1.25rem;
}

.gu-lp__h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gu-lp__accent {
  color: var(--gu-cyan);
  text-shadow: 0 0 40px rgba(33, 241, 226, 0.35);
}

.gu-lp__lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(232, 244, 242, 0.88);
  max-width: 40rem;
}

.gu-lp__hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gu-lp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}

.gu-lp__btn:hover {
  transform: translateY(-1px);
}

.gu-lp__btn--primary {
  background: linear-gradient(135deg, var(--gu-mint), #3db89a);
  color: #021a19;
  box-shadow: 0 8px 28px rgba(77, 199, 160, 0.4);
}

.gu-lp__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.gu-lp__section {
  padding: 2.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.12);
}

.gu-lp__section--alt {
  background: rgba(0, 0, 0, 0.2);
}

.gu-lp__section-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.gu-lp__h2 {
  margin: 0 0 1.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
}

.gu-lp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.15rem;
}

.gu-lp__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--gu-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--gu-shadow);
}

.gu-lp__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gu-cyan);
}

.gu-lp__card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(232, 244, 242, 0.82);
  line-height: 1.55;
}

.gu-lp__card code {
  font-size: 0.82em;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.gu-lp__steps {
  margin: 0;
  padding-left: 1.25rem;
  color: rgba(232, 244, 242, 0.88);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.gu-lp__steps li {
  margin-bottom: 0.75rem;
}

.gu-lp__note {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.gu-lp__note a {
  color: var(--gu-cyan);
}

.gu-lp__footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.gu-lp__footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.gu-lp__footer a:hover {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 520px) {
  .gu-lp__nav {
    width: 100%;
    justify-content: flex-start;
  }
}
