/* [2026-02-24][CLX][ART-COMFORT] Components: buttons, inputs, tables, badges, cards */

/* [2026-02-26][CLX][V5.3-7] Скрыть печатные блоки на экране */
.print-only { display: none; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--tr-fast), box-shadow var(--tr-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-primary);
  color: var(--text-on-accent);
}
.btn-primary:hover { background: var(--c-primary-dark); }

.btn-accent {
  background: var(--c-accent);
  color: var(--text-on-accent);
}
.btn-accent:hover { background: var(--c-accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--c-text-secondary);
  border: 1px solid var(--c-border);
}
.btn-outline:hover { background: var(--c-bg); border-color: var(--c-text-muted); }

.btn-ghost {
  background: transparent;
  color: var(--c-text-secondary);
  padding: 6px 10px;
}
.btn-ghost:hover { background: var(--c-bg); color: var(--c-text); }

.btn-sm {
  padding: 5px 10px;
  font-size: 0.82rem;
}

.btn-icon {
  padding: 6px;
  line-height: 0;
}

/* === Inputs === */
.input, .select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--c-text);
  transition: border-color var(--tr-fast);
  outline: none;
}

.input:focus, .select:focus {
  border-color: var(--c-border-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.input::placeholder { color: var(--c-text-muted); }

.input-sm {
  padding: 5px 8px;
  font-size: 0.85rem;
}

.input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-group .input {
  flex: 1;
  min-width: 0;
}

/* === Checkbox === */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--c-text);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--c-primary);
  cursor: pointer;
}

.checkbox-label .count {
  margin-left: auto;
  color: var(--c-text-muted);
  font-size: 0.82rem;
}

/* [2026-02-26][CLX][V5.3-3] Неактивные бренды */
.checkbox-label--disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* === Filter panel === */
.filter-panel {
  background: var(--c-card);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  padding: 16px;
}

.filter-section {
  margin-bottom: 18px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section__title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.filter-preset {
  padding: 3px 10px;
  font-size: 0.82rem;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: transparent;
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.filter-preset:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.filter-preset.active {
  background: var(--c-primary);
  color: var(--text-on-accent);
  border-color: var(--c-primary);
}

.filter-preset--disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.filter-hint {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* Height presets — два варианта (A/B), каждый с 2 рядами */
.height-presets-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.height-presets-group + .height-presets-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--c-border);
}

.filter-presets__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-section__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}

/* === Shape picker === */
.shape-picker {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 6px;
}

.shape-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.shape-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.shape-btn.active {
  background: var(--c-primary-light);
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.shape-btn--disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

.shape-icon {
  width: 24px;
  height: 24px;
}

/* === Toggle group (Монтаж, Ориентация, Подключение) === */
.toggle-group {
  display: flex;
  gap: 6px;
}

.toggle-btn {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--tr-fast);
  text-align: center;
  white-space: nowrap;
}

.toggle-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.toggle-btn.active {
  background: var(--c-primary-light);
  border-color: var(--c-primary);
  color: var(--c-primary);
  font-weight: 500;
}

/* Shape icon in table cell */
.cell-shape {
  width: 32px;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.cell-shape .shape-icon {
  width: 18px;
  height: 18px;
  color: var(--c-text-muted);
}

.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

/* === Data Table === */
.data-table-wrap {
  flex: 1;
  overflow: auto;
  background: var(--c-card);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  position: sticky;
  top: 0;
  background: var(--c-bg);
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--c-border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  z-index: 1;
}

.data-table th:hover {
  color: var(--c-text);
}

.data-table th.sorted {
  color: var(--c-primary);
}

.data-table th .sort-icon {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.3;
  font-size: 0.75rem;
}

.data-table th.sorted .sort-icon {
  opacity: 1;
}

.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background var(--tr-fast);
}

.data-table tbody tr:hover {
  background: var(--c-primary-light);
}

.data-table .text-right {
  text-align: right;
}

.data-table .text-center {
  text-align: center;
}

.data-table .cell-brand {
  font-weight: 500;
}

.data-table .cell-price {
  font-weight: 500;
  white-space: nowrap;
}

/* === Toolbar (above table) === */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
}

.toolbar__info {
  font-size: 0.9rem;
  color: var(--c-text-secondary);
}

.toolbar__info strong {
  color: var(--c-text);
  font-weight: 600;
}

/* [2026-02-26][CLX][V5.3-1] Page size selector */
.toolbar__page-size {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--c-text-secondary);
}
.toolbar__page-size .select {
  width: auto;
  min-width: 60px;
  padding: 4px 8px;
}

/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0 8px;
}

