/* Portal24 — вход по SMS + кабинет (матовая угольная палитра) */
:root {
  --g24-auth-accent: #1f1f1f;
  --g24-auth-accent-hover: #2c2c2c;
  --g24-auth-accent-soft: rgba(31, 31, 31, 0.07);
  --g24-auth-text: #171717;
  --g24-auth-muted: #737373;
  --g24-auth-border: #e5e5e5;
  --g24-auth-radius: 24px;
  --g24-sidebar-bg: #2a2b2e;
  --g24-sidebar-bg-hover: rgba(255, 255, 255, 0.06);
  --g24-sidebar-text: #e8e8ea;
  --g24-sidebar-muted: #9a9ba0;
  --g24-sidebar-border: rgba(255, 255, 255, 0.07);
}

/* Кнопка в шапке (fallback, если glass CSS ещё не подхватил) */
.g24-auth-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--g24-auth-border);
  border-radius: 999px;
  background: #fff;
  color: var(--g24-auth-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.g24-auth-header-btn:hover {
  border-color: var(--g24-auth-accent);
  color: var(--g24-auth-accent);
  text-decoration: none;
}
.g24-auth-header-btn--primary {
  background: var(--g24-auth-accent);
  border-color: var(--g24-auth-accent);
  color: #fff;
  box-shadow: none;
}
.g24-auth-header-btn--primary:hover {
  background: var(--g24-auth-accent-hover);
  border-color: var(--g24-auth-accent-hover);
  color: #fff;
}

/* Оверлей + модалка — матовая угольная палитра (как в референсе) */
.g24-auth-overlay {
  --g24-auth-accent: #1f1f1f;
  --g24-auth-accent-hover: #2c2c2c;
  --g24-auth-accent-soft: rgba(31, 31, 31, 0.07);
  --g24-auth-text: #171717;
  --g24-auth-muted: #737373;
  --g24-auth-border: #e5e5e5;
  --g24-auth-surface: #f5f5f5;
  --g24-auth-focus: rgba(31, 31, 31, 0.1);

  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 23, 23, 0.52);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  animation: g24AuthFadeIn 0.22s ease;
}
.g24-auth-overlay[hidden] {
  display: none !important;
}
@keyframes g24AuthFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.g24-auth-modal,
.g24-auth-modal--v2 {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 30px 26px 26px;
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 24px 56px rgba(23, 23, 23, 0.18),
    0 2px 8px rgba(23, 23, 23, 0.04);
  text-align: center;
  animation: g24AuthPop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes g24AuthPop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.g24-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--g24-auth-surface);
  color: #737373;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.g24-auth-close:hover {
  background: #ebebeb;
  color: #171717;
}

.g24-auth-brand {
  margin: 4px 0 14px;
}
.g24-auth-logo {
  display: block;
  max-width: 180px;
  width: auto;
  height: auto;
  max-height: 36px;
  margin: 0 auto;
  object-fit: contain;
}

.g24-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--g24-auth-surface);
  color: #525252;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--g24-auth-border);
}

.g24-auth-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--g24-auth-text);
}

.g24-auth-lead {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--g24-auth-muted);
  text-align: center;
}

.g24-auth-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.g24-auth-trust li {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--g24-auth-surface);
  border: 1px solid var(--g24-auth-border);
  color: #525252;
  font-size: 11.5px;
  font-weight: 600;
}

.g24-auth-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--g24-auth-text);
  text-align: left;
}
#g24AuthStepCode .g24-auth-label {
  text-align: center;
}

.g24-auth-phone-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--g24-auth-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--g24-auth-surface);
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.g24-auth-phone-field:focus-within {
  border-color: #a3a3a3;
  background: #fff;
  box-shadow: 0 0 0 3px var(--g24-auth-focus);
}
.g24-auth-prefix {
  padding: 14px 12px 14px 16px;
  font-weight: 700;
  color: var(--g24-auth-text);
  border-right: 1px solid var(--g24-auth-border);
  background: transparent;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.g24-auth-input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  font-size: 1.05rem;
  outline: none;
  background: transparent;
  color: var(--g24-auth-text);
}
/* OTP — 5 ячеек */
.g24-auth-otp {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 0 6px;
}
.g24-auth-otp__cells {
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.g24-auth-otp__cell {
  width: 44px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--g24-auth-border);
  border-radius: 12px;
  background: var(--g24-auth-surface);
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--g24-auth-text);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.g24-auth-otp__cell.is-filled {
  background: #fff;
  border-color: #a3a3a3;
}
.g24-auth-otp__cell.is-active {
  border-color: var(--g24-auth-accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--g24-auth-focus);
}
.g24-auth-otp__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px; /* iOS zoom guard */
  letter-spacing: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  cursor: text;
}
.g24-auth-otp:focus-within .g24-auth-otp__cell.is-active {
  border-color: var(--g24-auth-accent);
  box-shadow: 0 0 0 3px var(--g24-auth-focus);
}

.g24-auth-hint,
.g24-auth-meta {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--g24-auth-muted);
  text-align: center;
  line-height: 1.4;
}
.g24-auth-hint {
  margin: 0 0 10px;
}

.g24-auth-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  font-size: 0.85rem;
  color: #b91c1c;
  text-align: left;
}

/* Матовая угольная кнопка — без градиента и яркого glow */
.g24-auth-submit {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 16px;
  background: #1f1f1f;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.18s ease, transform 0.15s ease;
}
.g24-auth-submit:hover:not(:disabled) {
  background: #2c2c2c;
  transform: none;
  filter: none;
  box-shadow: none;
}
.g24-auth-submit:active:not(:disabled) {
  background: #171717;
}
.g24-auth-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.g24-auth-submit[data-loading="1"] .g24-auth-submit__label::after {
  content: '…';
}

.g24-auth-back {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  border: none;
  background: none;
  color: var(--g24-auth-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.g24-auth-back:hover {
  color: var(--g24-auth-text);
}

.g24-auth-sent-to {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--g24-auth-muted);
  text-align: center;
}
.g24-auth-sent-to strong {
  color: var(--g24-auth-text);
  font-weight: 700;
}

.g24-auth-resend {
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.g24-auth-resend-meta {
  margin: 0;
  min-height: 1.2em;
  font-variant-numeric: tabular-nums;
}
.g24-auth-resend-meta #g24AuthResendTimer {
  font-weight: 600;
  color: #737373;
}

.g24-auth-resend-btn {
  border: 1px solid var(--g24-auth-border);
  background: #fff;
  color: #404040;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.g24-auth-resend-btn:hover:not(:disabled) {
  background: var(--g24-auth-surface);
  border-color: #d4d4d4;
  color: #171717;
}
.g24-auth-resend-btn:disabled {
  color: #a3a3a3;
  cursor: not-allowed;
  background: #fafafa;
}

@media (max-width: 400px) {
  .g24-auth-otp__cell {
    width: 40px;
    height: 44px;
    font-size: 1.25rem;
  }
  .g24-auth-otp__cells {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .g24-auth-modal,
  .g24-auth-modal--v2 {
    padding: 28px 18px 22px;
    border-radius: 20px;
  }
  .g24-auth-title { font-size: 1.35rem; }
}

/* Личный кабинет */
.g24-cabinet-main {
  padding: 32px 0 48px;
}
/* overflow-x:hidden на html/body в темах ломает sticky.
   clip не создаёт scroll-container. */
html:has(body.g24-cabinet-page),
body.g24-cabinet-page {
  overflow-x: clip !important;
}
/* ПК: кабинет на всю высоту экрана (без верхней шапки сайта) */
body.g24-cabinet-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* В кабинете (после входа) скрываем шапку сайта: лого, поиск, «Кабинет» */
body.g24-cabinet-page:not(.g24-cabinet-guest) .site-header,
body.g24-cabinet-page:not(.g24-cabinet-guest) #masthead,
body.g24-cabinet-page:not(.g24-cabinet-guest) .header-mobile-search-panel,
body.g24-cabinet-page:not(.g24-cabinet-guest) .header-mobile-panel {
  display: none !important;
}
/* Навигация портала тоже скрыта после входа */
body.g24-cabinet-page:not(.g24-cabinet-guest) .main-navigation,
body.g24-cabinet-page:not(.g24-cabinet-guest) #site-navigation,
body.g24-cabinet-page:not(.g24-cabinet-guest) .p24-nav,
body.g24-cabinet-page:not(.g24-cabinet-guest) .site-header.p24-glass--cabinet .main-navigation,
body.g24-cabinet-page:not(.g24-cabinet-guest) .site-header.p24-glass--cabinet #site-navigation,
body.g24-cabinet-page:not(.g24-cabinet-guest) .site-header.p24-glass--cabinet .p24-nav {
  display: none !important;
}
body.g24-cabinet-page .site-content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
body.g24-cabinet-page .g24-cabinet-main,
html body:has(.site-header.p24-glass).g24-cabinet-page .g24-cabinet-main,
html body.g24-cabinet-page:has(.site-header.p24-glass) .g24-cabinet-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  padding: 0;
  padding-top: 0;
  margin: 0;
}
/* Подвал сайта скрыт только после входа */
body.g24-cabinet-page:not(.g24-cabinet-guest) .site-footer,
body.g24-cabinet-page:not(.g24-cabinet-guest) footer,
body.g24-cabinet-page:not(.g24-cabinet-guest) .p24-footer-modern,
body.g24-cabinet-page:not(.g24-cabinet-guest) .site-info,
body.g24-cabinet-page:not(.g24-cabinet-guest) #colophon {
  display: none !important;
}

