/* ==========================================================================
   ГдеВетОРИТ — Профессиональный продуктовый дизайн (без «вайбкодерщины»)
   Чистая типографика, компактные карточки, векторные SVG-иконки, стиль gdebenz.ru
   ========================================================================== */

:root {
  --color-brand: #10b981;
  --color-brand-dark: #059669;
  --color-brand-light: #ecfdf5;
  
  --color-status-free: #10b981;
  --color-status-busy: #f59e0b;
  --color-status-full: #ef4444;
  --color-status-unknown: #64748b;

  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-hover: #f8fafc;
  --bg-active: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-subtle: #e2e8f0;
  --border-focus: #cbd5e1;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-panel: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-floating: 0 4px 14px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-base);
  color: var(--text-primary);
  background-color: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------
   Полноэкранная векторная карта
   --------------------------------------------------------- */
#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ---------------------------------------------------------
   Главная плавающая панель (Десктоп: боковая, Мобилки: шторка)
   --------------------------------------------------------- */
.gb-sidebar {
  position: absolute;
  z-index: 1000;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  transition: height 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
  box-shadow: var(--shadow-panel);
}

.gb-mobile-only {
  display: none !important;
}

@media (min-width: 768px) {
  .gb-sidebar {
    top: 14px;
    bottom: 14px;
    left: 14px;
    width: 415px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    height: calc(100vh - 28px);
    max-height: calc(100vh - 28px);
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .gb-mobile-only {
    display: flex !important;
  }
  .gb-sidebar {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 48vh;
    height: 48dvh;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--border-subtle);
    overflow: hidden;
  }
  .gb-sidebar.expanded {
    height: 86vh;
    height: 86dvh;
  }
  .gb-sidebar.collapsed {
    height: 108px;
  }
  .gb-sidebar.collapsed .gb-filter-scroller,
  .gb-sidebar.collapsed .gb-cards-feed,
  .gb-sidebar.collapsed .gb-ideas-container,
  .gb-sidebar.collapsed .gb-community-feed,
  .gb-sidebar.collapsed .gb-tabbar,
  .gb-sidebar.collapsed .gb-sidebar-sublinks {
    display: none !important;
  }
}

/* Шапка панели */
.gb-header {
  padding: 12px 14px 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}

.gb-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gb-header-user-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gb-header-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.gb-header-controls-row .gb-select-wrapper {
  flex: 1;
  min-width: 0;
}

.gb-header-controls-row .gb-city-select {
  width: 100%;
}

.gb-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.gb-logo-box {
  width: 32px;
  height: 32px;
  background: #10b981;
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gb-brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.gb-brand-title {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.gb-brand-title strong {
  font-weight: 700;
  color: var(--color-brand-dark);
}

.gb-brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gb-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gb-select-wrapper {
  position: relative;
}

.gb-city-select {
  appearance: none;
  background: #f8fafc;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 24px 6px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 9px) center;
  transition: border-color 0.15s;
}
.gb-city-select:focus {
  border-color: var(--color-brand);
}

.gb-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.gb-icon-btn:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

/* Скроллер фильтров */
.gb-filter-scroller {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.gb-filter-scroller::-webkit-scrollbar {
  display: none;
}

.gb-filter-pill {
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.gb-filter-pill:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.gb-filter-pill.active {
  background: var(--color-brand);
  color: #ffffff;
  font-weight: 600;
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.dot-free { background: #10b981; }
.gb-filter-pill.active .dot-free { background: #ffffff; }

/* ---------------------------------------------------------
   Лента карточек (Компактный стиль gdebenz.ru)
   --------------------------------------------------------- */
.gb-cards-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
}

/* Аккуратный тонкий скроллбар */
.gb-cards-feed::-webkit-scrollbar,
.gb-sheet-body::-webkit-scrollbar,
.community-msg-list::-webkit-scrollbar,
.ideas-scroll-wrap::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.gb-cards-feed::-webkit-scrollbar-track,
.gb-sheet-body::-webkit-scrollbar-track,
.community-msg-list::-webkit-scrollbar-track,
.ideas-scroll-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.gb-cards-feed::-webkit-scrollbar-thumb,
.gb-sheet-body::-webkit-scrollbar-thumb,
.community-msg-list::-webkit-scrollbar-thumb,
.ideas-scroll-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.gb-cards-feed::-webkit-scrollbar-thumb:hover,
.gb-sheet-body::-webkit-scrollbar-thumb:hover,
.community-msg-list::-webkit-scrollbar-thumb:hover,
.ideas-scroll-wrap::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media (max-width: 767px) {
  .gb-cards-feed,
  .gb-sheet-body,
  .community-msg-list,
  .ideas-scroll-wrap {
    scrollbar-width: none;
  }
  .gb-cards-feed::-webkit-scrollbar,
  .gb-sheet-body::-webkit-scrollbar,
  .community-msg-list::-webkit-scrollbar,
  .ideas-scroll-wrap::-webkit-scrollbar {
    display: none;
  }
}

/* Компактная карточка клиники */
.gb-clinic-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.15s ease;
}

.gb-clinic-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  transform: translateY(-1px);
}

.gb-clinic-card.selected {
  border-color: var(--color-brand);
  background: #f0fdf4;
}

.gb-clinic-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.gb-clinic-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gb-clinic-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.gb-clinic-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gb-clinic-dist {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.gb-clinic-row-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
}

.status-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot-sm.free,
.status-dot-sm.open { background: var(--color-status-free); }
.status-dot-sm.busy { background: var(--color-status-busy); }
.status-dot-sm.full { background: var(--color-status-full); }
.status-dot-sm.unknown { background: var(--color-status-unknown); }

.gb-clinic-status-text {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gb-clinic-status-text.free,
.gb-clinic-status-text.open { color: var(--color-status-free); }
.gb-clinic-status-text.busy { color: var(--color-status-busy); }
.gb-clinic-status-text.full { color: var(--color-status-full); }
.gb-clinic-status-text.unknown { color: var(--color-status-unknown); }

.gb-card-badges-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.gb-card-badge {
  font-size: 0.65rem;
  background: #f1f5f9;
  color: #475569;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  white-space: nowrap;
}

.gb-card-badge-more {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ---------------------------------------------------------
   1. АККУРАТНАЯ ПЛАШКА ПАРТНЕРКИ (1-в-1 с Marketly блоком gdebenz)
   --------------------------------------------------------- */
.gb-ad-partner {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: all 0.15s;
}

.gb-ad-partner:hover {
  border-color: #cbd5e1;
}

.gb-ad-partner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.gb-ad-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.gb-ad-close:hover {
  color: var(--text-primary);
}

.gb-ad-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.gb-ad-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gb-ad-text-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gb-ad-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gb-ad-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.gb-ad-legal {
  font-size: 0.64rem;
  color: var(--text-light);
  line-height: 1.3;
  margin-top: 2px;
}

/* ---------------------------------------------------------
   2. АККУРАТНАЯ ПЛАШКА РСЯ (Яндекс Директ)
   --------------------------------------------------------- */
.gb-ad-yandex {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: all 0.15s;
}

.gb-ad-yandex:hover {
  border-color: #fca5a5;
}

.gb-ad-yandex-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gb-ad-yandex-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Нижний бар вкладок (Чат, Карта, О сервисе) как на gdebenz
   --------------------------------------------------------- */
.gb-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  gap: 2px;
}

.gb-tab-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 2px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 500;
  transition: all 0.15s;
}

.gb-tab-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.gb-tab-item:hover {
  color: var(--text-primary);
}

.gb-tab-item.active {
  color: var(--color-brand);
  font-weight: 600;
}

/* ---------------------------------------------------------
   Детальная карточка клиники (Выдвижная шторка/карточка)
   --------------------------------------------------------- */
.gb-detail-sheet {
  position: absolute;
  z-index: 1002;
  background: #ffffff;
  box-shadow: var(--shadow-panel);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

@media (min-width: 1000px) {
  .gb-detail-sheet {
    top: 14px;
    bottom: 14px;
    left: 442px;
    width: 440px;
    max-width: calc(100vw - 460px);
    height: calc(100vh - 28px);
    max-height: calc(100vh - 28px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  }
}

@media (min-width: 768px) and (max-width: 999px) {
  .gb-detail-sheet {
    top: 14px;
    bottom: 14px;
    left: 14px;
    width: 400px;
    max-width: calc(100vw - 28px);
    height: calc(100vh - 28px);
    max-height: calc(100vh - 28px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
    z-index: 1005;
  }
}

@media (max-width: 767px) {
  .gb-detail-sheet {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 75vh;
    height: 75dvh;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.22);
  }
  .gb-detail-sheet.expanded {
    height: 92vh;
    height: 92dvh;
  }
}

.gb-detail-sheet.open {
  display: flex;
  animation: slide-up 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.gb-sheet-handle-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 6px 0;
  cursor: pointer;
  background: #ffffff;
  flex-shrink: 0;
  touch-action: none;
}

.gb-sheet-pill {
  width: 40px;
  height: 5px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
}

.gb-sheet-pinned-header {
  padding: 12px 16px 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  z-index: 2;
}

.gb-sheet-body {
  padding: 12px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
}

.gb-sheet-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.gb-sheet-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.gb-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  transition: all 0.15s;
}
.gb-sheet-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.gb-sheet-address {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gb-sheet-status-box {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gb-sheet-status-box.free,
.gb-sheet-status-box.open { background: #ecfdf5; color: #059669; }
.gb-sheet-status-box.busy { background: #fffbeb; color: #d97706; }
.gb-sheet-status-box.full { background: #fef2f2; color: #dc2626; }
.gb-sheet-status-box.unknown { background: #f1f5f9; color: #64748b; }

.gb-sheet-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.gb-feature-chip {
  font-size: 0.72rem;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.gb-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.gb-sheet-actions .admin-btn {
  grid-column: span 2;
}

@media (max-width: 480px) {
  .gb-sheet-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.gb-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.gb-action-btn.primary {
  background: var(--color-brand);
  color: #ffffff;
}
.gb-action-btn.primary:hover {
  background: var(--color-brand-dark);
}

.gb-action-btn.secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.gb-action-btn.secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.gb-action-btn.outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.gb-action-btn.outline:hover {
  color: var(--text-primary);
  background: #f8fafc;
}

/* ---------------------------------------------------------
   Плавающие кнопки карты справа внизу
   --------------------------------------------------------- */
.gb-map-controls {
  position: absolute;
  right: 16px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media (max-width: 767px) {
  .gb-map-controls {
    right: 12px;
    top: 14px;
    bottom: auto;
    z-index: 998;
  }
}

.gb-zoom-pill {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-floating);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.gb-zoom-btn {
  width: 38px;
  height: 36px;
  background: #ffffff;
  border: none;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.gb-zoom-btn:hover {
  background: #f1f5f9;
}

.gb-zoom-sep {
  width: 20px;
  height: 1px;
  background: #e2e8f0;
  margin: 0 auto;
}

.gb-loc-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-floating);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.gb-loc-circle:hover {
  background: #f1f5f9;
}

/* ---------------------------------------------------------
   Каплевидные маркеры карты (прикреплены к координатам MapLibre)
   --------------------------------------------------------- */
.gb-marker-container {
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.gb-marker-container.selected {
  z-index: 99999 !important;
}

.gb-marker-pin {
  position: relative;
  width: 32px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.gb-marker-container:hover .gb-marker-pin {
  transform: scale(1.18) translateY(-3px);
  z-index: 9999;
}

.gb-marker-container.selected .gb-marker-pin,
.gb-marker-pin.selected {
  transform: scale(1.28) translateY(-5px);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  z-index: 99999;
}

.gb-marker-container.selected .gb-marker-head {
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.gb-marker-tooltip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  z-index: 100000;
}

.gb-marker-container:hover .gb-marker-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.gb-marker-head {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.gb-marker-pin.free .gb-marker-head,
.gb-marker-pin.open .gb-marker-head { border-color: var(--color-status-free); }
.gb-marker-pin.busy .gb-marker-head { border-color: var(--color-status-busy); }
.gb-marker-pin.full .gb-marker-head { border-color: var(--color-status-full); }
.gb-marker-pin.unknown .gb-marker-head { border-color: var(--color-status-unknown); }

.gb-marker-tail {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #10b981;
  margin-top: -2px;
}

.gb-marker-pin.free .gb-marker-tail,
.gb-marker-pin.open .gb-marker-tail { border-top-color: var(--color-status-free); }
.gb-marker-pin.busy .gb-marker-tail { border-top-color: var(--color-status-busy); }
.gb-marker-pin.full .gb-marker-tail { border-top-color: var(--color-status-full); }
.gb-marker-pin.unknown .gb-marker-tail { border-top-color: var(--color-status-unknown); }

/* Точка пользователя */
.gb-user-container {
  pointer-events: none;
}

.gb-user-location-dot {
  width: 16px;
  height: 16px;
  background: #2563eb;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

/* ---------------------------------------------------------
   Модальные окна
   --------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}

.modal-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.vote-options-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vote-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.vote-option-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.vote-status-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vote-free { background: var(--color-status-free); }
.vote-busy { background: var(--color-status-busy); }
.vote-full { background: var(--color-status-full); }

.vote-option-info {
  display: flex;
  flex-direction: column;
}

.vote-main-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.vote-sub-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.modal-gps-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.modal-btn-action {
  background: var(--color-brand);
  color: #ffffff;
  border: none;
  padding: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 4px;
}

/* ---------------------------------------------------------
   Кнопки в шапке: Добавить клинику и Яндекс ID
   --------------------------------------------------------- */
.gb-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.gb-add-btn:hover {
  background: #059669;
}

.gb-add-btn:active {
  transform: scale(0.97);
}

.gb-yandex-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s;
}

.gb-yandex-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.ya-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  background: #fc3f1d;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: Arial, sans-serif;
}

.gb-profile-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
}

.header-admin-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gb-user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.gb-user-name {
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gb-logout-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.gb-logout-btn:hover {
  color: #ef4444;
}

/* ---------------------------------------------------------
   Модалка авторизации Яндекс ID
   --------------------------------------------------------- */
.ya-auth-card {
  max-width: 420px;
}

.ya-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ya-badge-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #fc3f1d;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
}

.ya-auth-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ya-security-shield {
  display: flex;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.76rem;
  color: #991b1b;
  line-height: 1.4;
}

.ya-security-shield strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
  color: #7f1d1d;
}

.ya-auth-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ya-big-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fc3f1d;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(252, 63, 29, 0.25);
  transition: background 0.15s, transform 0.1s;
}

.ya-big-login-btn:hover {
  background: #e03212;
}

.ya-big-login-btn:active {
  transform: scale(0.98);
}

.ya-circle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #ffffff;
  color: #fc3f1d;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.9rem;
}

.ya-auth-note {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
}

/* ---------------------------------------------------------
   Форма добавления ветклиники и автоподсказки адреса
   --------------------------------------------------------- */
.add-clinic-modal-card {
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

.add-clinic-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="tel"] {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
  border-color: var(--color-brand);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Выпадающий список подсказок адресов */
.gb-suggest-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.gb-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: var(--text-primary);
  background: #ffffff;
  transition: background 0.12s;
}

.gb-suggest-item:last-child {
  border-bottom: none;
}

.gb-suggest-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.gb-suggest-item-icon {
  color: #0284c7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.gb-suggest-title {
  font-weight: 500;
  line-height: 1.3;
}

.selected-coords-badge {
  display: inline-block;
  font-size: 0.68rem;
  color: #047857;
  background: #d1fae5;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-top: 3px;
  font-weight: 500;
}

.feat-checkboxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid #f1f5f9;
}

.feat-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
}

.status-radio-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.status-radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.gb-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.gb-radio-dot.dot-gray { background: #94a3b8; }
.gb-radio-dot.dot-green { background: #10b981; }
.gb-radio-dot.dot-yellow { background: #f59e0b; }

.add-clinic-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.add-clinic-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ---------------------------------------------------------
   Блок верификации и чата в карточке клиники
   --------------------------------------------------------- */
.sheet-verify-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.sheet-verify-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}

.sheet-verify-actions {
  display: flex;
  gap: 8px;
}

.sheet-verify-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.sheet-verify-btn.confirm {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.sheet-verify-btn.confirm:hover {
  background: #d1fae5;
}

.sheet-verify-btn.fake {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.sheet-verify-btn.fake:hover {
  background: #fee2e2;
}

.sheet-gps-alert {
  font-size: 0.68rem;
  color: #047857;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Оперативный чат клиники */
.sheet-chat-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.sheet-chat-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-chat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.chat-message-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 0.74rem;
}

.chat-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.chat-msg-author {
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-msg-role {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 400;
}

.chat-msg-role-badge {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.chat-msg-role-badge.doctor {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.chat-msg-role-badge.gps {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.chat-msg-time {
  font-size: 0.65rem;
  color: #94a3b8;
}

.chat-msg-text {
  color: #334155;
  line-height: 1.35;
}

.chat-input-form {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.chat-input-field {
  flex: 1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 0.76rem;
  font-family: inherit;
  outline: none;
}

.chat-input-field:focus {
  border-color: var(--color-brand);
}

.chat-send-btn {
  background: var(--color-brand);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-remove-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

/* ---------------------------------------------------------
   Лента оперативных сводок и обсуждений (вкладка Обсуждения)
   --------------------------------------------------------- */
.gb-community-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.community-feed-header {
  padding: 12px 14px 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.community-feed-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.community-feed-sub {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 2px;
}

.community-msg-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-msg-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s;
}
.community-msg-item:hover {
  border-color: #cbd5e1;
}

.community-msg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.community-msg-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #1e293b;
}

.community-msg-clinic {
  font-size: 0.68rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-msg-clinic:hover {
  background: #bae6fd;
}

.community-msg-text {
  font-size: 0.79rem;
  color: #334155;
  line-height: 1.35;
}

.community-msg-time {
  font-size: 0.65rem;
  color: #94a3b8;
}

.community-send-box {
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  gap: 8px;
}

.community-send-box input {
  flex: 1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.8rem;
  outline: none;
}
.community-send-box input:focus {
  border-color: var(--color-brand);
}

.community-send-btn {
  background: var(--color-brand);
  color: #ffffff;
  border: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.community-send-btn:hover {
  background: #059669;
}

.feat-category-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  margin-top: 4px;
  margin-bottom: 2px;
  display: block;
}

/* ---------------------------------------------------------
   3 РАЗДЕЛЬНЫХ СТАТУСА ВЕРИФИКАЦИИ В ДЕТАЛЬНОЙ КАРТОЧКЕ
   --------------------------------------------------------- */
.sheet-three-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.status-check-card {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.status-check-card.verified {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.status-check-card.pending {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

.status-check-card.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.status-check-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 700;
}

.status-check-desc {
  font-size: 0.65rem;
  color: #64748b;
  line-height: 1.2;
}

.status-check-card.verified .status-check-desc {
  color: #166534;
}

.status-check-card.warning .status-check-desc {
  color: #92400e;
}

.sheet-info-block {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-info-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sheet-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ---------------------------------------------------------
   БЫСТРАЯ АНТИ-БОТ КАПЧА (1 КЛИК, СТИЛЬ SMART TURNSTILE)
   --------------------------------------------------------- */
.captcha-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.captcha-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 360px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: captchaPop 0.2s ease-out;
}

@keyframes captchaPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.captcha-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.captcha-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.captcha-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.captcha-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.captcha-box:hover {
  border-color: var(--color-brand);
  background: #ffffff;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #94a3b8;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.captcha-checkbox.loading {
  border-color: #cbd5e1;
  border-top-color: var(--color-brand);
  animation: captchaSpin 0.7s linear infinite;
}

@keyframes captchaSpin {
  to { transform: rotate(360deg); }
}

.captcha-checkbox.verified {
  background: #10b981;
  border-color: #10b981;
}

.captcha-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.captcha-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

/* ---------------------------------------------------------
   ЮРИДИЧЕСКИЙ БАР В ПОДВАЛЕ САЙДБАРА (152-ФЗ, ВЕТЕРИНАРИЯ)
   --------------------------------------------------------- */
.gb-sidebar-legal-bar {
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.35;
  user-select: none;
}

.gb-legal-disclaimer {
  color: #64748b;
}

.gb-legal-links-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gb-legal-links-row a {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gb-legal-links-row a:hover {
  color: var(--color-brand);
}

/* ---------------------------------------------------------
   Вкладка «Идеи и замечания» (gb-ideas-container)
   --------------------------------------------------------- */
.gb-ideas-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-card);
}

.ideas-scroll-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ideas-form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ideas-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.idea-type-pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.72rem;
  user-select: none;
}

.idea-type-pill input[type="radio"] {
  display: none;
}

.idea-type-pill span {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  font-weight: 500;
}

.idea-type-pill input[type="radio"]:checked + span {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4338ca;
  font-weight: 600;
}

.idea-type-pill:hover span {
  border-color: #cbd5e1;
}

/* ---------------------------------------------------------
   Баннер согласия с cookie и юридическими условиями (152-ФЗ)
   --------------------------------------------------------- */
.gb-cookie-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 12px 14px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  animation: slide-up 0.25s ease-out;
}

@media (max-width: 767px) {
  .gb-cookie-banner {
    bottom: 54px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.cookie-banner-link {
  color: var(--color-brand-dark);
  text-decoration: underline;
  font-size: 0.7rem;
}

.cookie-banner-btn {
  background: var(--color-brand);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 5px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.cookie-banner-btn:hover {
  background: var(--color-brand-dark);
}

/* ---------------------------------------------------------
   Кнопка установки PWA приложения в шапке
   --------------------------------------------------------- */
.gb-install-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gb-install-app-btn:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.gb-install-app-btn svg {
  flex-shrink: 0;
}