.pagination__btn {
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-card);
  color: var(--c-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.pagination__btn:hover:not(.active):not(:disabled) {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.pagination__btn.active {
  background: var(--c-primary);
  color: var(--text-on-accent);
  border-color: var(--c-primary);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pagination__ellipsis {
  padding: 0 4px;
  color: var(--c-text-muted);
}

/* === Card (radiator detail) === */
.detail-card {
  background: var(--c-card);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  padding: 24px;
}

.detail-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.detail-card__title {
  font-size: 1.35rem;
  font-weight: 600;
}

.detail-card__subtitle {
  font-size: 0.95rem;
  color: var(--c-text-secondary);
  margin-top: 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.detail-section {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px;
}

.detail-section__title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.9rem;
}

.detail-row__label {
  color: var(--c-text-secondary);
}

.detail-row__value {
  font-weight: 500;
  text-align: right;
}

/* === Badge === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 10px;
}

.badge-primary {
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
}

.badge-wall { background: #dbeafe; color: #1e40af; }
.badge-floor { background: #fce7f3; color: #9d174d; }
.badge-ral { background: #fef3c7; color: #92400e; font-size: 0.7rem; margin-left: 6px; }

/* === Calc layout — 3-column (V5) === */
.calc-3col {
  display: flex;
  gap: 16px;
  height: calc(100vh - 120px);
  min-height: 500px;
}

.calc-params {
  width: 260px;
  min-width: 260px;
  overflow-y: auto;
  flex-shrink: 0;
}

.calc-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.calc-right {
  width: 220px;
  min-width: 220px;
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-table-area {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.calc-table-area .data-table-wrap {
  border: none;
  border-radius: 0;
}

.calc-table-area .data-table th {
  top: 0;
  z-index: 2;
}

/* Compact params for 260px panel */
.calc-params .detail-card {
  padding: 12px;
}

.calc-params .calc-field {
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .calc-3col { flex-wrap: wrap; height: auto; }
  .calc-params { width: 100%; min-width: 0; order: 1; }
  .calc-center { width: 100%; order: 2; min-height: 500px; }
  .calc-right { width: 100%; min-width: 0; order: 3; flex-direction: row; flex-wrap: wrap; }
}

.calc-field {
  margin-bottom: 14px;
}

.calc-field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text-secondary);
  margin-bottom: 4px;
}

/* [2026-02-25][CLX][CALC-DT] Подсказка под полем */
.calc-field__hint {
  font-size: 12px;
  color: var(--c-text-secondary, #888);
  margin-top: 4px;
  line-height: 1.4;
}

/* [2026-02-25][CLX][CALC-V5] Карточка мощности (правая панель, вертикальная) */
.calc-power-card {
  background: var(--c-card);
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.calc-power-card__value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-primary);
}

.calc-power-card__range {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.calc-power-card__info {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--c-border);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.calc-power-card__ref {
  opacity: 0.65;
  font-style: italic;
  font-size: 0.72rem;
}

.calc-rec-header {
  margin-bottom: 12px;
}

.calc-match {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 4px;
}

.calc-match--good { background: #d1fae5; color: #065f46; }
.calc-match--ok   { background: #fef3c7; color: #92400e; }
.calc-match--far  { background: #fee2e2; color: #991b1b; }

/* [2026-02-25][CLX][CALC-V5] Фаза 4 V5 — split, tabs, filters, kit, rooms nav, slide-over */

/* === Split bar (compact, V5) === */
.calc-split-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.calc-split-bar__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-secondary);
  white-space: nowrap;
}

.calc-split-bar__presets {
  display: flex;
  gap: 6px;
}

/* === Vertical filters (right panel, V5) === */
.calc-filters-v {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.calc-fv-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.calc-fv-input {
  margin-top: 2px;
}

.calc-fv-range {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.calc-fv-range .input {
  width: 70px;
  min-width: 0;
}

.calc-fv-tilde {
  color: var(--c-text-muted);
  font-size: 1rem;
}

/* Chip — inline button (smaller than filter-preset) */
.chip {
  padding: 3px 10px;
  font-size: 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: transparent;
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all var(--tr-fast);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.chip.active {
  background: var(--c-primary);
  color: var(--text-on-accent);
  border-color: var(--c-primary);
}

/* [2026-03-13][CLX][V6-SECTIONS] PDF навигация: секции + страницы */
/* [2026-03-17][CLX][V6-FIX] Горизонтальный скролл чипов секций (баг #4: overflow на мобильном) */
.pdf-sections-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 0;
  margin-bottom: 4px;
  scrollbar-width: thin;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.pdf-sections-row .chip {
  font-size: 0.72rem;
  padding: 2px 8px;
  flex-shrink: 0;
}

.pdf-pages-row {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 0;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.pdf-pages-row .pdf-page-btn {
  min-width: 28px;
  padding: 2px 5px;
  font-size: 0.72rem;
}

.btn-outline-primary {
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-light);
}

.btn-outline-secondary {
  border: 1px solid var(--c-border);
  color: var(--c-text-secondary);
  background: transparent;
}

/* [2026-03-13][CLX][V6-MANUAL] 3-колоночный layout ручного режима */
.manual-layout {
  display: grid;
  grid-template-columns: 30% 40% 30%;
  gap: 12px;
  height: calc(100vh - 170px);
}
/* [2026-03-17][CLX][V6-FIX] Responsive manual layout */
@media (max-width: 768px) {
  .manual-layout { grid-template-columns: 1fr; height: auto; }
}

.manual-layout > div {
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}

/* Секция в левой колонке ручного режима */
.manual-section {
  margin-bottom: 12px;
}

.manual-section__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-border);
}

/* Превью-карточки комнат */
.room-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.room-card {
  padding: 10px 8px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all var(--tr-fast);
}

.room-card:hover {
  border-color: var(--c-primary);
}

.room-card.active {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}

.room-card__name {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-card__area {
  font-size: 0.75rem;
  color: var(--c-text-secondary);
}

.room-card__power {
  font-size: 0.72rem;
  color: var(--c-text-muted);
}

/* [2026-03-17][CLX][V6-RECOGNITION] Индикация распознанных полей */
.field-recognized {
  color: var(--c-success, #22c55e);
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 4px;
  flex-shrink: 0;
}

/* Extra small input */
.input-xs {
  width: 70px;
  padding: 3px 6px;
  font-size: 0.88rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--c-text);
  outline: none;
}

.input-xs:focus {
  border-color: var(--c-border-focus);
}

/* Shape picker inline (smaller) */
.shape-picker--inline {
  display: flex;
  gap: 4px;
}

.shape-picker--inline .shape-btn {
  width: 32px;
  height: 32px;
}

.shape-btn--sm {
  width: 32px;
  height: 32px;
}

/* === Tabs bar (window tabs, V5) === */
.calc-tabs-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
}

.calc-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--c-bg);
  color: var(--c-text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--tr-fast);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.calc-tab:hover {
  background: var(--c-card);
  color: var(--c-text);
}

.calc-tab--active {
  background: var(--c-card);
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  font-weight: 500;
}

.calc-tab--done {
  color: #059669;
}

.calc-tab--active.calc-tab--done {
  color: var(--c-primary);
}

/* [2026-02-25][CLX][V5.1-B4] Панорамный таб */
.calc-tab--panoramic {
  color: var(--c-text-muted);
  font-style: italic;
  opacity: 0.8;
}

/* [2026-02-25][CLX][V5.1-B4] Панорамная строка в kit */
.calc-kit__item--panoramic {
  opacity: 0.7;
  font-style: italic;
}

.calc-tab__check {
  color: #059669;
  font-weight: 700;
}

.calc-tab__watts {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

.calc-tab__pct {
  font-size: 0.72rem;
  color: var(--c-text-muted);
}

.calc-tab__input {
  width: 70px;
  padding: 2px 4px;
  font-size: 0.82rem;
}

.calc-tab__count {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  margin-left: 2px;
}

/* Selected row in slot table */
.calc-row--selected {
  background: var(--c-primary-light) !important;
  box-shadow: inset 3px 0 0 var(--c-primary);
}

/* === Kit (комплект помещения, center area V5) === */
.calc-kit {
  background: var(--c-card);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.calc-kit--empty {
  border-style: dashed;
}

.calc-kit__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
}

.calc-kit__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-kit__meta {
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

.calc-kit__items {
  padding: 0 16px;
}

.calc-kit__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.88rem;
}

.calc-kit__item:last-child { border-bottom: none; }

.calc-kit__item--empty { opacity: 0.5; }

.calc-kit__item-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-text-muted);
  flex-shrink: 0;
}

.calc-kit__item-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.calc-kit__item-power {
  color: var(--c-primary);
  font-weight: 500;
  white-space: nowrap;
}

.calc-kit__item-price {
  font-weight: 600;
  white-space: nowrap;
}

.calc-kit__item-remove {
  color: var(--c-text-muted);
  font-size: 1.1rem;
}

.calc-kit__item-remove:hover { color: var(--c-accent); }

.calc-kit__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 2px solid var(--c-border);
  font-size: 0.95rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* [2026-02-25][CLX][V5.1-D1+D2] Footer layout */
.calc-kit__footer-left {
  flex: 1;
  min-width: 0;
}

.calc-kit__footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.calc-kit__counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 2px 4px;
}

.calc-kit__counter-val {
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  font-size: 0.95rem;
}

/* === Rooms nav (right panel, V5) === */
.calc-rooms-nav {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.calc-rooms-nav__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.calc-rooms-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Room chips */
.calc-room-chip {
  padding: 4px 12px;
  font-size: 0.82rem;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: transparent;
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.calc-room-chip:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.calc-room-chip--current {
  background: var(--c-primary-light);
  border-color: var(--c-primary);
  color: var(--c-primary);
  font-weight: 500;
}

/* [2026-02-25][CLX][V5.1-D2] Готовая комната */
.calc-room-chip--ready {
  border-color: #059669;
  color: #059669;
}

.calc-room-chip--add {
  border-style: dashed;
  color: var(--c-text-muted);
}

.calc-room-chip--add:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* Button extra small */
.btn-xs {
  padding: 3px 8px;
  font-size: 0.78rem;
}

/* === Table action buttons (V5) === */
.cell-actions {
  white-space: nowrap;
  text-align: center;
  width: 72px;
}

.calc-act-view {
  font-size: 0.85rem;
  padding: 3px 5px;
}

.calc-act-select {
  font-size: 0.85rem;
}

.calc-act-done {
  color: #059669;
  font-weight: 700;
  font-size: 1rem;
}

/* === Slide-over (radiator card, V5) === */
.calc-slideover-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.calc-slideover-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.calc-slideover {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--c-card);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.calc-slideover.active {
  transform: translateX(0);
}

.calc-so__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}

.calc-so__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.calc-so__close {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.calc-so__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.calc-so__photo {
  background: var(--c-bg);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.calc-so__section {
  margin-bottom: 16px;
}

.calc-so__section-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
}

.calc-so__row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.88rem;
  gap: 12px;
}

.calc-so__row > span:first-child {
  color: var(--c-text-secondary);
}

.calc-so__row > span:last-child {
  font-weight: 500;
  text-align: right;
}

.calc-so__conn,
.calc-so__color {
  padding: 3px 0;
  font-size: 0.85rem;
}

.calc-so__price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 8px;
}

.calc-so__select {
  width: 100%;
  margin-top: 12px;
}

/* === Quotes list === */
.quotes-toolbar {
  margin-bottom: 16px;
}

.quotes-status-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.quotes-tab {
  padding: 6px 14px;
  font-size: 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: transparent;
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.quotes-tab:hover { border-color: var(--c-primary); color: var(--c-primary); }
.quotes-tab.active { background: var(--c-primary); color: var(--text-on-accent); border-color: var(--c-primary); }

.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.quote-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
}

.quote-card__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.quote-card__number {
  font-weight: 600;
  font-size: 0.95rem;
}

.quote-card__body {
  flex: 1;
  min-width: 0;
}

.quote-card__client {
  font-size: 0.95rem;
  font-weight: 500;
}

.quote-card__meta {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-top: 2px;
}

.quote-card__price {
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

.text-muted { color: var(--c-text-muted); }

/* Quote status badges */
.badge-draft    { background: #f3f4f6; color: #6b7280; }
.badge-sent     { background: #dbeafe; color: #1e40af; }
.badge-accepted { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* === Quote edit === */
.quote-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.quote-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.quote-total {
  padding: 16px 0 0;
  margin-top: 16px;
  border-top: 2px solid var(--c-border);
  text-align: right;
  font-size: 1.15rem;
}

/* Quote item row */
.quote-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}

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

.quote-item__num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-muted);
  flex-shrink: 0;
}

.quote-item__info {
  flex: 1;
  min-width: 0;
}

.quote-item__title {
  font-weight: 500;
  font-size: 0.95rem;
}

.quote-item__desc {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-top: 2px;
}

.quote-item__qty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quote-item__qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 500;
}

.quote-item__price {
  text-align: right;
  min-width: 100px;
}

.quote-item__unit {
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

.quote-item__total {
  font-weight: 600;
}

.quote-item__remove {
  color: var(--c-text-muted);
  font-size: 1.2rem;
}

.quote-item__remove:hover { color: var(--c-accent); }

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200; /* [2026-03-17][CLX][V6-FIX] Выше slideover (z:100) */
}

.modal {
  background: var(--c-card);
  border-radius: var(--radius);
  width: 560px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
}

.modal__title {
  font-size: 1.05rem;
  font-weight: 600;
}

.modal__close {
  font-size: 1.4rem;
  line-height: 1;
}

.modal__body {
  padding: 20px;
  overflow-y: auto;
}

/* Search result rows in modal */
.search-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--tr-fast);
}

.search-result-row:hover {
  background: var(--c-primary-light);
}

.search-result-row__name {
  flex: 1;
  font-weight: 500;
  font-size: 0.9rem;
}

.search-result-row__meta {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  white-space: nowrap;
}

.search-result-row__price {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Sidebar disabled link */
.sidebar__link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* === Loading / Empty / Error states === */
.state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--c-text-muted);
  text-align: center;
  gap: 12px;
}