/* Гость на /kabinet/vhod/: обычная страница сайта — меню + подвал, без тёмной колонки */
body.g24-cabinet-guest {
  display: block;
  min-height: 100vh;
}
body.g24-cabinet-guest .g24-cabinet-main {
  display: block !important;
  flex: none !important;
  padding: 96px 16px 48px !important; /* место под fixed-шапку сайта */
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
body.g24-cabinet-guest .g24-cabinet-layout {
  display: block !important;
  grid-template-columns: none !important;
  background: none !important;
  min-height: 0 !important;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 !important;
  width: 100%;
}
body.g24-cabinet-guest .g24-cabinet-content,
body.g24-cabinet-guest .g24-cabinet-content--full {
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  max-width: none;
  grid-column: auto;
}
body.g24-cabinet-guest .g24-cabinet__guest {
  text-align: center;
  padding: 40px 28px 36px;
  background: #fff;
  border: 1px solid var(--g24-auth-border, #e5e7eb);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
body.g24-cabinet-guest .g24-cabinet__guest h1 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}
body.g24-cabinet-guest .g24-cabinet__guest p {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.45;
}
body.g24-cabinet-guest .g24-cabinet__login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 100%;
}
@media (max-width: 900px) {
  body.g24-cabinet-page .g24-cabinet-main,
  html body.g24-cabinet-page:has(.site-header.p24-glass) .g24-cabinet-main {
    padding-top: 16px;
  }
}
.g24-cabinet {
  max-width: 720px;
}
.g24-cabinet__header h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}
.g24-cabinet__phone {
  margin: 0 0 24px;
  color: var(--g24-auth-muted);
  font-size: 1.05rem;
}
.g24-cabinet__card {
  background: #fff;
  border: 1px solid var(--g24-auth-border);
  border-radius: var(--g24-auth-radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.g24-cabinet__card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.g24-cabinet__card--muted {
  background: #f9fafb;
}
.g24-cabinet__card--muted p {
  margin: 0;
  color: var(--g24-auth-muted);
  font-size: 0.95rem;
}
.g24-cabinet__meta {
  list-style: none;
  margin: 0;
  padding: 0;
}
.g24-cabinet__meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--g24-auth-border);
}
.g24-cabinet__meta li:last-child {
  border-bottom: none;
}
.g24-cabinet__meta span {
  color: var(--g24-auth-muted);
}
.g24-cabinet__logout {
  margin-top: 8px;
  padding: 12px 24px;
  border: 1px solid var(--g24-auth-border);
  border-radius: 12px;
  background: #fff;
  color: #dc2626;
  font-weight: 600;
  cursor: pointer;
}
.g24-cabinet__guest {
  text-align: center;
  padding: 48px 24px;
  background: #f9fafb;
  border-radius: var(--g24-auth-radius);
}
.g24-cabinet__guest h1 {
  margin-top: 0;
}
.g24-cabinet__login-btn {
  max-width: 280px;
  margin: 0 auto;
}

.g24-cabinet-layout {
  --g24-cab-sidebar-w: 210px; /* было 280px (−25%) */
  --g24-ai-dock-w: 340px;
  --g24-ai-rail-w: 52px;
  display: grid;
  grid-template-columns: var(--g24-cab-sidebar-w) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  max-width: 1450px;
  width: 100%;
  margin: 0;
  min-height: 100%;
  flex: 1 1 auto;
  overflow: visible !important;
  box-sizing: border-box;
  /* Тёмная колонка всегда до низа layout → до подвала */
  background: linear-gradient(
    to right,
    var(--g24-sidebar-bg) 0,
    var(--g24-sidebar-bg) var(--g24-cab-sidebar-w),
    transparent var(--g24-cab-sidebar-w)
  );
}
body.g24-cabinet-page .g24-cabinet-layout.container {
  max-width: 1450px;
  padding: 0;
  margin: 0;
  overflow: visible !important;
}
/* ИИ fixed справа (≥1100): форма на всю оставшуюся ширину экрана */
@media (min-width: 1100px) {
  .g24-cabinet-layout.has-ai-assistant.is-ai-open {
    grid-template-columns: var(--g24-cab-sidebar-w) minmax(0, 1fr);
    max-width: none;
    width: 100%;
    padding-right: var(--g24-ai-dock-w, 340px);
  }
  body.g24-cabinet-page .g24-cabinet-layout.container.has-ai-assistant.is-ai-open {
    max-width: none;
    width: 100%;
    padding-right: var(--g24-ai-dock-w, 340px);
  }
  .g24-cabinet-layout.has-ai-assistant.is-ai-collapsed {
    grid-template-columns: var(--g24-cab-sidebar-w) minmax(0, 1fr);
    max-width: none;
    width: 100%;
    padding-right: var(--g24-ai-rail-w, 52px);
  }
  body.g24-cabinet-page .g24-cabinet-layout.container.has-ai-assistant.is-ai-collapsed {
    max-width: none;
    width: 100%;
    padding-right: var(--g24-ai-rail-w, 52px);
  }
}
.g24-cabinet-content {
  min-width: 0;
  order: 2;
  margin-top: 0;
  padding: 28px 32px 48px 36px;
  box-sizing: border-box;
}
.g24-cabinet-content--full {
  grid-column: 1 / -1;
}
.g24-cabinet-sidebar {
  position: sticky;
  top: 0;
  align-self: stretch;
  margin: 0;
  background: var(--g24-sidebar-bg);
  border: none;
  border-radius: 0;
  padding: 20px 12px 28px;
  order: 1;
  box-shadow: none;
  color: var(--g24-sidebar-text);
  min-height: 100%;
  box-sizing: border-box;
  width: var(--g24-cab-sidebar-w, 210px);
  max-width: var(--g24-cab-sidebar-w, 210px);
}
.g24-cabinet-menu-btn,
.g24-cabinet-sidebar__close,
.g24-cabinet-scrim {
  display: none;
}
.g24-cabinet-content > :first-child {
  margin-top: 0;
}
/* В кабинете (ПК): шапка скрыта — отступы без учёта header-h */
@media (min-width: 901px) {
  body.g24-cabinet-page .g24-cabinet-sidebar {
    padding-top: 24px;
  }
  body.g24-cabinet-page .g24-cabinet-content {
    padding-top: 28px;
  }
}
.g24-cabinet-sidebar__user {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--g24-sidebar-border);
  font-size: 0.8rem;
  color: var(--g24-sidebar-muted);
}
.g24-cab-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 6px;
}
.g24-cab-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: #2a2a2a;
  color: #d4d4d4;
  cursor: pointer;
  overflow: hidden;
}
.g24-cab-avatar svg {
  width: 24px;
  height: 24px;
}
.g24-cab-avatar img {
  width: 100%;
  height: 100%;
  max-width: 42px;
  max-height: 42px;
  object-fit: cover;
  display: block;
}
.g24-cab-avatar:disabled {
  opacity: 0.6;
  cursor: wait;
}
.g24-cab-id .g24-cabinet-sidebar__name {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.g24-cab-avatar__note {
  margin: 0 0 4px;
  color: #f0b4b4;
  font-size: 0.72rem;
  line-height: 1.3;
}
.g24-cabinet-sidebar__user strong,
.g24-cabinet-sidebar__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--g24-sidebar-text);
  line-height: 1.35;
}
.g24-cabinet-sidebar__phone {
  display: block;
  line-height: 1.35;
}
.g24-cabinet-sidebar__verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #9ec4e8;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  width: fit-content;
}
.g24-cabinet-sidebar__verified .g24-verified--sidebar,
.g24-cabinet-sidebar .g24-verified--sidebar {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  opacity: 1;
  visibility: visible;
}
.g24-verified--sidebar,
.g24-verified--nav {
  margin-left: 0;
  vertical-align: middle;
}
.g24-verif__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 14px;
}
.g24-verif__head h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}
.g24-verif__head p {
  margin: 0;
  max-width: 46ch;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}
