/* === Skeleton loader === */
.app-skeleton {
  max-width: 680px;
  margin: 32px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skeleton-block {
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(90deg, #e9ecef 25%, #f4f6f9 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}
.skeleton-block--short { height: 72px; }
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Base === */
:root {
  /* Pixel-inspired palette */
  --bs-black:    #171f38;
  --bs-blue:     #1d58a5;
  --bs-cyan:     #17a2b8;
  --bs-gray-100: #F9FAFB;
  --bs-gray-200: #F3F4F6;
  --bs-gray-300: #E5E7EB;
  --bs-gray-400: #D1D5DB;
  --bs-gray-600: #6B7280;

  /* Триада: тёмно-синий → синий → циановый */
  --primary:       #1d58a5;
  --primary-dark:  #242e4c;
  --primary-light: #ebf2fb;
  --accent:        #6B7280;
  --accent-light:  #F3F4F6;
  --surface:       #ffffff;
  --bg:            #f4f6f9;
  --border:        #eaecf0;
  --border-active: #c8daf5;   /* рамка выбранного элемента */
  --text:          #374151;
  --text-muted:    #9CA3AF;
  --radius:        1rem;
  --shadow:        0 1px 2px rgba(23,31,56,0.06), 0 2px 8px rgba(23,31,56,0.04);
  --font:          'Nunito Sans', system-ui, -apple-system, sans-serif;
}
html, body { margin: 0; }
body {
  background: var(--bg);
  font-family: var(--font, 'Inter', system-ui, -apple-system, sans-serif);
  color: var(--text);
  padding-bottom: 40px;
}
* { box-sizing: border-box; }

/* === Layout === */
.app-wrap { max-width: 580px; margin: 0 auto; padding: 16px 0 60px; }

/* === App intro === */
.app-intro {
  padding: 18px 4px 14px 34px;
}
.app-intro-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.app-intro-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.app-intro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.app-intro-chip {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-intro-chip i {
  font-size: 1.1rem;
}

/* === Accordion sections === */
.accordion-section {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 16px 12px;
  overflow: hidden;
}


.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: default;
  gap: 10px;
}
.accordion-section:not(.no-header-click) .acc-header:not(.static) {
  cursor: pointer;
}
.accordion-section:not(.no-header-click) .acc-header:not(.static):hover {
  background: var(--bs-gray-100);
}
.accordion-section:not(.no-header-click) .acc-header:not(.static):hover .acc-edit-btn {
  background: var(--primary-light);
}
.acc-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-icon { font-size: 1.1rem; color: var(--primary); flex-shrink: 0; }
.acc-title { font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.acc-summary {
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
  flex: 1; text-align: right;
}
.acc-edit-btn {
  background: none; border: none; color: var(--primary);
  padding: 4px 6px; cursor: pointer; flex-shrink: 0; font-size: 1rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.accordion-section.done .acc-header { background: var(--bs-gray-200); }

.acc-body { padding: 0 18px 18px; border-top: 1px solid var(--border); }
.acc-body.no-top-border { border-top: none; padding: 0; }
#section-style  .acc-body { padding: 0 18px 18px; }
#section-budget .acc-body { padding: 16px 18px 20px; }

.acc-footer { padding-top: 18px; }

/* === Section labels === */
.section-label {
  font-size: 0.92rem; font-weight: 600;
  color: var(--text);
  padding-top: 18px; margin-bottom: 10px;
}

/* === Moodboards === */
.mood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mood-card {
  position: relative; border-radius: 10px; overflow: hidden;
  cursor: pointer; aspect-ratio: 16/9;
  border: 3px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mood-card:hover  { box-shadow: 0 4px 16px rgba(13,110,253,0.15); }
.mood-card.active { border-color: var(--primary); }
.mood-card img    { width: 100%; height: 100%; object-fit: cover; display: block; }
.mood-card-label  {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff; font-size: 0.82rem; font-weight: 600;
  padding: 14px 10px 8px;
}

/* === Color chips === */
.color-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.color-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 7px; border-radius: 2rem;
  border: 1px solid var(--border); background: #fff;
  cursor: pointer; font-size: 0.82rem; font-weight: 500;
  transition: border-color 0.2s;
}
.color-chip.active { border-color: var(--primary); color: var(--primary); }
.color-chip--disabled {
  opacity: 0.35; cursor: not-allowed;
  border-style: dashed;
}
.color-dot { width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0; }

/* === Width === */
.width-row { display: flex; gap: 10px; margin-bottom: 10px; }
.width-btn {
  flex: 1; padding: 10px 8px;
  border: 2px solid var(--border); border-radius: 10px;
  background: #fff; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.width-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.compact-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 0;
}
.compact-toggle-label { font-weight: 600; font-size: 0.92rem; }
.compact-toggle-sub   { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* === Confirm button === */
.btn-confirm {
  width: 100%; padding: 13px;
  border-radius: 1rem; border: none;
  background: var(--primary); color: #fff;
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.btn-confirm:hover:not(:disabled) {
  opacity: 0.92;
  box-shadow: 0 4px 12px rgba(29,88,165,0.25);
}
.btn-confirm:disabled { background: var(--bs-gray-400); cursor: not-allowed; }

/* === Category accordion === */
.cat-list { padding: 8px 12px 12px; }
.cat-row {
  border-radius: 0.75rem; margin-bottom: 6px;
  border: 1px solid var(--border);
  overflow: hidden; transition: border-color 0.2s;
}
.cat-row.is-selected { border-color: var(--primary); }
.cat-row.is-selected .cat-header { background: var(--primary-light); }
.cat-row.is-active   { border-color: var(--primary); }
.cat-row.is-empty    { opacity: 0.5; }
.cat-row.is-empty .cat-header { cursor: default; }
.cat-empty-label {
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-muted); font-style: italic;
  flex: 1; text-align: right; padding-right: 4px;
}
.cat-toggle-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.cat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer;
  user-select: none; background: #fff;
  transition: background 0.15s;
}
.cat-header:hover { background: var(--bs-gray-100); }
.cat-icon { font-size: 1.8rem; color: var(--primary); width: 30px; text-align: center; flex-shrink: 0; }
iconify-icon.cat-icon { display: flex; align-items: center; justify-content: center; }
.cat-name { font-size: 0.92rem; font-weight: 600; color: var(--text); flex: 1; }
.cat-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.cat-badge {
  font-size: 0.72rem; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
  background: transparent; color: var(--text);
}
.cat-toggle-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; line-height: 1;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.cat-toggle-btn i {
  font-size: 0.9rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.cat-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-row.is-selected .cat-toggle-btn {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}
.cat-body {
  border-top: 1px solid var(--border);
  padding: 14px; background: #fff;
}
.cat-body-loading { text-align: center; padding: 10px; color: var(--text-muted); font-size: 0.82rem; }

/* === Param groups === */
.param-group { margin-bottom: 10px; }
.param-group:last-child { margin-bottom: 0; }
.modal-param-group { margin-bottom: 14px; }
.modal-param-group:last-child { margin-bottom: 0; }
.param-group-label {
  font-size: 0.92rem; font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.param-btn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.param-readonly-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.param-readonly-label {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted);
}
.param-readonly-val {
  font-size: 0.82rem; font-weight: 500; color: var(--text);
}
.param-bool-row {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 2px 0; user-select: none;
}
.param-bool-row:hover:not(.param-bool-row--disabled) .param-bool-label { color: var(--primary); }
.param-bool-row--disabled { opacity: 0.35; cursor: not-allowed; }
.param-bool-label { font-size: 0.92rem; font-weight: 500; color: var(--text); }
/* Pixel-style checkbox icon colors: light border unselected, dark navy selected */
.param-bool-row .bi-square { color: var(--bs-gray-400) !important; }
.param-bool-row .bi-check-square-fill { color: var(--primary) !important; }
.tag-btn {
  font-size: 0.82rem; font-weight: 500;
  padding: 4px 12px; border-radius: 2rem;
  border: 1px solid var(--bs-gray-400);
  background: #fff; color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.tag-btn:hover:not(:disabled) { border-color: var(--bs-gray-600); }
.tag-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tag-btn.info   { background: #f0f0f0; border-color: #e0e0e0; color: var(--text-muted); cursor: default; }
.tag-btn--disabled, .tag-btn:disabled {
  opacity: 0.35; cursor: not-allowed;
  border-style: dashed;
}

/* === Budget === */
.budget-hint { font-size: 0.82rem; color: var(--text-muted); margin: 12px 0 10px; }

/* Блок бюджета внутри объединённой секции */
.budget-block-inline {
  padding: 8px 18px 18px;
}
.budget-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.budget-btns { display: flex; gap: 10px; margin-bottom: 16px; }
.budget-btn {
  flex: 1; padding: 14px 8px;
  border: 1px solid var(--bs-gray-400); border-radius: 1rem;
  background: #fff; cursor: pointer; text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.budget-btn.active { border-color: var(--primary); background: var(--primary-light); }
.budget-btn-label { font-size: 0.92rem; font-weight: 600; }
.budget-btn.active .budget-btn-label { color: var(--primary); }
.budget-btn-price { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }

/* === Combined summary (секции 2+3 в одну при showResult) === */
.combined-summary .acc-header { cursor: pointer; }
.combined-summary .acc-header:hover { background: var(--bs-gray-100); }
.combined-summary .acc-header:hover .acc-edit-btn {
  background: var(--primary-light);
}
.combined-summary-text {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; flex: 1; overflow: hidden;
}
.combined-summary-text .acc-title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acc-summary-line {
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* === Result nav === */
.result-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 6px;
}
.btn-back {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.92rem; font-weight: 600; cursor: pointer; padding: 0;
  transition: color 0.15s;
}
.btn-back:hover { color: var(--primary); }
.result-total { font-size: 1.25rem; font-weight: 700; color: var(--primary); }

/* === Product cards === */
.product-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); margin: 0 16px 12px; overflow: hidden;
}
.product-img-box {
  position: relative; height: 220px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 28px 24px 16px;
  overflow: hidden;
}
.product-img {
  max-height: 100%; max-width: 65%; object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}
.product-img:hover {
  transform: scale(1.1);
}

/* === Lightbox === */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(23,31,56,0.82);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  animation: lb-in 0.2s ease;
}
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.4);
  animation: lb-scale 0.25s ease;
}
@keyframes lb-scale {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.lightbox-close {
  position: fixed; top: 18px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }
.browse-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 34px; border-radius: 17px;
  padding: 0 9px;
  background: rgba(255,255,255,0.92); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden; white-space: nowrap;
  transition: box-shadow 0.15s;
}
.browse-arrow:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.browse-arrow.left  { left: 18px; }
.browse-arrow.right { right: 18px; }
.browse-arrow:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.browse-label {
  font-size: 0.72rem; font-weight: 500;
  max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width 0.25s ease, opacity 0.1s ease;
}
/* отступ между иконкой и текстом — через padding самого лейбла */
.browse-arrow.left  .browse-label { padding-left: 3px; }
.browse-arrow.right .browse-label { padding-right: 3px; }
.browse-arrow:hover .browse-label {
  max-width: 80px; opacity: 1;
  transition: max-width 0.25s ease, opacity 0.18s ease 0.1s;
}
.product-details { padding: 14px 18px 18px; }
.product-cat {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); margin-bottom: 4px;
}
.product-name {
  font-size: 1rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 10px;
}
.product-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.product-intro {
  font-size: 0.82rem; color: var(--text-muted, #888); margin-bottom: 8px;
  display: flex; flex-wrap: wrap; gap: 2px 10px;
}
.product-intro li {
  list-style: none; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.product-intro li::before { content: '·'; color: var(--accent); font-weight: 700; }
.product-price-block { display: flex; flex-direction: column; gap: 1px; }
.product-old-price {
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  text-decoration: line-through;
}
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.btn-configure {
  background: none; border: none; color: var(--primary);
  font-size: 0.82rem; font-weight: 600; cursor: pointer; padding: 0;
}
.btn-configure:disabled {
  color: var(--text-muted); opacity: 0.5; cursor: default;
}
.btn-external {
  background: none; border: none; color: var(--primary);
  font-size: 1rem; cursor: pointer; padding: 4px;
  border-radius: 6px; display: flex; align-items: center;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-external:hover { background: var(--primary-light); }

.param-no-options {
  font-size: 0.82rem; color: var(--text-muted);
  font-style: italic; padding: 2px 0 6px;
}

/* === Buy block === */
.buy-block { 
  margin: 0 16px;
  padding-bottom: 16px;
}
.buy-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 18px 2px;
  margin-bottom: 0;
}
.buy-total-label { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.buy-total-sum   { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.buy-price-note  { font-size: 0.88rem; color: var(--text-muted); padding: 0 18px; margin-bottom: 16px; }
.btn-main {
  width: 100%; padding: 14px; border-radius: 1rem; border: none;
  background: var(--primary); color: #fff;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.btn-main:hover:not(:disabled) {
  opacity: 0.92;
  box-shadow: 0 4px 12px rgba(29,88,165,0.25);
}
.btn-main:disabled { opacity: 0.5; cursor: not-allowed; }
.buy-added { display: flex; gap: 10px; }
.btn-main--done {
  flex: 1;
  background: var(--bs-gray-200); color: var(--text-muted);
  opacity: 1 !important; cursor: default;
}
.btn-checkout {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  background: var(--primary);
}

/* === Transitions: slide-up (секции появляются снизу, уходят вверх) === */
.slide-up-enter-active {
  transition: opacity 0.55s ease, transform 0.55s ease, max-height 0.55s ease;
  overflow: hidden;
}
.slide-up-enter-from {
  opacity: 0;
  transform: translateY(24px);
  max-height: 0;
}
.slide-up-leave-active {
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
  overflow: hidden;
}
.slide-up-leave-to {
  opacity: 0;
  transform: translateY(-12px);
  max-height: 0;
}
.slide-up-enter-to,
.slide-up-leave-from {
  max-height: 2200px;
}

/* === Transitions: cat-body (параметры категории разворачиваются вниз) === */
.cat-body-enter-active {
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
}
.cat-body-leave-active {
  transition: none;
  overflow: hidden;
}
.cat-body-enter-from {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
}
.cat-body-leave-to {
  opacity: 0; max-height: 0;
}
.cat-body-enter-to,
.cat-body-leave-from {
  max-height: 1200px;
}

/* === Modal === */
.modal-content { box-shadow: 0 8px 32px rgba(23,31,56,0.12); }
.modal-header { padding: 18px 20px 12px; align-items: center; }
.modal-cat-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.modal-close-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; line-height: 1;
  transition: border-color 0.15s, color 0.15s;
  margin-left: auto;
}
.modal-close-btn i { font-size: 0.9rem; display: flex; align-items: center; justify-content: center; line-height: 1; }
.modal-close-btn:hover { border-color: var(--primary); color: var(--primary); }
.modal-body { padding: 4px 20px 8px; }
.modal-footer { padding: 8px 20px 20px; }

/* === Desktop: wider column + scaled fonts === */
@media (min-width: 720px) {
  .app-skeleton { max-width: 780px; }
  .app-wrap     { max-width: 760px; }

  /* sm → base */
  .acc-summary, .acc-summary-line, .mood-card-label,
  .compact-toggle-sub,
  .tag-btn, .color-chip { font-size: 0.92rem; }

  /* base → md */
  .acc-title, .section-label, .cat-name,
  .param-group-label, .compact-toggle-label, .param-bool-label,
  .budget-btn-label { font-size: 1rem; }

  /* md → lg */
  .btn-confirm, .btn-main { font-size: 1.1rem; padding: 16px; }

  /* lg → xl */
  .product-name       { font-size: 1.1rem; }
  .product-price      { font-size: 1.4rem; }
  .result-total       { font-size: 1.4rem; }

  /* xl → 2xl */
  .buy-total-label    { font-size: 1.4rem; }
  .buy-total-sum      { font-size: 1.4rem; }

  .cat-icon           { font-size: 2rem; width: 34px; }
  .product-img-box    { height: 280px; padding: 36px 32px 20px; }
}

/* === Site header === */
.site-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 34px;
}

/* Верхняя строка */
.site-header-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0 8px;
  border-bottom: 1px solid #ddd;
  color: #555;
  font-size: 0.92rem;
}
.site-header-tagline {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header-back {
  white-space: nowrap;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.92rem;
  flex-shrink: 0;
}
.site-header-back:hover { text-decoration: underline; }

/* Логобар */
.site-header-logobar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.site-header-logo-link { display: flex; align-items: center; }
.site-header-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.site-header-share {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #bbb;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: #666;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.site-header-share:hover { border-color: var(--primary); color: var(--primary); }
.site-header-share.is-shared { border-color: #28a745; color: #28a745; }
.site-header-share i { font-size: 0.9rem; }

/* Секция ещё не доступна (свёрнута, заблокирована) */
.section-locked {
  opacity: 0.65;
  transition: opacity 0.3s;
}
.section-locked-far {
  opacity: 0.38;
  transition: opacity 0.3s;
}
.section-locked .acc-header,
.section-locked-far .acc-header {
  cursor: pointer;
}
.section-locked .acc-body,
.section-locked-far .acc-body {
  pointer-events: none;
}

/* === Cat: Добавить label === */
.cat-toggle-btn--add {
  width: auto !important;
  height: auto !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.cat-add-label { line-height: 1; }

/* === Cat: skip hint === */
.cat-skip-hint {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 10px;
}


/* === Misc === */
.spinner-sm {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--bs-gray-400); border-top-color: var(--primary);
  animation: spin 0.7s linear infinite; display: inline-block; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