.state-box svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* [2026-02-25][CLX][CALC-DT] Маленький спиннер + sentinel для infinite scroll */
.spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.calc-slot__sentinel {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

/* === Back link === */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  cursor: pointer;
  text-decoration: none;
}

.back-link:hover {
  color: var(--c-primary);
  text-decoration: none;
}

/* === Designer Projects [2026-02-25][CLX][DESIGNER] === */

.designer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.designer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.designer-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
}

.designer-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-light);
  color: var(--c-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.designer-card__info {
  flex: 1;
  min-width: 0;
}

.designer-card__name {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.designer-card__meta {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-top: 2px;
}

/* Designer detail layout */
.designer-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .designer-detail {
    grid-template-columns: 1fr;
  }
}

.designer-detail__rooms {
  min-width: 0;
}

.designer-detail__params {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.designer-detail__params h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.designer-detail__params hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 16px 0;
}

.designer-info {
  font-size: 0.82rem;
  color: var(--c-text-secondary);
}

.designer-info p {
  margin: 4px 0;
}

.designer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.designer-quick-select {
  display: flex;
  gap: 4px;
}

.designer-summary {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  font-size: 0.88rem;
  color: var(--c-text-secondary);
  border-top: 1px solid var(--c-border);
  margin-top: 12px;
}

.designer-summary b {
  color: var(--c-text);
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--c-border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--tr-fast), background var(--tr-fast);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}

.upload-zone p {
  margin: 8px 0 0;
  color: var(--c-text-secondary);
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--c-border);
  border-radius: 3px;
  overflow: hidden;
  margin: 16px 0 8px;
}

.progress-bar__fill {
  height: 100%;
  background: var(--c-primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Alerts */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Form groups */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-secondary);
  margin-bottom: 4px;
}

/* Compact data table */
.data-table--compact th,
.data-table--compact td {
  padding: 6px 8px;
  font-size: 0.85rem;
}

.data-table--compact .input-sm {
  padding: 3px 6px;
  font-size: 0.82rem;
}

/* [2026-02-25][CLX][SUPPLIERS] Страница поставщиков */
.suppliers-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.suppliers-grid .card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.suppliers-grid .card__header {
  padding: 16px 20px 0;
}

.suppliers-grid .card__header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suppliers-summary {
  padding: 20px;
}

.suppliers-summary .card__header {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.badge--muted {
  background: var(--c-bg);
  color: var(--c-text-muted);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--c-primary-light);
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
  min-width: 110px;
  flex: 1;
}

.stat-card__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.2;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--c-text-secondary);
  margin-top: 2px;
}