.g24-verif__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}
.g24-verif__pill--ok { background: #e0f2fe; color: #075985; }
.g24-verif__pill--wait { background: #fef3c7; color: #92400e; }
.g24-verif__pill--bad { background: #fee2e2; color: #991b1b; }
.g24-verif__main {
  max-width: 640px;
  padding: 16px 18px !important;
  margin-bottom: 12px !important;
}
.g24-verif__h2 {
  margin: 0 0 6px !important;
  font-size: 1rem !important;
}
.g24-verif__demo {
  margin: 12px 0 14px;
  padding: 0;
}
.g24-verif__demo svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.g24-verif__demo figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}
.g24-verif__steps {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}
.g24-verif__step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.g24-verif__n {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.g24-verif__step strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.g24-verif__step p {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
}
.g24-verif__warn { color: #b45309 !important; }
.g24-verif__submit {
  margin-top: 12px;
}
.g24-verif-docs {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.g24-verif-docs li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.88rem;
}
.g24-verif-docs a {
  font-weight: 650;
  color: #0f172a;
}
.g24-verif-docs span {
  color: #64748b;
  font-size: 0.78rem;
}
.g24-verif-docs form {
  margin-left: auto;
}
.g24-verif-docs button {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-weight: 650;
  cursor: pointer;
}
.g24-verif-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.g24-verif-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.g24-verif-upload__pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1.5px dashed rgba(29, 155, 240, 0.45);
  background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
  color: #075985;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.g24-verif-upload__pick span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.g24-verif-upload__pick:hover {
  border-color: #1d9bf0;
  background: linear-gradient(180deg, #e0f2fe, #bae6fd);
  transform: translateY(-1px);
}
.g24-verif-upload__input:focus + .g24-verif-upload__pick {
  outline: 2px solid rgba(29, 155, 240, 0.35);
  outline-offset: 2px;
}
.g24-cabinet-muted {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}
.g24-cabinet-sidebar__status {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  width: fit-content;
}
.g24-cabinet-sidebar__status--draft,
.g24-cabinet-sidebar__status--rejected { background: rgba(255, 255, 255, 0.06); color: #c9a0a0; }
.g24-cabinet-sidebar__status--pending { background: rgba(255, 255, 255, 0.06); color: #c4b48a; }
.g24-cabinet-sidebar__status--approved { background: rgba(255, 255, 255, 0.06); color: #a3b89a; }
.g24-cabinet-sidebar__balance {
  margin-top: 8px;
  color: var(--g24-sidebar-muted);
  font-size: 0.78rem;
}
.g24-cabinet-sidebar__balance strong {
  color: #dddde0;
  font-size: 0.88rem;
  font-weight: 600;
}
.g24-cabinet-city {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.g24-cabinet-city__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--g24-sidebar-muted);
  margin-bottom: 6px;
}
.g24-cabinet-city__select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.g24-cabinet-city__select option {
  color: #111;
}
.g24-city-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8eef8;
  color: #1e3a5f;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.g24-city-badge--sm {
  font-size: 0.72rem;
  padding: 2px 6px;
  margin-right: 4px;
}
.g24-kind-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  background: #e8eef8;
  color: #1e3a5f;
}
.g24-kind-badge--service {
  background: #e8eef8;
  color: #1e3a5f;
}
.g24-kind-badge--vacancy {
  background: #e8f6ee;
  color: #1b5e3a;
}
.g24-kind-badge--resume {
  background: #f3eef8;
  color: #4a2d6e;
}
.g24-kind-badge--page {
  background: #ecfdf5;
  color: #0f766e;
}
.g24-listings-add-row {
  flex-wrap: wrap;
}
.g24-listings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0 0 12px;
}
.g24-listings-toolbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
@property --g24-add-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.g24-listings-add-main {
  --g24-add-angle: 0deg;
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  white-space: nowrap;
  cursor: pointer;
  color: #fff !important;
  background: #16a34a !important;
  border: 0 !important;
  border-radius: 12px;
  box-shadow:
    0 8px 20px rgba(22, 163, 74, 0.28),
    0 0 0 1px rgba(187, 247, 208, 0.35) inset;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.g24-listings-add-main::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  padding: 2px;
  background: conic-gradient(
    from var(--g24-add-angle),
    transparent 0 58%,
    #bbf7d0 68%,
    #4ade80 78%,
    #86efac 88%,
    transparent 96% 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: g24-add-orbit 2.4s linear infinite;
  pointer-events: none;
  z-index: -1;
}
.g24-listings-add-main:hover {
  background: #15803d !important;
  box-shadow:
    0 10px 24px rgba(22, 163, 74, 0.36),
    0 0 18px rgba(74, 222, 128, 0.35);
  transform: translateY(-1px);
}
.g24-listings-add-main:active {
  transform: translateY(0);
}
@keyframes g24-add-orbit {
  to { --g24-add-angle: 360deg; }
}
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .g24-listings-add-main::before {
    display: none;
  }
  .g24-listings-add-main {
    animation: g24-add-pulse 2s ease-in-out infinite;
  }
  @keyframes g24-add-pulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28), 0 0 0 0 rgba(74, 222, 128, 0.45); }
    50% { box-shadow: 0 8px 20px rgba(22, 163, 74, 0.32), 0 0 0 6px rgba(74, 222, 128, 0); }
  }
}
.g24-listings-kind-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
}
.g24-listings-city-dd {
  position: relative;
  z-index: 6;
}
.g24-listings-city-dd[hidden] {
  display: none !important;
}
.g24-listings-city-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font: 500 13px/1.2 system-ui;
  cursor: pointer;
}
.g24-listings-city-dd__btn em {
  font-style: normal;
  color: #94a3b8;
  font-weight: 600;
}
.g24-listings-city-dd__btn svg {
  opacity: 0.7;
}
.g24-listings-city-dd.is-open .g24-listings-city-dd__btn,
.g24-listings-city-dd__btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.g24-listings-city-dd__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: min(280px, 80vw);
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.g24-listings-city-dd__panel[hidden] {
  display: none !important;
}
.g24-listings-city-dd__item {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font: 500 12px/1.2 system-ui;
  cursor: pointer;
  text-align: left;
}
.g24-listings-city-dd__item em {
  font-style: normal;
  color: #94a3b8;
}
.g24-listings-city-dd__item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.g24-listings-city-dd__item.is-active {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
.g24-listings-city-dd__item[hidden] {
  display: none !important;
}
html.g24-add-listing-open {
  overflow: hidden;
}
.g24-add-listing-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.g24-add-listing-modal[hidden] {
  display: none !important;
}
.g24-add-listing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.g24-add-listing-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  padding: 18px 18px 16px;
}
.g24-add-listing-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.g24-add-listing-modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}
.g24-add-listing-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.g24-add-listing-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.g24-add-listing-modal__choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g24-add-listing-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.g24-add-listing-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 13px 12px 12px;
  border: 1px solid #e7ecf3;
  border-radius: 14px;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.g24-add-listing-choice--wide {
  padding: 14px 14px 13px;
}
.g24-add-listing-choice:hover {
  text-decoration: none;
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.g24-add-listing-choice strong {
  grid-column: 1;
  grid-row: 1;
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.25;
}
.g24-add-listing-choice--wide strong {
  font-size: 1rem;
}
.g24-add-listing-choice > span {
  grid-column: 1;
  grid-row: 2;
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}
.g24-add-listing-modal__row .g24-add-listing-choice > span {
  font-size: 0.74rem;
}
.g24-add-listing-choice::after {
  content: '';
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  width: 16px;
  height: 16px;
  background: #94a3b8;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 5.5 15.5 12 9 18.5' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 5.5 15.5 12 9 18.5' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity 0.15s ease, transform 0.2s ease, background-color 0.15s ease;
}
.g24-add-listing-choice:hover::after {
  opacity: 0.9;
  background: #64748b;
  transform: translateX(3px);
}
.g24-add-listing-choice--service strong {
  color: #1e3a5f;
}
.g24-add-listing-choice--vacancy strong {
  color: #1b5e3a;
}
.g24-add-listing-choice--resume strong {
  color: #4a2d6e;
}
@media (max-width: 420px) {
  .g24-add-listing-modal__row {
    grid-template-columns: 1fr;
  }
}

/* Онбординг профиля при первом заходе (выше ИИ-дока 12050) */
.g24-profile-onb {
  position: fixed;
  inset: 0;
  z-index: 13050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.g24-profile-onb[hidden] {
  display: none !important;
}
.g24-profile-onb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}
.g24-profile-onb__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 840px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.28);
  padding: 18px 18px 16px;
}
.g24-profile-onb__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.g24-profile-onb__head h2 {
  margin: 0 0 6px;
  font-size: 1.22rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.g24-profile-onb__lead {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.45;
  font-weight: 600;
}
.g24-profile-onb__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.g24-profile-onb__perks[hidden] {
  display: none !important;
}
.g24-profile-onb__perks li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #e2e8f0;
}
.g24-profile-onb__perks strong {
  font-size: 0.86rem;
  color: #0f172a;
}
.g24-profile-onb__perks span {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}
.g24-profile-onb__bonus {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
}
.g24-profile-onb__bonus-sum {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #059669;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
}
.g24-profile-onb__bonus-text {
  margin: 0;
  font-size: 0.88rem;
  color: #065f46;
  line-height: 1.4;
}
.g24-profile-onb__bonus-text strong {
  font-weight: 800;
}
/* Пока открыт онбординг — прячем ИИ-док справа (сильнее правил дока) */
html.g24-profile-onb-open .g24-ai-fab-wrap,
html.g24-profile-onb-open .g24-cabinet-ai,
html.g24-profile-onb-open #g24CabinetAi,
body.g24-profile-onb-open .g24-ai-fab-wrap,
body.g24-profile-onb-open .g24-cabinet-ai,
body.g24-profile-onb-open #g24CabinetAi,
html.g24-profile-onb-open .g24-cabinet-layout.has-ai-assistant.is-ai-open .g24-ai-fab-wrap,
html.g24-profile-onb-open .g24-cabinet-layout.has-ai-assistant.is-ai-open .g24-cabinet-ai,
body.g24-profile-onb-open .g24-cabinet-layout.has-ai-assistant.is-ai-open .g24-ai-fab-wrap,
body.g24-profile-onb-open .g24-cabinet-layout.has-ai-assistant.is-ai-open .g24-cabinet-ai,
html.g24-profile-onb-open body.g24-cabinet-page .g24-ai-fab-wrap.is-open,
body.g24-profile-onb-open.g24-cabinet-page .g24-ai-fab-wrap.is-open {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
@media (min-width: 1100px) {
  html.g24-profile-onb-open .g24-cabinet-layout.has-ai-assistant.is-ai-open,
  body.g24-profile-onb-open .g24-cabinet-layout.has-ai-assistant.is-ai-open,
  html.g24-profile-onb-open .g24-cabinet-layout.has-ai-assistant,
  body.g24-profile-onb-open .g24-cabinet-layout.has-ai-assistant {
    padding-right: 0 !important;
  }
}
.g24-profile-onb__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.g24-profile-onb__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.g24-profile-onb__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.g24-profile-onb__field-err {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #b91c1c;
  line-height: 1.35;
  font-weight: 600;
}
.g24-profile-onb__field-err[hidden] {
  display: none !important;
}
.g24-cabinet-form__field.is-invalid input {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.g24-profile-onb__note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}
html.g24-profile-onb-open {
  overflow: hidden;
}
@media (max-width: 560px) {
  .g24-profile-onb__dialog {
    padding: 14px 12px 12px;
    border-radius: 14px;
  }
  .g24-profile-onb__actions {
    flex-direction: column-reverse;
  }
  .g24-profile-onb__actions .g24-cabinet-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .g24-listings-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .g24-listings-add-main {
    width: 100%;
    justify-content: center;
  }
  .g24-listings-kind-filter {
    width: 100%;
  }
}
.g24-listings-kind-filter__btn[hidden] {
  display: none !important;
}
.g24-listings-kind-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
}
.g24-listings-kind-filter__btn em {
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  font-size: 0.75rem;
}
.g24-listings-kind-filter__btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
}
.g24-listings-kind-filter__btn.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.g24-listings-kind-filter__btn.is-active em {
  color: #64748b;
}
.g24-listings-kind-empty {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px dashed #d7dee8;
  border-radius: 12px;
  color: #64748b;
  font-size: 0.9rem;
}
.g24-listing-group {
  margin: 0 0 18px;
}
.g24-listing-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  color: #14221c;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.g24-listing-group__title em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8eef8;
  color: #1e3a5f;
}
.g24-listing-group[hidden],
[data-cabinet-block][hidden],
[data-cabinet-listings][hidden],
.g24-listings-kind-filter[hidden] {
  display: none !important;
}
.g24-listing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
ul.g24-listing-cards {
  list-style: none;
  margin: 0;
  padding: 0;
}
.g24-listing-drafts {
  margin-top: 28px;
  padding-top: 8px;
}
.g24-listing-drafts[hidden] {
  display: none !important;
}
.g24-listing-drafts__title {
  color: #64748b !important;
}
.g24-listing-drafts__hint {
  margin: -4px 0 12px;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.4;
}
.g24-listing-card--draft {
  background: #f3f4f6;
  border-color: #e5e7eb;
  box-shadow: none;
  opacity: 0.96;
}
.g24-listing-card--draft .g24-listing-card__title {
  color: #475569;
}
.g24-listing-card--draft .g24-listing-card__meta-line {
  color: #94a3b8;
}
.g24-listing-card--draft .g24-kind-badge {
  background: #e5e7eb;
  color: #64748b;
}
.g24-listing-drafts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.g24-listing-drafts__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.g24-listing-drafts__btn--primary {
  background: #64748b;
  border-color: #64748b;
  color: #fff;
}
.g24-listing-drafts__btn--primary:hover {
  background: #475569;
}
.g24-listing-drafts__btn--ghost:hover {
  background: #eef2f7;
}
.g24-listing-card[hidden] {
  display: none !important;
}
.g24-listing-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: stretch;
  padding: 10px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  box-shadow: none;
  position: relative;
  overflow: visible;
  z-index: 1;
}
.g24-listing-card:has([data-cities-root].is-open),
.g24-listing-card:has([data-listing-menu-root].is-open) {
  z-index: 8;
}
.g24-listing-card.is-page { overflow: visible; }
.g24-listing-card .g24-page-note {
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
}
.g24-listing-card__media {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f6;
  flex: 0 0 auto;
}
.g24-listing-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.g24-listing-card__media-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #e8f0ea, #eef2f6 55%, #f8fafc);
}
.g24-listing-card__views {
  position: absolute;
  top: 5px;
  left: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px 2px 4px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
  line-height: 1;
  z-index: 1;
}
.g24-listing-card__views svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  opacity: 0.95;
}
.g24-listing-card__views em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.g24-listing-card__tariff-chip {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: #8b919a;
  border: 1px solid #8b919a;
}
.g24-listing-card.is-free .g24-listing-card__tariff-chip,
.g24-listing-card.is-page .g24-listing-card__tariff-chip {
  color: #fff;
  background: #8b919a;
  border-color: #8b919a;
}
.g24-listing-card.is-paid .g24-listing-card__tariff-chip {
  color: #fff;
  background: #c4a035;
  border-color: #c4a035;
}
.g24-listing-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.g24-listing-card__head { min-width: 0; }
.g24-listing-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 6px;
  margin-bottom: 2px;
  min-height: 22px;
}
.g24-listing-card__top .g24-kind-badge,
.g24-listing-card__top .g24-kind-badge--service,
.g24-listing-card__top .g24-kind-badge--vacancy,
.g24-listing-card__top .g24-kind-badge--resume,
.g24-listing-card__top .g24-kind-badge--page {
  padding: 1px 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
}
.g24-listing-card__life {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.g24-listing-card__lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.g24-listing-card__life--ok {
  color: #15803d;
}
.g24-listing-card__life--ok .g24-listing-card__lamp {
  background: #22c55e;
  box-shadow:
    0 0 0 2px rgba(34, 197, 94, 0.18),
    0 0 8px rgba(34, 197, 94, 0.9);
  animation: g24-lamp-glow 2.2s ease-in-out infinite;
}
.g24-listing-card__life--warn {
  color: #a16207;
}
.g24-listing-card__life--warn .g24-listing-card__lamp {
  background: #eab308;
  box-shadow:
    0 0 0 2px rgba(234, 179, 8, 0.2),
    0 0 8px rgba(234, 179, 8, 0.9);
  animation: g24-lamp-glow 1.6s ease-in-out infinite;
}
.g24-listing-card__life--bad {
  color: #b91c1c;
}
.g24-listing-card__life--bad .g24-listing-card__lamp {
  background: #ef4444;
  box-shadow:
    0 0 0 2px rgba(239, 68, 68, 0.2),
    0 0 8px rgba(239, 68, 68, 0.85);
  animation: g24-lamp-glow 1.2s ease-in-out infinite;
}
.g24-listing-card__life--muted {
  color: #64748b;
}
.g24-listing-card__life--muted .g24-listing-card__lamp {
  background: #94a3b8;
  box-shadow: none;
}
.g24-listing-card__remain {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.g24-listing-card__remain-paid,
.g24-listing-card__remain-more {
  position: relative;
}
.g24-listing-card__remain-paid {
  color: #e0a106;
}
.g24-listing-card__remain-more {
  color: #94a3b8;
  font-weight: 650;
}
.g24-listing-card__remain-paid::after,
.g24-listing-card__remain-more::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #0f172a;
  color: #f8fafc;
  font: 500 12px/1.35 system-ui, sans-serif;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.g24-listing-card__remain-paid:hover::after,
.g24-listing-card__remain-more:hover::after {
  opacity: 1;
  visibility: visible;
}
.g24-listing-card:has(.g24-listing-card__remain-paid:hover),
.g24-listing-card:has(.g24-listing-card__remain-more:hover) {
  z-index: 6;
}
@keyframes g24-lamp-glow {
  0%, 100% { filter: brightness(1); opacity: 1; }
  50% { filter: brightness(1.25); opacity: 0.85; }
}
.g24-listing-card__title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.g24-listing-card__title a {
  color: inherit;
  text-decoration: none;
}
.g24-listing-card__title a:hover {
  color: #0f766e;
}
.g24-listing-card__meta-line {
  margin: 3px 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2px;
}
.g24-listing-card__dot {
  margin: 0 4px;
  opacity: 0.5;
}
.g24-listing-card__cities {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: #64748b;
  z-index: 2;
}
.g24-listing-card__cities.is-open {
  z-index: 30;
}
.g24-listing-card__cities > a,
.g24-listing-card__cities > strong {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}
.g24-listing-card__cities > a:hover {
  text-decoration: underline;
}
.g24-listing-card__cities-btn {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font: 500 0.72rem/1.3 system-ui;
  cursor: pointer;
}
.g24-listing-card__cities-btn:hover,
.g24-listing-card__cities.is-open .g24-listing-card__cities-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}
.g24-listing-card__cities-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: min(220px, 72vw);
  max-height: 200px;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.g24-listing-card__cities-menu[hidden] {
  display: none !important;
}
.g24-listing-card__cities-menu a,
.g24-listing-card__cities-off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #e8edf2;
  background: #f8fafc;
  font: 500 12px/1.25 system-ui;
  color: #475569;
  text-decoration: none;
  text-align: center;
}
.g24-listing-card__cities-menu a:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.g24-listing-card__cities-off {
  color: #94a3b8;
  cursor: default;
  opacity: 0.85;
}
.g24-listing-card__cities-inline a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
}
.g24-listing-card__cities-inline a:hover {
  text-decoration: underline;
}
.g24-listing-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}
.g24-listing-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  font-size: 0.72rem;
  color: #64748b;
}
.g24-listing-card__stats em {
  font-style: normal;
  font-weight: 800;
  color: #0f172a;
}
.g24-listing-card__until {
  color: #94a3b8;
}
.g24-listing-card__term {
  white-space: nowrap;
}
.g24-listing-card__term--paid {
  color: #8a6a12;
}
.g24-listing-card__term--free {
  color: #64748b;
}
.g24-listing-card__bump-form {
  margin: 0;
}
.g24-listing-card__bump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font: 500 0.72rem/1.2 system-ui;
  cursor: pointer;
  white-space: nowrap;
}
.g24-listing-card__bump:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.g24-listing-card__bump--wait {
  cursor: default;
  color: #94a3b8;
  background: #f8fafc;
}
.g24-listing-card__bump--wait:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}
.g24-listing-card__tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  position: relative;
  z-index: 3;
}
.g24-listing-card__actions {
  position: relative;
  z-index: 4;
}
.g24-listing-card__actions.is-open {
  z-index: 35;
}
.g24-listing-card__more {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.g24-listing-card__more svg {
  display: block;
}
.g24-listing-card__more:hover,
.g24-listing-card__actions.is-open .g24-listing-card__more {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.g24-listing-card__menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 2px;
  z-index: 36;
}
.g24-listing-card__menu[hidden] {
  display: none !important;
}
.g24-listing-card__form {
  display: block;
  margin: 0;
}
.g24-listing-card__menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font: 500 12.5px/1.25 system-ui;
  text-decoration: none;
  cursor: pointer;
}
.g24-listing-card__menu-item:hover {
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
}
.g24-listing-card__menu-item--primary {
  font-weight: 500;
}
.g24-listing-card__menu-item--danger {
  color: #b91c1c;
}
.g24-listing-card__menu-item--danger:hover {
  background: #fef2f2;
  color: #991b1b;
}
.g24-listing-card__menu-item--muted {
  color: #94a3b8;
  cursor: default;
}
.g24-listing-card__menu-item--muted:hover {
  background: transparent;
}
.g24-listing-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 9px;
  border: 1px solid #d7dee8;
  background: #fff;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