.stat-card--success { background: #d1fae5; }
.stat-card--success .stat-card__value { color: #059669; }

.stat-card--danger { background: #fee2e2; }
.stat-card--danger .stat-card__value { color: #dc2626; }

.suppliers-grid .table {
  width: 100%;
  border-collapse: collapse;
}

.suppliers-grid .table th,
.suppliers-grid .table td {
  padding: 8px 20px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.88rem;
}

.suppliers-grid .table th {
  background: var(--c-bg);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.suppliers-grid .table--compact th,
.suppliers-grid .table--compact td {
  padding: 6px 20px;
}

.suppliers-grid .text-right { text-align: right; }

.btn--sm { padding: 5px 10px; font-size: 0.82rem; }
.btn--outline {
  background: transparent;
  color: var(--c-text-secondary);
  border: 1px solid var(--c-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: background var(--tr-fast);
}
.btn--outline:hover { background: var(--c-bg); }

/* ── [V5.2] Фидбэк сохранения ──────────────────────────── */
.btn-save-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: var(--text-on-accent) !important;
  transition: background 0.3s, border-color 0.3s;
}
.btn-save-error {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: var(--text-on-accent) !important;
  transition: background 0.3s, border-color 0.3s;
}

/* ── [V5.2] Toast-уведомления ───────────────────────────── */
.calc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-on-accent);
  background: var(--c-text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 10000;
  animation: toast-in 0.3s ease-out;
  pointer-events: none;
}
.calc-toast--error { background: #dc2626; }
.calc-toast--warning { background: #d97706; }
.calc-toast--success { background: #16a34a; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* ── [V5.2] Тултипы (CSS-only) ──────────────────────────── */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-border);
  color: var(--c-text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: help;
  margin-left: 4px;
  flex-shrink: 0;
  position: relative;
}
.tooltip-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: var(--c-text);
  color: var(--text-on-accent);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 400;
  white-space: normal;
  min-width: 180px;
  max-width: 260px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none;
}
.tooltip-icon:hover::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--c-text);
  z-index: 100;
}

/* ── [V5.2] Пресеты комнат ──────────────────────────────── */
.room-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.room-presets .chip {
  font-size: 0.78rem;
  padding: 3px 8px;
}

/* ── [V5.2] Project Bar в header ────────────────────────── */
.project-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-bar__name {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.85rem;
  background: var(--c-bg);
  color: var(--c-text);
  width: 180px;
  outline: none;
  transition: border-color var(--tr-fast);
}
.project-bar__name:focus { border-color: var(--c-primary); }
.project-bar__name::placeholder { color: var(--c-text-muted); }
.project-bar__select {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.82rem;
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
  cursor: pointer;
}
.project-bar__select:focus { border-color: var(--c-primary); }
.project-bar__saved {
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-bar__saved.visible { opacity: 1; }

/* ── [V5.2] Input error highlight ───────────────────────── */
.input-error,
.select-error {
  border-color: #dc2626 !important;
  animation: shake 0.3s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* ── [V5.2] Calc-field label с tooltip ───────────────────── */
.calc-field__label-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ── [V5.2-6B] Обсуждения ──────────────────────────────── */
.discussions {
  max-width: 720px;
  margin: 0 auto;
}

.disc-form {
  padding: 16px 20px;
  margin-bottom: 20px;
}

.disc-form__row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.disc-form__row:last-child { margin-bottom: 0; }

.disc-form__author {
  max-width: 200px;
}

.disc-form__cat {
  max-width: 160px;
}

.disc-form__msg {
  resize: vertical;
  min-height: 60px;
}

.disc-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.disc-form__hint {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

/* Category tabs */
.disc-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Cards list */
.disc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disc-card {
  padding: 14px 18px;
}

.disc-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.disc-card__badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.disc-card__badge--idea     { background: #fef3c7; color: #92400e; }
.disc-card__badge--bug      { background: #fee2e2; color: #991b1b; }
.disc-card__badge--question { background: #dbeafe; color: #1e40af; }
.disc-card__badge--other    { background: #f3f4f6; color: #6b7280; }

.disc-card__author {
  font-weight: 500;
  color: var(--c-text);
}

.disc-card__date {
  color: var(--c-text-muted);
  font-size: 0.78rem;
  margin-left: auto;
}

.disc-card__delete {
  margin-left: 4px;
  color: var(--c-text-muted);
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.disc-card:hover .disc-card__delete { opacity: 1; }
.disc-card__delete:hover { color: #dc2626; }

.disc-card__body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--c-text);
  word-break: break-word;
}

.disc-card__footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
}

.disc-card__like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: transparent;
  color: var(--c-text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.disc-card__like-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.disc-card__likes--active {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-light);
}

/* ═══════════════════════════════════════════════════════
   [2026-02-26][CLX][V5.3-HELP] Система помощи
   ═══════════════════════════════════════════════════════ */

/* ── Кнопка "?" в header ── */
.btn-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-text-muted, #999);
  color: var(--text-on-accent);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--tr-fast), transform var(--tr-fast);
  line-height: 1;
  opacity: 0.7;
}
.btn-help:hover {
  background: var(--c-primary);
  transform: scale(1.08);
  opacity: 1;
}

/* ── Slide-over панель помощи ── */
.help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr);
}
.help-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.help-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--c-card);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--tr);
  display: flex;
  flex-direction: column;
}
.help-panel.active {
  transform: translateX(0);
}

.help-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
  background: var(--c-primary-light);
}
.help-panel__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary-dark);
}
.help-panel__close {
  font-size: 1.4rem;
  background: transparent;
  border: none;
  color: var(--c-text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.help-panel__close:hover { color: var(--c-text); }

.help-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.help-panel__desc {
  font-size: 0.93rem;
  color: var(--c-text-secondary);
  margin-bottom: 18px;
  line-height: 1.6;
}

.help-panel__section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  margin-bottom: 10px;
}

/* ── Шаги (нумерованные) ── */
.help-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.help-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.help-step__num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--text-on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-step__text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--c-text);
}

/* ── Блок подсказок ── */
.help-tips {
  background: var(--c-bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--c-primary);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--c-text-secondary);
}
.help-tips strong {
  color: var(--c-text);
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── CTA-ссылка на обучение ── */
.help-panel__link {
  display: block;
  text-align: center;
  padding: 10px 16px;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--tr-fast);
  margin-top: 4px;
}
.help-panel__link:hover {
  background: var(--c-primary);
  color: var(--text-on-accent);
}

/* ── Страница обучения ── */
.help-page {
  position: relative;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
}

/* ── Orbs-эффект ── */
.help-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.help-orb--1 {
  width: 250px;
  height: 250px;
  background: var(--accent);
  top: -30px;
  right: -60px;
  animation: help-orb-1 15s ease-in-out infinite;
}
.help-orb--2 {
  width: 300px;
  height: 300px;
  background: var(--accent-hover);
  top: 50%;
  left: -80px;
  animation: help-orb-2 20s ease-in-out infinite;
}
.help-orb--3 {
  width: 200px;
  height: 200px;
  background: #2c3e6d;
  bottom: 10%;
  right: 20%;
  animation: help-orb-3 18s ease-in-out infinite;
}
@keyframes help-orb-1 {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-30px, 40px); }
}
@keyframes help-orb-2 {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(0.9) translate(40px, -30px); }
}
@keyframes help-orb-3 {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.15) translate(-20px, -40px); }
}

/* Контент поверх orbs */
.help-page > *:not(.help-orb) {
  position: relative;
  z-index: 1;
}

/* ── Intro обучения ── */
/* [2026-02-27][CLX][V6-STATUS] Блок статусов на странице обучения */
.help-statuses {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.help-statuses__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.help-statuses__desc {
  font-size: 0.88rem;
  color: var(--c-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}
.help-statuses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 768px) {
  .help-statuses__grid { grid-template-columns: 1fr; }
}
.help-statuses__item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--c-bg);
}
.help-statuses__item--test { border-left: 3px solid #34d399; }
.help-statuses__item--beta { border-left: 3px solid #fbbf24; }
.help-statuses__item--dev  { border-left: 3px solid #a78bfa; }
.help-statuses__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.help-statuses__badge--test { background: rgba(52,211,153,0.15); color: #047857; }
.help-statuses__badge--beta { background: rgba(251,191,36,0.15); color: #92400e; }
.help-statuses__badge--dev  { background: rgba(167,139,250,0.15); color: #6d28d9; }
.help-statuses__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
}
.help-statuses__text {
  font-size: 0.82rem;
  color: var(--c-text-secondary);
  line-height: 1.5;
}

.help-page__intro {
  background: rgba(224,244,248,0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--c-text-secondary);
}

/* ── Scroll-reveal для сценариев ── */
.help-scenario {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid var(--accent-light);
  margin-bottom: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease, box-shadow var(--tr-fast);
}
.help-scenario.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Мягкий hover ── */
.help-scenario.revealed:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow);
}

/* ── Аккордеон-сценарий ── */
.help-scenario__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background var(--tr-fast);
}
.help-scenario__header:hover { background: var(--c-bg); }
.help-scenario__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--c-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.help-scenario__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-primary-dark);
}
.help-scenario__meta { flex: 1; }
.help-scenario__title {
  font-size: 0.97rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.help-scenario__subtitle {
  font-size: 0.8rem;
  color: var(--c-text-secondary);
}
.help-scenario__chevron {
  width: 18px;
  height: 18px;
  stroke: var(--c-text-muted);
  transition: transform var(--tr);
  flex-shrink: 0;
}
.help-scenario.open .help-scenario__chevron {
  transform: rotate(90deg);
}

/* ── Плавный аккордеон через CSS Grid ── */
.help-scenario__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms ease;
  border-top: 1px solid transparent;
}
.help-scenario.open .help-scenario__body {
  grid-template-rows: 1fr;
  border-top-color: var(--c-border);
}
.help-scenario__body-inner {
  overflow: hidden;
  padding: 0 20px;
}
.help-scenario.open .help-scenario__body-inner {
  padding: 0 20px 20px;
}

.help-scenario__body-inner .help-steps {
  margin-top: 14px;
}
.help-scenario__body-inner .help-tips {
  margin-top: 14px;
}
.help-scenario__body-inner .help-panel__link {
  margin-top: 16px;
  display: inline-block;
  transition: background var(--tr-fast), color var(--tr-fast), transform var(--tr-fast), box-shadow var(--tr-fast);
}
.help-scenario__body-inner .help-panel__link:hover {
  background: var(--c-primary);
  color: var(--text-on-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(71, 180, 200, 0.3);
}
.help-scenario__body-inner .help-panel__link:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 6px rgba(71, 180, 200, 0.2);
}

/* ═══════════════════════════════════════════════════════
   [2026-02-27][CLX][V5.3-HOME] Главная страница
   ═══════════════════════════════════════════════════════ */

/* ── Тёмная тема для .main при page-home — immersive fullscreen ── */
.page-home .header {
  display: none;
}
.page-home .content {
  padding: 0;
  background: #0a0a0a;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
/* ── Контейнер ── */
.home-page {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
}

/* ── Hero-секция (100vh с 3D) ── */
.home-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.home-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.home-hero__canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.home-hero__overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.home-hero__overlay a,
.home-hero__overlay button {
  pointer-events: auto;
}
.home-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scroll-bounce 2s ease-in-out infinite;
  opacity: 0.4;
}
.home-scroll-hint svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255,255,255,0.5);
  fill: none;
  stroke-width: 2;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Секции: стили перенесены ниже [V5.4] ── */

/* ── Mobile CSS-fallback вместо 3D ── */
.home-hero__fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71,180,200,0.15) 0%, transparent 70%);
  animation: hero-glow-pulse 4s ease-in-out infinite;
}
@keyframes hero-glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* ── Aurora-эффект [2026-03-01][CLX][V5.4] усилены для 24-27" ── */
.home-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.home-aurora--1 {
  width: 450px;
  height: 450px;
  background: #47B4C8;
  top: -80px;
  left: -100px;
  animation: aurora-drift-1 20s ease-in-out infinite;
}
.home-aurora--2 {
  width: 380px;
  height: 380px;
  background: #3a97a8;
  top: 30%;
  right: -80px;
  animation: aurora-drift-2 25s ease-in-out infinite;
}
.home-aurora--3 {
  width: 400px;
  height: 400px;
  background: #2c3e6d;
  bottom: -60px;
  left: 25%;
  animation: aurora-drift-3 18s ease-in-out infinite;
}
@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(60px, 80px); }
  50% { transform: translate(-30px, 100px); }
  75% { transform: translate(40px, 30px); }
}
@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-60px, -40px); }
  50% { transform: translate(40px, -80px); }
  75% { transform: translate(-30px, 50px); }
}
@keyframes aurora-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(80px, -50px); }
  50% { transform: translate(-50px, 30px); }
  75% { transform: translate(30px, -60px); }
}

/* ── Логотип [V5.4] увеличен + строго по центру ── */
.home-logo-wrap {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}
.home-logo {
  width: 360px;
  max-width: 70vw;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(71,180,200,0.15));
}

/* ── Линия ── */
.home-line {
  display: block;
  width: 120px;
  height: 2px;
  margin: 0 auto 32px;
  background: linear-gradient(90deg, transparent, rgba(71,180,200,0.5), transparent);
}

/* ── Заголовок [V5.4] увеличен ── */
.home-title {
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}

/* ── Подзаголовок ── */
.home-subtitle {
  font-weight: 400;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Модуль-теги ── */
.home-modules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
}
.home-tag {
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  cursor: default;
}
.home-tag:hover {
  border-color: rgba(71,180,200,0.5);
  color: rgba(71,180,200,0.85);
  background: rgba(71,180,200,0.08);
}

/* ── Карточки возможностей [V5.4] усилен контраст ── */
.home-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  text-align: left;
}
.home-feature {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.home-feature:hover {
  border-color: rgba(71,180,200,0.4);
  background: rgba(71,180,200,0.06);
  transform: translateY(-2px);
}
.home-feature__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}
.home-feature__icon svg {
  width: 28px;
  height: 28px;
  stroke: #47B4C8;
  fill: none;
}
.home-feature__title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
}
.home-feature__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
}

/* ── Hub-diagram [V5.4] плавная органическая звезда + огонь/лёд ── */
.home-hub {
  position: relative;
  width: min(900px, 85vw);
  height: min(780px, 78vh);
  margin: 0 auto 48px;
}
.home-hub__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Плавные кривые от центра к нодам */
.home-hub__curve {
  stroke: rgba(71,180,200,0.3);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
}
/* Glow-дубли кривых — мягкое свечение */
.home-hub__curve-glow {
  stroke: rgba(71,180,200,0.15);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
}

/* Вращающийся пунктирный orbit */
.home-hub__orbit {
  animation: hub-orbit-rotate 60s linear infinite;
  transform-origin: 450px 390px;
}
@keyframes hub-orbit-rotate {
  to { transform: rotate(360deg); }
}

/* Частицы, бегущие вдоль кривых */
.home-hub__particle { opacity: 0; }
.home-hub__particle--1 { animation: hub-particle-1 4s ease-in-out infinite; }
.home-hub__particle--2 { animation: hub-particle-2 5s ease-in-out 0.8s infinite; }
.home-hub__particle--3 { animation: hub-particle-3 4.5s ease-in-out 1.6s infinite; }
.home-hub__particle--4 { animation: hub-particle-4 5.5s ease-in-out 2.4s infinite; }
.home-hub__particle--5 { animation: hub-particle-5 4.2s ease-in-out 3.2s infinite; }
.home-hub__particle--6 { animation: hub-particle-6 5s ease-in-out 0.4s infinite; }

/* Частицы: от КРАЯ кольца (r=90) к нодам */
@keyframes hub-particle-1 {
  0%   { transform: translate(450px, 300px); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translate(450px, 20px); opacity: 0; }
}
@keyframes hub-particle-2 {
  0%   { transform: translate(528px, 345px); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translate(810px, 185px); opacity: 0; }
}
@keyframes hub-particle-3 {
  0%   { transform: translate(528px, 435px); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translate(810px, 595px); opacity: 0; }
}
@keyframes hub-particle-4 {
  0%   { transform: translate(450px, 480px); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translate(450px, 760px); opacity: 0; }
}
@keyframes hub-particle-5 {
  0%   { transform: translate(372px, 435px); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translate(90px, 595px); opacity: 0; }
}
@keyframes hub-particle-6 {
  0%   { transform: translate(372px, 345px); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translate(90px, 185px); opacity: 0; }
}