@media (max-width: 980px) {
  .g24-listing-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .g24-listing-card {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 8px 10px;
  }
  .g24-listing-card__media {
    width: 80px;
    height: 80px;
  }
}
.g24-listing-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.g24-listing-edit-form .g24-cabinet-form__field {
  margin-bottom: 14px;
}
.g24-listing-edit-form label,
.g24-listing-edit-form .g24-lf-field-label {
  display: block;
  font-weight: 650;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.g24-listing-edit-form input[type="text"],
.g24-listing-edit-form input[type="email"],
.g24-listing-edit-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--g24-auth-border, #d0d7e2);
  border-radius: 10px;
  font: inherit;
}
.g24-listing-edit-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.g24-listing-edit-photos__item {
  position: relative;
  margin: 0;
  width: 120px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--g24-auth-border, #e2e8f0);
}
.g24-listing-edit-photos__item img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
}
.g24-listing-edit-photos__rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
@media (max-width: 640px) {
  .g24-listing-edit-grid {
    grid-template-columns: 1fr;
  }
}
html.g24-stats-modal-open {
  overflow: hidden;
}
.g24-stats-modal[hidden] {
  display: none !important;
}
.g24-stats-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.g24-stats-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}
.g24-stats-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #f8fafc;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.g24-stats-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  background: #fff;
  border-bottom: 1px solid #e8eef5;
  position: sticky;
  top: 0;
  z-index: 2;
}
.g24-stats-modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.g24-stats-modal__sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}
.g24-stats-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.g24-stats-modal__body {
  padding: 12px 16px 18px;
}
.g24-stats-modal__loading {
  margin: 24px 0;
  text-align: center;
  color: #64748b;
}
.g24-stats-toolbar--modal {
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 14px;
  gap: 8px;
}
.g24-stats-filter-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 12px;
}
.g24-stats-filter-block--period {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.g24-stats-filter-block--city {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.g24-stats-filter-block--period .g24-stats-toolbar__label {
  color: #1d4ed8;
}
.g24-stats-filter-block--period .g24-stats-periods__btn.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.g24-stats-kpi__ms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.g24-stats-kpi__ms-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: #475569;
}
.g24-stats-kpi__ms-item em {
  font-style: normal;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.g24-ms-ico {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: block;
}
.g24-stats-kpis--modal {
  margin-bottom: 12px;
}
.g24-stats-table-card--modal {
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 14px;
}
.g24-stats-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
}
.g24-stats-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.g24-stats-toolbar__label {
  min-width: 64px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}
.g24-stats-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.g24-stats-periods__btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #d7dee8;
  background: #fff;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.g24-stats-periods__btn:hover {
  background: #f8fafc;
  text-decoration: none;
  cursor: pointer;
}
.g24-stats-periods__btn.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.g24-stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.g24-stats-kpi {
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.g24-stats-kpi__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  color: #64748b;
  margin-bottom: 4px;
}
.g24-stats-kpi__value {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.g24-stats-kpi__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #94a3b8;
}
.g24-stats-section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
}
.g24-stats-table-card {
  margin-bottom: 14px;
  padding: 14px 16px;
}
.g24-stats-table th,
.g24-stats-table td {
  white-space: nowrap;
}
.g24-stats-city-link {
  font-size: 0.72rem;
  color: #2563eb;
  text-decoration: none;
}
.g24-stats-city-link:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .g24-stats-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .g24-stats-kpis {
    grid-template-columns: 1fr 1fr;
  }
}
.g24-lf-city-bar {
  margin-bottom: 16px;
  padding: 16px 18px;
}
.g24-lf-city-bar__label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.g24-lf-city-bar__select {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d0d7e2;
  font-size: 1rem;
  font-weight: 600;
}
.g24-cabinet-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.g24-cabinet-nav__section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.g24-cabinet-nav__label {
  margin: 0 0 4px;
  padding: 0 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}