/* Центр (20% от hub width = 180/900 SVG units) — масштабируется вместе с SVG */
.home-hub__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(71,180,200,0.18), rgba(232,75,47,0.06) 70%, transparent);
  border: 2px solid rgba(71,180,200,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: hub-pulse 3s ease-in-out infinite;
  transition: background 0.5s, border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
}
/* 3D hover-заливка: глянцевая сфера */
.home-hub__center:hover {
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.18) 0%, transparent 40%),
    radial-gradient(circle at 60% 65%, rgba(232,75,47,0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(71,180,200,0.3), rgba(71,180,200,0.08) 60%, rgba(232,75,47,0.1) 80%, transparent);
  border-color: rgba(71,180,200,0.6);
  box-shadow: 0 0 60px rgba(71,180,200,0.3), 0 0 120px rgba(71,180,200,0.1), inset 0 0 40px rgba(71,180,200,0.08);
}
.home-hub__center:hover .home-hub__logo {
  filter: drop-shadow(0 4px 20px rgba(71,180,200,0.4)) brightness(1.1);
}

/* Вращающийся conic glow вокруг кольца */
.home-hub__center::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(71,180,200,0.15) 0deg,
    rgba(71,180,200,0.03) 90deg,
    rgba(232,75,47,0.12) 180deg,
    rgba(232,75,47,0.03) 270deg,
    rgba(71,180,200,0.15) 360deg
  );
  filter: blur(20px);
  animation: hub-glow-spin 12s linear infinite;
  z-index: -1;
}
/* Внутренний highlight — имитация 3D стекла */
.home-hub__center::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 15%;
  width: 55%;
  height: 35%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
}
@keyframes hub-glow-spin {
  to { transform: rotate(360deg); }
}

.home-hub__logo {
  width: 85%;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.3));
  transition: filter 0.4s;
}

/* Волны при клике — туманные, расходятся от центра до краёв страницы */
.home-hub__wave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  border: none;
  background: transparent;
}
.home-hub__wave--ice {
  box-shadow: 0 0 80px 40px rgba(71,180,200,0.25), 0 0 160px 80px rgba(71,180,200,0.1);
  filter: blur(20px);
}
.home-hub__wave--fire {
  box-shadow: 0 0 80px 40px rgba(232,75,47,0.2), 0 0 160px 80px rgba(232,75,47,0.08);
  filter: blur(25px);
}
.home-hub__wave.active {
  animation: hub-wave-expand 2.4s cubic-bezier(0.1, 0.4, 0.2, 1) forwards;
}
@keyframes hub-wave-expand {
  0% {
    width: 40px;
    height: 40px;
    opacity: 0.7;
  }
  40% {
    opacity: 0.5;
  }
  100% {
    width: 300vmax;
    height: 300vmax;
    opacity: 0;
  }
}
@keyframes hub-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(71,180,200,0.12), 0 0 80px rgba(232,75,47,0.04); }
  50%      { box-shadow: 0 0 80px rgba(71,180,200,0.2), 0 0 120px rgba(232,75,47,0.08); }
}

/* Ноды */
.home-hub__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, filter;
}
.home-hub__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6dd4e4, #47B4C8 60%, #3a8a9a);
  box-shadow: 0 0 18px rgba(71,180,200,0.5), 0 0 40px rgba(71,180,200,0.15);
}
.home-hub__label {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}
.home-hub__sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* Нечётные ноды (1,3,5) = лёд, чётные (2,4,6) = огонь */
.home-hub__node--2 .home-hub__dot,
.home-hub__node--4 .home-hub__dot,
.home-hub__node--6 .home-hub__dot {
  background: radial-gradient(circle at 35% 35%, #f09080, #E84B2F 60%, #c03a22);
  box-shadow: 0 0 18px rgba(232,75,47,0.5), 0 0 40px rgba(232,75,47,0.15);
}

/* Позиции нод — дальше от центра (лучи длиннее) */
.home-hub__node--1 { top: 3%;  left: 50%; }
.home-hub__node--2 { top: 24%; left: 90%; }
.home-hub__node--3 { top: 76%; left: 90%; }
.home-hub__node--4 { top: 97%; left: 50%; }
.home-hub__node--5 { top: 76%; left: 10%; }
.home-hub__node--6 { top: 24%; left: 10%; }

/* ── Статус ── */
.home-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  margin-bottom: 40px;
}

@keyframes pulse-anim {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(71,180,200,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(71,180,200,0); }
}
.home-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #47B4C8;
  animation: pulse-anim 2s infinite;
}

/* ── CTA [V5.4] glow-эффект ── */
.home-cta {
  margin-bottom: 48px;
}
.home-cta__btn {
  display: inline-block;
  padding: 14px 36px;
  background: #47B4C8;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 0 20px rgba(71,180,200,0.25);
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
}
.home-cta__btn:hover {
  background: #3a97a8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(71,180,200,0.4);
}
.home-cta__btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 10px rgba(71,180,200,0.2);
}
/* [2026-03-10][CLX][3D-TEST] Кнопка 3D-теста */
.home-cta__btn--secondary {
  background: transparent;
  border: 1px solid rgba(71,180,200,0.4);
  color: #47B4C8;
  margin-left: 12px;
  box-shadow: none;
}
.home-cta__btn--secondary:hover {
  background: rgba(71,180,200,0.1);
  border-color: #47B4C8;
  box-shadow: 0 0 20px rgba(71,180,200,0.2);
}

/* ── Footer ── */
.home-footer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
}

/* ── Кастомный курсор (отключён) ── */

.home-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(71,180,200,0.45);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: transform 80ms ease-out, opacity 200ms, width 200ms, height 200ms, border-color 200ms;
  mix-blend-mode: screen;
}
.home-cursor--hover {
  width: 48px;
  height: 48px;
  border-color: rgba(71,180,200,0.7);
  margin-left: -8px;
  margin-top: -8px;
}

/* ── Секции [V5.4] увеличены под 24-27" ── */
.home-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px;
  position: relative;
  z-index: 1;
}
/* Hub-секция — шире остальных, hub сам адаптируется через min() */
.home-section--hub {
  max-width: 1000px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .home-hero { height: 80vh; min-height: 500px; }
  .home-section { max-width: 600px; padding: 40px 16px; }
  .home-title { font-size: 1.15rem; }
  .home-logo { width: 200px; }
  .home-features { grid-template-columns: 1fr; }
  .home-hub { width: 320px; height: 300px; }
  .home-section--hub { max-width: 100%; }
  .home-cursor { display: none; }
}

/* ══════════════════════════════════════════════════════════
   [2026-02-27][CLX][V6-1C] Страница маппинга номенклатуры
   ══════════════════════════════════════════════════════════ */

.nom-page { max-width: 1200px; }

/* ── Статистика ── */
.nom-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.nom-stats__item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
  min-width: 130px;
  flex: 1;
  box-shadow: var(--shadow-sm);
}
.nom-stats__item--ok { border-color: #34d399; background: #ecfdf5; }
.nom-stats__item--warn { border-color: #fbbf24; background: #fffbeb; }
.nom-stats__num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
}
.nom-stats__item--ok .nom-stats__num { color: #047857; }
.nom-stats__item--warn .nom-stats__num { color: #b45309; }
.nom-stats__label {
  font-size: 0.82rem;
  color: var(--c-text-secondary);
  margin-top: 2px;
}

/* ── Фильтры ── */
.nom-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.nom-filters__tabs {
  display: flex;
  gap: 4px;
  background: var(--c-border-light);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 3px;
}
.nom-filters__tab {
  padding: 7px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--c-text-secondary);
  font-weight: 500;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.nom-filters__tab:hover { color: var(--c-text); background: rgba(255,255,255,0.6); }
.nom-filters__tab--active {
  background: var(--c-surface);
  color: var(--c-primary-dark);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.nom-filters__brand {
  padding: 7px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--c-surface);
  color: var(--c-text);
}
.nom-filters__ping {
  margin-left: auto;
  font-size: 0.8rem;
}

/* ── Таблица ── */
.nom-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.nom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.nom-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--c-text);
  background: #f0f1f5;
  border-bottom: 2px solid var(--c-border);
  white-space: nowrap;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nom-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--c-border-light);
  vertical-align: middle;
  color: var(--c-text);
}
.nom-table__sep { width: 2px; background: var(--c-border); padding: 0 !important; }
.nom-table__empty { text-align: center; color: var(--c-text-secondary); padding: 32px 12px !important; font-size: 0.9rem; }

.nom-row:hover { background: #f0f9fb; }
.nom-row--mapped .nom-cell-code { color: var(--c-primary-dark); font-weight: 600; }

/* ── Бейджи ── */
.nom-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.nom-badge--ok { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.nom-badge--no { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ── Кнопки в строке ── */
.nom-btn-link {
  font-size: 0.8rem;
  white-space: nowrap;
}
.nom-btn-unlink {
  font-size: 0.8rem;
  margin-left: 4px;
  padding: 2px 8px;
  min-width: auto;
}

/* ── Пагинация ── */
.nom-paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0;
}
.nom-paging__info {
  font-size: 0.85rem;
  color: var(--c-text);
  font-weight: 500;
}

/* ── Модальное окно привязки ── */
.nom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.nom-modal {
  background: var(--c-surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.nom-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
}
.nom-modal__header h3 { margin: 0; font-size: 1rem; }
.nom-modal__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--c-text-secondary);
  padding: 0 4px;
  line-height: 1;
}
.nom-modal__close:hover { color: var(--c-text); }
.nom-modal__body { padding: 20px; }
.nom-modal__section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 16px 0 10px;
}
.nom-modal__section-title:first-child { margin-top: 0; }

.nom-modal__crm { margin-bottom: 12px; }
.nom-modal__card {
  background: #f8f9fc;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--c-text);
}
.nom-modal__warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #78350f;
  margin: 8px 0;
  font-weight: 500;
}
.nom-modal__error {
  color: #dc2626;
  padding: 16px;
  font-size: 0.9rem;
}
.nom-modal__divider {
  height: 1px;
  background: var(--c-border);
  margin: 20px 0;
}
.nom-modal__placeholder {
  background: #f0f1f5;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: 0.88rem;
  color: var(--c-text-secondary);
  text-align: center;
}

/* ── Кандидаты из 1С ── */
.nom-modal__candidates {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  max-height: 340px;
  overflow-y: auto;
}
.nom-candidate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--c-surface);
  transition: border-color var(--tr-fast), background var(--tr-fast), box-shadow var(--tr-fast);
}
.nom-candidate:hover {
  border-color: var(--c-primary);
  background: #f0f9fb;
  box-shadow: var(--shadow-sm);
}
.nom-candidate--selected {
  border-color: var(--c-primary);
  background: #e0f4f8;
  box-shadow: 0 0 0 2px rgba(71,180,200,0.3);
}
.nom-candidate__code {
  font-family: 'Fira Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-primary-dark);
  min-width: 110px;
  flex-shrink: 0;
  background: #f0f1f5;
  padding: 2px 8px;
  border-radius: 4px;
}
.nom-candidate__name {
  font-size: 0.85rem;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.nom-modal__confirm {
  width: 100%;
  margin-top: 8px;
}

/* ── Ручной поиск ── */
.nom-modal__search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.nom-modal__input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.nom-modal__input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px rgba(71,180,200,0.15);
}