.g24-cabinet-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #c4c5ca;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.g24-cabinet-nav__link--primary {
  padding: 9px 10px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 650;
  box-shadow: none;
}
.g24-cabinet-nav__link--primary:hover {
  background: #15803d;
  color: #fff;
}
.g24-cabinet-nav__link--primary .g24-cabinet-nav__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.g24-cabinet-nav__link--primary .g24-cabinet-nav__arrow {
  opacity: 0.9;
  color: #fff;
}
.g24-cabinet-nav__text {
  min-width: 0;
  flex: 1 1 auto;
}
.g24-cabinet-nav__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.g24-cabinet-nav__count {
  min-width: 1.35em;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #b8b9be;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.g24-cabinet-nav__tg {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.g24-cabinet-nav__tg.is-off {
  background: rgba(200, 160, 80, 0.22);
  color: #d4b87a;
}
.g24-cabinet-nav__tg.is-on {
  background: rgba(140, 170, 130, 0.22);
  color: #a8c09a;
}
.g24-cabinet-nav__arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.28;
  transition: opacity 0.15s ease;
}
.g24-cabinet-nav__badge {
  flex: 0 0 auto;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(180, 90, 90, 0.85);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.g24-cabinet-nav__link:hover {
  background: var(--g24-sidebar-bg-hover);
  text-decoration: none;
  color: #f0f0f2;
}
.g24-cabinet-nav__link:hover .g24-cabinet-nav__arrow {
  opacity: 0.55;
}
.g24-cabinet-nav__link--primary:hover {
  background: #15803d;
  color: #fff;
}
.g24-cabinet-nav__link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #f2f2f4;
  font-weight: 600;
  box-shadow: none;
}
.g24-cabinet-nav__link--primary.is-active {
  background: #15803d;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.g24-cabinet-nav__link.is-active .g24-cabinet-nav__arrow {
  opacity: 0.45;
}
.g24-cabinet-nav__link.is-locked {
  opacity: 0.45;
}
.g24-cabinet-nav__lock {
  font-size: 0.75rem;
  opacity: 0.7;
}
.g24-cabinet-sidebar__foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--g24-sidebar-border);
  display: grid;
  gap: 2px;
}
.g24-cabinet-sidebar__tosite,
.g24-cabinet-sidebar__logout {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
}
.g24-cabinet-sidebar__tosite {
  color: #c4c5ca;
}
.g24-cabinet-sidebar__tosite:hover {
  background: var(--g24-sidebar-bg-hover);
  color: #f0f0f2;
}
.g24-cabinet-sidebar__logout {
  color: #b89898;
}
.g24-cabinet-sidebar__logout:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #d0b0b0;
}
.g24-cabinet-page__head h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}
.g24-cabinet-page__head p {
  margin: 0 0 20px;
  color: var(--g24-auth-muted);
}
.g24-cabinet-page__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.g24-cabinet-card,
.g24-cabinet-balance-card {
  background: #fff;
  border: 1px solid var(--g24-auth-border);
  border-radius: var(--g24-auth-radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.g24-cabinet-card h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.g24-cabinet-balance-card__label {
  display: block;
  color: var(--g24-auth-muted);
  font-size: 0.9rem;
}
.g24-cabinet-balance-card__value {
  display: block;
  font-size: 2rem;
  color: var(--g24-auth-accent);
  margin: 8px 0;
}
.g24-cabinet-balance-card__note {
  margin: 0;
  color: var(--g24-auth-muted);
  font-size: 0.9rem;
}
.g24-cabinet-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.g24-cabinet-alert--ok { background: #dcfce7; color: #166534; }
.g24-cabinet-alert--warn { background: #fef3c7; color: #92400e; }
.g24-cabinet-alert--info { background: #dbeafe; color: #1e40af; }
.g24-cabinet-alert--err { background: #fee2e2; color: #991b1b; }
.g24-cabinet-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.g24-cabinet-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.g24-cabinet-form__field[hidden],
.g24-profile-bank[hidden],
.g24-profile-fields[hidden],
.g24-profile-fields [data-profile-field][hidden],
.g24-profile-fields [data-onb-field][hidden] {
  display: none !important;
}
.g24-cabinet-form__field span {
  font-size: 0.9rem;
  font-weight: 600;
}
.g24-cabinet-form__field input,
.g24-cabinet-form__field textarea,
.g24-cabinet-form__field select {
  padding: 10px 12px;
  border: 1px solid var(--g24-auth-border);
  border-radius: 10px;
  font: inherit;
}
.g24-cabinet-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.g24-cabinet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  background: var(--g24-auth-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.18s ease;
}
.g24-cabinet-btn:hover {
  background: var(--g24-auth-accent-hover);
  text-decoration: none;
  color: #fff;
}
.g24-cabinet-btn--ghost {
  background: #fff;
  color: var(--g24-auth-text);
  border: 1px solid var(--g24-auth-border);
}
.g24-cabinet-btn--ghost:hover {
  background: #f5f5f5;
  color: var(--g24-auth-text);
}
.g24-cabinet-form__hint,
.g24-cabinet-bonus-hint,
.g24-cabinet-empty {
  color: var(--g24-auth-muted);
  font-size: 0.95rem;
}
.g24-cabinet-table-wrap {
  overflow-x: auto;
}
.g24-cabinet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.g24-cabinet-table th,
.g24-cabinet-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--g24-auth-border);
  text-align: left;
}
.g24-cabinet-table th {
  color: var(--g24-auth-muted);
  font-weight: 600;
}
.g24-cabinet-table .is-plus { color: #16a34a; font-weight: 600; }
.g24-cabinet-ticket-list,
.g24-cabinet-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.g24-cabinet-ticket,
.g24-cabinet-review {
  padding: 14px 0;
  border-bottom: 1px solid var(--g24-auth-border);
}
.g24-cabinet-ticket__head,
.g24-cabinet-review__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.g24-cabinet-ticket__reply {
  margin-top: 8px;
  padding: 10px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 0.9rem;
}
.g24-cabinet-ticket.is-unread {
  background: #fffbeb;
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 8px;
}

.g24-cabinet-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.g24-cabinet-alert--error {
  background: #fee2e2;
  color: #991b1b;
}
.g24-cabinet-alert--success {
  background: #dcfce7;
  color: #166534;
}
.g24-cabinet-pay-card__lead {
  color: var(--g24-auth-muted);
  margin-top: 0;
}
.g24-cabinet-pay-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin-top: 4px;
}
.g24-pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
}
.g24-pay-method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--g24-auth-border);
  background: #f8fafc;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.g24-pay-method strong {
  font-size: 0.98rem;
}
.g24-pay-method span {
  font-size: 0.82rem;
  color: var(--g24-auth-muted);
  line-height: 1.35;
}
.g24-pay-method:hover {
  border-color: #a3a3a3;
  background: #fff;
}
.g24-pay-method.is-active {
  border-color: #1f1f1f;
  background: #f5f5f5;
  box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.08);
}
.g24-pay-panel[hidden] {
  display: none !important;
}
.g24-cabinet-form__field--wide {
  grid-column: 1 / -1;
}
.g24-bank-invoice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g24-bank-invoice__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}
.g24-bank-invoice__grid h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.g24-bank-invoice__grid p {
  margin: 0 0 4px;
  font-size: 0.92rem;
}
.g24-bank-invoice__table {
  margin-bottom: 14px;
}
.g24-bank-invoice__purpose {
  margin: 0;
  font-size: 0.92rem;
  color: var(--g24-auth-muted);
}
@media (max-width: 700px) {
  .g24-pay-methods,
  .g24-bank-invoice__grid {
    grid-template-columns: 1fr;
  }
}
.g24-pay-amount-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g24-pay-amount-field__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--g24-auth-text);
}
.g24-pay-amount-field__wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--g24-auth-border);
  border-radius: 14px;
  background: #fafafa;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.g24-pay-amount-field__wrap:focus-within {
  border-color: var(--g24-auth-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}