/* ── Toast ── */
.nom-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: var(--radius);
  background: var(--c-text);
  color: var(--text-on-accent);
  font-size: 0.88rem;
  z-index: 2000;
  animation: nom-toast-in 300ms ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.nom-toast--success { background: #059669; }
.nom-toast--error { background: #dc2626; }
.nom-toast--warning { background: #d97706; }

@keyframes nom-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   [2026-02-27][CLX][V6-1C] Номенклатура: mode-табы + batch авто-подбор
   ═══════════════════════════════════════════════════════════════ */

/* Mode tabs (Ручной маппинг / Авто-подбор) */
.nom-mode-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 3px;
  background: #f0f1f5;
  border-radius: 8px;
  width: fit-content;
}

.nom-mode-tab {
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--c-text-secondary);
  transition: all 150ms;
}

.nom-mode-tab:hover { color: var(--c-text); background: rgba(255,255,255,0.5); }

.nom-mode-tab--active {
  background: var(--surface);
  color: var(--c-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Batch controls */
.nom-batch__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.nom-batch__brand {
  padding: 7px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  min-width: 180px;
}

.nom-batch__hint {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-left: auto;
}

/* Batch summary */
.nom-batch__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f0f9fb;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

/* Batch quick actions */
.nom-batch__actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* Batch table tweaks */
.nom-batch-table th { font-size: 0.75rem; }
.nom-batch__th-cb { width: 36px; text-align: center; }
.nom-batch__td-cb { text-align: center; }

.nom-batch__cb {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--c-primary);
}

.nom-batch__no-cb {
  color: var(--c-text-muted);
  font-size: 0.8rem;
}

.nom-batch__row { transition: background 100ms; }
.nom-batch__row--selected { background: #ecfdf5 !important; }
.nom-batch__row--nomatch { opacity: 0.5; }
.nom-batch__row:hover { background: #f0f9fb; }
.nom-batch__row--selected:hover { background: #d1fae5 !important; }

.nom-batch__match {
  font-size: 0.82rem;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nom-batch__code {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--c-primary-dark);
  font-weight: 600;
}

/* Score badges */
.nom-score {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.nom-score--high { background: #d1fae5; color: #065f46; }
.nom-score--mid  { background: #fef3c7; color: #92400e; }
.nom-score--low  { background: #fee2e2; color: #991b1b; }

/* Alternative selector */
.nom-batch__alt {
  padding: 3px 6px;
  font-size: 0.78rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  max-width: 220px;
}

.nom-batch__no-alt { color: var(--c-text-muted); font-size: 0.82rem; }

/* ============================================================
   [2026-03-12][CLX][V6] Phase 3 — Search, RAL, Locks, Price states
   ============================================================ */

/* Lock buttons on filter titles */
.lock-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0 3px;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity var(--tr-fast);
}
.lock-btn:hover { opacity: 1; }
.lock-btn.locked { color: var(--c-primary); opacity: 1; }

/* RAL presets */
.ral-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ral-preset {
  font-size: 0.78rem;
  padding: 3px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  cursor: pointer;
  transition: all var(--tr-fast);
}
.ral-preset:hover { border-color: var(--c-primary); }
.ral-preset.active {
  background: var(--c-primary);
  color: var(--text-on-accent);
  border-color: var(--c-primary);
}

/* RAL suggestions dropdown */
.ral-suggestions {
  max-height: 180px;
  overflow-y: auto;
  border-radius: var(--radius-sm);
}
.ral-suggestions:not(:empty) {
  border: 1px solid var(--c-border);
  margin-top: 4px;
  background: var(--c-surface);
}
.ral-suggestion:hover {
  background: var(--c-bg-hover, rgba(0,0,0,.05));
}

/* RAL selected indicator */
.ral-selected {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-secondary);
}

/* Price badges (in catalog table) */
.price-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
}
.price-base {
  background: var(--c-bg);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.price-ral {
  background: var(--c-primary);
  color: var(--text-on-accent);
}
.price-no-data {
  color: var(--c-danger, #ef4444);
  font-weight: 600;
}
.price-warning {
  color: var(--c-danger, #ef4444);
  font-size: 0.85rem;
  cursor: help;
}

/* [2026-03-28][CLX][V10-SLOTS] Add-to-room / slot selection button in catalog */
.cell-add { width: 80px; }
.add-to-room-btn {
  font-size: .75rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.add-to-room-btn.btn-success {
  background: var(--c-success, #22c55e);
  border-color: var(--c-success, #22c55e);
  color: #fff;
  pointer-events: none;
}

/* [2026-03-28][CLX][V10-SLOTS] Room context bar — полная переработка */
.room-context-bar {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  animation: fadeIn 0.2s ease;
}

.rcb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rcb-title {
  font-size: .85rem;
  color: var(--c-text);
  line-height: 1.3;
}
.rcb-project-name {
  color: var(--c-text-secondary);
  font-weight: 400;
}
.rcb-room-meta {
  font-size: .79rem;
  color: var(--c-text-secondary);
  font-weight: 400;
}
.rcb-slot-label {
  color: var(--c-accent);
  font-weight: 600;
}
.rcb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Room tabs */
.rcb-rooms {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
}
.rcb-room-tab {
  padding: 3px 8px;
  font-size: .79rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: transparent;
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all 150ms;
  white-space: nowrap;
}
.rcb-room-tab:hover {
  background: var(--c-bg-hover, rgba(0,0,0,.04));
}
.rcb-room-tab--active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  font-weight: 600;
}
.rcb-room-badge {
  font-size: .69rem;
  font-weight: 600;
  margin-left: 3px;
  opacity: .7;
}
.rcb-room-badge--done {
  color: var(--c-success, #22c55e);
  opacity: 1;
}

/* Slot chips */
.rcb-slots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.rcb-slot-chip {
  padding: 3px 8px;
  font-size: .79rem;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: transparent;
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all 150ms;
}
.rcb-slot-chip:hover {
  background: var(--c-bg-hover, rgba(0,0,0,.04));
}
.rcb-slot-chip--active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  font-weight: 600;
}
.rcb-slot-chip--filled {
  border-color: var(--c-success, #22c55e);
  color: var(--c-success, #22c55e);
}
.rcb-slot-chip--filled.rcb-slot-chip--active {
  background: var(--c-success, #22c55e);
  color: #fff;
  border-color: var(--c-success, #22c55e);
}

/* Slot details */
.rcb-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-size: .79rem;
  color: var(--c-text-secondary);
  line-height: 1.5;
}
.rcb-sep {
  margin: 0 4px;
  opacity: .4;
}

/* Progress bar */
.rcb-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rcb-progress__bar {
  width: 48px;
  height: 4px;
  background: var(--c-border);
  border-radius: 2px;
  overflow: hidden;
}
.rcb-progress__fill {
  height: 100%;
  background: var(--c-accent);
  border-radius: 2px;
  transition: width 300ms ease;
}
.rcb-progress__text {
  font-size: .69rem;
  font-weight: 600;
  color: var(--c-text-secondary);
  white-space: nowrap;
}

/* Живая цена */
.rcb-price {
  font-size: .79rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

/* × удаление на filled chip */
.rcb-slot-chip__remove {
  display: none;
  margin-left: 4px;
  font-size: .69rem;
  color: var(--c-danger, #ef4444);
  cursor: pointer;
  font-weight: 700;
}
.rcb-slot-chip--filled:hover .rcb-slot-chip__remove {
  display: inline;
}

/* Chip с именем радиатора — шире */
.rcb-slot-chip--filled {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Выбранный радиатор в details */
.rcb-selected {
  color: var(--c-success, #22c55e);
  font-weight: 600;
}

/* ✓ уже выбран в таблице каталога */
.add-to-room-current {
  color: var(--c-success, #22c55e);
  font-weight: 700;
  font-size: .9rem;
}

/* Кнопка «Заменить» — outline стиль */
.add-to-room-btn.btn-outline {
  background: transparent;
  border: 1px solid var(--c-warn, #f59e0b);
  color: var(--c-warn, #f59e0b);
}
.add-to-room-btn.btn-outline:hover {
  background: var(--c-warn, #f59e0b);
  color: #fff;
}

/* Sticky bar на странице радиатора */
.radiator-slot-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--c-card);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
  z-index: 10;
  margin-top: 16px;
  border-radius: 0 0 8px 8px;
}
.radiator-slot-bar__info {
  font-size: .82rem;
  color: var(--c-text-secondary);
}
.radiator-slot-bar .btn-outline {
  border-color: var(--c-warn, #f59e0b);
  color: var(--c-warn, #f59e0b);
}
.radiator-slot-bar .btn-outline:hover {
  background: var(--c-warn, #f59e0b);
  color: #fff;
}
.radiator-slot-bar .btn-success {
  background: var(--c-success, #22c55e);
  border-color: var(--c-success, #22c55e);
  color: #fff;
}

/* Search input in filters — slightly larger */
#filter-search {
  font-size: 0.9rem;
}

/* [2026-03-13][CLX][V6-STATUS] === Строчный список проектов === */
.proj-table {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.proj-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.2fr) 80px minmax(120px, 1.5fr) 30px minmax(70px, 0.8fr) 85px 95px 90px 90px 80px;
  gap: 0;
  align-items: center;
  padding: 6px 10px;
  font-size: .8rem;
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
  transition: background 150ms;
}
.proj-row:last-child { border-bottom: none; }
.proj-row:hover { background: var(--c-bg); }
.proj-row--header {
  background: var(--c-bg);
  font-weight: 600;
  font-size: .7rem;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: default;
  position: sticky;
  top: 0;
  z-index: 1;
}
.proj-row--header:hover { background: var(--c-bg); }

.proj-col {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}
.proj-col--studio { color: var(--c-primary); font-weight: 500; }
.proj-col--client { white-space: normal; line-height: 1.3; }
.proj-col--rooms { text-align: center; color: var(--c-text-muted); }
.proj-col--price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.proj-col--actions {
  display: flex;
  gap: 2px;
  justify-content: flex-end;
}
.proj-col--actions .btn { padding: 2px 4px; font-size: .7rem; }

/* Collapsible секции в детальной */
.collapsible-header:hover {
  background: var(--c-bg);
  border-radius: var(--radius-sm);
}
.collapsible-arrow {
  display: inline-block;
  font-size: .65rem;
  color: var(--c-text-muted);
}

/* PDF навигация — компактные кнопки с аббревиатурами */
.pdf-page-btn {
  min-width: 0 !important;
  padding: 2px 5px !important;
  font-size: .7rem !important;
  line-height: 1.2;
}

/* Адаптив: на узких экранах скрыть колонки логистики и производства */
@media (max-width: 1200px) {
  .proj-row {
    grid-template-columns: minmax(80px, 1fr) 70px minmax(100px, 1.3fr) 30px minmax(60px, .7fr) 75px 85px 80px;
  }
  .proj-col--logistics, .proj-col--stage { display: none; }
}
@media (max-width: 900px) {
  .proj-row {
    grid-template-columns: minmax(80px, 1fr) 70px minmax(100px, 1.3fr) 30px minmax(60px, .7fr) 75px;
  }
  .proj-col--production, .proj-col--logistics, .proj-col--stage { display: none; }
}