.g24-pay-amount-field__input {
  flex: 1;
  min-width: 0;
  padding: 16px 12px 16px 18px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--g24-auth-text);
  letter-spacing: -0.02em;
  -moz-appearance: textfield;
}
.g24-pay-amount-field__input::-webkit-outer-spin-button,
.g24-pay-amount-field__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.g24-pay-amount-field__input:focus {
  outline: none;
}
.g24-pay-amount-field__currency {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--g24-auth-muted);
  background: rgba(15, 23, 42, 0.04);
  border-left: 1px solid var(--g24-auth-border);
  user-select: none;
}
.g24-cabinet-pay-form__submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.g24-cabinet-pay-form__submit:disabled {
  opacity: 0.72;
  cursor: wait;
}
.g24-cabinet-pay-form__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--g24-auth-muted);
}
.g24-cabinet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.g24-cabinet-btn--primary {
  background: var(--g24-auth-accent);
  color: #fff;
  box-shadow: none;
}
.g24-cabinet-btn--primary:hover {
  background: var(--g24-auth-accent-hover);
  color: #fff;
}
.g24-cabinet-btn--secondary {
  background: #fff;
  color: var(--g24-auth-text);
  border: 1px solid var(--g24-auth-border);
}
.g24-cabinet-btn--secondary:hover {
  background: #f5f5f5;
  color: var(--g24-auth-text);
}
.g24-cabinet-pay-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.g24-cabinet-pay-status__label {
  font-size: 0.85rem;
  color: var(--g24-auth-muted);
}
.g24-cabinet-pay-invoice {
  margin: 8px 0;
}
.g24-cabinet-pay-invoice span {
  color: var(--g24-auth-muted);
}
.g24-cabinet-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.g24-cabinet-pay-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--g24-auth-muted);
}

/* —— Страница оплаты —— */
.g24-pay-head {
  margin-bottom: 4px;
}
.g24-pay-head__amount {
  margin: 0 0 20px;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--g24-auth-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.g24-pay-head__amount span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--g24-auth-muted);
  margin-left: 4px;
}
.g24-pay-card {
  padding: 28px 28px 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.g24-pay-card__top {
  margin-bottom: 20px;
}
.g24-pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.g24-pay-badge--awaiting {
  background: #fef3c7;
  color: #92400e;
}
.g24-pay-badge--paid {
  background: #dcfce7;
  color: #166534;
}
.g24-pay-badge--inactive {
  background: #f3f4f6;
  color: #6b7280;
}
.g24-pay-erip-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.g24-pay-erip {
  background: linear-gradient(135deg, #fff8f8 0%, #fff 50%, #f8fafc 100%);
  border: 2px solid rgba(211, 47, 47, 0.18);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 0;
}
.g24-pay-erip__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g24-auth-accent);
  margin-bottom: 10px;
}
.g24-pay-erip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.g24-pay-erip__number {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--g24-auth-text);
  letter-spacing: 0.02em;
  word-break: break-all;
  line-height: 1.4;
  background: none;
  padding: 0;
}
.g24-pay-erip__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 16px;
  border: 1px solid var(--g24-auth-border);
  border-radius: 10px;
  background: #fff;
  color: var(--g24-auth-text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.g24-pay-erip__copy:hover {
  border-color: var(--g24-auth-accent);
  color: var(--g24-auth-accent);
}
.g24-pay-erip__copy.is-copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.g24-pay-erip__hint {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--g24-auth-muted);
}
.g24-pay-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--g24-auth-border);
  border-radius: 14px;
  min-width: 206px;
}
.g24-pay-qr__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g24-auth-muted);
  margin-bottom: 10px;
}
.g24-pay-qr__img {
  display: block;
  width: 174px;
  height: 174px;
  border-radius: 8px;
  background: #fff;
}
.g24-pay-qr__hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--g24-auth-muted);
  max-width: 180px;
  line-height: 1.4;
}
.g24-pay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 4px;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
}
.g24-pay-meta__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.g24-pay-meta__label {
  font-size: 0.8rem;
  color: var(--g24-auth-muted);
}
.g24-pay-meta__value {
  font-size: 0.95rem;
  color: var(--g24-auth-text);
}
.g24-pay-actions {
  margin: 24px 0;
}
.g24-pay-actions__primary {
  min-width: 200px;
}
.g24-pay-steps {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--g24-auth-border);
}
.g24-pay-steps--before-actions {
  margin: 20px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--g24-auth-border);
}
.g24-pay-steps--before-actions + .g24-pay-actions {
  margin-top: 0;
}
.g24-pay-steps h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.g24-pay-steps ol {
  line-height: 1.65;
}
.g24-pay-footer-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--g24-auth-border);
}

.g24-cabinet-telegram-card {
  margin-top: 20px;
}
.g24-cabinet-telegram-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.g24-cabinet-telegram-card__lead {
  color: var(--g24-auth-muted);
  margin: 0 0 14px;
}
.g24-cabinet-telegram-card__hint {
  margin: 0 0 12px;
}
.g24-cabinet-telegram-card__code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.g24-cabinet-telegram-card__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  background: #f3f4f6;
  border-radius: 10px;
}
.g24-cabinet-telegram-card__link {
  display: inline-flex;
  text-decoration: none;
}

/* —— Дашборд кабинета —— */
.g24-dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 22px;
  background: #1f1f1f;
  color: #fff;
  box-shadow: 0 12px 32px rgba(23, 23, 23, 0.14);
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.g24-dash-hero::after {
  content: '';
  position: absolute;
  right: -36px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.g24-dash-hero__text {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 220px;
}
.g24-dash-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.g24-dash-hero__title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.g24-dash-hero__sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
}
.g24-dash-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.g24-dash-hero__actions .g24-cabinet-btn {
  padding: 9px 14px;
  font-size: 0.88rem;
  border-radius: 11px;
}
.g24-dash-hero__actions .g24-cabinet-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.g24-dash-hero__actions .g24-cabinet-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.g24-dash-hero__actions .g24-cabinet-btn--primary {
  background: #fff;
  color: #171717;
  border-color: #fff;
}
.g24-dash-hero__actions .g24-cabinet-btn--primary:hover {
  background: #f5f5f5;
  color: #171717;
}

.g24-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.g24-dash-head__eyebrow {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--g24-auth-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.g24-dash-head h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.g24-dash-head__sub {
  margin: 0;
  color: var(--g24-auth-muted);
  max-width: 520px;
}
.g24-dash-head__profile {
  flex-shrink: 0;
}
.g24-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.g24-dash-stat {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid var(--g24-auth-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.g24-dash-stat__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.g24-dash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  border-radius: 11px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.g24-dash-icon svg {
  display: block;
}
.g24-dash-icon--lg {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 13px;
}
.g24-dash-icon--wallet {
  background: rgba(211, 47, 47, 0.1);
  color: #c62828;
}
.g24-dash-icon--listings {
  background: rgba(31, 31, 31, 0.08);
  color: #404040;
}
.g24-dash-icon--views {
  background: rgba(31, 31, 31, 0.08);
  color: #525252;
}
.g24-dash-icon--reviews {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}
.g24-dash-icon--add {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.g24-dash-icon--profile {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}
.g24-dash-icon--support {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}
a.g24-dash-stat:hover {
  border-color: rgba(211, 47, 47, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  transform: translateY(-1px);
}
.g24-dash-stat--accent {
  background: linear-gradient(145deg, #fff 0%, #fff5f5 100%);
  border-color: rgba(211, 47, 47, 0.18);
}
.g24-dash-stat--accent .g24-dash-stat__value {
  color: var(--g24-auth-accent);
}
.g24-dash-stat__label {
  font-size: 0.78rem;
  color: var(--g24-auth-muted);
  font-weight: 600;
}
.g24-dash-stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.g24-dash-stat__value span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--g24-auth-muted);
}
.g24-dash-stat__meta {
  font-size: 0.78rem;
  color: var(--g24-auth-muted);
}
.g24-dash-section-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--g24-auth-muted);
}
.g24-dash-actions {
  margin-bottom: 22px;
}
.g24-dash-actions--bottom {
  margin: 8px 0 0;
  padding-top: 8px;
}
.g24-dash-actions__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.g24-dash-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g24-dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--g24-auth-border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.g24-dash-chip:hover {
  border-color: rgba(31, 31, 31, 0.28);
  box-shadow: 0 4px 14px rgba(23, 23, 23, 0.06);
  text-decoration: none;
  background: #fafafa;
}
.g24-dash-chip__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
}
.g24-dash-action {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--g24-auth-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  min-height: 112px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.g24-dash-action:hover {
  border-color: rgba(211, 47, 47, 0.28);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  text-decoration: none;
}
.g24-dash-action:hover .g24-dash-icon {
  transform: scale(1.04);
}
.g24-dash-action__title {
  font-weight: 700;
  font-size: 0.95rem;
}
.g24-dash-action__desc {
  font-size: 0.82rem;
  color: var(--g24-auth-muted);
  line-height: 1.35;
}
.g24-dash-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.g24-dash-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.g24-dash-panel__head h2 {
  margin: 0;
}
.g24-dash-panel__head a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--g24-auth-accent);
  text-decoration: none;
}
.g24-dash-panel__head a:hover {
  text-decoration: underline;
}
.g24-dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.g24-dash-list__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--g24-auth-border);
}
.g24-dash-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.g24-dash-list__sub {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--g24-auth-muted);
}
.g24-dash-list__amount {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.92rem;
}
.g24-dash-list__amount.is-plus { color: #16a34a; }
.g24-dash-list__amount.is-minus { color: #dc2626; }
.g24-dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.g24-dash-badge--ok {
  background: #dcfce7;
  color: #166534;
}
.g24-dash-telegram__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.g24-dash-telegram__head h2 {
  margin: 0 0 6px;
}

/* —— Главная кабинета (обзор) —— */
.g24-home {
  max-width: 1080px;
}
.g24-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 22px;
}
.g24-home-hero__main {
  padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
    linear-gradient(145deg, #1a1a1a 0%, #2a2b2e 100%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(23, 23, 23, 0.16);
}
.g24-home-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.g24-home-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.g24-home-hero__lead {
  margin: 0 0 16px;
  max-width: 52ch;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.g24-home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g24-home-hero__cta .g24-cabinet-btn {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
}
.g24-home-hero__cta .g24-cabinet-btn--primary {
  background: #fff;
  color: #171717;
  border-color: #fff;
}
.g24-home-hero__cta .g24-cabinet-btn--primary:hover {
  background: #f4f4f5;
  color: #171717;
}
.g24-home-hero__cta .g24-cabinet-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.g24-home-hero__cta .g24-cabinet-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.g24-home-balance {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 20px 18px;
  border-radius: 22px;
  text-decoration: none;
  color: #171717;
  background:
    linear-gradient(160deg, #ffffff 0%, #f7f7f8 100%);
  border: 1px solid var(--g24-auth-border);
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.g24-home-balance:hover {
  text-decoration: none;
  color: #171717;
  border-color: rgba(23, 23, 23, 0.22);
  box-shadow: 0 14px 32px rgba(23, 23, 23, 0.1);
  transform: translateY(-1px);
}
.g24-home-balance__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--g24-auth-muted);
}
.g24-home-balance__value {
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.g24-home-balance__value span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--g24-auth-muted);
}
.g24-home-balance__hint {
  margin-top: 6px;
  font-size: 0.86rem;
  font-weight: 650;
  color: #404040;
}

.g24-home-section {
  margin-bottom: 22px;
}
.g24-home-section__head {
  margin-bottom: 12px;
}
.g24-home-section__head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.g24-home-section__head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--g24-auth-muted);
  line-height: 1.4;
}

.g24-home-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.g24-home-guide__card {
  padding: 16px 15px 15px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--g24-auth-border);
  box-shadow: 0 8px 22px rgba(23, 23, 23, 0.03);
}
.g24-home-guide__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
}
.g24-home-guide__card h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}
.g24-home-guide__card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--g24-auth-muted);
}

.g24-home-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.g24-home-quick__btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 88px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid var(--g24-auth-border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.g24-home-quick__btn:hover {
  text-decoration: none;
  color: inherit;
  border-color: rgba(23, 23, 23, 0.22);
  box-shadow: 0 10px 26px rgba(23, 23, 23, 0.07);
  transform: translateY(-1px);
}
.g24-home-quick__btn--primary {
  background: #171717;
  border-color: #171717;
  color: #fff;
}
.g24-home-quick__btn--primary:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #fff;
}
.g24-home-quick__btn--primary .g24-home-quick__text em {
  color: rgba(255, 255, 255, 0.68);
}
.g24-home-quick__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(23, 23, 23, 0.06);
  color: #404040;
}
.g24-home-quick__btn--primary .g24-home-quick__ico {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.g24-home-quick__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.g24-home-quick__text strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.g24-home-quick__text em {
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--g24-auth-muted);
}

.g24-home-stats {
  margin-bottom: 0;
}
.g24-home-panel {
  margin-bottom: 16px;
}
.g24-home-columns {
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .g24-home-hero {
    grid-template-columns: 1fr;
  }
  .g24-home-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g24-home-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .g24-home-guide,
  .g24-home-quick {
    grid-template-columns: 1fr;
  }
  .g24-home-hero__main {
    padding: 18px 16px;
  }
  .g24-home-balance__value {
    font-size: 1.45rem;
  }
}

/* —— Профиль —— */
.g24-profile-page {
  max-width: 720px;
}
.g24-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.g24-profile-head--compact h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}
.g24-profile-head--compact p {
  margin: 0;
  max-width: 42ch;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--g24-auth-muted);
}
.g24-profile-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.g24-profile-status--draft { background: #f3f4f6; color: #374151; }
.g24-profile-status--pending { background: #dbeafe; color: #1e40af; }
.g24-profile-status--approved { background: #dcfce7; color: #166534; }
.g24-profile-status--rejected { background: #fee2e2; color: #991b1b; }
.g24-profile-card--compact {
  padding: 18px 18px 16px;
}
.g24-profile-form .g24-cabinet-form__grid--compact {
  gap: 10px 12px;
}
.g24-profile-form .g24-cabinet-form__field span {
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.g24-profile-form input,
.g24-profile-form textarea {
  min-height: 40px;
  padding: 8px 11px;
  font-size: 0.92rem;
}
.g24-profile-form textarea {
  min-height: 72px;
  resize: vertical;
}
.g24-payer-types {
  margin: 0 0 14px;
  padding: 0;
  border: none;
}
.g24-payer-types__legend {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}
.g24-payer-types__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g24-payer-types__grid--4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.g24-payer-type {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
}
.g24-payer-type--card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 14px;
}
.g24-payer-type--onb {
  gap: 6px;
  min-height: 88px;
  border-style: dotted;
  border-width: 2px;
  border-color: #94a3b8;
  background: #fafafa;
  cursor: pointer;
}
.g24-payer-type--onb:hover {
  border-color: #64748b;
  background: #fff;
}
.g24-payer-type--onb.is-active {
  border-style: solid;
  border-color: #17824a;
  background: #f3faf6;
  box-shadow: 0 0 0 3px rgba(23, 130, 74, 0.12);
}
.g24-payer-type__pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 4px 10px;
  border: 1px dotted #64748b;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.g24-payer-type--onb.is-active .g24-payer-type__pick {
  border-style: solid;
  border-color: #17824a;
  background: #17824a;
  color: #fff;
}
.g24-payer-type__pick:hover {
  border-color: #0f172a;
  color: #0f172a;
}
.g24-payer-type--onb.is-active .g24-payer-type__pick:hover {
  border-color: #146b3a;
  background: #146b3a;
  color: #fff;
}
.g24-payer-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.g24-payer-type__label {
  font-size: 0.9rem;
  font-weight: 750;
  color: #334155;
  line-height: 1.2;
}
.g24-payer-type__desc {
  font-size: 0.72rem;
  line-height: 1.25;
  color: #94a3b8;
}
.g24-payer-type:hover {
  border-color: #a3a3a3;
}
.g24-payer-type.is-active {
  border-color: #17824a;
  background: #f3faf6;
  box-shadow: 0 0 0 3px rgba(23, 130, 74, 0.12);
}
.g24-payer-type.is-active .g24-payer-type__label {
  color: #146b3a;
}
.g24-profile-fields--onb.is-open,
.g24-profile-fields--onb.is-open[hidden] {
  display: block !important;
}
.g24-payer-types__hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}
.g24-req {
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
}
.g24-profile-fields {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #eef2f0;
}
.g24-profile-fields[hidden] {
  display: none !important;
}
#g24CabinetAi[hidden] {
  display: none !important;
}
.g24-profile-bank {
  margin-top: 12px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}
.g24-profile-bank__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.g24-profile-bank__title strong {
  font-size: 0.86rem;
  color: #0f172a;
}
.g24-profile-bank__title span {
  font-size: 0.75rem;
  color: #94a3b8;
}
.g24-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f0;
}
.g24-profile-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: #64748b;
}
.g24-profile-bonus-line {
  margin: 10px 2px 0;
  font-size: 0.84rem;
  color: #64748b;
}
.g24-profile-phone-ro {
  background: #f3f4f6 !important;
  color: #374151 !important;
  cursor: default;
}
.g24-profile-lock-wrap {
  position: relative;
}
.g24-profile-lock-wrap.is-locked {
  user-select: none;
}
.g24-profile-glass {
  position: absolute;
  inset: -6px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(148, 163, 184, 0.28);
  pointer-events: all;
  cursor: not-allowed;
}
.g24-profile-glass__label {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.g24-profile-unlock {
  margin-top: 10px;
  padding: 12px 14px;
}
.g24-profile-unlock__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin: 0 0 8px;
}
.g24-profile-unlock__head strong {
  font-size: 0.92rem;
  color: #0f172a;
}
.g24-profile-unlock__head span {
  font-size: 0.8rem;
  color: #64748b;
}
.g24-profile-unlock__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.g24-cabinet-btn--sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.86rem;
}
.g24-profile-unlock__status {
  font-size: 0.8rem;
  color: #166534;
}
.g24-profile-unlock__status.is-err {
  color: #991b1b;
}
.g24-profile-unlock__verify {
  display: flex;
  gap: 6px;
  align-items: center;
}
.g24-profile-unlock__verify input {
  width: 88px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
}
.g24-profile-fields[data-payer-type="individual"] [data-profile-field="address"],
.g24-profile-fields[data-payer-type="individual"] [data-profile-field="bank"],
.g24-profile-fields[data-payer-type="individual"] [data-profile-field="company_name"],
.g24-profile-fields[data-payer-type="individual"] [data-profile-field="unp"],
.g24-profile-fields[data-payer-type="self_employed"] [data-profile-field="address"],
.g24-profile-fields[data-payer-type="self_employed"] [data-profile-field="bank"],
.g24-profile-fields[data-payer-type="self_employed"] [data-profile-field="company_name"] {
  display: none !important;
}
@media (max-width: 720px) {
  .g24-payer-types__grid--4 {
    grid-template-columns: 1fr 1fr;
  }
}
.g24-bank-need-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
}
.g24-bank-need-card__text {
  flex: 1 1 220px;
  min-width: 0;
}
.g24-bank-need-card__text strong {
  display: block;
  margin-bottom: 4px;
  color: #92400e;
  font-size: 0.98rem;
}
.g24-bank-need-card__text p {
  margin: 0;
  color: #a16207;
  font-size: 0.88rem;
  line-height: 1.45;
}
.g24-bank-need-card__btn {
  flex-shrink: 0;
  text-decoration: none;
}
.g24-profile-meta {
  margin: 0;
}
.g24-profile-meta div {
  padding: 10px 0;
  border-bottom: 1px solid var(--g24-auth-border);
}
.g24-profile-meta div:last-child {
  border-bottom: none;
}
.g24-profile-meta dt {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--g24-auth-muted);
}
.g24-profile-meta dd {
  margin: 0;
  font-size: 0.95rem;
}
.g24-profile-side-card__link {
  width: 100%;
  margin-top: 14px;
  text-decoration: none;
}
.g24-profile-bonus p {
  margin: 0;
  color: var(--g24-auth-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* —— Список объявлений —— */
.g24-listings-add-btn {
  flex-shrink: 0;
  text-decoration: none;
}
.g24-listings-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px 52px;
}
.g24-listings-empty-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(211, 47, 47, 0.1);
  color: var(--g24-auth-accent);
  margin-bottom: 20px;
}
.g24-listings-empty-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.g24-listings-empty-card p {
  margin: 0 0 28px;
  max-width: 420px;
  color: var(--g24-auth-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.g24-listings-empty-card__btn {
  min-width: 220px;
  padding: 14px 28px;
  text-decoration: none;
}

@media (max-width: 900px) {
  body.g24-cabinet-page {
    display: block;
    min-height: 0;
  }
  body.g24-cabinet-page .g24-cabinet-main,
  html body.g24-cabinet-page:has(.site-header.p24-glass) .g24-cabinet-main {
    display: block;
    padding: 16px 16px 40px;
  }
  .g24-cabinet-layout,
  .g24-cabinet-layout.has-ai-assistant,
  .g24-cabinet-layout.has-ai-assistant.is-ai-open {
    grid-template-columns: 1fr;
    max-width: 1450px;
    margin: 0 auto;
    gap: 12px;
    background: none;
    padding-right: 0;
  }
  body.g24-cabinet-page .site-content-wrapper {
    display: block;
    min-height: 0;
  }
  .g24-cabinet-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    order: 0;
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    border: 0;
    border-radius: 12px;
    background: var(--g24-sidebar-bg);
    color: #ececef;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  }
  .g24-cabinet-menu-btn svg {
    flex: 0 0 auto;
    opacity: 0.85;
  }
  .g24-cabinet-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1300;
    width: min(320px, calc(100vw - 48px));
    order: 0;
    margin: 0;
    border-radius: 0;
    min-height: 0;
    height: auto;
    padding: 24px 16px 24px;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
  }
  .g24-cabinet-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .g24-cabinet-sidebar__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  .g24-cabinet-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1290;
    background: rgba(16, 22, 19, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }
  .g24-cabinet-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  body.cabinet-drawer-open {
    overflow: hidden;
    touch-action: none;
  }
  .g24-cabinet-content {
    order: 1;
    padding: 0;
  }
  .g24-cabinet-form__grid {
    grid-template-columns: 1fr;
  }
  .g24-pay-erip-layout {
    grid-template-columns: 1fr;
  }
  .g24-pay-qr {
    min-width: 0;
    width: 100%;
  }
  .g24-pay-erip__row {
    flex-direction: column;
    align-items: stretch;
  }
  .g24-pay-erip__copy {
    justify-content: center;
  }
  .g24-pay-head__amount {
    font-size: 2rem;
  }
  .g24-dash-stats,
  .g24-dash-actions__grid,
  .g24-dash-columns,
  .g24-profile-layout {
    grid-template-columns: 1fr;
  }
  .g24-dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g24-dash-hero {
    padding: 14px 16px;
  }
  .g24-dash-hero__title {
    font-size: 1.2rem;
  }
}

.g24-mobile-auth-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 12px 0;
}

@media (max-width: 640px) {
  .g24-auth-header-btn span.g24-auth-header-label {
    display: none;
  }
  .g24-auth-modal {
    padding: 28px 20px 24px;
  }
}
